@api-client/core 0.18.21 → 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.
Files changed (138) hide show
  1. package/build/src/modeling/helpers/Intelisense.d.ts +1 -0
  2. package/build/src/modeling/helpers/Intelisense.d.ts.map +1 -1
  3. package/build/src/modeling/helpers/Intelisense.js +1 -0
  4. package/build/src/modeling/helpers/Intelisense.js.map +1 -1
  5. package/build/src/modeling/templates/index.d.ts +1 -0
  6. package/build/src/modeling/templates/index.d.ts.map +1 -1
  7. package/build/src/modeling/templates/index.js +2 -0
  8. package/build/src/modeling/templates/index.js.map +1 -1
  9. package/build/src/modeling/templates/meta/education-management-platform.json +1 -0
  10. package/build/src/modeling/templates/meta/financial-services-platform.json +1 -0
  11. package/build/src/modeling/templates/meta/gaming-platform.json +1 -0
  12. package/build/src/modeling/templates/meta/healthcare-management-platform.json +1 -0
  13. package/build/src/modeling/templates/meta/hospitality-platform.json +1 -0
  14. package/build/src/modeling/templates/meta/index.d.ts +2 -2
  15. package/build/src/modeling/templates/meta/index.d.ts.map +1 -1
  16. package/build/src/modeling/templates/meta/index.js +31 -1
  17. package/build/src/modeling/templates/meta/index.js.map +1 -1
  18. package/build/src/modeling/templates/meta/iot-smart-home-platform.json +1 -0
  19. package/build/src/modeling/templates/meta/legal-services-platform.json +1 -0
  20. package/build/src/modeling/templates/meta/manufacturing-platform.json +1 -0
  21. package/build/src/modeling/templates/meta/non-profit-platform.json +1 -0
  22. package/build/src/modeling/templates/meta/real-estate-management-platform.json +1 -0
  23. package/build/src/modeling/templates/template-registry.d.ts +14 -0
  24. package/build/src/modeling/templates/template-registry.d.ts.map +1 -1
  25. package/build/src/modeling/templates/template-registry.js +63 -0
  26. package/build/src/modeling/templates/template-registry.js.map +1 -1
  27. package/build/src/modeling/templates/{ecommerce-domain.d.ts → verticals/business-services/ecommerce-domain.d.ts} +2 -2
  28. package/build/src/modeling/templates/verticals/business-services/ecommerce-domain.d.ts.map +1 -0
  29. package/build/src/modeling/templates/{ecommerce-domain.js → verticals/business-services/ecommerce-domain.js} +6 -6
  30. package/build/src/modeling/templates/verticals/business-services/ecommerce-domain.js.map +1 -0
  31. package/build/src/modeling/templates/verticals/business-services/financial-services-domain.d.ts +40 -0
  32. package/build/src/modeling/templates/verticals/business-services/financial-services-domain.d.ts.map +1 -0
  33. package/build/src/modeling/templates/verticals/business-services/financial-services-domain.js +744 -0
  34. package/build/src/modeling/templates/verticals/business-services/financial-services-domain.js.map +1 -0
  35. package/build/src/modeling/templates/verticals/business-services/hospitality-domain.d.ts +45 -0
  36. package/build/src/modeling/templates/verticals/business-services/hospitality-domain.d.ts.map +1 -0
  37. package/build/src/modeling/templates/verticals/business-services/hospitality-domain.js +797 -0
  38. package/build/src/modeling/templates/verticals/business-services/hospitality-domain.js.map +1 -0
  39. package/build/src/modeling/templates/verticals/business-services/index.d.ts +21 -0
  40. package/build/src/modeling/templates/verticals/business-services/index.d.ts.map +1 -0
  41. package/build/src/modeling/templates/verticals/business-services/index.js +50 -0
  42. package/build/src/modeling/templates/verticals/business-services/index.js.map +1 -0
  43. package/build/src/modeling/templates/verticals/business-services/legal-services-domain.d.ts +46 -0
  44. package/build/src/modeling/templates/verticals/business-services/legal-services-domain.d.ts.map +1 -0
  45. package/build/src/modeling/templates/verticals/business-services/legal-services-domain.js +837 -0
  46. package/build/src/modeling/templates/verticals/business-services/legal-services-domain.js.map +1 -0
  47. package/build/src/modeling/templates/verticals/education-training/education-domain.d.ts +40 -0
  48. package/build/src/modeling/templates/verticals/education-training/education-domain.d.ts.map +1 -0
  49. package/build/src/modeling/templates/verticals/education-training/education-domain.js +725 -0
  50. package/build/src/modeling/templates/verticals/education-training/education-domain.js.map +1 -0
  51. package/build/src/modeling/templates/verticals/education-training/index.d.ts +18 -0
  52. package/build/src/modeling/templates/verticals/education-training/index.d.ts.map +1 -0
  53. package/build/src/modeling/templates/verticals/education-training/index.js +21 -0
  54. package/build/src/modeling/templates/verticals/education-training/index.js.map +1 -0
  55. package/build/src/modeling/templates/verticals/healthcare-life-sciences/healthcare-domain.d.ts +40 -0
  56. package/build/src/modeling/templates/verticals/healthcare-life-sciences/healthcare-domain.d.ts.map +1 -0
  57. package/build/src/modeling/templates/verticals/healthcare-life-sciences/healthcare-domain.js +859 -0
  58. package/build/src/modeling/templates/verticals/healthcare-life-sciences/healthcare-domain.js.map +1 -0
  59. package/build/src/modeling/templates/verticals/healthcare-life-sciences/index.d.ts +18 -0
  60. package/build/src/modeling/templates/verticals/healthcare-life-sciences/index.d.ts.map +1 -0
  61. package/build/src/modeling/templates/verticals/healthcare-life-sciences/index.js +21 -0
  62. package/build/src/modeling/templates/verticals/healthcare-life-sciences/index.js.map +1 -0
  63. package/build/src/modeling/templates/verticals/index.d.ts +79 -0
  64. package/build/src/modeling/templates/verticals/index.d.ts.map +1 -0
  65. package/build/src/modeling/templates/verticals/index.js +186 -0
  66. package/build/src/modeling/templates/verticals/index.js.map +1 -0
  67. package/build/src/modeling/templates/verticals/manufacturing-logistics/index.d.ts +18 -0
  68. package/build/src/modeling/templates/verticals/manufacturing-logistics/index.d.ts.map +1 -0
  69. package/build/src/modeling/templates/verticals/manufacturing-logistics/index.js +22 -0
  70. package/build/src/modeling/templates/verticals/manufacturing-logistics/index.js.map +1 -0
  71. package/build/src/modeling/templates/verticals/manufacturing-logistics/manufacturing-domain.d.ts +45 -0
  72. package/build/src/modeling/templates/verticals/manufacturing-logistics/manufacturing-domain.d.ts.map +1 -0
  73. package/build/src/modeling/templates/verticals/manufacturing-logistics/manufacturing-domain.js +710 -0
  74. package/build/src/modeling/templates/verticals/manufacturing-logistics/manufacturing-domain.js.map +1 -0
  75. package/build/src/modeling/templates/verticals/public-sector/index.d.ts +18 -0
  76. package/build/src/modeling/templates/verticals/public-sector/index.d.ts.map +1 -0
  77. package/build/src/modeling/templates/verticals/public-sector/index.js +22 -0
  78. package/build/src/modeling/templates/verticals/public-sector/index.js.map +1 -0
  79. package/build/src/modeling/templates/verticals/public-sector/non-profit-domain.d.ts +47 -0
  80. package/build/src/modeling/templates/verticals/public-sector/non-profit-domain.d.ts.map +1 -0
  81. package/build/src/modeling/templates/verticals/public-sector/non-profit-domain.js +864 -0
  82. package/build/src/modeling/templates/verticals/public-sector/non-profit-domain.js.map +1 -0
  83. package/build/src/modeling/templates/verticals/real-estate-construction/index.d.ts +18 -0
  84. package/build/src/modeling/templates/verticals/real-estate-construction/index.d.ts.map +1 -0
  85. package/build/src/modeling/templates/verticals/real-estate-construction/index.js +21 -0
  86. package/build/src/modeling/templates/verticals/real-estate-construction/index.js.map +1 -0
  87. package/build/src/modeling/templates/verticals/real-estate-construction/real-estate-domain.d.ts +40 -0
  88. package/build/src/modeling/templates/verticals/real-estate-construction/real-estate-domain.d.ts.map +1 -0
  89. package/build/src/modeling/templates/verticals/real-estate-construction/real-estate-domain.js +727 -0
  90. package/build/src/modeling/templates/verticals/real-estate-construction/real-estate-domain.js.map +1 -0
  91. package/build/src/modeling/templates/{blog-domain.d.ts → verticals/technology-media/blog-domain.d.ts} +2 -2
  92. package/build/src/modeling/templates/verticals/technology-media/blog-domain.d.ts.map +1 -0
  93. package/build/src/modeling/templates/{blog-domain.js → verticals/technology-media/blog-domain.js} +5 -5
  94. package/build/src/modeling/templates/verticals/technology-media/blog-domain.js.map +1 -0
  95. package/build/src/modeling/templates/verticals/technology-media/gaming-domain.d.ts +46 -0
  96. package/build/src/modeling/templates/verticals/technology-media/gaming-domain.d.ts.map +1 -0
  97. package/build/src/modeling/templates/verticals/technology-media/gaming-domain.js +1033 -0
  98. package/build/src/modeling/templates/verticals/technology-media/gaming-domain.js.map +1 -0
  99. package/build/src/modeling/templates/verticals/technology-media/index.d.ts +21 -0
  100. package/build/src/modeling/templates/verticals/technology-media/index.d.ts.map +1 -0
  101. package/build/src/modeling/templates/verticals/technology-media/index.js +42 -0
  102. package/build/src/modeling/templates/verticals/technology-media/index.js.map +1 -0
  103. package/build/src/modeling/templates/verticals/technology-media/iot-smart-home-domain.d.ts +47 -0
  104. package/build/src/modeling/templates/verticals/technology-media/iot-smart-home-domain.d.ts.map +1 -0
  105. package/build/src/modeling/templates/verticals/technology-media/iot-smart-home-domain.js +1027 -0
  106. package/build/src/modeling/templates/verticals/technology-media/iot-smart-home-domain.js.map +1 -0
  107. package/build/tsconfig.tsbuildinfo +1 -1
  108. package/package.json +1 -1
  109. package/src/modeling/helpers/Intelisense.ts +1 -0
  110. package/src/modeling/templates/meta/education-management-platform.json +1 -0
  111. package/src/modeling/templates/meta/financial-services-platform.json +1 -0
  112. package/src/modeling/templates/meta/gaming-platform.json +1 -0
  113. package/src/modeling/templates/meta/healthcare-management-platform.json +1 -0
  114. package/src/modeling/templates/meta/hospitality-platform.json +1 -0
  115. package/src/modeling/templates/meta/iot-smart-home-platform.json +1 -0
  116. package/src/modeling/templates/meta/legal-services-platform.json +1 -0
  117. package/src/modeling/templates/meta/manufacturing-platform.json +1 -0
  118. package/src/modeling/templates/meta/non-profit-platform.json +1 -0
  119. package/src/modeling/templates/meta/real-estate-management-platform.json +1 -0
  120. package/src/modeling/templates/readme.md +14 -0
  121. package/src/modeling/templates/template-registry.ts +73 -0
  122. package/src/modeling/templates/verticals/README.md +122 -0
  123. package/src/modeling/templates/{ecommerce-domain.ts → verticals/business-services/ecommerce-domain.ts} +7 -7
  124. package/src/modeling/templates/verticals/business-services/financial-services-domain.ts +943 -0
  125. package/src/modeling/templates/verticals/business-services/hospitality-domain.ts +994 -0
  126. package/src/modeling/templates/verticals/business-services/legal-services-domain.ts +1059 -0
  127. package/src/modeling/templates/verticals/education-training/education-domain.ts +922 -0
  128. package/src/modeling/templates/verticals/healthcare-life-sciences/healthcare-domain.ts +1111 -0
  129. package/src/modeling/templates/verticals/manufacturing-logistics/manufacturing-domain.ts +895 -0
  130. package/src/modeling/templates/verticals/public-sector/non-profit-domain.ts +1109 -0
  131. package/src/modeling/templates/verticals/real-estate-construction/real-estate-domain.ts +944 -0
  132. package/src/modeling/templates/{blog-domain.ts → verticals/technology-media/blog-domain.ts} +6 -6
  133. package/src/modeling/templates/verticals/technology-media/gaming-domain.ts +1290 -0
  134. package/src/modeling/templates/verticals/technology-media/iot-smart-home-domain.ts +1287 -0
  135. package/build/src/modeling/templates/blog-domain.d.ts.map +0 -1
  136. package/build/src/modeling/templates/blog-domain.js.map +0 -1
  137. package/build/src/modeling/templates/ecommerce-domain.d.ts.map +0 -1
  138. package/build/src/modeling/templates/ecommerce-domain.js.map +0 -1
