business-as-code 2.1.1 → 2.3.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 (212) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +2 -0
  3. package/package.json +7 -4
  4. package/src/dollar.ts +5 -2
  5. package/src/entities/organization.ts +31 -18
  6. package/src/goals.ts +78 -12
  7. package/src/index.ts +48 -18
  8. package/src/kpis.ts +62 -8
  9. package/src/metrics.ts +92 -79
  10. package/src/okrs.ts +120 -20
  11. package/src/organization.ts +12 -15
  12. package/src/process.ts +11 -12
  13. package/src/product.ts +8 -9
  14. package/src/queries.ts +238 -75
  15. package/src/roles.ts +62 -61
  16. package/src/workflow.ts +22 -15
  17. package/test/business.test.ts +282 -0
  18. package/test/dollar.test.ts +270 -0
  19. package/test/entities.test.ts +628 -0
  20. package/test/financials.test.ts +539 -0
  21. package/test/goals.test.ts +451 -0
  22. package/{src → test}/index.test.ts +1 -1
  23. package/test/kpis.test.ts +440 -0
  24. package/test/metrics.test.ts +744 -0
  25. package/test/okrs.test.ts +741 -0
  26. package/test/organization.test.ts +548 -0
  27. package/test/process.test.ts +503 -0
  28. package/test/product.test.ts +430 -0
  29. package/test/queries.test.ts +556 -0
  30. package/test/roles.test.ts +546 -0
  31. package/test/service.test.ts +450 -0
  32. package/test/types.test.ts +1141 -0
  33. package/test/vision.test.ts +214 -0
  34. package/test/workflow.test.ts +501 -0
  35. package/vitest.config.ts +47 -0
  36. package/.turbo/turbo-build.log +0 -5
  37. package/dist/business.d.ts +0 -62
  38. package/dist/business.d.ts.map +0 -1
  39. package/dist/business.js +0 -109
  40. package/dist/business.js.map +0 -1
  41. package/dist/dollar.d.ts +0 -60
  42. package/dist/dollar.d.ts.map +0 -1
  43. package/dist/dollar.js +0 -107
  44. package/dist/dollar.js.map +0 -1
  45. package/dist/entities/assets.d.ts +0 -21
  46. package/dist/entities/assets.d.ts.map +0 -1
  47. package/dist/entities/assets.js +0 -323
  48. package/dist/entities/assets.js.map +0 -1
  49. package/dist/entities/business.d.ts +0 -36
  50. package/dist/entities/business.d.ts.map +0 -1
  51. package/dist/entities/business.js +0 -370
  52. package/dist/entities/business.js.map +0 -1
  53. package/dist/entities/communication.d.ts +0 -21
  54. package/dist/entities/communication.d.ts.map +0 -1
  55. package/dist/entities/communication.js +0 -255
  56. package/dist/entities/communication.js.map +0 -1
  57. package/dist/entities/customers.d.ts +0 -58
  58. package/dist/entities/customers.d.ts.map +0 -1
  59. package/dist/entities/customers.js +0 -989
  60. package/dist/entities/customers.js.map +0 -1
  61. package/dist/entities/financials.d.ts +0 -59
  62. package/dist/entities/financials.d.ts.map +0 -1
  63. package/dist/entities/financials.js +0 -932
  64. package/dist/entities/financials.js.map +0 -1
  65. package/dist/entities/goals.d.ts +0 -58
  66. package/dist/entities/goals.d.ts.map +0 -1
  67. package/dist/entities/goals.js +0 -800
  68. package/dist/entities/goals.js.map +0 -1
  69. package/dist/entities/index.d.ts +0 -299
  70. package/dist/entities/index.d.ts.map +0 -1
  71. package/dist/entities/index.js +0 -198
  72. package/dist/entities/index.js.map +0 -1
  73. package/dist/entities/legal.d.ts +0 -21
  74. package/dist/entities/legal.d.ts.map +0 -1
  75. package/dist/entities/legal.js +0 -301
  76. package/dist/entities/legal.js.map +0 -1
  77. package/dist/entities/market.d.ts +0 -21
  78. package/dist/entities/market.d.ts.map +0 -1
  79. package/dist/entities/market.js +0 -301
  80. package/dist/entities/market.js.map +0 -1
  81. package/dist/entities/marketing.d.ts +0 -67
  82. package/dist/entities/marketing.d.ts.map +0 -1
  83. package/dist/entities/marketing.js +0 -1157
  84. package/dist/entities/marketing.js.map +0 -1
  85. package/dist/entities/offerings.d.ts +0 -51
  86. package/dist/entities/offerings.d.ts.map +0 -1
  87. package/dist/entities/offerings.js +0 -727
  88. package/dist/entities/offerings.js.map +0 -1
  89. package/dist/entities/operations.d.ts +0 -58
  90. package/dist/entities/operations.d.ts.map +0 -1
  91. package/dist/entities/operations.js +0 -787
  92. package/dist/entities/operations.js.map +0 -1
  93. package/dist/entities/organization.d.ts +0 -57
  94. package/dist/entities/organization.d.ts.map +0 -1
  95. package/dist/entities/organization.js +0 -807
  96. package/dist/entities/organization.js.map +0 -1
  97. package/dist/entities/partnerships.d.ts +0 -21
  98. package/dist/entities/partnerships.d.ts.map +0 -1
  99. package/dist/entities/partnerships.js +0 -300
  100. package/dist/entities/partnerships.js.map +0 -1
  101. package/dist/entities/planning.d.ts +0 -87
  102. package/dist/entities/planning.d.ts.map +0 -1
  103. package/dist/entities/planning.js +0 -271
  104. package/dist/entities/planning.js.map +0 -1
  105. package/dist/entities/projects.d.ts +0 -25
  106. package/dist/entities/projects.d.ts.map +0 -1
  107. package/dist/entities/projects.js +0 -349
  108. package/dist/entities/projects.js.map +0 -1
  109. package/dist/entities/risk.d.ts +0 -21
  110. package/dist/entities/risk.d.ts.map +0 -1
  111. package/dist/entities/risk.js +0 -293
  112. package/dist/entities/risk.js.map +0 -1
  113. package/dist/entities/sales.d.ts +0 -72
  114. package/dist/entities/sales.d.ts.map +0 -1
  115. package/dist/entities/sales.js +0 -1248
  116. package/dist/entities/sales.js.map +0 -1
  117. package/dist/financials.d.ts +0 -130
  118. package/dist/financials.d.ts.map +0 -1
  119. package/dist/financials.js +0 -297
  120. package/dist/financials.js.map +0 -1
  121. package/dist/goals.d.ts +0 -87
  122. package/dist/goals.d.ts.map +0 -1
  123. package/dist/goals.js +0 -215
  124. package/dist/goals.js.map +0 -1
  125. package/dist/index.d.ts +0 -97
  126. package/dist/index.d.ts.map +0 -1
  127. package/dist/index.js +0 -132
  128. package/dist/index.js.map +0 -1
  129. package/dist/kpis.d.ts +0 -118
  130. package/dist/kpis.d.ts.map +0 -1
  131. package/dist/kpis.js +0 -232
  132. package/dist/kpis.js.map +0 -1
  133. package/dist/metrics.d.ts +0 -448
  134. package/dist/metrics.d.ts.map +0 -1
  135. package/dist/metrics.js +0 -325
  136. package/dist/metrics.js.map +0 -1
  137. package/dist/okrs.d.ts +0 -123
  138. package/dist/okrs.d.ts.map +0 -1
  139. package/dist/okrs.js +0 -269
  140. package/dist/okrs.js.map +0 -1
  141. package/dist/organization.d.ts +0 -585
  142. package/dist/organization.d.ts.map +0 -1
  143. package/dist/organization.js +0 -173
  144. package/dist/organization.js.map +0 -1
  145. package/dist/process.d.ts +0 -112
  146. package/dist/process.d.ts.map +0 -1
  147. package/dist/process.js +0 -241
  148. package/dist/process.js.map +0 -1
  149. package/dist/product.d.ts +0 -85
  150. package/dist/product.d.ts.map +0 -1
  151. package/dist/product.js +0 -145
  152. package/dist/product.js.map +0 -1
  153. package/dist/queries.d.ts +0 -304
  154. package/dist/queries.d.ts.map +0 -1
  155. package/dist/queries.js +0 -415
  156. package/dist/queries.js.map +0 -1
  157. package/dist/roles.d.ts +0 -340
  158. package/dist/roles.d.ts.map +0 -1
  159. package/dist/roles.js +0 -255
  160. package/dist/roles.js.map +0 -1
  161. package/dist/service.d.ts +0 -61
  162. package/dist/service.d.ts.map +0 -1
  163. package/dist/service.js +0 -140
  164. package/dist/service.js.map +0 -1
  165. package/dist/types.d.ts +0 -459
  166. package/dist/types.d.ts.map +0 -1
  167. package/dist/types.js +0 -5
  168. package/dist/types.js.map +0 -1
  169. package/dist/vision.d.ts +0 -38
  170. package/dist/vision.d.ts.map +0 -1
  171. package/dist/vision.js +0 -68
  172. package/dist/vision.js.map +0 -1
  173. package/dist/workflow.d.ts +0 -115
  174. package/dist/workflow.d.ts.map +0 -1
  175. package/dist/workflow.js +0 -247
  176. package/dist/workflow.js.map +0 -1
  177. package/src/business.js +0 -108
  178. package/src/dollar.js +0 -106
  179. package/src/entities/assets.js +0 -322
  180. package/src/entities/business.js +0 -369
  181. package/src/entities/communication.js +0 -254
  182. package/src/entities/customers.js +0 -988
  183. package/src/entities/financials.js +0 -931
  184. package/src/entities/goals.js +0 -799
  185. package/src/entities/index.js +0 -197
  186. package/src/entities/legal.js +0 -300
  187. package/src/entities/market.js +0 -300
  188. package/src/entities/marketing.js +0 -1156
  189. package/src/entities/offerings.js +0 -726
  190. package/src/entities/operations.js +0 -786
  191. package/src/entities/organization.js +0 -806
  192. package/src/entities/partnerships.js +0 -299
  193. package/src/entities/planning.js +0 -270
  194. package/src/entities/projects.js +0 -348
  195. package/src/entities/risk.js +0 -292
  196. package/src/entities/sales.js +0 -1247
  197. package/src/financials.js +0 -296
  198. package/src/goals.js +0 -214
  199. package/src/index.js +0 -131
  200. package/src/index.test.js +0 -274
  201. package/src/kpis.js +0 -231
  202. package/src/metrics.js +0 -324
  203. package/src/okrs.js +0 -268
  204. package/src/organization.js +0 -172
  205. package/src/process.js +0 -240
  206. package/src/product.js +0 -144
  207. package/src/queries.js +0 -414
  208. package/src/roles.js +0 -254
  209. package/src/service.js +0 -139
  210. package/src/types.js +0 -4
  211. package/src/vision.js +0 -67
  212. package/src/workflow.js +0 -246
