@meeovi/layer-shared 1.0.0

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 (327) hide show
  1. package/README.md +0 -0
  2. package/app/components/Gallery/Gallery.vue +187 -0
  3. package/app/components/Gallery/__tests__/Gallery.spec.ts +14 -0
  4. package/app/components/Heading/Heading.vue +14 -0
  5. package/app/components/Heading/__tests__/Heading.spec.ts +14 -0
  6. package/app/components/Heading/types.ts +5 -0
  7. package/app/components/media/audioGallery.vue +70 -0
  8. package/app/components/media/dragDropUpload.vue +67 -0
  9. package/app/components/media/fullscreenMediaModal.vue +66 -0
  10. package/app/components/media/imageCard.vue +65 -0
  11. package/app/components/media/imageGallery.vue +40 -0
  12. package/app/components/media/mediaCard.vue +89 -0
  13. package/app/components/media/mediaCarousel.vue +65 -0
  14. package/app/components/media/mediaFolderSidebar.vue +72 -0
  15. package/app/components/media/mediaPlayer.vue +40 -0
  16. package/app/components/media/mediaSearchBar.vue +16 -0
  17. package/app/components/media/videoGallery.vue +77 -0
  18. package/app/components/ui/AccordionItem/AccordionItem.vue +24 -0
  19. package/app/components/ui/AccordionItem/__tests__/AccordionItem.spec.ts +14 -0
  20. package/app/components/ui/AccordionItem/types.ts +5 -0
  21. package/app/components/ui/Alert/Alert.vue +34 -0
  22. package/app/components/ui/Alert/types.ts +5 -0
  23. package/app/components/ui/Breadcrumbs/Breadcrumbs.vue +76 -0
  24. package/app/components/ui/Breadcrumbs/__tests__/Breadcrumbs.spec.ts +14 -0
  25. package/app/components/ui/Breadcrumbs/types.ts +8 -0
  26. package/app/components/ui/CartProductCard/CartProductCard.vue +66 -0
  27. package/app/components/ui/CartProductCard/types.ts +18 -0
  28. package/app/components/ui/CategoryCard/CategoryCard.vue +41 -0
  29. package/app/components/ui/CategoryCard/types.ts +9 -0
  30. package/app/components/ui/Display/Display.vue +55 -0
  31. package/app/components/ui/Display/types.ts +12 -0
  32. package/app/components/ui/Divider/Divider.vue +3 -0
  33. package/app/components/ui/Divider/__tests__/Divider.spec.tsx +10 -0
  34. package/app/components/ui/Footer.vue +92 -0
  35. package/app/components/ui/Form/FormHelperText.vue +5 -0
  36. package/app/components/ui/Form/FormLabel.vue +5 -0
  37. package/app/components/ui/Form/FormPasswordInput.vue +15 -0
  38. package/app/components/ui/Form/__tests__/FormHelperText.spec.ts +10 -0
  39. package/app/components/ui/Form/__tests__/FormLabel.spec.ts +10 -0
  40. package/app/components/ui/Hero/Hero.vue +44 -0
  41. package/app/components/ui/Hero/types.ts +10 -0
  42. package/app/components/ui/Modal/Modal.vue +19 -0
  43. package/app/components/ui/Modal/types.ts +8 -0
  44. package/app/components/ui/Motionable.vue +45 -0
  45. package/app/components/ui/NavbarBottom.vue +63 -0
  46. package/app/components/ui/NavbarTop.vue +25 -0
  47. package/app/components/ui/Overlay/Overlay.vue +14 -0
  48. package/app/components/ui/Overlay/__tests__/Overlay.spec.ts +14 -0
  49. package/app/components/ui/Overlay/types.ts +3 -0
  50. package/app/components/ui/PageBuilder.vue +39 -0
  51. package/app/components/ui/PageContainer.vue +5 -0
  52. package/app/components/ui/Pagination/Pagination.vue +151 -0
  53. package/app/components/ui/Pagination/__tests__/Pagination.spec.ts +17 -0
  54. package/app/components/ui/Pagination/types.ts +6 -0
  55. package/app/components/ui/ProductCard/ProductCard.vue +55 -0
  56. package/app/components/ui/ProductCard/__tests__/ProductCard.spec.ts +16 -0
  57. package/app/components/ui/ProductCard/types.ts +12 -0
  58. package/app/components/ui/ProductCardHorizontal/ProductCardHorizontal.vue +34 -0
  59. package/app/components/ui/ProductCardHorizontal/__tests__/ProductCardHorizontal.spec.ts +36 -0
  60. package/app/components/ui/ProductCardHorizontal/types.ts +8 -0
  61. package/app/components/ui/PurchaseCard/PurchaseCard.vue +109 -0
  62. package/app/components/ui/PurchaseCard/__tests__/PurchaseCard.spec.ts +15 -0
  63. package/app/components/ui/PurchaseCard/types.ts +5 -0
  64. package/app/components/ui/QuantitySelector/QuantitySelector.vue +69 -0
  65. package/app/components/ui/QuantitySelector/__tests__/QuantitySelector.spec.ts +15 -0
  66. package/app/components/ui/QuantitySelector/types.ts +5 -0
  67. package/app/components/ui/RadialProgress.vue +44 -0
  68. package/app/components/ui/Review/Review.vue +57 -0
  69. package/app/components/ui/Review/__tests__/Review.spec.ts +15 -0
  70. package/app/components/ui/Review/types.ts +5 -0
  71. package/app/components/ui/ScrollTop.vue +82 -0
  72. package/app/components/ui/Search.vue +54 -0
  73. package/app/components/ui/Tag/Tag.vue +38 -0
  74. package/app/components/ui/Tag/__tests__/Tag.spec.ts +10 -0
  75. package/app/components/ui/Tag/types.ts +16 -0
  76. package/app/components/ui/VsfLogo.vue +7 -0
  77. package/app/components/ui/forms/BooleanInput.vue +34 -0
  78. package/app/components/ui/forms/DateTime.vue +44 -0
  79. package/app/components/ui/forms/DirectusFormElement.vue +60 -0
  80. package/app/components/ui/forms/DynamicTableElement.vue +57 -0
  81. package/app/components/ui/forms/FileInput.vue +85 -0
  82. package/app/components/ui/forms/FormField.vue +34 -0
  83. package/app/components/ui/forms/RelationSelect.vue +63 -0
  84. package/app/components/ui/forms/RepeaterInput.vue +121 -0
  85. package/app/components/ui/forms/SelectInput.vue +65 -0
  86. package/app/components/ui/forms/TextArea.vue +59 -0
  87. package/app/components/ui/forms/TextInput.vue +42 -0
  88. package/app/components/ui/forms/TiptapEditor.vue +136 -0
  89. package/app/components/ui/forms/[collection].vue +22 -0
  90. package/app/components/ui/studio/builder.vue +57 -0
  91. package/app/components/ui/studio/document.vue +69 -0
  92. package/app/components/ui/studio/email.vue +57 -0
  93. package/app/composables/globals/uploadFiles.js +41 -0
  94. package/app/composables/globals/useAdminTable.ts +12 -0
  95. package/app/composables/globals/useCustomFetch.ts +13 -0
  96. package/app/composables/globals/useDirectusField.ts +144 -0
  97. package/app/composables/globals/useDirectusForm.ts +70 -0
  98. package/app/composables/globals/useDirectusSchema.js +9 -0
  99. package/app/composables/globals/useFileManager.ts +76 -0
  100. package/app/composables/globals/useLivePreview.ts +17 -0
  101. package/app/composables/globals/useLoading.ts +23 -0
  102. package/app/composables/globals/useNavigation.js +19 -0
  103. package/app/composables/globals/useNotifications.ts +153 -0
  104. package/app/composables/globals/usePages.js +36 -0
  105. package/app/composables/globals/useRichText.ts +33 -0
  106. package/app/composables/globals/useServerRootMixin.ts +19 -0
  107. package/app/composables/globals/useVisualEditing.ts +38 -0
  108. package/app/composables/media/useFile.ts +6 -0
  109. package/app/composables/media/useMediaCenter.ts +353 -0
  110. package/app/composables/media/useVideojs.ts +45 -0
  111. package/app/composables/registry.ts +13 -0
  112. package/app/composables/types.ts +12 -0
  113. package/app/composables/useContent.ts +13 -0
  114. package/app/composables/useDirectusRequest.ts +32 -0
  115. package/app/stores/index.ts +0 -0
  116. package/app/types/api/global-search.ts +8 -0
  117. package/app/types/blocks/block-button-group.ts +7 -0
  118. package/app/types/blocks/block-button.ts +14 -0
  119. package/app/types/blocks/block-column.ts +20 -0
  120. package/app/types/blocks/block-cta.ts +10 -0
  121. package/app/types/blocks/block-divider.ts +4 -0
  122. package/app/types/blocks/block-faq.ts +12 -0
  123. package/app/types/blocks/block-form.ts +8 -0
  124. package/app/types/blocks/block-gallery.ts +14 -0
  125. package/app/types/blocks/block-hero.ts +12 -0
  126. package/app/types/blocks/block-html.ts +4 -0
  127. package/app/types/blocks/block-logocloud.ts +14 -0
  128. package/app/types/blocks/block-quote.ts +11 -0
  129. package/app/types/blocks/block-richtext.ts +7 -0
  130. package/app/types/blocks/block-steps.ts +22 -0
  131. package/app/types/blocks/block-team.ts +6 -0
  132. package/app/types/blocks/block-testimonial.ts +14 -0
  133. package/app/types/blocks/block-video.ts +10 -0
  134. package/app/types/blocks/block.ts +49 -0
  135. package/app/types/blocks/index.ts +18 -0
  136. package/app/types/componentMap.ts +15 -0
  137. package/app/types/content/category.ts +11 -0
  138. package/app/types/content/form.ts +20 -0
  139. package/app/types/content/index.ts +6 -0
  140. package/app/types/content/page.ts +76 -0
  141. package/app/types/content/post.ts +39 -0
  142. package/app/types/content/team.ts +16 -0
  143. package/app/types/content/testimonial.ts +19 -0
  144. package/app/types/directus.d.ts +47 -0
  145. package/app/types/env.d.ts +8 -0
  146. package/app/types/help/index.ts +53 -0
  147. package/app/types/index.d.ts +9 -0
  148. package/app/types/index.ts +7 -0
  149. package/app/types/meta/analytics.ts +18 -0
  150. package/app/types/meta/config.ts +21 -0
  151. package/app/types/meta/globals.ts +30 -0
  152. package/app/types/meta/index.ts +6 -0
  153. package/app/types/meta/navigation.ts +32 -0
  154. package/app/types/meta/redirect.ts +13 -0
  155. package/app/types/meta/seo.ts +19 -0
  156. package/app/types/os/contact.ts +23 -0
  157. package/app/types/os/conversation.ts +25 -0
  158. package/app/types/os/index.ts +16 -0
  159. package/app/types/os/organization.ts +54 -0
  160. package/app/types/os/os-activity.ts +28 -0
  161. package/app/types/os/os-deal.ts +45 -0
  162. package/app/types/os/os-expense.ts +22 -0
  163. package/app/types/os/os-invoice.ts +48 -0
  164. package/app/types/os/os-item.ts +18 -0
  165. package/app/types/os/os-payment.ts +29 -0
  166. package/app/types/os/os-project.ts +47 -0
  167. package/app/types/os/os-proposal.ts +84 -0
  168. package/app/types/os/os-settings.ts +19 -0
  169. package/app/types/os/os-subscription.ts +12 -0
  170. package/app/types/os/os-task.ts +34 -0
  171. package/app/types/os/os-tax-rate.ts +13 -0
  172. package/app/types/pageComponentMap.ts +8 -0
  173. package/app/types/schema.d.ts +39 -0
  174. package/app/types/schema.ts +151 -0
  175. package/app/types/system/file.ts +46 -0
  176. package/app/types/system/folder.ts +8 -0
  177. package/app/types/system/index.ts +4 -0
  178. package/app/types/system/role.ts +21 -0
  179. package/app/types/system/user.ts +56 -0
  180. package/app/utils/Timer.js +44 -0
  181. package/app/utils/billing-address.ts +24 -0
  182. package/app/utils/color.ts +14 -0
  183. package/app/utils/currency.ts +29 -0
  184. package/app/utils/embed.ts +57 -0
  185. package/app/utils/errors.ts +9 -0
  186. package/app/utils/fieldRegistry.js +89 -0
  187. package/app/utils/fonts.ts +24 -0
  188. package/app/utils/formkit.ts +75 -0
  189. package/app/utils/icons.ts +62 -0
  190. package/app/utils/index.js +0 -0
  191. package/app/utils/links.ts +28 -0
  192. package/app/utils/lodash.ts +33 -0
  193. package/app/utils/markdown.ts +9 -0
  194. package/app/utils/math.ts +25 -0
  195. package/app/utils/navigation.ts +11 -0
  196. package/app/utils/objects.ts +11 -0
  197. package/app/utils/paths.ts +21 -0
  198. package/app/utils/relations.ts +33 -0
  199. package/app/utils/strings.ts +113 -0
  200. package/app/utils/time.ts +148 -0
  201. package/app/utils/url.ts +22 -0
  202. package/app/utils/user-name.ts +21 -0
  203. package/app/utils/video/README.md +51 -0
  204. package/app/utils/video/playlist.js +0 -0
  205. package/dist/api/global-search.d.ts +8 -0
  206. package/dist/api/global-search.js +1 -0
  207. package/dist/blocks/block-button-group.d.ts +6 -0
  208. package/dist/blocks/block-button-group.js +1 -0
  209. package/dist/blocks/block-button.d.ts +13 -0
  210. package/dist/blocks/block-button.js +1 -0
  211. package/dist/blocks/block-column.d.ts +18 -0
  212. package/dist/blocks/block-column.js +1 -0
  213. package/dist/blocks/block-cta.d.ts +11 -0
  214. package/dist/blocks/block-cta.js +1 -0
  215. package/dist/blocks/block-divider.d.ts +4 -0
  216. package/dist/blocks/block-divider.js +1 -0
  217. package/dist/blocks/block-faq.d.ts +11 -0
  218. package/dist/blocks/block-faq.js +1 -0
  219. package/dist/blocks/block-form.d.ts +7 -0
  220. package/dist/blocks/block-form.js +1 -0
  221. package/dist/blocks/block-gallery.d.ts +13 -0
  222. package/dist/blocks/block-gallery.js +1 -0
  223. package/dist/blocks/block-hero.d.ts +11 -0
  224. package/dist/blocks/block-hero.js +1 -0
  225. package/dist/blocks/block-html.d.ts +4 -0
  226. package/dist/blocks/block-html.js +1 -0
  227. package/dist/blocks/block-logocloud.d.ts +13 -0
  228. package/dist/blocks/block-logocloud.js +1 -0
  229. package/dist/blocks/block-quote.d.ts +10 -0
  230. package/dist/blocks/block-quote.js +1 -0
  231. package/dist/blocks/block-richtext.d.ts +7 -0
  232. package/dist/blocks/block-richtext.js +1 -0
  233. package/dist/blocks/block-steps.d.ts +21 -0
  234. package/dist/blocks/block-steps.js +1 -0
  235. package/dist/blocks/block-team.d.ts +6 -0
  236. package/dist/blocks/block-team.js +1 -0
  237. package/dist/blocks/block-testimonial.d.ts +13 -0
  238. package/dist/blocks/block-testimonial.js +1 -0
  239. package/dist/blocks/block-video.d.ts +9 -0
  240. package/dist/blocks/block-video.js +1 -0
  241. package/dist/blocks/block.d.ts +17 -0
  242. package/dist/blocks/block.js +1 -0
  243. package/dist/blocks/index.d.ts +18 -0
  244. package/dist/blocks/index.js +1 -0
  245. package/dist/componentMap.d.ts +6 -0
  246. package/dist/componentMap.js +8 -0
  247. package/dist/content/category.d.ts +10 -0
  248. package/dist/content/category.js +1 -0
  249. package/dist/content/form.d.ts +21 -0
  250. package/dist/content/form.js +1 -0
  251. package/dist/content/index.d.ts +6 -0
  252. package/dist/content/index.js +1 -0
  253. package/dist/content/page.d.ts +38 -0
  254. package/dist/content/page.js +1 -0
  255. package/dist/content/post.d.ts +38 -0
  256. package/dist/content/post.js +1 -0
  257. package/dist/content/team.d.ts +17 -0
  258. package/dist/content/team.js +1 -0
  259. package/dist/content/testimonial.d.ts +18 -0
  260. package/dist/content/testimonial.js +1 -0
  261. package/dist/help/index.d.ts +51 -0
  262. package/dist/help/index.js +1 -0
  263. package/dist/index.d.ts +7 -0
  264. package/dist/index.js +1 -0
  265. package/dist/meta/analytics.d.ts +21 -0
  266. package/dist/meta/analytics.js +1 -0
  267. package/dist/meta/config.d.ts +22 -0
  268. package/dist/meta/config.js +1 -0
  269. package/dist/meta/globals.d.ts +33 -0
  270. package/dist/meta/globals.js +1 -0
  271. package/dist/meta/index.d.ts +6 -0
  272. package/dist/meta/index.js +1 -0
  273. package/dist/meta/navigation.d.ts +31 -0
  274. package/dist/meta/navigation.js +1 -0
  275. package/dist/meta/redirect.d.ts +12 -0
  276. package/dist/meta/redirect.js +1 -0
  277. package/dist/meta/seo.d.ts +19 -0
  278. package/dist/meta/seo.js +1 -0
  279. package/dist/os/contact.d.ts +22 -0
  280. package/dist/os/contact.js +1 -0
  281. package/dist/os/conversation.d.ts +23 -0
  282. package/dist/os/conversation.js +1 -0
  283. package/dist/os/index.d.ts +16 -0
  284. package/dist/os/index.js +1 -0
  285. package/dist/os/organization.d.ts +51 -0
  286. package/dist/os/organization.js +1 -0
  287. package/dist/os/os-activity.d.ts +26 -0
  288. package/dist/os/os-activity.js +1 -0
  289. package/dist/os/os-deal.d.ts +42 -0
  290. package/dist/os/os-deal.js +1 -0
  291. package/dist/os/os-expense.d.ts +21 -0
  292. package/dist/os/os-expense.js +1 -0
  293. package/dist/os/os-invoice.d.ts +46 -0
  294. package/dist/os/os-invoice.js +1 -0
  295. package/dist/os/os-item.d.ts +17 -0
  296. package/dist/os/os-item.js +1 -0
  297. package/dist/os/os-payment.d.ts +27 -0
  298. package/dist/os/os-payment.js +1 -0
  299. package/dist/os/os-project.d.ts +45 -0
  300. package/dist/os/os-project.js +1 -0
  301. package/dist/os/os-proposal.d.ts +61 -0
  302. package/dist/os/os-proposal.js +1 -0
  303. package/dist/os/os-settings.d.ts +17 -0
  304. package/dist/os/os-settings.js +1 -0
  305. package/dist/os/os-subscription.d.ts +12 -0
  306. package/dist/os/os-subscription.js +1 -0
  307. package/dist/os/os-task.d.ts +32 -0
  308. package/dist/os/os-task.js +1 -0
  309. package/dist/os/os-tax-rate.d.ts +12 -0
  310. package/dist/os/os-tax-rate.js +1 -0
  311. package/dist/pageComponentMap.d.ts +2 -0
  312. package/dist/pageComponentMap.js +7 -0
  313. package/dist/schema.d.ts +78 -0
  314. package/dist/schema.js +1 -0
  315. package/dist/system/file.d.ts +47 -0
  316. package/dist/system/file.js +1 -0
  317. package/dist/system/folder.d.ts +8 -0
  318. package/dist/system/folder.js +1 -0
  319. package/dist/system/index.d.ts +4 -0
  320. package/dist/system/index.js +1 -0
  321. package/dist/system/role.d.ts +20 -0
  322. package/dist/system/role.js +1 -0
  323. package/dist/system/user.d.ts +57 -0
  324. package/dist/system/user.js +1 -0
  325. package/nuxt.config.ts +5 -0
  326. package/package.json +42 -0
  327. package/tsconfig.json +15 -0