@@ -2,6 +2,20 @@
2
2
 
3
3
  The domain templates allow creating or updating existing data domains from a template. Templates follow the Domain-Driven Design (DDD) principles and provide pre-built business domain structures that users can instantiate or extend.
4
4
 
5
+ ## Organization by Industry Verticals
6
+
7
+ Templates are organized by industry verticals to provide better categorization and discovery:
8
+
9
+ - **Business Services**: E-commerce, Financial Services, Legal Services
10
+ - **Healthcare & Life Sciences**: Healthcare, Pharmaceutical, Research
11
+ - **Education & Training**: Education, Corporate Training, Certification
12
+ - **Real Estate & Construction**: Real Estate, Construction, Property Management
13
+ - **Manufacturing & Logistics**: Manufacturing, Supply Chain, Distribution
14
+ - **Technology & Media**: Gaming, IoT, Content Management, Social Media
15
+ - **Public Sector**: Government, Non-Profit, Healthcare
16
+
17
+ See `verticals/README.md` for detailed information about the vertical organization.
18
+
5
19
  ## Template Structure
6
20
 
7
21
  Each template is a TypeScript file that exports a default function conforming to the template signature. Templates create comprehensive data domains with proper namespace organization, entity relationships, and semantic annotations.
@@ -45,6 +45,79 @@ export class TemplateRegistry {
45
45
  return getTemplatesByCategory(category)
46
46
  }