@@ -1,727 +0,0 @@
1
- /**
2
- * Offering Entity Types (Nouns)
3
- *
4
- * Product and service offerings: Product, Service, Feature, Pricing.
5
- *
6
- * @packageDocumentation
7
- */
8
- // =============================================================================
9
- // Product
10
- // =============================================================================
11
- /**
12
- * Product entity
13
- *
14
- * Represents a product offering.
15
- */
16
- export const Product = {
17
- singular: 'product',
18
- plural: 'products',
19
- description: 'A product offering',
20
- properties: {
21
- // Identity
22
- name: {
23
- type: 'string',
24
- description: 'Product name',
25
- },
26
- slug: {
27
- type: 'string',
28
- optional: true,
29
- description: 'URL-friendly identifier',
30
- },
31
- description: {
32
- type: 'string',
33
- optional: true,
34
- description: 'Product description',
35
- },
36
- tagline: {
37
- type: 'string',
38
- optional: true,
39
- description: 'Product tagline',
40
- },
41
- // Classification
42
- type: {
43
- type: 'string',
44
- optional: true,
45
- description: 'Product type',
46
- examples: ['saas', 'app', 'platform', 'api', 'hardware', 'digital', 'physical'],
47
- },
48
- category: {
49
- type: 'string',
50
- optional: true,
51
- description: 'Product category',
52
- },
53
- // Market
54
- targetSegment: {
55
- type: 'string',
56
- optional: true,
57
- description: 'Target customer segment',
58
- },
59
- valueProposition: {
60
- type: 'string',
61
- optional: true,
62
- description: 'Value proposition',
63
- },
64
- useCases: {
65
- type: 'string',
66
- array: true,
67
- optional: true,
68
- description: 'Use cases',
69
- },
70
- // Pricing
71
- pricingModel: {
72
- type: 'string',
73
- optional: true,
74
- description: 'Pricing model',
75
- examples: ['free', 'freemium', 'subscription', 'one-time', 'usage-based', 'tiered', 'per-seat'],
76
- },
77
- price: {
78
- type: 'number',
79
- optional: true,
80
- description: 'Base price',
81
- },
82
- currency: {
83
- type: 'string',
84
- optional: true,
85
- description: 'Currency code',
86
- },
87
- billingPeriod: {
88
- type: 'string',
89
- optional: true,
90
- description: 'Billing period',
91
- examples: ['monthly', 'yearly', 'one-time'],
92
- },
93
- // Economics
94
- cogs: {
95
- type: 'number',
96
- optional: true,
97
- description: 'Cost of goods sold',
98
- },
99
- grossMargin: {
100
- type: 'number',
101
- optional: true,
102
- description: 'Gross margin percentage',
103
- },
104
- // Lifecycle
105
- stage: {
106
- type: 'string',
107
- optional: true,
108
- description: 'Product stage',
109
- examples: ['concept', 'development', 'alpha', 'beta', 'ga', 'growth', 'mature', 'decline', 'sunset'],
110
- },
111
- launchedAt: {
112
- type: 'date',
113
- optional: true,
114
- description: 'Launch date',
115
- },
116
- sunsetAt: {
117
- type: 'date',
118
- optional: true,
119
- description: 'Sunset date',
120
- },
121
- // Status
122
- status: {
123
- type: 'string',
124
- description: 'Product status',
125
- examples: ['draft', 'active', 'paused', 'sunset', 'archived'],
126
- },
127
- visibility: {
128
- type: 'string',
129
- optional: true,
130
- description: 'Visibility',
131
- examples: ['public', 'private', 'beta', 'waitlist'],
132
- },
133
- },
134
- relationships: {
135
- business: {
136
- type: 'Business',
137
- description: 'Parent business',
138
- },
139
- team: {
140
- type: 'Team',
141
- required: false,
142
- description: 'Product team',
143
- },
144
- features: {
145
- type: 'Feature[]',
146
- description: 'Product features',
147
- },
148
- pricingPlans: {
149
- type: 'PricingPlan[]',
150
- description: 'Pricing plans',
151
- },
152
- roadmap: {
153
- type: 'RoadmapItem[]',
154
- description: 'Product roadmap',
155
- },
156
- metrics: {
157
- type: 'KPI[]',
158
- description: 'Product metrics',
159
- },
160
- },
161
- actions: [
162
- 'create',
163
- 'update',
164
- 'launch',
165
- 'pause',
166
- 'resume',
167
- 'updatePricing',
168
- 'addFeature',
169
- 'removeFeature',
170
- 'sunset',
171
- 'archive',
172
- ],
173
- events: [
174
- 'created',
175
- 'updated',
176
- 'launched',
177
- 'paused',
178
- 'resumed',
179
- 'pricingUpdated',
180
- 'featureAdded',
181
- 'featureRemoved',
182
- 'sunset',
183
- 'archived',
184
- ],
185
- };
186
- // =============================================================================
187
- // Service
188
- // =============================================================================
189
- /**
190
- * Service entity
191
- *
192
- * Represents a service offering.
193
- */
194
- export const Service = {
195
- singular: 'service',
196
- plural: 'services',
197
- description: 'A service offering',
198
- properties: {
199
- // Identity
200
- name: {
201
- type: 'string',
202
- description: 'Service name',
203
- },
204
- slug: {
205
- type: 'string',
206
- optional: true,
207
- description: 'URL-friendly identifier',
208
- },
209
- description: {
210
- type: 'string',
211
- optional: true,
212
- description: 'Service description',
213
- },
214
- // Classification
215
- type: {
216
- type: 'string',
217
- optional: true,
218
- description: 'Service type',
219
- examples: ['consulting', 'implementation', 'support', 'training', 'managed', 'professional'],
220
- },
221
- category: {
222
- type: 'string',
223
- optional: true,
224
- description: 'Service category',
225
- },
226
- // Market
227
- targetSegment: {
228
- type: 'string',
229
- optional: true,
230
- description: 'Target customer segment',
231
- },
232
- valueProposition: {
233
- type: 'string',
234
- optional: true,
235
- description: 'Value proposition',
236
- },
237
- // Pricing
238
- pricingModel: {
239
- type: 'string',
240
- optional: true,
241
- description: 'Pricing model',
242
- examples: ['hourly', 'daily', 'fixed', 'retainer', 'value-based', 'milestone'],
243
- },
244
- hourlyRate: {
245
- type: 'number',
246
- optional: true,
247
- description: 'Hourly rate',
248
- },
249
- dailyRate: {
250
- type: 'number',
251
- optional: true,
252
- description: 'Daily rate',
253
- },
254
- fixedPrice: {
255
- type: 'number',
256
- optional: true,
257
- description: 'Fixed price',
258
- },
259
- retainerPrice: {
260
- type: 'number',
261
- optional: true,
262
- description: 'Monthly retainer',
263
- },
264
- currency: {
265
- type: 'string',
266
- optional: true,
267
- description: 'Currency code',
268
- },
269
- // Delivery
270
- deliveryTime: {
271
- type: 'string',
272
- optional: true,
273
- description: 'Typical delivery time',
274
- },
275
- deliveryModel: {
276
- type: 'string',
277
- optional: true,
278
- description: 'Delivery model',
279
- examples: ['onsite', 'remote', 'hybrid'],
280
- },
281
- // SLA
282
- slaUptime: {
283
- type: 'number',
284
- optional: true,
285
- description: 'SLA uptime percentage',
286
- },
287
- slaResponseTime: {
288
- type: 'string',
289
- optional: true,
290
- description: 'SLA response time',
291
- },
292
- slaSupportHours: {
293
- type: 'string',
294
- optional: true,
295
- description: 'SLA support hours',
296
- },
297
- // Scope
298
- inclusions: {
299
- type: 'string',
300
- array: true,
301
- optional: true,
302
- description: 'What is included',
303
- },
304
- exclusions: {
305
- type: 'string',
306
- array: true,
307
- optional: true,
308
- description: 'What is excluded',
309
- },
310
- deliverables: {
311
- type: 'string',
312
- array: true,
313
- optional: true,
314
- description: 'Deliverables',
315
- },
316
- // Status
317
- status: {
318
- type: 'string',
319
- description: 'Service status',
320
- examples: ['draft', 'active', 'paused', 'discontinued', 'archived'],
321
- },
322
- },
323
- relationships: {
324
- business: {
325
- type: 'Business',
326
- description: 'Parent business',
327
- },
328
- team: {
329
- type: 'Team',
330
- required: false,
331
- description: 'Service team',
332
- },
333
- engagements: {
334
- type: 'Engagement[]',
335
- description: 'Active engagements',
336
- },
337
- },
338
- actions: [
339
- 'create',
340
- 'update',
341
- 'publish',
342
- 'pause',
343
- 'resume',
344
- 'updatePricing',
345
- 'updateSLA',
346
- 'discontinue',
347
- 'archive',
348
- ],
349
- events: [
350
- 'created',
351
- 'updated',
352
- 'published',
353
- 'paused',
354
- 'resumed',
355
- 'pricingUpdated',
356
- 'slaUpdated',
357
- 'discontinued',
358
- 'archived',
359
- ],
360
- };
361
- // =============================================================================
362
- // Feature
363
- // =============================================================================
364
- /**
365
- * Feature entity
366
- *
367
- * Represents a product feature or capability.
368
- */
369
- export const Feature = {
370
- singular: 'feature',
371
- plural: 'features',
372
- description: 'A product feature or capability',
373
- properties: {
374
- // Identity
375
- name: {
376
- type: 'string',
377
- description: 'Feature name',
378
- },
379
- slug: {
380
- type: 'string',
381
- optional: true,
382
- description: 'URL-friendly identifier',
383
- },
384
- description: {
385
- type: 'string',
386
- optional: true,
387
- description: 'Feature description',
388
- },
389
- // Classification
390
- category: {
391
- type: 'string',
392
- optional: true,
393
- description: 'Feature category',
394
- },
395
- type: {
396
- type: 'string',
397
- optional: true,
398
- description: 'Feature type',
399
- examples: ['core', 'premium', 'add-on', 'beta', 'experimental'],
400
- },
401
- // Value
402
- benefit: {
403
- type: 'string',
404
- optional: true,
405
- description: 'User benefit',
406
- },
407
- // Availability
408
- availability: {
409
- type: 'string',
410
- optional: true,
411
- description: 'Availability',
412
- examples: ['all', 'paid', 'enterprise', 'beta', 'early-access'],
413
- },
414
- enabledByDefault: {
415
- type: 'boolean',
416
- optional: true,
417
- description: 'Enabled by default',
418
- },
419
- // Status
420
- status: {
421
- type: 'string',
422
- description: 'Feature status',
423
- examples: ['planned', 'in-development', 'beta', 'ga', 'deprecated'],
424
- },
425
- },
426
- relationships: {
427
- product: {
428
- type: 'Product',
429
- description: 'Parent product',
430
- },
431
- plans: {
432
- type: 'PricingPlan[]',
433
- description: 'Available in plans',
434
- },
435
- },
436
- actions: [
437
- 'create',
438
- 'update',
439
- 'enable',
440
- 'disable',
441
- 'deprecate',
442
- 'remove',
443
- ],
444
- events: [
445
- 'created',
446
- 'updated',
447
- 'enabled',
448
- 'disabled',
449
- 'deprecated',
450
- 'removed',
451
- ],
452
- };
453
- // =============================================================================
454
- // PricingPlan
455
- // =============================================================================
456
- /**
457
- * PricingPlan entity
458
- *
459
- * Represents a pricing plan or tier.
460
- */
461
- export const PricingPlan = {
462
- singular: 'pricing-plan',
463
- plural: 'pricing-plans',
464
- description: 'A pricing plan or tier',
465
- properties: {
466
- // Identity
467
- name: {
468
- type: 'string',
469
- description: 'Plan name',
470
- },
471
- slug: {
472
- type: 'string',
473
- optional: true,
474
- description: 'URL-friendly identifier',
475
- },
476
- description: {
477
- type: 'string',
478
- optional: true,
479
- description: 'Plan description',
480
- },
481
- // Classification
482
- tier: {
483
- type: 'string',
484
- optional: true,
485
- description: 'Plan tier',
486
- examples: ['free', 'starter', 'pro', 'business', 'enterprise', 'custom'],
487
- },
488
- // Pricing
489
- price: {
490
- type: 'number',
491
- description: 'Plan price',
492
- },
493
- currency: {
494
- type: 'string',
495
- optional: true,
496
- description: 'Currency code',
497
- },
498
- billingPeriod: {
499
- type: 'string',
500
- optional: true,
501
- description: 'Billing period',
502
- examples: ['monthly', 'yearly', 'one-time'],
503
- },
504
- annualDiscount: {
505
- type: 'number',
506
- optional: true,
507
- description: 'Annual discount percentage',
508
- },
509
- // Usage
510
- includedUnits: {
511
- type: 'number',
512
- optional: true,
513
- description: 'Included units/seats',
514
- },
515
- unitPrice: {
516
- type: 'number',
517
- optional: true,
518
- description: 'Price per additional unit',
519
- },
520
- usageLimits: {
521
- type: 'json',
522
- optional: true,
523
- description: 'Usage limits',
524
- },
525
- // Trial
526
- trialDays: {
527
- type: 'number',
528
- optional: true,
529
- description: 'Trial period in days',
530
- },
531
- // Display
532
- highlighted: {
533
- type: 'boolean',
534
- optional: true,
535
- description: 'Highlight on pricing page',
536
- },
537
- displayOrder: {
538
- type: 'number',
539
- optional: true,
540
- description: 'Display order',
541
- },
542
- // Status
543
- status: {
544
- type: 'string',
545
- description: 'Plan status',
546
- examples: ['active', 'hidden', 'discontinued', 'legacy'],
547
- },
548
- },
549
- relationships: {
550
- product: {
551
- type: 'Product',
552
- description: 'Parent product',
553
- },
554
- features: {
555
- type: 'Feature[]',
556
- description: 'Included features',
557
- },
558
- subscriptions: {
559
- type: 'Subscription[]',
560
- description: 'Active subscriptions',
561
- },
562
- },
563
- actions: [
564
- 'create',
565
- 'update',
566
- 'publish',
567
- 'hide',
568
- 'updatePrice',
569
- 'addFeature',
570
- 'removeFeature',
571
- 'discontinue',
572
- 'archive',
573
- ],
574
- events: [
575
- 'created',
576
- 'updated',
577
- 'published',
578
- 'hidden',
579
- 'priceUpdated',
580
- 'featureAdded',
581
- 'featureRemoved',
582
- 'discontinued',
583
- 'archived',
584
- ],
585
- };
586
- // =============================================================================
587
- // RoadmapItem
588
- // =============================================================================
589
- /**
590
- * RoadmapItem entity
591
- *
592
- * Represents an item on the product roadmap.
593
- */
594
- export const RoadmapItem = {
595
- singular: 'roadmap-item',
596
- plural: 'roadmap-items',
597
- description: 'An item on the product roadmap',
598
- properties: {
599
- // Identity
600
- name: {
601
- type: 'string',
602
- description: 'Item name',
603
- },
604
- description: {
605
- type: 'string',
606
- optional: true,
607
- description: 'Item description',
608
- },
609
- // Classification
610
- type: {
611
- type: 'string',
612
- optional: true,
613
- description: 'Item type',
614
- examples: ['feature', 'improvement', 'bug-fix', 'refactor', 'infrastructure'],
615
- },
616
- category: {
617
- type: 'string',
618
- optional: true,
619
- description: 'Item category',
620
- },
621
- // Timeline
622
- quarter: {
623
- type: 'string',
624
- optional: true,
625
- description: 'Target quarter (e.g., "Q1 2025")',
626
- },
627
- targetDate: {
628
- type: 'date',
629
- optional: true,
630
- description: 'Target date',
631
- },
632
- completedAt: {
633
- type: 'date',
634
- optional: true,
635
- description: 'Completion date',
636
- },
637
- // Priority
638
- priority: {
639
- type: 'string',
640
- optional: true,
641
- description: 'Priority level',
642
- examples: ['critical', 'high', 'medium', 'low'],
643
- },
644
- effort: {
645
- type: 'string',
646
- optional: true,
647
- description: 'Effort estimate',
648
- examples: ['xs', 's', 'm', 'l', 'xl'],
649
- },
650
- impact: {
651
- type: 'string',
652
- optional: true,
653
- description: 'Expected impact',
654
- examples: ['high', 'medium', 'low'],
655
- },
656
- // Progress
657
- progress: {
658
- type: 'number',
659
- optional: true,
660
- description: 'Progress percentage (0-100)',
661
- },
662
- // Status
663
- status: {
664
- type: 'string',
665
- description: 'Item status',
666
- examples: ['idea', 'planned', 'in-progress', 'completed', 'cancelled', 'deferred'],
667
- },
668
- visibility: {
669
- type: 'string',
670
- optional: true,
671
- description: 'Public visibility',
672
- examples: ['public', 'private'],
673
- },
674
- },
675
- relationships: {
676
- product: {
677
- type: 'Product',
678
- description: 'Parent product',
679
- },
680
- feature: {
681
- type: 'Feature',
682
- required: false,
683
- description: 'Related feature',
684
- },
685
- owner: {
686
- type: 'Worker',
687
- required: false,
688
- description: 'Item owner',
689
- },
690
- },
691
- actions: [
692
- 'create',
693
- 'update',
694
- 'schedule',
695
- 'start',
696
- 'complete',
697
- 'defer',
698
- 'cancel',
699
- 'archive',
700
- ],
701
- events: [
702
- 'created',
703
- 'updated',
704
- 'scheduled',
705
- 'started',
706
- 'completed',
707
- 'deferred',
708
- 'cancelled',
709
- 'archived',
710
- ],
711
- };
712
- // =============================================================================
713
- // Exports
714
- // =============================================================================
715
- export const OfferingEntities = {
716
- Product,
717
- Service,
718
- Feature,
719
- PricingPlan,
720
- RoadmapItem,
721
- };
722
- export const OfferingCategories = {
723
- products: ['Product', 'Feature', 'RoadmapItem'],
724
- services: ['Service'],
725
- pricing: ['PricingPlan'],
726
- };
727
- //# sourceMappingURL=offerings.js.map