@api-client/core 0.18.20 → 0.18.22
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/build/src/modeling/helpers/Intelisense.d.ts +1 -0
- package/build/src/modeling/helpers/Intelisense.d.ts.map +1 -1
- package/build/src/modeling/helpers/Intelisense.js +1 -0
- package/build/src/modeling/helpers/Intelisense.js.map +1 -1
- package/build/src/modeling/templates/index.d.ts +21 -0
- package/build/src/modeling/templates/index.d.ts.map +1 -0
- package/build/src/modeling/templates/index.js +176 -0
- package/build/src/modeling/templates/index.js.map +1 -0
- package/build/src/modeling/templates/meta/blog-publishing-platform.json +1 -0
- package/build/src/modeling/templates/meta/ecommerce-platform.json +1 -0
- package/build/src/modeling/templates/meta/education-management-platform.json +1 -0
- package/build/src/modeling/templates/meta/financial-services-platform.json +1 -0
- package/build/src/modeling/templates/meta/gaming-platform.json +1 -0
- package/build/src/modeling/templates/meta/healthcare-management-platform.json +1 -0
- package/build/src/modeling/templates/meta/hospitality-platform.json +1 -0
- package/build/src/modeling/templates/meta/index.d.ts +56 -0
- package/build/src/modeling/templates/meta/index.d.ts.map +1 -0
- package/build/src/modeling/templates/meta/index.js +120 -0
- package/build/src/modeling/templates/meta/index.js.map +1 -0
- package/build/src/modeling/templates/meta/iot-smart-home-platform.json +1 -0
- package/build/src/modeling/templates/meta/legal-services-platform.json +1 -0
- package/build/src/modeling/templates/meta/manufacturing-platform.json +1 -0
- package/build/src/modeling/templates/meta/non-profit-platform.json +1 -0
- package/build/src/modeling/templates/meta/real-estate-management-platform.json +1 -0
- package/build/src/modeling/templates/template-registry.d.ts +55 -0
- package/build/src/modeling/templates/template-registry.d.ts.map +1 -0
- package/build/src/modeling/templates/template-registry.js +111 -0
- package/build/src/modeling/templates/template-registry.js.map +1 -0
- package/build/src/modeling/templates/types.d.ts +158 -0
- package/build/src/modeling/templates/types.d.ts.map +1 -1
- package/build/src/modeling/templates/types.js.map +1 -1
- package/build/src/modeling/templates/{ecommerce-domain.d.ts → verticals/business-services/ecommerce-domain.d.ts} +2 -2
- package/build/src/modeling/templates/verticals/business-services/ecommerce-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/{ecommerce-domain.js → verticals/business-services/ecommerce-domain.js} +6 -6
- package/build/src/modeling/templates/verticals/business-services/ecommerce-domain.js.map +1 -0
- package/build/src/modeling/templates/verticals/business-services/financial-services-domain.d.ts +40 -0
- package/build/src/modeling/templates/verticals/business-services/financial-services-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/business-services/financial-services-domain.js +744 -0
- package/build/src/modeling/templates/verticals/business-services/financial-services-domain.js.map +1 -0
- package/build/src/modeling/templates/verticals/business-services/hospitality-domain.d.ts +45 -0
- package/build/src/modeling/templates/verticals/business-services/hospitality-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/business-services/hospitality-domain.js +797 -0
- package/build/src/modeling/templates/verticals/business-services/hospitality-domain.js.map +1 -0
- package/build/src/modeling/templates/verticals/business-services/index.d.ts +21 -0
- package/build/src/modeling/templates/verticals/business-services/index.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/business-services/index.js +50 -0
- package/build/src/modeling/templates/verticals/business-services/index.js.map +1 -0
- package/build/src/modeling/templates/verticals/business-services/legal-services-domain.d.ts +46 -0
- package/build/src/modeling/templates/verticals/business-services/legal-services-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/business-services/legal-services-domain.js +837 -0
- package/build/src/modeling/templates/verticals/business-services/legal-services-domain.js.map +1 -0
- package/build/src/modeling/templates/verticals/education-training/education-domain.d.ts +40 -0
- package/build/src/modeling/templates/verticals/education-training/education-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/education-training/education-domain.js +725 -0
- package/build/src/modeling/templates/verticals/education-training/education-domain.js.map +1 -0
- package/build/src/modeling/templates/verticals/education-training/index.d.ts +18 -0
- package/build/src/modeling/templates/verticals/education-training/index.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/education-training/index.js +21 -0
- package/build/src/modeling/templates/verticals/education-training/index.js.map +1 -0
- package/build/src/modeling/templates/verticals/healthcare-life-sciences/healthcare-domain.d.ts +40 -0
- package/build/src/modeling/templates/verticals/healthcare-life-sciences/healthcare-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/healthcare-life-sciences/healthcare-domain.js +859 -0
- package/build/src/modeling/templates/verticals/healthcare-life-sciences/healthcare-domain.js.map +1 -0
- package/build/src/modeling/templates/verticals/healthcare-life-sciences/index.d.ts +18 -0
- package/build/src/modeling/templates/verticals/healthcare-life-sciences/index.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/healthcare-life-sciences/index.js +21 -0
- package/build/src/modeling/templates/verticals/healthcare-life-sciences/index.js.map +1 -0
- package/build/src/modeling/templates/verticals/index.d.ts +79 -0
- package/build/src/modeling/templates/verticals/index.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/index.js +186 -0
- package/build/src/modeling/templates/verticals/index.js.map +1 -0
- package/build/src/modeling/templates/verticals/manufacturing-logistics/index.d.ts +18 -0
- package/build/src/modeling/templates/verticals/manufacturing-logistics/index.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/manufacturing-logistics/index.js +22 -0
- package/build/src/modeling/templates/verticals/manufacturing-logistics/index.js.map +1 -0
- package/build/src/modeling/templates/verticals/manufacturing-logistics/manufacturing-domain.d.ts +45 -0
- package/build/src/modeling/templates/verticals/manufacturing-logistics/manufacturing-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/manufacturing-logistics/manufacturing-domain.js +710 -0
- package/build/src/modeling/templates/verticals/manufacturing-logistics/manufacturing-domain.js.map +1 -0
- package/build/src/modeling/templates/verticals/public-sector/index.d.ts +18 -0
- package/build/src/modeling/templates/verticals/public-sector/index.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/public-sector/index.js +22 -0
- package/build/src/modeling/templates/verticals/public-sector/index.js.map +1 -0
- package/build/src/modeling/templates/verticals/public-sector/non-profit-domain.d.ts +47 -0
- package/build/src/modeling/templates/verticals/public-sector/non-profit-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/public-sector/non-profit-domain.js +864 -0
- package/build/src/modeling/templates/verticals/public-sector/non-profit-domain.js.map +1 -0
- package/build/src/modeling/templates/verticals/real-estate-construction/index.d.ts +18 -0
- package/build/src/modeling/templates/verticals/real-estate-construction/index.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/real-estate-construction/index.js +21 -0
- package/build/src/modeling/templates/verticals/real-estate-construction/index.js.map +1 -0
- package/build/src/modeling/templates/verticals/real-estate-construction/real-estate-domain.d.ts +40 -0
- package/build/src/modeling/templates/verticals/real-estate-construction/real-estate-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/real-estate-construction/real-estate-domain.js +727 -0
- package/build/src/modeling/templates/verticals/real-estate-construction/real-estate-domain.js.map +1 -0
- package/build/src/modeling/templates/{blog-domain.d.ts → verticals/technology-media/blog-domain.d.ts} +2 -2
- package/build/src/modeling/templates/verticals/technology-media/blog-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/{blog-domain.js → verticals/technology-media/blog-domain.js} +5 -5
- package/build/src/modeling/templates/verticals/technology-media/blog-domain.js.map +1 -0
- package/build/src/modeling/templates/verticals/technology-media/gaming-domain.d.ts +46 -0
- package/build/src/modeling/templates/verticals/technology-media/gaming-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/technology-media/gaming-domain.js +1033 -0
- package/build/src/modeling/templates/verticals/technology-media/gaming-domain.js.map +1 -0
- package/build/src/modeling/templates/verticals/technology-media/index.d.ts +21 -0
- package/build/src/modeling/templates/verticals/technology-media/index.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/technology-media/index.js +42 -0
- package/build/src/modeling/templates/verticals/technology-media/index.js.map +1 -0
- package/build/src/modeling/templates/verticals/technology-media/iot-smart-home-domain.d.ts +47 -0
- package/build/src/modeling/templates/verticals/technology-media/iot-smart-home-domain.d.ts.map +1 -0
- package/build/src/modeling/templates/verticals/technology-media/iot-smart-home-domain.js +1027 -0
- package/build/src/modeling/templates/verticals/technology-media/iot-smart-home-domain.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/data/models/example-generator-api.json +6 -6
- package/package.json +1 -1
- package/src/modeling/helpers/Intelisense.ts +1 -0
- package/src/modeling/templates/meta/blog-publishing-platform.json +1 -0
- package/src/modeling/templates/meta/ecommerce-platform.json +1 -0
- package/src/modeling/templates/meta/education-management-platform.json +1 -0
- package/src/modeling/templates/meta/financial-services-platform.json +1 -0
- package/src/modeling/templates/meta/gaming-platform.json +1 -0
- package/src/modeling/templates/meta/healthcare-management-platform.json +1 -0
- package/src/modeling/templates/meta/hospitality-platform.json +1 -0
- package/src/modeling/templates/meta/iot-smart-home-platform.json +1 -0
- package/src/modeling/templates/meta/legal-services-platform.json +1 -0
- package/src/modeling/templates/meta/manufacturing-platform.json +1 -0
- package/src/modeling/templates/meta/non-profit-platform.json +1 -0
- package/src/modeling/templates/meta/real-estate-management-platform.json +1 -0
- package/src/modeling/templates/readme.md +260 -0
- package/src/modeling/templates/template-registry.ts +140 -0
- package/src/modeling/templates/types.ts +166 -0
- package/src/modeling/templates/verticals/README.md +122 -0
- package/src/modeling/templates/{ecommerce-domain.ts → verticals/business-services/ecommerce-domain.ts} +7 -7
- package/src/modeling/templates/verticals/business-services/financial-services-domain.ts +943 -0
- package/src/modeling/templates/verticals/business-services/hospitality-domain.ts +994 -0
- package/src/modeling/templates/verticals/business-services/legal-services-domain.ts +1059 -0
- package/src/modeling/templates/verticals/education-training/education-domain.ts +922 -0
- package/src/modeling/templates/verticals/healthcare-life-sciences/healthcare-domain.ts +1111 -0
- package/src/modeling/templates/verticals/manufacturing-logistics/manufacturing-domain.ts +895 -0
- package/src/modeling/templates/verticals/public-sector/non-profit-domain.ts +1109 -0
- package/src/modeling/templates/verticals/real-estate-construction/real-estate-domain.ts +944 -0
- package/src/modeling/templates/{blog-domain.ts → verticals/technology-media/blog-domain.ts} +6 -6
- package/src/modeling/templates/verticals/technology-media/gaming-domain.ts +1290 -0
- package/src/modeling/templates/verticals/technology-media/iot-smart-home-domain.ts +1287 -0
- package/build/src/modeling/templates/blog-domain.d.ts.map +0 -1
- package/build/src/modeling/templates/blog-domain.js.map +0 -1
- package/build/src/modeling/templates/ecommerce-domain.d.ts.map +0 -1
- package/build/src/modeling/templates/ecommerce-domain.js.map +0 -1
|
@@ -7,3 +7,169 @@ export interface CreateTemplateOptions {
|
|
|
7
7
|
*/
|
|
8
8
|
domain?: DataDomain
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Template metadata for UI presentation
|
|
13
|
+
*/
|
|
14
|
+
export interface DomainTemplate {
|
|
15
|
+
/** Unique identifier for the template */
|
|
16
|
+
id: string
|
|
17
|
+
/** Display name of the template */
|
|
18
|
+
name: string
|
|
19
|
+
/** Short description of what the template does (plain text, no HTML/markdown) */
|
|
20
|
+
description: string
|
|
21
|
+
/** When the template was created (ISO string) */
|
|
22
|
+
createdAt: string
|
|
23
|
+
/** When the template was last updated (ISO string) */
|
|
24
|
+
updatedAt: string
|
|
25
|
+
/** Template version */
|
|
26
|
+
version: string
|
|
27
|
+
/** Author information */
|
|
28
|
+
author: string
|
|
29
|
+
/** Template categorization tags */
|
|
30
|
+
tags: string[]
|
|
31
|
+
/** Detailed domain structure for UI presentation */
|
|
32
|
+
structure: DomainTemplateStructure
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Detailed domain structure information for UI presentation
|
|
37
|
+
*/
|
|
38
|
+
export interface DomainTemplateStructure {
|
|
39
|
+
/** Domain information */
|
|
40
|
+
domain: DomainInfo
|
|
41
|
+
/** List of namespaces in the domain */
|
|
42
|
+
namespaces: NamespaceInfo[]
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Domain-level information
|
|
47
|
+
*/
|
|
48
|
+
export interface DomainInfo {
|
|
49
|
+
/** Domain name */
|
|
50
|
+
name: string
|
|
51
|
+
/** Domain description */
|
|
52
|
+
description?: string
|
|
53
|
+
/** Total number of entities across all namespaces */
|
|
54
|
+
totalEntities: number
|
|
55
|
+
/** Total number of properties across all entities */
|
|
56
|
+
totalProperties: number
|
|
57
|
+
/** Total number of associations across all entities */
|
|
58
|
+
totalAssociations: number
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Namespace-level information
|
|
63
|
+
*/
|
|
64
|
+
export interface NamespaceInfo {
|
|
65
|
+
/** Namespace name */
|
|
66
|
+
name: string
|
|
67
|
+
/** Namespace display name */
|
|
68
|
+
displayName?: string
|
|
69
|
+
/** Namespace description */
|
|
70
|
+
description?: string
|
|
71
|
+
/** Number of models in this namespace */
|
|
72
|
+
modelCount: number
|
|
73
|
+
/** Number of entities in this namespace */
|
|
74
|
+
entityCount: number
|
|
75
|
+
/** List of models in this namespace */
|
|
76
|
+
models: ModelInfo[]
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Model-level information
|
|
81
|
+
*/
|
|
82
|
+
export interface ModelInfo {
|
|
83
|
+
/** Model name */
|
|
84
|
+
name: string
|
|
85
|
+
/** Model display name */
|
|
86
|
+
displayName?: string
|
|
87
|
+
/** Model description */
|
|
88
|
+
description?: string
|
|
89
|
+
/** Number of entities in this model */
|
|
90
|
+
entityCount: number
|
|
91
|
+
/** List of entities in this model */
|
|
92
|
+
entities: EntityInfo[]
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Entity-level information for UI presentation
|
|
97
|
+
*/
|
|
98
|
+
export interface EntityInfo {
|
|
99
|
+
/** Entity name */
|
|
100
|
+
name: string
|
|
101
|
+
/** Entity display name */
|
|
102
|
+
displayName?: string
|
|
103
|
+
/** Entity description */
|
|
104
|
+
description?: string
|
|
105
|
+
/** Number of properties */
|
|
106
|
+
propertyCount: number
|
|
107
|
+
/** Number of associations */
|
|
108
|
+
associationCount: number
|
|
109
|
+
/** Whether this entity is deprecated */
|
|
110
|
+
deprecated?: boolean
|
|
111
|
+
/** List of properties for this entity */
|
|
112
|
+
properties: PropertyInfo[]
|
|
113
|
+
/** List of associations for this entity */
|
|
114
|
+
associations: AssociationInfo[]
|
|
115
|
+
/** Applied semantic types */
|
|
116
|
+
semantics: string[]
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Property-level information for UI presentation
|
|
121
|
+
*/
|
|
122
|
+
export interface PropertyInfo {
|
|
123
|
+
/** Property name */
|
|
124
|
+
name: string
|
|
125
|
+
/** Property display name */
|
|
126
|
+
displayName?: string
|
|
127
|
+
/** Property description */
|
|
128
|
+
description?: string
|
|
129
|
+
/** Data type (string, number, boolean, etc.) */
|
|
130
|
+
type: string
|
|
131
|
+
/** Whether this property is required */
|
|
132
|
+
required?: boolean
|
|
133
|
+
/** Whether this property allows multiple values */
|
|
134
|
+
multiple?: boolean
|
|
135
|
+
/** Whether this property is a primary key */
|
|
136
|
+
primary?: boolean
|
|
137
|
+
/** Whether this property is unique */
|
|
138
|
+
unique?: boolean
|
|
139
|
+
/** Whether this property is read-only */
|
|
140
|
+
readOnly?: boolean
|
|
141
|
+
/** Whether this property is write-only */
|
|
142
|
+
writeOnly?: boolean
|
|
143
|
+
/** Whether this property is deprecated */
|
|
144
|
+
deprecated?: boolean
|
|
145
|
+
/** Applied semantic types */
|
|
146
|
+
semantics: string[]
|
|
147
|
+
/** Enum values if applicable */
|
|
148
|
+
enumValues?: string[]
|
|
149
|
+
/** Default value if specified */
|
|
150
|
+
defaultValue?: string
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Association-level information for UI presentation
|
|
155
|
+
*/
|
|
156
|
+
export interface AssociationInfo {
|
|
157
|
+
/** Association name */
|
|
158
|
+
name: string
|
|
159
|
+
/** Association display name */
|
|
160
|
+
displayName?: string
|
|
161
|
+
/** Association description */
|
|
162
|
+
description?: string
|
|
163
|
+
/** Whether this association is required */
|
|
164
|
+
required?: boolean
|
|
165
|
+
/** Whether this association allows multiple targets */
|
|
166
|
+
multiple?: boolean
|
|
167
|
+
/** Whether this association is read-only */
|
|
168
|
+
readOnly?: boolean
|
|
169
|
+
/** Target entity names this association points to */
|
|
170
|
+
targetEntities: string[]
|
|
171
|
+
/** Applied semantic types */
|
|
172
|
+
semantics: string[]
|
|
173
|
+
/** Relationship cardinality description (e.g., "One-to-Many", "Many-to-Many") */
|
|
174
|
+
cardinality: string
|
|
175
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Industry Vertical Templates
|
|
2
|
+
|
|
3
|
+
This directory organizes domain templates by industry verticals to provide better categorization and discovery for users looking for domain-specific templates.
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
```plain
|
|
8
|
+
verticals/
|
|
9
|
+
├── business-services/ # E-commerce, Financial Services, Legal Services
|
|
10
|
+
│ ├── ecommerce-domain.ts
|
|
11
|
+
│ ├── financial-services-domain.ts
|
|
12
|
+
│ └── index.ts
|
|
13
|
+
├── healthcare-life-sciences/ # Healthcare, Pharmaceutical, Research
|
|
14
|
+
│ ├── healthcare-domain.ts
|
|
15
|
+
│ └── index.ts
|
|
16
|
+
├── education-training/ # Education, Corporate Training, Certification
|
|
17
|
+
│ ├── education-domain.ts
|
|
18
|
+
│ └── index.ts
|
|
19
|
+
├── real-estate-construction/ # Real Estate, Construction, Property Management
|
|
20
|
+
│ ├── real-estate-domain.ts
|
|
21
|
+
│ └── index.ts
|
|
22
|
+
├── technology-media/ # Gaming, IoT, Content Management, Social Media
|
|
23
|
+
│ ├── blog-domain.ts
|
|
24
|
+
│ └── index.ts
|
|
25
|
+
├── manufacturing-logistics/ # Manufacturing, Supply Chain, Distribution
|
|
26
|
+
│ └── index.ts
|
|
27
|
+
├── public-sector/ # Government, Non-Profit, Healthcare
|
|
28
|
+
│ └── index.ts
|
|
29
|
+
└── index.ts # Main verticals index
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Industry Verticals
|
|
33
|
+
|
|
34
|
+
### 1. Business Services
|
|
35
|
+
|
|
36
|
+
- **E-commerce Platform**: Complete e-commerce data domain with product management, orders, customers, and payments
|
|
37
|
+
- **Financial Services Platform**: Comprehensive financial services data domain with accounts, transactions, investments, and compliance
|
|
38
|
+
|
|
39
|
+
### 2. Healthcare & Life Sciences
|
|
40
|
+
|
|
41
|
+
- **Healthcare Management Platform**: Comprehensive healthcare data domain with patients, providers, facilities, and medical records
|
|
42
|
+
|
|
43
|
+
### 3. Education & Training
|
|
44
|
+
|
|
45
|
+
- **Education Management Platform**: Comprehensive education data domain with students, courses, faculty, and academic management
|
|
46
|
+
|
|
47
|
+
### 4. Real Estate & Construction
|
|
48
|
+
|
|
49
|
+
- **Real Estate Management Platform**: Comprehensive real estate data domain with properties, clients, transactions, and marketing
|
|
50
|
+
|
|
51
|
+
### 5. Technology & Media
|
|
52
|
+
|
|
53
|
+
- **Blog Publishing Platform**: Complete blog and content publishing data domain with articles, authors, and media management
|
|
54
|
+
|
|
55
|
+
### 6. Manufacturing & Logistics
|
|
56
|
+
|
|
57
|
+
- *No templates yet* - Planned for Manufacturing, Supply Chain, Distribution
|
|
58
|
+
|
|
59
|
+
### 7. Public Sector
|
|
60
|
+
|
|
61
|
+
- *No templates yet* - Planned for Government, Non-Profit, Healthcare
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
### Importing Templates by Vertical
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
// Import all verticals
|
|
69
|
+
import {
|
|
70
|
+
businessServicesTemplates,
|
|
71
|
+
healthcareLifeSciencesTemplates,
|
|
72
|
+
educationTrainingTemplates,
|
|
73
|
+
realEstateConstructionTemplates,
|
|
74
|
+
technologyMediaTemplates,
|
|
75
|
+
manufacturingLogisticsTemplates,
|
|
76
|
+
publicSectorTemplates
|
|
77
|
+
} from './verticals/index.js'
|
|
78
|
+
|
|
79
|
+
// Import specific templates
|
|
80
|
+
import { createEcommerceDomain } from './verticals/business-services/index.js'
|
|
81
|
+
import { createHealthcareDomain } from './verticals/healthcare-life-sciences/index.js'
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Using the Template Registry
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
import { TemplateRegistry } from './template-registry.js'
|
|
88
|
+
|
|
89
|
+
// Get all industry verticals
|
|
90
|
+
const verticals = TemplateRegistry.getIndustryVerticals()
|
|
91
|
+
|
|
92
|
+
// Get templates by vertical
|
|
93
|
+
const businessTemplates = TemplateRegistry.getTemplatesByVertical('business-services')
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Adding New Templates
|
|
97
|
+
|
|
98
|
+
1. **Choose the appropriate vertical** based on the industry focus
|
|
99
|
+
2. **Create the template file** in the corresponding vertical directory
|
|
100
|
+
3. **Update the vertical's index.ts** to export the new template
|
|
101
|
+
4. **Update the main verticals index.ts** to include the template metadata
|
|
102
|
+
5. **Update the metadata generation script** to include the new template
|
|
103
|
+
6. **Run the build and metadata generation**:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
npm run build
|
|
107
|
+
node scripts/generate-template-metadata.js
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Template Categories
|
|
111
|
+
|
|
112
|
+
Each vertical can contain multiple subcategories:
|
|
113
|
+
|
|
114
|
+
- **Business Services**: E-commerce, Financial Services, Legal Services
|
|
115
|
+
- **Healthcare & Life Sciences**: Healthcare, Pharmaceutical, Research
|
|
116
|
+
- **Education & Training**: Education, Corporate Training, Certification
|
|
117
|
+
- **Real Estate & Construction**: Real Estate, Construction, Property Management
|
|
118
|
+
- **Manufacturing & Logistics**: Manufacturing, Supply Chain, Distribution
|
|
119
|
+
- **Technology & Media**: Gaming, IoT, Content Management, Social Media
|
|
120
|
+
- **Public Sector**: Government, Non-Profit, Healthcare
|
|
121
|
+
|
|
122
|
+
This organization helps users quickly find templates relevant to their industry and use case.
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { DataDomain } from '
|
|
26
|
-
import { SemanticType } from '
|
|
27
|
-
import { createCalculatedSemantic } from '
|
|
28
|
-
import { createCurrencySemantic } from '
|
|
29
|
-
import { createSummarySemantic } from '
|
|
25
|
+
import { DataDomain } from '../../../DataDomain.js'
|
|
26
|
+
import { SemanticType } from '../../../Semantics.js'
|
|
27
|
+
import { createCalculatedSemantic } from '../../../definitions/Calculated.js'
|
|
28
|
+
import { createCurrencySemantic } from '../../../definitions/Currency.js'
|
|
29
|
+
import { createSummarySemantic } from '../../../definitions/Summary.js'
|
|
30
30
|
import {
|
|
31
31
|
addAvatarUrlField,
|
|
32
32
|
addCreatedAtField,
|
|
@@ -51,8 +51,8 @@ import {
|
|
|
51
51
|
addExpiresAtField,
|
|
52
52
|
addUnitPriceField,
|
|
53
53
|
addCurrencyAmountField,
|
|
54
|
-
} from '
|
|
55
|
-
import type { CreateTemplateOptions } from '
|
|
54
|
+
} from '../../../helpers/Intelisense.js'
|
|
55
|
+
import type { CreateTemplateOptions } from '../../types.js'
|
|
56
56
|
|
|
57
57
|
function createDomain(): DataDomain {
|
|
58
58
|
return new DataDomain({
|