47
47
 
48
+ /**
49
+ * Gets templates filtered by industry vertical
50
+ */
51
+ static getTemplatesByVertical(vertical: string): DomainTemplate[] {
52
+ // This would need to be implemented in the meta/index.js
53
+ return getAllTemplates().filter((template) =>
54
+ template.tags?.some((tag) => tag.toLowerCase().includes(vertical.toLowerCase()))
55
+ )
56
+ }
57
+
58
+ /**
59
+ * Gets all available industry verticals
60
+ */
61
+ static getIndustryVerticals(): {
62
+ id: string
63
+ name: string
64
+ description: string
65
+ subcategories: string[]
66
+ templateCount: number
67
+ }[] {
68
+ return [
69
+ {
70
+ id: 'business-services',
71
+ name: 'Business Services',
72
+ description: 'E-commerce, Financial Services, Legal Services',
73
+ subcategories: ['E-commerce', 'Financial Services', 'Legal Services'],
74
+ templateCount: 4,
75
+ },
76
+ {
77
+ id: 'healthcare-life-sciences',
78
+ name: 'Healthcare & Life Sciences',
79
+ description: 'Healthcare, Pharmaceutical, Research',
80
+ subcategories: ['Healthcare', 'Pharmaceutical', 'Research'],
81
+ templateCount: 1,
82
+ },
83
+ {
84
+ id: 'education-training',
85
+ name: 'Education & Training',
86
+ description: 'Education, Corporate Training, Certification',
87
+ subcategories: ['Education', 'Corporate Training', 'Certification'],
88
+ templateCount: 1,
89
+ },
90
+ {
91
+ id: 'real-estate-construction',
92
+ name: 'Real Estate & Construction',
93
+ description: 'Real Estate, Construction, Property Management',
94
+ subcategories: ['Real Estate', 'Construction', 'Property Management'],
95
+ templateCount: 1,
96
+ },
97
+ {
98
+ id: 'manufacturing-logistics',
99
+ name: 'Manufacturing & Logistics',
100
+ description: 'Manufacturing, Supply Chain, Distribution',
101
+ subcategories: ['Manufacturing', 'Supply Chain', 'Distribution'],
102
+ templateCount: 1,
103
+ },
104
+ {
105
+ id: 'technology-media',
106
+ name: 'Technology & Media',
107
+ description: 'Gaming, IoT, Content Management, Social Media',
108
+ subcategories: ['Gaming', 'IoT', 'Content Management', 'Social Media'],
109
+ templateCount: 3,
110
+ },
111
+ {
112
+ id: 'public-sector',
113
+ name: 'Public Sector',
114
+ description: 'Government, Non-Profit, Healthcare',
115
+ subcategories: ['Government', 'Non-Profit', 'Healthcare'],
116
+ templateCount: 1,
117
+ },
118
+ ]
119
+ }
120
+
48
121
  /**
49
122
  * Searches templates by name or description
50
123
  */
@@ -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 '../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'
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 '../helpers/Intelisense.js'
55
- import type { CreateTemplateOptions } from './types.js'
54
+ } from '../../../helpers/Intelisense.js'
55
+ import type { CreateTemplateOptions } from '../../types.js'
56
56
 
57
57
  function createDomain(): DataDomain {
58
58
  return new DataDomain({