digital-products 2.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 (110) hide show
  1. package/.turbo/turbo-build.log +5 -0
  2. package/CHANGELOG.md +9 -0
  3. package/README.md +535 -0
  4. package/dist/api.d.ts +99 -0
  5. package/dist/api.d.ts.map +1 -0
  6. package/dist/api.js +129 -0
  7. package/dist/api.js.map +1 -0
  8. package/dist/app.d.ts +79 -0
  9. package/dist/app.d.ts.map +1 -0
  10. package/dist/app.js +107 -0
  11. package/dist/app.js.map +1 -0
  12. package/dist/content.d.ts +58 -0
  13. package/dist/content.d.ts.map +1 -0
  14. package/dist/content.js +78 -0
  15. package/dist/content.js.map +1 -0
  16. package/dist/data.d.ts +67 -0
  17. package/dist/data.d.ts.map +1 -0
  18. package/dist/data.js +107 -0
  19. package/dist/data.js.map +1 -0
  20. package/dist/dataset.d.ts +32 -0
  21. package/dist/dataset.d.ts.map +1 -0
  22. package/dist/dataset.js +50 -0
  23. package/dist/dataset.js.map +1 -0
  24. package/dist/entities/ai.d.ts +53 -0
  25. package/dist/entities/ai.d.ts.map +1 -0
  26. package/dist/entities/ai.js +859 -0
  27. package/dist/entities/ai.js.map +1 -0
  28. package/dist/entities/content.d.ts +52 -0
  29. package/dist/entities/content.d.ts.map +1 -0
  30. package/dist/entities/content.js +784 -0
  31. package/dist/entities/content.js.map +1 -0
  32. package/dist/entities/index.d.ts +112 -0
  33. package/dist/entities/index.d.ts.map +1 -0
  34. package/dist/entities/index.js +89 -0
  35. package/dist/entities/index.js.map +1 -0
  36. package/dist/entities/interfaces.d.ts +67 -0
  37. package/dist/entities/interfaces.d.ts.map +1 -0
  38. package/dist/entities/interfaces.js +930 -0
  39. package/dist/entities/interfaces.js.map +1 -0
  40. package/dist/entities/lifecycle.d.ts +51 -0
  41. package/dist/entities/lifecycle.d.ts.map +1 -0
  42. package/dist/entities/lifecycle.js +804 -0
  43. package/dist/entities/lifecycle.js.map +1 -0
  44. package/dist/entities/products.d.ts +53 -0
  45. package/dist/entities/products.d.ts.map +1 -0
  46. package/dist/entities/products.js +798 -0
  47. package/dist/entities/products.js.map +1 -0
  48. package/dist/entities/web.d.ts +44 -0
  49. package/dist/entities/web.d.ts.map +1 -0
  50. package/dist/entities/web.js +658 -0
  51. package/dist/entities/web.js.map +1 -0
  52. package/dist/index.d.ts +29 -0
  53. package/dist/index.d.ts.map +1 -0
  54. package/dist/index.js +36 -0
  55. package/dist/index.js.map +1 -0
  56. package/dist/mcp.d.ts +101 -0
  57. package/dist/mcp.d.ts.map +1 -0
  58. package/dist/mcp.js +140 -0
  59. package/dist/mcp.js.map +1 -0
  60. package/dist/product.d.ts +37 -0
  61. package/dist/product.d.ts.map +1 -0
  62. package/dist/product.js +54 -0
  63. package/dist/product.js.map +1 -0
  64. package/dist/registry.d.ts +9 -0
  65. package/dist/registry.d.ts.map +1 -0
  66. package/dist/registry.js +32 -0
  67. package/dist/registry.js.map +1 -0
  68. package/dist/sdk.d.ts +99 -0
  69. package/dist/sdk.d.ts.map +1 -0
  70. package/dist/sdk.js +128 -0
  71. package/dist/sdk.js.map +1 -0
  72. package/dist/site.d.ts +85 -0
  73. package/dist/site.d.ts.map +1 -0
  74. package/dist/site.js +113 -0
  75. package/dist/site.js.map +1 -0
  76. package/dist/types.d.ts +528 -0
  77. package/dist/types.d.ts.map +1 -0
  78. package/dist/types.js +5 -0
  79. package/dist/types.js.map +1 -0
  80. package/example.ts +236 -0
  81. package/package.json +35 -0
  82. package/src/api.ts +140 -0
  83. package/src/app.ts +117 -0
  84. package/src/content.ts +82 -0
  85. package/src/data.ts +129 -0
  86. package/src/dataset.ts +53 -0
  87. package/src/entities/ai.ts +932 -0
  88. package/src/entities/content.ts +851 -0
  89. package/src/entities/index.ts +156 -0
  90. package/src/entities/interfaces.ts +1017 -0
  91. package/src/entities/lifecycle.ts +872 -0
  92. package/src/entities/products.ts +867 -0
  93. package/src/entities/web.ts +719 -0
  94. package/src/index.ts +55 -0
  95. package/src/mcp.ts +163 -0
  96. package/src/product.ts +59 -0
  97. package/src/registry.ts +41 -0
  98. package/src/sdk.ts +148 -0
  99. package/src/site.ts +127 -0
  100. package/src/types.ts +558 -0
  101. package/test/api.test.ts +247 -0
  102. package/test/app.test.ts +220 -0
  103. package/test/content.test.ts +171 -0
  104. package/test/data.test.ts +201 -0
  105. package/test/dataset.test.ts +181 -0
  106. package/test/mcp.test.ts +230 -0
  107. package/test/product.test.ts +200 -0
  108. package/test/sdk.test.ts +236 -0
  109. package/test/site.test.ts +245 -0
  110. package/tsconfig.json +9 -0
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Digital Product Entity Types (Nouns)
3
+ *
4
+ * Comprehensive entity definitions for digital-products primitives.
5
+ * Each entity follows the Noun pattern with Properties, Actions, and Events.
6
+ *
7
+ * Categories:
8
+ * - products: Core product entities (DigitalProduct, SaaSProduct, App, Platform, Marketplace)
9
+ * - interfaces: API & integration products (API, Endpoint, SDK, MCP, Plugin, Integration, Webhook)
10
+ * - content: Content & data products (ContentProduct, DataProduct, Dataset, Documentation, Template)
11
+ * - web: Web products (Site, Component, Widget, Theme)
12
+ * - ai: AI-native products (AIProduct, Model, Agent, Prompt, Tool)
13
+ * - lifecycle: Product lifecycle (Version, Release, Deployment, Environment, Feature)
14
+ *
15
+ * @packageDocumentation
16
+ */
17
+
18
+ // =============================================================================
19
+ // Products (Core product entities)
20
+ // =============================================================================
21
+
22
+ export {
23
+ DigitalProduct,
24
+ SaaSProduct,
25
+ App,
26
+ Platform,
27
+ Marketplace,
28
+ ProductEntities,
29
+ ProductCategories,
30
+ } from './products.js'
31
+
32
+ // =============================================================================
33
+ // Interfaces (API & integration products)
34
+ // =============================================================================
35
+
36
+ export {
37
+ API,
38
+ Endpoint,
39
+ SDK,
40
+ MCP,
41
+ Plugin,
42
+ Integration,
43
+ Webhook,
44
+ InterfaceEntities,
45
+ InterfaceCategories,
46
+ } from './interfaces.js'
47
+
48
+ // =============================================================================
49
+ // Content (Content & data products)
50
+ // =============================================================================
51
+
52
+ export {
53
+ ContentProduct,
54
+ DataProduct,
55
+ Dataset,
56
+ Documentation,
57
+ Template,
58
+ ContentEntities,
59
+ ContentCategories,
60
+ } from './content.js'
61
+
62
+ // =============================================================================
63
+ // Web (Web products)
64
+ // =============================================================================
65
+
66
+ export {
67
+ Site,
68
+ Component,
69
+ Widget,
70
+ Theme,
71
+ WebEntities,
72
+ WebCategories,
73
+ } from './web.js'
74
+
75
+ // =============================================================================
76
+ // AI (AI-native products)
77
+ // =============================================================================
78
+
79
+ export {
80
+ AIProduct,
81
+ Model,
82
+ Agent,
83
+ Prompt,
84
+ Tool,
85
+ AIEntities,
86
+ AICategories,
87
+ } from './ai.js'
88
+
89
+ // =============================================================================
90
+ // Lifecycle (Product lifecycle)
91
+ // =============================================================================
92
+
93
+ export {
94
+ Version,
95
+ Release,
96
+ Deployment,
97
+ Environment,
98
+ Feature,
99
+ LifecycleEntities,
100
+ LifecycleCategories,
101
+ } from './lifecycle.js'
102
+
103
+ // =============================================================================
104
+ // All Entities Collection
105
+ // =============================================================================
106
+
107
+ import { ProductEntities } from './products.js'
108
+ import { InterfaceEntities } from './interfaces.js'
109
+ import { ContentEntities } from './content.js'
110
+ import { WebEntities } from './web.js'
111
+ import { AIEntities } from './ai.js'
112
+ import { LifecycleEntities } from './lifecycle.js'
113
+
114
+ /**
115
+ * All digital product entities organized by category
116
+ */
117
+ export const AllDigitalProductEntities = {
118
+ products: ProductEntities,
119
+ interfaces: InterfaceEntities,
120
+ content: ContentEntities,
121
+ web: WebEntities,
122
+ ai: AIEntities,
123
+ lifecycle: LifecycleEntities,
124
+ } as const
125
+
126
+ /**
127
+ * All entity category names
128
+ */
129
+ export const DigitalProductEntityCategories = [
130
+ 'products',
131
+ 'interfaces',
132
+ 'content',
133
+ 'web',
134
+ 'ai',
135
+ 'lifecycle',
136
+ ] as const
137
+
138
+ export type DigitalProductEntityCategory = (typeof DigitalProductEntityCategories)[number]
139
+
140
+ /**
141
+ * Flat list of all entities for quick access
142
+ */
143
+ export const Entities = {
144
+ // Products
145
+ ...ProductEntities,
146
+ // Interfaces
147
+ ...InterfaceEntities,
148
+ // Content
149
+ ...ContentEntities,
150
+ // Web
151
+ ...WebEntities,
152
+ // AI
153
+ ...AIEntities,
154
+ // Lifecycle
155
+ ...LifecycleEntities,
156
+ } as const