@@ -0,0 +1,51 @@
1
+ import type { User, File } from '../system';
2
+ import type { OsPaymentTerm, Contact } from '.';
3
+ export interface Organization {
4
+ id?: string;
5
+ status?: string;
6
+ user_created?: (string | User) | null;
7
+ date_created?: string | null;
8
+ user_updated?: (string | User) | null;
9
+ date_updated?: string | null;
10
+ name?: string | null;
11
+ website?: string | null;
12
+ logo?: string | File | null;
13
+ brand_color?: string | null;
14
+ organization_notes?: string | null;
15
+ /** Company email address (sales@company.com) */
16
+ email?: string | null;
17
+ ap_contact?: (string | Contact) | null;
18
+ payment_terms?: (string | OsPaymentTerm) | null;
19
+ owner?: (string | User) | null;
20
+ /** Company phone number */
21
+ phone?: string | null;
22
+ branding?: string;
23
+ contacts?: (string | OrganizationContact)[];
24
+ addresses?: (string | OrganizationAddress)[];
25
+ billing?: string;
26
+ stripe_customer_id?: string | null;
27
+ }
28
+ export interface OrganizationAddress {
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
+ organization?: (string | Organization) | null;
36
+ name?: string | null;
37
+ street_address?: string | null;
38
+ postal_code?: string | null;
39
+ /** State (or region if outside US) */
40
+ address_region?: string | null;
41
+ address_country?: string | null;
42
+ /** City */
43
+ address_locality?: string | null;
44
+ is_primary_billing?: boolean | null;
45
+ }
46
+ export interface OrganizationContact {
47
+ id?: string;
48
+ contacts_id?: (string | Contact) | null;
49
+ organizations_id?: (string | Organization) | null;
50
+ sort?: number | null;
51
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { User } from '../system';
2
+ import type { Organization, Contact, OsDeal } from '.';
3
+ export interface OsActivity {
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
+ deal?: (string | OsDeal) | null;
12
+ activity_type?: string | null;
13
+ activity_notes?: string | null;
14
+ name?: string | null;
15
+ organization?: (string | Organization) | null;
16
+ start_time?: string | null;
17
+ end_time?: string | null;
18
+ due_date?: string | null;
19
+ assigned_to?: (string | User) | null;
20
+ contacts?: (string | OsActivityContact)[];
21
+ }
22
+ export interface OsActivityContact {
23
+ id?: string;
24
+ os_activities_id?: (string | OsActivity) | null;
25
+ contacts_id?: (string | Contact) | null;
26
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ import type { User } from '../system';
2
+ import type { Organization, Contact, OsProposal, OsActivity } from '.';
3
+ export interface OsDeal {
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
+ owner?: (string | User) | null;
13
+ organization?: (string | Organization) | null;
14
+ close_date?: string | null;
15
+ deal_stage?: (string | OsDealStage) | null;
16
+ next_contact_date?: string | null;
17
+ deal_value?: number | null;
18
+ deal_notes?: string | null;
19
+ comments?: string;
20
+ proposals?: (string | OsProposal)[];
21
+ contacts?: (string | OsDealContact)[];
22
+ activity?: string;
23
+ activities?: (string | OsActivity)[];
24
+ }
25
+ export interface OsDealContact {
26
+ id?: string;
27
+ primary?: boolean | null;
28
+ os_deals_id?: (string | OsDeal) | null;
29
+ contacts_id?: (string | Contact) | null;
30
+ sort?: number | null;
31
+ }
32
+ export interface OsDealStage {
33
+ id?: string;
34
+ status?: string;
35
+ sort?: number | null;
36
+ user_created?: (string | User) | null;
37
+ date_created?: string | null;
38
+ user_updated?: (string | User) | null;
39
+ date_updated?: string | null;
40
+ name?: string | null;
41
+ color?: string | null;
42
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ import type { File, User } from '../system';
2
+ import type { OsProject, OsInvoiceItem } from '.';
3
+ export interface OsExpense {
4
+ id?: string;
5
+ sort?: number | null;
6
+ user_created?: (string | User) | null;
7
+ date_created?: string | null;
8
+ user_updated?: (string | User) | null;
9
+ date_updated?: string | null;
10
+ category?: string | null;
11
+ name?: string | null;
12
+ cost?: number | null;
13
+ description?: string | null;
14
+ date?: string | null;
15
+ file?: (string | File) | null;
16
+ project?: (string | OsProject) | null;
17
+ is_billable?: boolean | null;
18
+ invoice_item?: (string | OsInvoiceItem) | null;
19
+ status?: string;
20
+ is_reimbursable?: boolean | null;
21
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,46 @@
1
+ import type { User } from '../system';
2
+ import type { Organization, Contact, OsProject, OsPayment, OsTaxRate, OsExpense, OsItem } from '.';
3
+ export interface OsInvoice {
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
+ invoice_number?: string | null;
12
+ due_date?: string | null;
13
+ reference?: string | null;
14
+ organization?: (string | Organization) | null;
15
+ contact?: (string | Contact) | null;
16
+ issue_date?: string | null;
17
+ project?: (string | OsProject) | null;
18
+ subtotal?: number | null;
19
+ total_tax?: number | null;
20
+ total?: number | null;
21
+ amount_paid?: number | null;
22
+ amount_due?: number | null;
23
+ payments?: (string | OsPayment)[];
24
+ line_items?: (string | OsInvoiceItem)[];
25
+ }
26
+ export interface OsInvoiceItem {
27
+ id?: string;
28
+ sort?: number | null;
29
+ user_created?: (string | User) | null;
30
+ date_created?: string | null;
31
+ user_updated?: (string | User) | null;
32
+ date_updated?: string | null;
33
+ invoice?: (string | OsInvoice) | null;
34
+ line_item_number?: number | null;
35
+ description?: string | null;
36
+ tax_rate?: (string | OsTaxRate) | null;
37
+ tax_amount?: number | null;
38
+ unit_price?: number | null;
39
+ quantity?: number | null;
40
+ line_amount?: number | null;
41
+ billable_expense?: (string | OsExpense) | null;
42
+ item?: (string | OsItem) | null;
43
+ type?: string | null;
44
+ item_name?: string | null;
45
+ override_unit_price?: boolean | null;
46
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { User } from '../system';
2
+ import type { OsTaxRate } from '.';
3
+ export interface OsItem {
4
+ id?: string;
5
+ status?: string | null;
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
+ description?: string | null;
13
+ unit_price?: number | null;
14
+ default_tax_rate?: (string | OsTaxRate) | null;
15
+ icon?: string | null;
16
+ unit_cost?: number | null;
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,27 @@
1
+ import type { User } from '../system';
2
+ import type { Organization, Contact, OsInvoice } from '.';
3
+ export interface OsPayment {
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
+ payment_date?: string | null;
12
+ amount?: number | null;
13
+ stripe_payment_id?: string;
14
+ transaction_fee?: number | null;
15
+ organization?: (string | Organization) | null;
16
+ contact?: (string | Contact) | null;
17
+ invoice?: (string | OsInvoice) | null;
18
+ metadata?: object | null;
19
+ receipt_url?: string | null;
20
+ }
21
+ export interface OsPaymentTerm {
22
+ id?: string;
23
+ user_created?: (string | User) | null;
24
+ date_created?: string | null;
25
+ user_updated?: (string | User) | null;
26
+ date_updated?: string | null;
27
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,45 @@
1
+ import type { User } from '../system';
2
+ import type { Organization, Contact, OsInvoice, OsTask, OsExpense } from '.';
3
+ export interface OsProject {
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
+ organization?: (string | Organization) | null;
13
+ description?: string | null;
14
+ owner?: (string | User) | null;
15
+ start_date?: string | null;
16
+ due_date?: string | null;
17
+ expenses?: (string | OsExpense)[];
18
+ invoices?: (string | OsInvoice)[];
19
+ contacts?: (string | OsProjectContact)[];
20
+ billing?: string;
21
+ tasks?: (string | OsTask)[];
22
+ }
23
+ export interface OsProjectContact {
24
+ id?: string;
25
+ os_projects_id?: (string | OsProject) | null;
26
+ contacts_id?: (string | Contact) | null;
27
+ sort?: number | null;
28
+ }
29
+ export interface OsProjectFile {
30
+ id?: string;
31
+ }
32
+ export interface OsProjectTemplate {
33
+ id?: string;
34
+ status?: string;
35
+ sort?: number | null;
36
+ user_created?: (string | User) | null;
37
+ date_created?: string | null;
38
+ user_updated?: (string | User) | null;
39
+ date_updated?: string | null;
40
+ name?: string | null;
41
+ tasks?: {
42
+ [key: string]: any;
43
+ } | null;
44
+ description?: string | null;
45
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,61 @@
1
+ import type { User, File } from '../system';
2
+ import type { BlockDivider, BlockFaq, BlockLogocloud, BlockQuote, BlockRichtext, BlockStep, BlockTeam, BlockVideo } from '../blocks';
3
+ import type { Organization, Contact, OsDeal } from '.';
4
+ export interface OsProposal {
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
+ name?: string | null;
12
+ organization?: (string | Organization) | null;
13
+ deal?: (string | OsDeal) | null;
14
+ owner?: (string | User) | null;
15
+ status?: string;
16
+ contacts?: (string | OsProposalContact)[];
17
+ activity?: string;
18
+ approvals?: (string | OsProposalApproval)[];
19
+ /** This is the content of your proposal */
20
+ blocks?: (string | OsProposalBlock)[];
21
+ }
22
+ export interface OsProposalApproval {
23
+ id?: string;
24
+ status?: string;
25
+ sort?: number | null;
26
+ user_created?: (string | User) | null;
27
+ date_created?: string | null;
28
+ user_updated?: (string | User) | null;
29
+ date_updated?: string | null;
30
+ signature_text?: string | null;
31
+ signature_image?: (string | File) | null;
32
+ signature_type?: string | null;
33
+ first_name?: string | null;
34
+ last_name?: string | null;
35
+ organization?: string | null;
36
+ proposal?: (string | OsProposal) | null;
37
+ email?: string | null;
38
+ metadata?: {
39
+ [key: string]: any;
40
+ } | null;
41
+ ip_address?: string | null;
42
+ esignature_agreement?: boolean | null;
43
+ contact?: (string | Contact) | null;
44
+ }
45
+ export interface OsProposalBlock {
46
+ id?: string;
47
+ sort?: number | null;
48
+ user_created?: (string | User) | null;
49
+ date_created?: string | null;
50
+ user_updated?: (string | User) | null;
51
+ date_updated?: string | null;
52
+ os_proposals_id?: (string | OsProposal) | null;
53
+ item?: (string | BlockDivider | BlockFaq | BlockLogocloud | BlockQuote | BlockRichtext | BlockStep | BlockTeam | BlockVideo)[] | null;
54
+ collection?: string | null;
55
+ }
56
+ export interface OsProposalContact {
57
+ id?: string;
58
+ os_proposals_id?: (string | OsProposal) | null;
59
+ contacts_id?: (string | Contact) | null;
60
+ sort?: number | null;
61
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { User } from '../system';
2
+ export interface OsSettings {
3
+ id?: string;
4
+ next_invoice_number?: number | null;
5
+ next_proposal_number?: number | null;
6
+ }
7
+ export interface OsEmailTemplate {
8
+ id?: string;
9
+ sort?: number | null;
10
+ user_created?: (string | User) | null;
11
+ date_created?: string | null;
12
+ user_updated?: (string | User) | null;
13
+ date_updated?: string | null;
14
+ subject?: string | null;
15
+ body?: string | null;
16
+ name?: string | null;
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ import type { User } from '../system';
2
+ import type { Form } from '../content';
3
+ import type { OsProject } from '.';
4
+ export interface OsTaskFile {
5
+ id?: string;
6
+ os_tasks_id?: (string | OsTask) | null;
7
+ directus_files_id?: (string | File) | null;
8
+ sort?: number | null;
9
+ }
10
+ export interface OsTask {
11
+ id?: string;
12
+ status?: string;
13
+ sort?: number | null;
14
+ user_created?: (string | User) | null;
15
+ date_created?: string | null;
16
+ user_updated?: (string | User) | null;
17
+ date_updated?: string | null;
18
+ project?: (string | OsProject) | null;
19
+ name?: string | null;
20
+ description?: string | null;
21
+ assigned_to?: (string | User) | null;
22
+ due_date?: string | null;
23
+ is_visible_to_client?: boolean;
24
+ type?: string;
25
+ date_completed?: string | null;
26
+ responsibility?: string | null;
27
+ start_date?: string | null;
28
+ embed_url?: string | null;
29
+ form?: (string | Form) | null;
30
+ files?: (string | OsTaskFile)[];
31
+ client_task_details?: string;
32
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { User } from '../system';
2
+ export interface OsTaxRate {
3
+ id?: string;
4
+ status?: string;
5
+ sort?: number | null;
6
+ user_created?: (string | User) | null;
7
+ date_created?: string | null;
8
+ user_updated?: (string | User) | null;
9
+ date_updated?: string | null;
10
+ name?: string | null;
11
+ rate?: number | null;
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const pageComponentMap: {};
2
+ export default pageComponentMap;
@@ -0,0 +1,7 @@
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
+ export default pageComponentMap;
@@ -0,0 +1,78 @@
1
+ import type { BlockColumn, BlockCta, BlockFaq, BlockForm, BlockGallery, BlockHero, BlockHtml, BlockLogocloud, BlockQuote, BlockRichtext, BlockStep, BlockTeam, BlockTestimonial, BlockVideo } from './blocks';
2
+ import type { Globals, Navigation, Redirect, SEO, ProjectsSettings, PageSettings, ChatConfig, Event, Metric } from './meta';
3
+ import type { Page, PageBlock, Category, Form, Post, Team, Testimonial, PagesProjects, PagesBlog } from './content';
4
+ import type { Inbox, HelpArticle, HelpCollection, HelpFeedback } from './help';
5
+ import type { File, User } from './system';
6
+ import type { Conversation, Message, Contact, Organization, OrganizationAddress, OrganizationContact, OsActivity, OsActivityContact, OsDealContact, OsDeal, OsDealStage, OsEmailTemplate, OsExpense, OsInvoiceItem, OsInvoice, OsItem, OsPayment, OsPaymentTerm, OsProjectContact, OsProjectFile, OsProject, OsProjectTemplate, OsProposalApproval, OsProposalBlock, OsProposalContact, OsProposal, OsSettings, OsSubscription, OsTaskFile, OsTask, OsTaxRate } from './os';
7
+ /** Directus Schema for SDK */
8
+ export interface Schema {
9
+ pages: Page[];
10
+ pages_blocks: PageBlock[];
11
+ categories: Category[];
12
+ forms: Form[];
13
+ posts: Post[];
14
+ team: Team[];
15
+ testimonials: Testimonial[];
16
+ pages_projects: PagesProjects;
17
+ pages_blog: PagesBlog;
18
+ block_columns: BlockColumn[];
19
+ block_cta: BlockCta[];
20
+ block_faq: BlockFaq[];
21
+ block_form: BlockForm[];
22
+ block_gallery: BlockGallery[];
23
+ block_hero: BlockHero[];
24
+ block_html: BlockHtml[];
25
+ block_logocloud: BlockLogocloud[];
26
+ block_quote: BlockQuote[];
27
+ block_richtext: BlockRichtext[];
28
+ block_steps: BlockStep[];
29
+ block_team: BlockTeam[];
30
+ block_testimonial: BlockTestimonial[];
31
+ block_video: BlockVideo[];
32
+ contacts: Contact[];
33
+ organizations: Organization[];
34
+ organization_addresses: OrganizationAddress[];
35
+ organizations_contacts: OrganizationContact[];
36
+ os_activities: OsActivity[];
37
+ os_activity_contacts: OsActivityContact[];
38
+ os_deal_contacts: OsDealContact[];
39
+ os_deals: OsDeal[];
40
+ os_deal_stages: OsDealStage[];
41
+ os_email_templates: OsEmailTemplate[];
42
+ os_expenses: OsExpense[];
43
+ os_invoice_items: OsInvoiceItem[];
44
+ os_invoices: OsInvoice[];
45
+ os_items: OsItem[];
46
+ os_payments: OsPayment[];
47
+ os_payment_terms: OsPaymentTerm[];
48
+ os_project_contacts: OsProjectContact[];
49
+ os_project_files: OsProjectFile[];
50
+ os_projects: OsProject[];
51
+ os_project_templates: OsProjectTemplate[];
52
+ os_proposal_approvals: OsProposalApproval[];
53
+ os_proposal_blocks: OsProposalBlock[];
54
+ os_proposal_contacts: OsProposalContact[];
55
+ os_proposals: OsProposal[];
56
+ os_settings: OsSettings;
57
+ os_subscriptions: OsSubscription[];
58
+ os_task_files: OsTaskFile[];
59
+ os_tasks: OsTask[];
60
+ os_tax_rates: OsTaxRate[];
61
+ help_collections: HelpCollection[];
62
+ help_articles: HelpArticle[];
63
+ help_feedback: HelpFeedback[];
64
+ inbox: Inbox[];
65
+ conversations: Conversation[];
66
+ messages: Message[];
67
+ globals: Globals;
68
+ navigation: Navigation[];
69
+ redirects: Redirect[];
70
+ seo: SEO[];
71
+ projects_settings: ProjectsSettings;
72
+ page_settings: PageSettings;
73
+ chat_config: ChatConfig;
74
+ metrics: Metric[];
75
+ events: Event[];
76
+ directus_files: File[];
77
+ directus_users: User[];
78
+ }
package/dist/schema.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,47 @@
1
+ import type { Folder } from './folder.js';
2
+ import type { User } from './user.js';
3
+ export interface File {
4
+ /** Unique identifier for the file. */
5
+ id: string;
6
+ /** Where the file is stored. Either `local` for the local filesystem or the name of the storage adapter (for example `s3`). */
7
+ storage: string;
8
+ /** Name of the file on disk. By default, Directus uses a random hash for the filename. */
9
+ filename_disk: string;
10
+ /** How you want to the file to be named when it's being downloaded. */
11
+ filename_download: string;
12
+ /** Title for the file. Is extracted from the filename on upload, but can be edited by the user. */
13
+ title: string;
14
+ /** MIME type of the file. */
15
+ type: string;
16
+ /** Virtual folder where this file resides in. */
17
+ folder: string | Folder | null;
18
+ /** Who uploaded the file. */
19
+ uploaded_by: string | User;
20
+ /** When the file was uploaded. */
21
+ uploaded_on: string;
22
+ modified_by: string | User | null;
23
+ modified_on: string;
24
+ /** Character set of the file. */
25
+ charset: string | null;
26
+ /** Size of the file in bytes. */
27
+ filesize: number;
28
+ /** Width of the file in pixels. Only applies to images. */
29
+ width: number | null;
30
+ /** Height of the file in pixels. Only applies to images. */
31
+ height: number | null;
32
+ /** Duration of the file in seconds. Only applies to audio and video. */
33
+ duration: number | null;
34
+ /** Where the file was embedded from. */
35
+ embed: string | null;
36
+ /** Description for the file. */
37
+ description: string | null;
38
+ /** Where the file was created. Is automatically populated based on EXIF data for images. */
39
+ location: string | null;
40
+ /** Tags for the file. Is automatically populated based on EXIF data for images. */
41
+ tags: string[] | null;
42
+ /** IPTC, EXIF, and ICC metadata extracted from file */
43
+ metadata: {
44
+ [key: string]: any;
45
+ } | null;
46
+ storage_divider: string;
47
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface Folder {
2
+ /** Unique identifier for the folder. */
3
+ id: string;
4
+ /** Name of the folder. */
5
+ name: string;
6
+ /** Unique identifier of the parent folder. This allows for nested folders. */
7
+ parent: string | Folder | null;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export type * from './file.js';
2
+ export type * from './folder.js';
3
+ export type * from './role.js';
4
+ export type * from './user.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ import type { User } from './user.js';
2
+ export interface Role {
3
+ /** Unique identifier for the role. */
4
+ id: string;
5
+ /** Name of the role. */
6
+ name: string;
7
+ /** The role's icon. */
8
+ icon: string;
9
+ /** Description of the role. */
10
+ description: string | null;
11
+ /** Array of IP addresses that are allowed to connect to the API as a user of this role. */
12
+ ip_access: string[];
13
+ /** Whether or not this role enforces the use of 2FA. */
14
+ enforce_tfa: boolean;
15
+ /** Admin role. If true, skips all permission checks. */
16
+ admin_access: boolean;
17
+ /** The users in the role are allowed to use the app. */
18
+ app_access: boolean;
19
+ users: string | User[];
20
+ }
@@ -0,0 +1 @@
1
+ export {};