digital-products 2.1.3 → 2.4.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.
- package/.turbo/turbo-build.log +4 -5
- package/CHANGELOG.md +17 -0
- package/README.md +2 -0
- package/dist/api.js +7 -7
- package/dist/api.js.map +1 -1
- package/dist/app.js +6 -6
- package/dist/app.js.map +1 -1
- package/dist/client.d.ts +157 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +69 -0
- package/dist/client.js.map +1 -0
- package/dist/content.js +7 -7
- package/dist/content.js.map +1 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +6 -6
- package/dist/data.js.map +1 -1
- package/dist/dataset.js +5 -5
- package/dist/dataset.js.map +1 -1
- package/dist/index.d.ts +92 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +139 -15
- package/dist/index.js.map +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +17 -10
- package/dist/mcp.js.map +1 -1
- package/dist/product.js +2 -2
- package/dist/product.js.map +1 -1
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +52 -16
- package/dist/sdk.js.map +1 -1
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +12 -8
- package/dist/site.js.map +1 -1
- package/dist/types.d.ts +830 -12
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +495 -2
- package/dist/types.js.map +1 -1
- package/dist/worker.d.ts +205 -0
- package/dist/worker.d.ts.map +1 -0
- package/dist/worker.js +356 -0
- package/dist/worker.js.map +1 -0
- package/package.json +29 -13
- package/src/api.ts +7 -7
- package/src/app.ts +6 -6
- package/src/client.ts +192 -0
- package/src/content.ts +7 -7
- package/src/data.ts +12 -7
- package/src/dataset.ts +5 -5
- package/src/index.ts +151 -15
- package/src/mcp.ts +18 -11
- package/src/product.ts +2 -2
- package/src/sdk.ts +54 -15
- package/src/site.ts +12 -8
- package/src/types.ts +821 -12
- package/src/worker.ts +525 -0
- package/test/product.test.ts +53 -198
- package/test/unified-types.test.ts +589 -0
- package/test/worker.test.ts +912 -0
- package/vitest.config.ts +42 -0
- package/wrangler.jsonc +36 -0
- package/LICENSE +0 -21
- package/dist/features/define.d.ts +0 -63
- package/dist/features/define.d.ts.map +0 -1
- package/dist/features/define.js +0 -72
- package/dist/features/define.js.map +0 -1
- package/dist/features/flags.d.ts +0 -98
- package/dist/features/flags.d.ts.map +0 -1
- package/dist/features/flags.js +0 -145
- package/dist/features/flags.js.map +0 -1
- package/dist/features/toggles.d.ts +0 -75
- package/dist/features/toggles.d.ts.map +0 -1
- package/dist/features/toggles.js +0 -107
- package/dist/features/toggles.js.map +0 -1
- package/dist/tiers/define.d.ts +0 -63
- package/dist/tiers/define.d.ts.map +0 -1
- package/dist/tiers/define.js +0 -78
- package/dist/tiers/define.js.map +0 -1
- package/dist/tiers/entitlements.d.ts +0 -94
- package/dist/tiers/entitlements.d.ts.map +0 -1
- package/dist/tiers/entitlements.js +0 -94
- package/dist/tiers/entitlements.js.map +0 -1
- package/src/api.js +0 -128
- package/src/app.js +0 -106
- package/src/content.js +0 -77
- package/src/data.js +0 -106
- package/src/dataset.js +0 -49
- package/src/entities/ai.js +0 -858
- package/src/entities/content.js +0 -783
- package/src/entities/index.js +0 -88
- package/src/entities/interfaces.js +0 -929
- package/src/entities/lifecycle.js +0 -803
- package/src/entities/products.js +0 -797
- package/src/entities/web.js +0 -657
- package/src/features/define.ts +0 -130
- package/src/features/flags.ts +0 -247
- package/src/features/toggles.ts +0 -189
- package/src/index.js +0 -35
- package/src/mcp.js +0 -139
- package/src/pricing/billing.ts +0 -386
- package/src/pricing/plans.ts +0 -214
- package/src/product.js +0 -53
- package/src/registry.js +0 -31
- package/src/sdk.js +0 -127
- package/src/site.js +0 -112
- package/src/tiers/define.ts +0 -137
- package/src/tiers/entitlements.ts +0 -201
- package/src/types.js +0 -4
- package/test/analytics/events.test.ts +0 -319
- package/test/analytics/experiments.test.ts +0 -327
- package/test/features/define.test.ts +0 -187
- package/test/features/flags.test.ts +0 -259
- package/test/features/toggles.test.ts +0 -178
- package/test/lifecycle/stages.test.ts +0 -233
- package/test/lifecycle/transitions.test.ts +0 -207
- package/test/onboarding/flows.test.ts +0 -307
- package/test/pricing/billing.test.ts +0 -287
- package/test/pricing/plans.test.ts +0 -307
- package/test/roadmap/milestones.test.ts +0 -231
- package/test/roadmap/priorities.test.ts +0 -239
- package/test/tiers/define.test.ts +0 -192
- package/test/tiers/entitlements.test.ts +0 -220
package/src/entities/index.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
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
|
-
// Products (Core product entities)
|
|
19
|
-
// =============================================================================
|
|
20
|
-
export { DigitalProduct, SaaSProduct, App, Platform, Marketplace, ProductEntities, ProductCategories, } from './products.js';
|
|
21
|
-
// =============================================================================
|
|
22
|
-
// Interfaces (API & integration products)
|
|
23
|
-
// =============================================================================
|
|
24
|
-
export { API, Endpoint, SDK, MCP, Plugin, Integration, Webhook, InterfaceEntities, InterfaceCategories, } from './interfaces.js';
|
|
25
|
-
// =============================================================================
|
|
26
|
-
// Content (Content & data products)
|
|
27
|
-
// =============================================================================
|
|
28
|
-
export { ContentProduct, DataProduct, Dataset, Documentation, Template, ContentEntities, ContentCategories, } from './content.js';
|
|
29
|
-
// =============================================================================
|
|
30
|
-
// Web (Web products)
|
|
31
|
-
// =============================================================================
|
|
32
|
-
export { Site, Component, Widget, Theme, WebEntities, WebCategories, } from './web.js';
|
|
33
|
-
// =============================================================================
|
|
34
|
-
// AI (AI-native products)
|
|
35
|
-
// =============================================================================
|
|
36
|
-
export { AIProduct, Model, Agent, Prompt, Tool, AIEntities, AICategories, } from './ai.js';
|
|
37
|
-
// =============================================================================
|
|
38
|
-
// Lifecycle (Product lifecycle)
|
|
39
|
-
// =============================================================================
|
|
40
|
-
export { Version, Release, Deployment, Environment, Feature, LifecycleEntities, LifecycleCategories, } from './lifecycle.js';
|
|
41
|
-
// =============================================================================
|
|
42
|
-
// All Entities Collection
|
|
43
|
-
// =============================================================================
|
|
44
|
-
import { ProductEntities } from './products.js';
|
|
45
|
-
import { InterfaceEntities } from './interfaces.js';
|
|
46
|
-
import { ContentEntities } from './content.js';
|
|
47
|
-
import { WebEntities } from './web.js';
|
|
48
|
-
import { AIEntities } from './ai.js';
|
|
49
|
-
import { LifecycleEntities } from './lifecycle.js';
|
|
50
|
-
/**
|
|
51
|
-
* All digital product entities organized by category
|
|
52
|
-
*/
|
|
53
|
-
export const AllDigitalProductEntities = {
|
|
54
|
-
products: ProductEntities,
|
|
55
|
-
interfaces: InterfaceEntities,
|
|
56
|
-
content: ContentEntities,
|
|
57
|
-
web: WebEntities,
|
|
58
|
-
ai: AIEntities,
|
|
59
|
-
lifecycle: LifecycleEntities,
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* All entity category names
|
|
63
|
-
*/
|
|
64
|
-
export const DigitalProductEntityCategories = [
|
|
65
|
-
'products',
|
|
66
|
-
'interfaces',
|
|
67
|
-
'content',
|
|
68
|
-
'web',
|
|
69
|
-
'ai',
|
|
70
|
-
'lifecycle',
|
|
71
|
-
];
|
|
72
|
-
/**
|
|
73
|
-
* Flat list of all entities for quick access
|
|
74
|
-
*/
|
|
75
|
-
export const Entities = {
|
|
76
|
-
// Products
|
|
77
|
-
...ProductEntities,
|
|
78
|
-
// Interfaces
|
|
79
|
-
...InterfaceEntities,
|
|
80
|
-
// Content
|
|
81
|
-
...ContentEntities,
|
|
82
|
-
// Web
|
|
83
|
-
...WebEntities,
|
|
84
|
-
// AI
|
|
85
|
-
...AIEntities,
|
|
86
|
-
// Lifecycle
|
|
87
|
-
...LifecycleEntities,
|
|
88
|
-
};
|