@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.
- 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 +1 -0
- package/build/src/modeling/templates/index.d.ts.map +1 -1
- package/build/src/modeling/templates/index.js +2 -0
- package/build/src/modeling/templates/index.js.map +1 -1
- 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 +2 -2
- package/build/src/modeling/templates/meta/index.d.ts.map +1 -1
- package/build/src/modeling/templates/meta/index.js +31 -1
- package/build/src/modeling/templates/meta/index.js.map +1 -1
- 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 +14 -0
- package/build/src/modeling/templates/template-registry.d.ts.map +1 -1
- package/build/src/modeling/templates/template-registry.js +63 -0
- package/build/src/modeling/templates/template-registry.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/package.json +1 -1
- package/src/modeling/helpers/Intelisense.ts +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 +14 -0
- package/src/modeling/templates/template-registry.ts +73 -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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "id": "real-estate-management-platform", "name": "Real Estate Management Platform", "description": "A comprehensive real estate management platform with property management, client management, transaction management, market analysis, and marketing features. Perfect for real estate agencies, brokers, and property managers.", "createdAt": "2025-01-27T00:00:00.000Z", "updatedAt": "2025-01-27T00:00:00.000Z", "version": "1.0.0", "author": "API Now! Core Team", "tags": ["real-estate", "property-management", "client-management", "transaction-management", "market-analysis"], "structure": { "domain": { "name": "Real Estate Management Platform", "description": "A comprehensive real estate management platform with property management, client management, transaction management, market analysis, and marketing features", "totalEntities": 15, "totalProperties": 116, "totalAssociations": 16 }, "namespaces": [{ "name": "PropertyManagement", "displayName": "Property Management", "description": "Listings, properties, amenities, and photos", "modelCount": 1, "entityCount": 4, "models": [{ "name": "Properties", "displayName": "Property Management", "description": "Property information and listings", "entityCount": 4, "entities": [{ "name": "property", "displayName": "Property", "description": "Real estate property information", "propertyCount": 16, "associationCount": 2, "properties": [{ "name": "id", "displayName": "Property ID", "description": "Unique identifier for the property", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "name", "displayName": "Property Name", "description": "Name or title of the property", "type": "string", "semantics": ["Semantic#Title"] }, { "name": "description", "displayName": "Description", "description": "Property description and features", "type": "string", "semantics": ["Semantic#Description"] }, { "name": "address", "displayName": "Address", "description": "Property street address", "type": "string", "required": true, "semantics": [] }, { "name": "city", "displayName": "City", "description": "Property city", "type": "string", "required": true, "semantics": [] }, { "name": "state", "displayName": "State", "description": "Property state", "type": "string", "required": true, "semantics": [] }, { "name": "zip_code", "displayName": "ZIP Code", "description": "Property ZIP code", "type": "string", "required": true, "semantics": [] }, { "name": "square_feet", "displayName": "Square Feet", "description": "Property square footage", "type": "number", "required": true, "semantics": [] }, { "name": "bedrooms", "displayName": "Bedrooms", "description": "Number of bedrooms", "type": "number", "required": true, "semantics": [] }, { "name": "bathrooms", "displayName": "Bathrooms", "description": "Number of bathrooms", "type": "number", "required": true, "semantics": [] }, { "name": "property_type", "displayName": "Property Type", "description": "Type of real estate property", "type": "string", "required": true, "semantics": [], "enumValues": ["residential", "commercial", "industrial", "land", "mixed_use"] }, { "name": "status", "displayName": "Listing Status", "description": "Current listing status of the property", "type": "string", "required": true, "semantics": ["Semantic#Status"], "enumValues": ["for_sale", "for_rent", "sold", "rented", "off_market"], "defaultValue": "for_sale" }, { "name": "list_price", "displayName": "List Price", "description": "Listing price of the property", "type": "number", "required": true, "semantics": ["Semantic#Currency"] }, { "name": "market_value", "displayName": "Market Value", "description": "Estimated market value of the property", "type": "number", "required": true, "semantics": ["Semantic#Currency"] }, { "name": "created_at", "displayName": "Created At", "description": "When the property was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }, { "name": "updated_at", "displayName": "Updated At", "description": "When the property was last updated", "type": "datetime", "readOnly": true, "semantics": ["Semantic#UpdatedTimestamp"] }], "associations": [{ "name": "amenities", "displayName": "Amenities", "description": "Amenities available at this property", "required": false, "multiple": true, "targetEntities": ["amenity"], "semantics": [], "cardinality": "One-to-Many" }, { "name": "photos", "displayName": "Photos", "description": "Photos of this property", "required": false, "multiple": true, "targetEntities": ["photo"], "semantics": [], "cardinality": "One-to-Many" }], "semantics": [] }, { "name": "listing", "displayName": "Listing", "description": "Property listing information", "propertyCount": 7, "associationCount": 1, "properties": [{ "name": "id", "displayName": "Listing ID", "description": "Unique identifier for the listing", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "name", "displayName": "Listing Title", "description": "Title of the listing", "type": "string", "semantics": ["Semantic#Title"] }, { "name": "description", "displayName": "Description", "description": "Listing description and details", "type": "string", "semantics": ["Semantic#Description"] }, { "name": "price", "displayName": "Listing Price", "description": "Price for the listing", "type": "number", "required": true, "semantics": ["Semantic#Currency"] }, { "name": "list_date", "displayName": "List Date", "description": "Date when property was listed", "type": "date", "required": true, "semantics": [] }, { "name": "status", "displayName": "Listing Status", "description": "Current status of the listing", "type": "string", "required": true, "semantics": ["Semantic#Status"], "enumValues": ["active", "pending", "sold", "expired", "withdrawn"], "defaultValue": "active" }, { "name": "created_at", "displayName": "Created At", "description": "When the listing was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [{ "name": "property", "displayName": "Property", "description": "Property for this listing", "required": true, "multiple": false, "targetEntities": ["property"], "semantics": [], "cardinality": "One-to-One" }], "semantics": [] }, { "name": "amenity", "displayName": "Amenity", "description": "Property amenities and features", "propertyCount": 6, "associationCount": 0, "properties": [{ "name": "id", "displayName": "Amenity ID", "description": "Unique identifier for the amenity", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "name", "displayName": "Amenity Name", "description": "Name of the amenity", "type": "string", "semantics": ["Semantic#Title"] }, { "name": "description", "displayName": "Description", "description": "Amenity description and details", "type": "string", "semantics": ["Semantic#Description"] }, { "name": "amenity_type", "displayName": "Amenity Type", "description": "Type of amenity", "type": "string", "required": true, "semantics": [], "enumValues": ["interior", "exterior", "community", "utilities"] }, { "name": "available", "displayName": "Available", "description": "Whether the amenity is available", "type": "boolean", "required": true, "semantics": [], "defaultValue": "true" }, { "name": "created_at", "displayName": "Created At", "description": "When the amenity was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [], "semantics": [] }, { "name": "photo", "displayName": "Photo", "description": "Property photos and images", "propertyCount": 7, "associationCount": 0, "properties": [{ "name": "id", "displayName": "Photo ID", "description": "Unique identifier for the photo", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "url", "displayName": "Photo URL", "description": "URL to the photo", "type": "string", "required": true, "semantics": [] }, { "name": "name", "displayName": "Photo Title", "description": "Title or caption for the photo", "type": "string", "semantics": ["Semantic#Title"] }, { "name": "description", "displayName": "Description", "description": "Photo description and details", "type": "string", "semantics": ["Semantic#Description"] }, { "name": "photo_type", "displayName": "Photo Type", "description": "Type of property photo", "type": "string", "required": true, "semantics": [], "enumValues": ["exterior", "interior", "kitchen", "bathroom", "bedroom", "living_room"] }, { "name": "featured", "displayName": "Featured", "description": "Whether this is a featured photo", "type": "boolean", "required": true, "semantics": [], "defaultValue": "false" }, { "name": "created_at", "displayName": "Created At", "description": "When the photo was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [], "semantics": [] }] }] }, { "name": "ClientManagement", "displayName": "Client Management", "description": "Buyers, sellers, agents, and leads", "modelCount": 1, "entityCount": 3, "models": [{ "name": "Clients", "displayName": "Client Management", "description": "Client information and relationships", "entityCount": 3, "entities": [{ "name": "client", "displayName": "Client", "description": "Real estate client (buyer or seller)", "propertyCount": 11, "associationCount": 1, "properties": [{ "name": "id", "displayName": "Client ID", "description": "Unique identifier for the client", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "first_name", "displayName": "First Name", "description": "Client first name", "type": "string", "semantics": [] }, { "name": "last_name", "displayName": "Last Name", "description": "Client last name", "type": "string", "semantics": [] }, { "name": "email", "displayName": "Email Address", "description": "Client email address", "type": "string", "required": true, "semantics": ["Semantic#Email"] }, { "name": "phone", "displayName": "Phone Number", "description": "Client phone number", "type": "string", "semantics": ["Semantic#Phone"] }, { "name": "client_type", "displayName": "Client Type", "description": "Type of client (buyer, seller, or both)", "type": "string", "required": true, "semantics": [], "enumValues": ["buyer", "seller", "both"] }, { "name": "status", "displayName": "Client Status", "description": "Current status of the client", "type": "string", "required": true, "semantics": ["Semantic#Status"], "enumValues": ["active", "inactive", "prospect", "closed"], "defaultValue": "active" }, { "name": "budget_min", "displayName": "Minimum Budget", "description": "Minimum budget for property purchase", "type": "number", "required": true, "semantics": ["Semantic#Currency"] }, { "name": "budget_max", "displayName": "Maximum Budget", "description": "Maximum budget for property purchase", "type": "number", "required": true, "semantics": ["Semantic#Currency"] }, { "name": "created_at", "displayName": "Created At", "description": "When the client was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }, { "name": "updated_at", "displayName": "Updated At", "description": "When the client was last updated", "type": "datetime", "readOnly": true, "semantics": ["Semantic#UpdatedTimestamp"] }], "associations": [{ "name": "agent", "displayName": "Agent", "description": "Agent representing this client", "required": true, "multiple": false, "targetEntities": ["agent"], "semantics": [], "cardinality": "One-to-One" }], "semantics": [] }, { "name": "agent", "displayName": "Agent", "description": "Real estate agent information", "propertyCount": 8, "associationCount": 0, "properties": [{ "name": "id", "displayName": "Agent ID", "description": "Unique identifier for the agent", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "first_name", "displayName": "First Name", "description": "Agent first name", "type": "string", "semantics": [] }, { "name": "last_name", "displayName": "Last Name", "description": "Agent last name", "type": "string", "semantics": [] }, { "name": "email", "displayName": "Email Address", "description": "Agent email address", "type": "string", "required": true, "semantics": ["Semantic#Email"] }, { "name": "phone", "displayName": "Phone Number", "description": "Agent phone number", "type": "string", "semantics": ["Semantic#Phone"] }, { "name": "license_number", "displayName": "License Number", "description": "Real estate license number", "type": "string", "required": true, "unique": true, "semantics": [] }, { "name": "status", "displayName": "Agent Status", "description": "Current status of the agent", "type": "string", "required": true, "semantics": ["Semantic#Status"], "enumValues": ["active", "inactive", "suspended"], "defaultValue": "active" }, { "name": "created_at", "displayName": "Created At", "description": "When the agent was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [], "semantics": [] }, { "name": "lead", "displayName": "Lead", "description": "Sales leads and prospects", "propertyCount": 9, "associationCount": 1, "properties": [{ "name": "id", "displayName": "Lead ID", "description": "Unique identifier for the lead", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "first_name", "displayName": "First Name", "description": "Lead first name", "type": "string", "semantics": [] }, { "name": "last_name", "displayName": "Last Name", "description": "Lead last name", "type": "string", "semantics": [] }, { "name": "email", "displayName": "Email Address", "description": "Lead email address", "type": "string", "required": true, "semantics": ["Semantic#Email"] }, { "name": "phone", "displayName": "Phone Number", "description": "Lead phone number", "type": "string", "semantics": ["Semantic#Phone"] }, { "name": "status", "displayName": "Lead Status", "description": "Current status of the lead", "type": "string", "required": true, "semantics": ["Semantic#Status"], "enumValues": ["new", "contacted", "qualified", "converted", "lost"], "defaultValue": "new" }, { "name": "lead_source", "displayName": "Lead Source", "description": "Source of the lead", "type": "string", "required": true, "semantics": [], "enumValues": ["website", "referral", "social_media", "cold_call", "event"] }, { "name": "description", "displayName": "Description", "description": "Lead notes and information", "type": "string", "semantics": ["Semantic#Description"] }, { "name": "created_at", "displayName": "Created At", "description": "When the lead was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [{ "name": "agent", "displayName": "Agent", "description": "Agent assigned to this lead", "required": true, "multiple": false, "targetEntities": ["agent"], "semantics": [], "cardinality": "One-to-One" }], "semantics": [] }] }] }, { "name": "TransactionManagement", "displayName": "Transaction Management", "description": "Offers, contracts, closings, and escrow", "modelCount": 1, "entityCount": 3, "models": [{ "name": "Transactions", "displayName": "Transaction Management", "description": "Real estate transactions and deals", "entityCount": 3, "entities": [{ "name": "offer", "displayName": "Offer", "description": "Property purchase offers", "propertyCount": 6, "associationCount": 2, "properties": [{ "name": "id", "displayName": "Offer ID", "description": "Unique identifier for the offer", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "offer_price", "displayName": "Offer Price", "description": "Price offered for the property", "type": "number", "required": true, "semantics": ["Semantic#Currency"] }, { "name": "offer_date", "displayName": "Offer Date", "description": "Date when offer was made", "type": "date", "required": true, "semantics": [] }, { "name": "status", "displayName": "Offer Status", "description": "Current status of the offer", "type": "string", "required": true, "semantics": ["Semantic#Status"], "enumValues": ["pending", "accepted", "rejected", "countered", "withdrawn"], "defaultValue": "pending" }, { "name": "description", "displayName": "Description", "description": "Offer terms and conditions", "type": "string", "semantics": ["Semantic#Description"] }, { "name": "created_at", "displayName": "Created At", "description": "When the offer was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [{ "name": "property", "displayName": "Property", "description": "Property for this offer", "required": true, "multiple": false, "targetEntities": ["property"], "semantics": [], "cardinality": "One-to-One" }, { "name": "buyer", "displayName": "Buyer", "description": "Buyer making this offer", "required": true, "multiple": false, "targetEntities": ["client"], "semantics": [], "cardinality": "One-to-One" }], "semantics": [] }, { "name": "contract", "displayName": "Contract", "description": "Real estate purchase contracts", "propertyCount": 6, "associationCount": 3, "properties": [{ "name": "id", "displayName": "Contract ID", "description": "Unique identifier for the contract", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "purchase_price", "displayName": "Purchase Price", "description": "Final purchase price", "type": "number", "required": true, "semantics": ["Semantic#Currency"] }, { "name": "contract_date", "displayName": "Contract Date", "description": "Date when contract was signed", "type": "date", "required": true, "semantics": [] }, { "name": "closing_date", "displayName": "Closing Date", "description": "Scheduled closing date", "type": "date", "required": true, "semantics": [] }, { "name": "status", "displayName": "Contract Status", "description": "Current status of the contract", "type": "string", "required": true, "semantics": ["Semantic#Status"], "enumValues": ["draft", "signed", "pending", "closed", "cancelled"], "defaultValue": "draft" }, { "name": "created_at", "displayName": "Created At", "description": "When the contract was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [{ "name": "property", "displayName": "Property", "description": "Property in this contract", "required": true, "multiple": false, "targetEntities": ["property"], "semantics": [], "cardinality": "One-to-One" }, { "name": "buyer", "displayName": "Buyer", "description": "Buyer in this contract", "required": true, "multiple": false, "targetEntities": ["client"], "semantics": [], "cardinality": "One-to-One" }, { "name": "seller", "displayName": "Seller", "description": "Seller in this contract", "required": true, "multiple": false, "targetEntities": ["client"], "semantics": [], "cardinality": "One-to-One" }], "semantics": [] }, { "name": "escrow", "displayName": "Escrow", "description": "Escrow account and transaction details", "propertyCount": 5, "associationCount": 1, "properties": [{ "name": "id", "displayName": "Escrow ID", "description": "Unique identifier for the escrow", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "escrow_amount", "displayName": "Escrow Amount", "description": "Amount held in escrow", "type": "number", "required": true, "semantics": ["Semantic#Currency"] }, { "name": "escrow_date", "displayName": "Escrow Date", "description": "Date when escrow was opened", "type": "date", "required": true, "semantics": [] }, { "name": "status", "displayName": "Escrow Status", "description": "Current status of the escrow", "type": "string", "required": true, "semantics": ["Semantic#Status"], "enumValues": ["open", "funded", "closed", "cancelled"], "defaultValue": "open" }, { "name": "created_at", "displayName": "Created At", "description": "When the escrow was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [{ "name": "contract", "displayName": "Contract", "description": "Contract for this escrow", "required": true, "multiple": false, "targetEntities": ["contract"], "semantics": [], "cardinality": "One-to-One" }], "semantics": [] }] }] }, { "name": "MarketAnalysis", "displayName": "Market Analysis", "description": "Comps, market data, and pricing models", "modelCount": 1, "entityCount": 2, "models": [{ "name": "Market", "displayName": "Market Analysis", "description": "Market data and analysis", "entityCount": 2, "entities": [{ "name": "market_data", "displayName": "Market Data", "description": "Real estate market data and trends", "propertyCount": 7, "associationCount": 0, "properties": [{ "name": "id", "displayName": "Market Data ID", "description": "Unique identifier for the market data", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "area", "displayName": "Area", "description": "Geographic area for market data", "type": "string", "required": true, "semantics": [] }, { "name": "data_date", "displayName": "Data Date", "description": "Date of market data", "type": "date", "required": true, "semantics": [] }, { "name": "avg_price", "displayName": "Average Price", "description": "Average property price in the area", "type": "number", "required": true, "semantics": ["Semantic#Currency"] }, { "name": "days_on_market", "displayName": "Days on Market", "description": "Average days on market", "type": "number", "required": true, "semantics": [] }, { "name": "inventory_count", "displayName": "Inventory Count", "description": "Number of properties for sale", "type": "number", "required": true, "semantics": [] }, { "name": "created_at", "displayName": "Created At", "description": "When the market data was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [], "semantics": [] }, { "name": "comparable", "displayName": "Comparable", "description": "Comparable property sales data", "propertyCount": 6, "associationCount": 1, "properties": [{ "name": "id", "displayName": "Comparable ID", "description": "Unique identifier for the comparable", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "name", "displayName": "Comparable Name", "description": "Name or address of comparable property", "type": "string", "semantics": ["Semantic#Title"] }, { "name": "sale_price", "displayName": "Sale Price", "description": "Sale price of the comparable property", "type": "number", "required": true, "semantics": ["Semantic#Currency"] }, { "name": "sale_date", "displayName": "Sale Date", "description": "Date when comparable property sold", "type": "date", "required": true, "semantics": [] }, { "name": "square_feet", "displayName": "Square Feet", "description": "Square footage of comparable property", "type": "number", "required": true, "semantics": [] }, { "name": "created_at", "displayName": "Created At", "description": "When the comparable was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [{ "name": "property", "displayName": "Property", "description": "Property for this comparable", "required": true, "multiple": false, "targetEntities": ["property"], "semantics": [], "cardinality": "One-to-One" }], "semantics": [] }] }] }, { "name": "DocumentManagement", "displayName": "Document Management", "description": "Contracts, disclosures, and legal documents", "modelCount": 1, "entityCount": 1, "models": [{ "name": "Documents", "displayName": "Document Management", "description": "Document storage and management", "entityCount": 1, "entities": [{ "name": "document", "displayName": "Document", "description": "Legal documents and contracts", "propertyCount": 7, "associationCount": 2, "properties": [{ "name": "id", "displayName": "Document ID", "description": "Unique identifier for the document", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "name", "displayName": "Document Name", "description": "Name of the document", "type": "string", "semantics": ["Semantic#Title"] }, { "name": "description", "displayName": "Description", "description": "Document description and details", "type": "string", "semantics": ["Semantic#Description"] }, { "name": "file_url", "displayName": "File URL", "description": "URL to the document file", "type": "string", "required": true, "semantics": [] }, { "name": "document_type", "displayName": "Document Type", "description": "Type of document", "type": "string", "required": true, "semantics": [], "enumValues": ["contract", "disclosure", "inspection", "appraisal", "title", "other"] }, { "name": "status", "displayName": "Document Status", "description": "Current status of the document", "type": "string", "required": true, "semantics": ["Semantic#Status"], "enumValues": ["draft", "pending", "signed", "archived"], "defaultValue": "draft" }, { "name": "created_at", "displayName": "Created At", "description": "When the document was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [{ "name": "contract", "displayName": "Contract", "description": "Contract for this document", "required": false, "multiple": false, "targetEntities": ["contract"], "semantics": [], "cardinality": "One-to-One" }, { "name": "property", "displayName": "Property", "description": "Property for this document", "required": false, "multiple": false, "targetEntities": ["property"], "semantics": [], "cardinality": "One-to-One" }], "semantics": [] }] }] }, { "name": "Marketing", "displayName": "Marketing", "description": "Lead generation, campaigns, and follow-ups", "modelCount": 1, "entityCount": 2, "models": [{ "name": "Marketing", "displayName": "Marketing Management", "description": "Marketing campaigns and activities", "entityCount": 2, "entities": [{ "name": "campaign", "displayName": "Campaign", "description": "Marketing campaigns and promotions", "propertyCount": 8, "associationCount": 0, "properties": [{ "name": "id", "displayName": "Campaign ID", "description": "Unique identifier for the campaign", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "name", "displayName": "Campaign Name", "description": "Name of the marketing campaign", "type": "string", "semantics": ["Semantic#Title"] }, { "name": "description", "displayName": "Description", "description": "Campaign description and objectives", "type": "string", "semantics": ["Semantic#Description"] }, { "name": "start_date", "displayName": "Start Date", "description": "Campaign start date", "type": "date", "required": true, "semantics": [] }, { "name": "end_date", "displayName": "End Date", "description": "Campaign end date", "type": "date", "required": true, "semantics": [] }, { "name": "status", "displayName": "Campaign Status", "description": "Current status of the campaign", "type": "string", "required": true, "semantics": ["Semantic#Status"], "enumValues": ["draft", "active", "paused", "completed", "cancelled"], "defaultValue": "draft" }, { "name": "campaign_type", "displayName": "Campaign Type", "description": "Type of marketing campaign", "type": "string", "required": true, "semantics": [], "enumValues": ["email", "social_media", "print", "digital", "event"] }, { "name": "created_at", "displayName": "Created At", "description": "When the campaign was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [], "semantics": [] }, { "name": "follow_up", "displayName": "Follow-up", "description": "Client follow-up activities", "propertyCount": 7, "associationCount": 2, "properties": [{ "name": "id", "displayName": "Follow-up ID", "description": "Unique identifier for the follow-up", "type": "string", "primary": true, "readOnly": true, "semantics": [] }, { "name": "name", "displayName": "Follow-up Title", "description": "Title of the follow-up activity", "type": "string", "semantics": ["Semantic#Title"] }, { "name": "description", "displayName": "Description", "description": "Follow-up notes and details", "type": "string", "semantics": ["Semantic#Description"] }, { "name": "scheduled_date", "displayName": "Scheduled Date", "description": "Scheduled follow-up date", "type": "date", "required": true, "semantics": [] }, { "name": "status", "displayName": "Follow-up Status", "description": "Current status of the follow-up", "type": "string", "required": true, "semantics": ["Semantic#Status"], "enumValues": ["scheduled", "completed", "cancelled", "overdue"], "defaultValue": "scheduled" }, { "name": "follow_up_type", "displayName": "Follow-up Type", "description": "Type of follow-up activity", "type": "string", "required": true, "semantics": [], "enumValues": ["phone_call", "email", "meeting", "text", "other"] }, { "name": "created_at", "displayName": "Created At", "description": "When the follow-up was created", "type": "datetime", "readOnly": true, "semantics": ["Semantic#CreatedTimestamp"] }], "associations": [{ "name": "client", "displayName": "Client", "description": "Client for this follow-up", "required": true, "multiple": false, "targetEntities": ["client"], "semantics": [], "cardinality": "One-to-One" }, { "name": "agent", "displayName": "Agent", "description": "Agent responsible for this follow-up", "required": true, "multiple": false, "targetEntities": ["agent"], "semantics": [], "cardinality": "One-to-One" }], "semantics": [] }] }] }] } }
|
|
@@ -23,6 +23,20 @@ export declare class TemplateRegistry {
|
|
|
23
23
|
* Gets templates filtered by category (based on tags)
|
|
24
24
|
*/
|
|
25
25
|
static getTemplatesByCategory(category: 'business' | 'content' | 'social' | 'technical'): DomainTemplate[];
|
|
26
|
+
/**
|
|
27
|
+
* Gets templates filtered by industry vertical
|
|
28
|
+
*/
|
|
29
|
+
static getTemplatesByVertical(vertical: string): DomainTemplate[];
|
|
30
|
+
/**
|
|
31
|
+
* Gets all available industry verticals
|
|
32
|
+
*/
|
|
33
|
+
static getIndustryVerticals(): {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
subcategories: string[];
|
|
38
|
+
templateCount: number;
|
|
39
|
+
}[];
|
|
26
40
|
/**
|
|
27
41
|
* Searches templates by name or description
|
|
28
42
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../../../../src/modeling/templates/template-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAUhD;;;;;;GAMG;AAEH,qBAAa,gBAAgB;IAC3B;;OAEG;IACH,MAAM,CAAC,eAAe,IAAI,cAAc,EAAE;IAI1C;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAI1D;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,EAAE;IAIvD;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,QAAQ,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,cAAc,EAAE;IAI1G;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,EAAE;IAIvD;;OAEG;IACH,MAAM,CAAC,gBAAgB,IAAI;QACzB,cAAc,EAAE,MAAM,CAAA;QACtB,aAAa,EAAE,MAAM,CAAA;QACrB,eAAe,EAAE,MAAM,CAAA;QACvB,iBAAiB,EAAE,MAAM,CAAA;QACzB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KACvC;CAGF"}
|
|
1
|
+
{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../../../../src/modeling/templates/template-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAUhD;;;;;;GAMG;AAEH,qBAAa,gBAAgB;IAC3B;;OAEG;IACH,MAAM,CAAC,eAAe,IAAI,cAAc,EAAE;IAI1C;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAI1D;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,EAAE;IAIvD;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,QAAQ,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,cAAc,EAAE;IAI1G;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,EAAE;IAOjE;;OAEG;IACH,MAAM,CAAC,oBAAoB,IAAI;QAC7B,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,WAAW,EAAE,MAAM,CAAA;QACnB,aAAa,EAAE,MAAM,EAAE,CAAA;QACvB,aAAa,EAAE,MAAM,CAAA;KACtB,EAAE;IAsDH;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,EAAE;IAIvD;;OAEG;IACH,MAAM,CAAC,gBAAgB,IAAI;QACzB,cAAc,EAAE,MAAM,CAAA;QACtB,aAAa,EAAE,MAAM,CAAA;QACrB,eAAe,EAAE,MAAM,CAAA;QACvB,iBAAiB,EAAE,MAAM,CAAA;QACzB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KACvC;CAGF"}
|
|
@@ -32,6 +32,69 @@ export class TemplateRegistry {
|
|
|
32
32
|
static getTemplatesByCategory(category) {
|
|
33
33
|
return getTemplatesByCategory(category);
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Gets templates filtered by industry vertical
|
|
37
|
+
*/
|
|
38
|
+
static getTemplatesByVertical(vertical) {
|
|
39
|
+
// This would need to be implemented in the meta/index.js
|
|
40
|
+
return getAllTemplates().filter((template) => template.tags?.some((tag) => tag.toLowerCase().includes(vertical.toLowerCase())));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Gets all available industry verticals
|
|
44
|
+
*/
|
|
45
|
+
static getIndustryVerticals() {
|
|
46
|
+
return [
|
|
47
|
+
{
|
|
48
|
+
id: 'business-services',
|
|
49
|
+
name: 'Business Services',
|
|
50
|
+
description: 'E-commerce, Financial Services, Legal Services',
|
|
51
|
+
subcategories: ['E-commerce', 'Financial Services', 'Legal Services'],
|
|
52
|
+
templateCount: 4,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 'healthcare-life-sciences',
|
|
56
|
+
name: 'Healthcare & Life Sciences',
|
|
57
|
+
description: 'Healthcare, Pharmaceutical, Research',
|
|
58
|
+
subcategories: ['Healthcare', 'Pharmaceutical', 'Research'],
|
|
59
|
+
templateCount: 1,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 'education-training',
|
|
63
|
+
name: 'Education & Training',
|
|
64
|
+
description: 'Education, Corporate Training, Certification',
|
|
65
|
+
subcategories: ['Education', 'Corporate Training', 'Certification'],
|
|
66
|
+
templateCount: 1,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'real-estate-construction',
|
|
70
|
+
name: 'Real Estate & Construction',
|
|
71
|
+
description: 'Real Estate, Construction, Property Management',
|
|
72
|
+
subcategories: ['Real Estate', 'Construction', 'Property Management'],
|
|
73
|
+
templateCount: 1,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 'manufacturing-logistics',
|
|
77
|
+
name: 'Manufacturing & Logistics',
|
|
78
|
+
description: 'Manufacturing, Supply Chain, Distribution',
|
|
79
|
+
subcategories: ['Manufacturing', 'Supply Chain', 'Distribution'],
|
|
80
|
+
templateCount: 1,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'technology-media',
|
|
84
|
+
name: 'Technology & Media',
|
|
85
|
+
description: 'Gaming, IoT, Content Management, Social Media',
|
|
86
|
+
subcategories: ['Gaming', 'IoT', 'Content Management', 'Social Media'],
|
|
87
|
+
templateCount: 3,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: 'public-sector',
|
|
91
|
+
name: 'Public Sector',
|
|
92
|
+
description: 'Government, Non-Profit, Healthcare',
|
|
93
|
+
subcategories: ['Government', 'Non-Profit', 'Healthcare'],
|
|
94
|
+
templateCount: 1,
|
|
95
|
+
},
|
|
96
|
+
];
|
|
97
|
+
}
|
|
35
98
|
/**
|
|
36
99
|
* Searches templates by name or description
|
|
37
100
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-registry.js","sourceRoot":"","sources":["../../../../src/modeling/templates/template-registry.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,GACjB,MAAM,iBAAiB,CAAA;AAExB;;;;;;GAMG;AACH,kEAAkE;AAClE,MAAM,OAAO,gBAAgB;IAC3B;;OAEG;IACH,MAAM,CAAC,eAAe;QACpB,OAAO,eAAe,EAAE,CAAA;IAC1B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,EAAU;QAC3B,OAAO,WAAW,CAAC,EAAE,CAAC,CAAA;IACxB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAW;QAClC,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAA;IAC/B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,QAAyD;QACrF,OAAO,sBAAsB,CAAC,QAAQ,CAAC,CAAA;IACzC,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,KAAa;QAClC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,gBAAgB;QAOrB,OAAO,gBAAgB,EAAE,CAAA;IAC3B,CAAC;CACF","sourcesContent":["import type { DomainTemplate } from './types.js'\nimport {\n getAllTemplates,\n getTemplate,\n getTemplatesByTag,\n getTemplatesByCategory,\n searchTemplates,\n getTemplateStats,\n} from './meta/index.js'\n\n/**\n * Registry of all available domain templates with their metadata.\n * This provides a central location for UI components to discover and present templates.\n *\n * The templates are pre-processed at build time using the generate-template-metadata.js script\n * to avoid loading and processing all templates on the client side.\n */\n// eslint-disable-next-line @typescript-eslint/no-extraneous-class\nexport class TemplateRegistry {\n /**\n * Gets all available templates\n */\n static getAllTemplates(): DomainTemplate[] {\n return getAllTemplates()\n }\n\n /**\n * Gets a template by its ID\n */\n static getTemplate(id: string): DomainTemplate | undefined {\n return getTemplate(id)\n }\n\n /**\n * Gets templates filtered by tags\n */\n static getTemplatesByTag(tag: string): DomainTemplate[] {\n return getTemplatesByTag(tag)\n }\n\n /**\n * Gets templates filtered by category (based on tags)\n */\n static getTemplatesByCategory(category: 'business' | 'content' | 'social' | 'technical'): DomainTemplate[] {\n return getTemplatesByCategory(category)\n }\n\n /**\n * Searches templates by name or description\n */\n static searchTemplates(query: string): DomainTemplate[] {\n return searchTemplates(query)\n }\n\n /**\n * Gets template statistics for analytics\n */\n static getTemplateStats(): {\n totalTemplates: number\n totalEntities: number\n totalProperties: number\n totalAssociations: number\n categoryCounts: Record<string, number>\n } {\n return getTemplateStats()\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"template-registry.js","sourceRoot":"","sources":["../../../../src/modeling/templates/template-registry.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,GACjB,MAAM,iBAAiB,CAAA;AAExB;;;;;;GAMG;AACH,kEAAkE;AAClE,MAAM,OAAO,gBAAgB;IAC3B;;OAEG;IACH,MAAM,CAAC,eAAe;QACpB,OAAO,eAAe,EAAE,CAAA;IAC1B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,EAAU;QAC3B,OAAO,WAAW,CAAC,EAAE,CAAC,CAAA;IACxB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAW;QAClC,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAA;IAC/B,CAAC;IAED;;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;gBAC7B,IAAI,EAAE,2BAA2B;gBACjC,WAAW,EAAE,2CAA2C;gBACxD,aAAa,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,cAAc,CAAC;gBAChE,aAAa,EAAE,CAAC;aACjB;YACD;gBACE,EAAE,EAAE,kBAAkB;gBACtB,IAAI,EAAE,oBAAoB;gBAC1B,WAAW,EAAE,+CAA+C;gBAC5D,aAAa,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,oBAAoB,EAAE,cAAc,CAAC;gBACtE,aAAa,EAAE,CAAC;aACjB;YACD;gBACE,EAAE,EAAE,eAAe;gBACnB,IAAI,EAAE,eAAe;gBACrB,WAAW,EAAE,oCAAoC;gBACjD,aAAa,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC;gBACzD,aAAa,EAAE,CAAC;aACjB;SACF,CAAA;IACH,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,KAAa;QAClC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,gBAAgB;QAOrB,OAAO,gBAAgB,EAAE,CAAA;IAC3B,CAAC;CACF","sourcesContent":["import type { DomainTemplate } from './types.js'\nimport {\n getAllTemplates,\n getTemplate,\n getTemplatesByTag,\n getTemplatesByCategory,\n searchTemplates,\n getTemplateStats,\n} from './meta/index.js'\n\n/**\n * Registry of all available domain templates with their metadata.\n * This provides a central location for UI components to discover and present templates.\n *\n * The templates are pre-processed at build time using the generate-template-metadata.js script\n * to avoid loading and processing all templates on the client side.\n */\n// eslint-disable-next-line @typescript-eslint/no-extraneous-class\nexport class TemplateRegistry {\n /**\n * Gets all available templates\n */\n static getAllTemplates(): DomainTemplate[] {\n return getAllTemplates()\n }\n\n /**\n * Gets a template by its ID\n */\n static getTemplate(id: string): DomainTemplate | undefined {\n return getTemplate(id)\n }\n\n /**\n * Gets templates filtered by tags\n */\n static getTemplatesByTag(tag: string): DomainTemplate[] {\n return getTemplatesByTag(tag)\n }\n\n /**\n * Gets templates filtered by category (based on tags)\n */\n static getTemplatesByCategory(category: 'business' | 'content' | 'social' | 'technical'): DomainTemplate[] {\n return getTemplatesByCategory(category)\n }\n\n /**\n * Gets templates filtered by industry vertical\n */\n static getTemplatesByVertical(vertical: string): DomainTemplate[] {\n // This would need to be implemented in the meta/index.js\n return getAllTemplates().filter((template) =>\n template.tags?.some((tag) => tag.toLowerCase().includes(vertical.toLowerCase()))\n )\n }\n\n /**\n * Gets all available industry verticals\n */\n static getIndustryVerticals(): {\n id: string\n name: string\n description: string\n subcategories: string[]\n templateCount: number\n }[] {\n return [\n {\n id: 'business-services',\n name: 'Business Services',\n description: 'E-commerce, Financial Services, Legal Services',\n subcategories: ['E-commerce', 'Financial Services', 'Legal Services'],\n templateCount: 4,\n },\n {\n id: 'healthcare-life-sciences',\n name: 'Healthcare & Life Sciences',\n description: 'Healthcare, Pharmaceutical, Research',\n subcategories: ['Healthcare', 'Pharmaceutical', 'Research'],\n templateCount: 1,\n },\n {\n id: 'education-training',\n name: 'Education & Training',\n description: 'Education, Corporate Training, Certification',\n subcategories: ['Education', 'Corporate Training', 'Certification'],\n templateCount: 1,\n },\n {\n id: 'real-estate-construction',\n name: 'Real Estate & Construction',\n description: 'Real Estate, Construction, Property Management',\n subcategories: ['Real Estate', 'Construction', 'Property Management'],\n templateCount: 1,\n },\n {\n id: 'manufacturing-logistics',\n name: 'Manufacturing & Logistics',\n description: 'Manufacturing, Supply Chain, Distribution',\n subcategories: ['Manufacturing', 'Supply Chain', 'Distribution'],\n templateCount: 1,\n },\n {\n id: 'technology-media',\n name: 'Technology & Media',\n description: 'Gaming, IoT, Content Management, Social Media',\n subcategories: ['Gaming', 'IoT', 'Content Management', 'Social Media'],\n templateCount: 3,\n },\n {\n id: 'public-sector',\n name: 'Public Sector',\n description: 'Government, Non-Profit, Healthcare',\n subcategories: ['Government', 'Non-Profit', 'Healthcare'],\n templateCount: 1,\n },\n ]\n }\n\n /**\n * Searches templates by name or description\n */\n static searchTemplates(query: string): DomainTemplate[] {\n return searchTemplates(query)\n }\n\n /**\n * Gets template statistics for analytics\n */\n static getTemplateStats(): {\n totalTemplates: number\n totalEntities: number\n totalProperties: number\n totalAssociations: number\n categoryCounts: Record<string, number>\n } {\n return getTemplateStats()\n }\n}\n"]}
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* console.log('Domain created with', domain.graph.nodeCount(), 'nodes')
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
import { DataDomain } from '
|
|
25
|
-
import type { CreateTemplateOptions } from '
|
|
24
|
+
import { DataDomain } from '../../../DataDomain.js';
|
|
25
|
+
import type { CreateTemplateOptions } from '../../types.js';
|
|
26
26
|
/**
|
|
27
27
|
* Creates a comprehensive e-commerce data domain following domain-driven design principles.
|
|
28
28
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecommerce-domain.d.ts","sourceRoot":"","sources":["../../../../../../src/modeling/templates/verticals/business-services/ecommerce-domain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AA8BnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAa3D;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,OAAO,GAAE,qBAA0B,GAAG,UAAU,CAkvB7F"}
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
* console.log('Domain created with', domain.graph.nodeCount(), 'nodes')
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
import { DataDomain } from '
|
|
25
|
-
import { SemanticType } from '
|
|
26
|
-
import { createCalculatedSemantic } from '
|
|
27
|
-
import { createCurrencySemantic } from '
|
|
28
|
-
import { createSummarySemantic } from '
|
|
29
|
-
import { addAvatarUrlField, addCreatedAtField, addDescriptionField, addEmailField, addFirstNameField, addIdField, addLastNameField, addNameField, addPasswordField, addPhoneField, addPublicUniqueNameField, addUpdatedAtField, addSkuField, addPriceField, addQuantityField, addWeightField, addImagesField, addCustomStatusField, addBooleanField, addSessionIdField, addExpiresAtField, addUnitPriceField, addCurrencyAmountField, } from '
|
|
24
|
+
import { DataDomain } from '../../../DataDomain.js';
|
|
25
|
+
import { SemanticType } from '../../../Semantics.js';
|
|
26
|
+
import { createCalculatedSemantic } from '../../../definitions/Calculated.js';
|
|
27
|
+
import { createCurrencySemantic } from '../../../definitions/Currency.js';
|
|
28
|
+
import { createSummarySemantic } from '../../../definitions/Summary.js';
|
|
29
|
+
import { addAvatarUrlField, addCreatedAtField, addDescriptionField, addEmailField, addFirstNameField, addIdField, addLastNameField, addNameField, addPasswordField, addPhoneField, addPublicUniqueNameField, addUpdatedAtField, addSkuField, addPriceField, addQuantityField, addWeightField, addImagesField, addCustomStatusField, addBooleanField, addSessionIdField, addExpiresAtField, addUnitPriceField, addCurrencyAmountField, } from '../../../helpers/Intelisense.js';
|
|
30
30
|
function createDomain() {
|
|
31
31
|
return new DataDomain({
|
|
32
32
|
info: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecommerce-domain.js","sourceRoot":"","sources":["../../../../../../src/modeling/templates/verticals/business-services/ecommerce-domain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAA;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AACvE,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,UAAU,E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A;IAEF,aAAa,CAAC,WAAW,CAAC;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,gBAAgB;YACtB,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EAAE,2CAA2C;SACzD;QACD,IAAI,EAAE,QAAQ;KACf,CAAC,CAAA;IAEF,8BAA8B;IAC9B,YAAY;IACZ,+BAA+B;IAC/B,uCAAuC;IACvC,wDAAwD;IACxD,OAAO;IACP,oBAAoB;IACpB,oBAAoB;IACpB,KAAK;IAEL,iBAAiB,CAAC,aAAa,EAAE,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC,CAAA;IAEjF,0CAA0C;IAC1C,WAAW,CAAC,cAAc,CACxB,EAAE,GAAG,EAAE,aAAa,CAAC,GAAG,EAAE,EAC1B;QACE,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,qCAAqC,EAAE;QAC7G,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,UAAU,EAAE,+CAA+C;KACtE,CACF,CAAA;IAED,OAAO,MAAM,CAAA;AACf,CAAC","sourcesContent":["/**\n * E-Commerce Data Domain Example\n *\n * This file demonstrates how to create a comprehensive e-commerce data domain\n * using the API Client Core modeling system. It follows the business-first approach\n * and demonstrates proper use of namespaces, models, entities, properties,\n * associations, and semantic annotations.\n *\n * The example includes:\n * - User Management domain with proper authentication setup\n * - Product Catalog with categories and inventory\n * - Order Management with cart functionality and payment processing\n * - Proper semantic annotations for security, timestamps, and business logic\n * - Realistic associations between entities with proper cardinality\n *\n * @example\n * ```typescript\n * import { createEcommerceDomain } from './ecommerce-domain.js'\n *\n * const domain = createEcommerceDomain()\n * console.log('Domain created with', domain.graph.nodeCount(), 'nodes')\n * ```\n */\n\nimport { DataDomain } from '../../../DataDomain.js'\nimport { SemanticType } from '../../../Semantics.js'\nimport { createCalculatedSemantic } from '../../../definitions/Calculated.js'\nimport { createCurrencySemantic } from '../../../definitions/Currency.js'\nimport { createSummarySemantic } from '../../../definitions/Summary.js'\nimport {\n addAvatarUrlField,\n addCreatedAtField,\n addDescriptionField,\n addEmailField,\n addFirstNameField,\n addIdField,\n addLastNameField,\n addNameField,\n addPasswordField,\n addPhoneField,\n addPublicUniqueNameField,\n addUpdatedAtField,\n addSkuField,\n addPriceField,\n addQuantityField,\n addWeightField,\n addImagesField,\n addCustomStatusField,\n addBooleanField,\n addSessionIdField,\n addExpiresAtField,\n addUnitPriceField,\n addCurrencyAmountField,\n} from '../../../helpers/Intelisense.js'\nimport type { CreateTemplateOptions } from '../../types.js'\n\nfunction createDomain(): DataDomain {\n return new DataDomain({\n info: {\n name: 'E-Commerce Platform',\n displayName: 'E-Commerce Platform',\n description:\n 'A comprehensive e-commerce platform with user management, product catalog, and order processing capabilities',\n },\n })\n}\n\n/**\n * Creates a comprehensive e-commerce data domain following domain-driven design principles.\n *\n * This function demonstrates the proper hierarchy and organization for a business domain:\n * 1. Creates the root DataDomain\n * 2. Organizes functionality into logical namespaces (User Management, Product Catalog, etc.)\n * 3. Groups related entities into models within each namespace\n * 4. Defines entities with proper semantic annotations\n * 5. Establishes associations with appropriate cardinality and business rules\n *\n * @returns A fully configured DataDomain with all e-commerce entities and relationships\n */\nexport default function createEcommerceDomain(options: CreateTemplateOptions = {}): DataDomain {\n // Ensure the root data domain\n const domain = options.domain ?? createDomain()\n\n //\n // 1. USER MANAGEMENT NAMESPACE\n //\n const userManagement = domain.addNamespace({\n info: {\n name: 'UserManagement',\n displayName: 'User Management',\n description: 'Handles user authentication, authorization, and profile management',\n },\n })\n\n // User Authentication Model\n const authModel = userManagement.addModel({\n info: {\n name: 'Authentication',\n displayName: 'User Authentication',\n description: 'User accounts and authentication data',\n },\n })\n\n // User Entity - The core user account\n const userEntity = authModel.addEntity({\n info: {\n name: 'User',\n displayName: 'User Account',\n description: 'Represents a user account in the system',\n },\n semantics: [{ id: SemanticType.User }], // Mark this as a User entity for system-wide recognition\n })\n\n // User properties with proper semantic annotations\n addIdField(userEntity, { displayName: 'User ID', description: 'Unique identifier for the user' })\n addEmailField(userEntity, { description: 'User email address for login and communication' })\n addPasswordField(userEntity, { description: 'User password for authentication' })\n\n const fName = addFirstNameField(userEntity, { description: 'User first name' })\n fName.required = true\n\n const lName = addLastNameField(userEntity, { description: 'User last name' })\n lName.required = true\n\n userEntity.addProperty({\n info: { name: 'role', displayName: 'User Role', description: 'User role for permission management' },\n type: 'string',\n required: true,\n schema: {\n enum: ['customer', 'admin', 'moderator'],\n defaultValue: {\n type: 'literal',\n value: 'customer',\n },\n },\n semantics: [{ id: SemanticType.UserRole }],\n })\n\n userEntity.addProperty({\n info: {\n name: 'email_verified',\n displayName: 'Email Verified',\n description: 'Whether the user has verified their email address',\n },\n type: 'boolean',\n required: true,\n schema: {\n defaultValue: {\n type: 'literal',\n value: 'false',\n },\n },\n })\n\n addCreatedAtField(userEntity, { description: 'When the user account was created' })\n addUpdatedAtField(userEntity, { description: 'When the user account was last updated' })\n\n // User Profile Model\n const profileModel = userManagement.addModel({\n info: {\n name: 'UserProfile',\n displayName: 'User Profile',\n description: 'Extended user profile information',\n },\n })\n\n // User Profile Entity\n const userProfileEntity = profileModel.addEntity({\n info: {\n name: 'user_profile',\n displayName: 'User Profile',\n description: 'Extended profile information for users',\n },\n })\n\n addIdField(userProfileEntity, { displayName: 'Profile ID', description: 'Unique identifier for the profile' })\n\n userProfileEntity.addProperty({\n info: { name: 'birthdate', displayName: 'Date of Birth', description: 'User date of birth' },\n type: 'date',\n })\n\n addPhoneField(userProfileEntity, { description: 'User phone number' })\n addAvatarUrlField(userProfileEntity, { description: 'URL to user profile picture' })\n\n // User-Profile Association (One-to-One), not required for registration flows.\n userEntity.addAssociation(\n { key: userProfileEntity.key },\n {\n info: { name: 'profile', displayName: 'User Profile', description: 'Link to extended profile information' },\n required: false,\n multiple: false,\n }\n )\n\n // Address Entity\n const addressEntity = profileModel.addEntity({\n info: {\n name: 'address',\n displayName: 'Address',\n description: 'Physical address information',\n },\n })\n\n addIdField(addressEntity, { displayName: 'Address ID', description: 'Unique identifier for the address' })\n\n addressEntity.addProperty({\n info: { name: 'type', displayName: 'Address Type', description: 'Type of address (shipping, billing, etc.)' },\n type: 'string',\n required: true,\n schema: {\n enum: ['shipping', 'billing', 'both'],\n },\n })\n\n addressEntity.addProperty({\n info: {\n name: 'line1',\n displayName: 'Address Line 1',\n description: 'Primary street address, including house number and street name',\n },\n type: 'string',\n required: true,\n })\n\n addressEntity.addProperty({\n info: {\n name: 'line2',\n displayName: 'Address Line 2',\n description: 'Optional field for additional street-level information like apartment numbers or building names.',\n },\n type: 'string',\n required: false,\n })\n\n addressEntity.addProperty({\n info: {\n name: 'line3',\n displayName: 'Address Line 3',\n description: 'Optional field for additional street-level information like apartment numbers or building names.',\n },\n type: 'string',\n required: false,\n })\n\n addressEntity.addProperty({\n info: { name: 'city', displayName: 'City', description: 'City name' },\n type: 'string',\n required: true,\n })\n\n addressEntity.addProperty({\n info: { name: 'state', displayName: 'State/Province', description: 'State or province' },\n type: 'string',\n required: true,\n })\n\n addressEntity.addProperty({\n info: { name: 'postal_code', displayName: 'ZIP/Postal Code', description: 'ZIP or postal code' },\n type: 'string',\n required: true,\n })\n\n addressEntity.addProperty({\n info: { name: 'country', displayName: 'Country', description: 'Country name' },\n type: 'string',\n required: true,\n })\n\n // User-Address Association (One-to-Many)\n userEntity.addAssociation(\n { key: addressEntity.key },\n {\n info: { name: 'addresses', displayName: 'User Addresses', description: 'User shipping and billing addresses' },\n required: false,\n multiple: true,\n }\n )\n\n //\n // 2. PRODUCT CATALOG NAMESPACE\n //\n const productCatalog = domain.addNamespace({\n info: {\n name: 'ProductCatalog',\n displayName: 'Product Catalog',\n description: 'Product information, categories, and inventory management',\n },\n })\n\n // Product Management Model\n const productModel = productCatalog.addModel({\n info: {\n name: 'Products',\n displayName: 'Product Management',\n description: 'Core product entities and relationships',\n },\n })\n\n // Category Entity\n const categoryEntity = productModel.addEntity({\n info: {\n name: 'category',\n displayName: 'Product Category',\n description: 'Product categorization for organization and navigation',\n },\n })\n addIdField(categoryEntity, { displayName: 'Category ID', description: 'Unique identifier for the category' })\n addNameField(categoryEntity, { displayName: 'Category Name', description: 'Display name of the category' })\n addPublicUniqueNameField(categoryEntity, {\n displayName: 'URL Slug',\n description: 'URL-friendly identifier for the category',\n })\n addDescriptionField(categoryEntity, { description: 'Category description' })\n\n // Self-referencing association for category hierarchy\n categoryEntity.addAssociation(\n { key: categoryEntity.key },\n {\n info: {\n name: 'parent_category',\n displayName: 'Parent Category',\n description: 'Parent category for hierarchical organization',\n },\n required: false,\n multiple: false,\n }\n )\n\n // Product Entity\n const productEntity = productModel.addEntity({\n info: {\n name: 'product',\n displayName: 'Product',\n description: 'Core product information and specifications',\n },\n })\n\n addIdField(productEntity, { displayName: 'Product ID', description: 'Unique identifier for the product' })\n addNameField(productEntity, { displayName: 'Product Name', description: 'Display name of the product' })\n addPublicUniqueNameField(productEntity, {\n displayName: 'URL Slug',\n description: 'URL-friendly identifier for the product',\n })\n addDescriptionField(productEntity, { description: 'Detailed product description' })\n\n productEntity.addProperty({\n info: { name: 'short_description', displayName: 'Short Description', description: 'Brief product summary' },\n type: 'string',\n semantics: [createSummarySemantic()],\n })\n\n addSkuField(productEntity, { description: 'Stock Keeping Unit - unique product identifier' })\n\n addPriceField(productEntity, { description: 'Product price in cents (USD)' })\n\n productEntity.addProperty({\n info: {\n name: 'compare_at_price',\n displayName: 'Compare at Price',\n description: 'Original price for discount display',\n },\n type: 'number',\n schema: {\n maximum: 0,\n },\n bindings: [\n {\n type: 'web',\n schema: {\n dataType: 'float',\n },\n },\n ],\n semantics: [\n createCurrencySemantic({\n storageFormat: 'integer_cents',\n defaultCurrency: 'USD',\n decimalPlaces: 2,\n allowNegative: false,\n validateCurrencyCode: true,\n }),\n ],\n })\n\n addCustomStatusField(productEntity, ['inactive', 'active', 'pending', 'archived'], {\n description: 'Current status of the product',\n })\n\n addWeightField(productEntity, { description: 'Product weight in grams' })\n\n addImagesField(productEntity, { description: 'Array of product image URLs' })\n\n addCreatedAtField(productEntity, { description: 'When the product was created' })\n addUpdatedAtField(productEntity, { description: 'When the product was last updated' })\n\n // Product-Category Association (Many-to-Many)\n productEntity.addAssociation(\n { key: categoryEntity.key },\n {\n info: {\n name: 'categories',\n displayName: 'Product Categories',\n description: 'Categories this product belongs to',\n },\n required: true,\n multiple: true,\n semantics: [{ id: SemanticType.Categories }],\n }\n )\n\n // Inventory Model\n const inventoryModel = productCatalog.addModel({\n info: {\n name: 'Inventory',\n displayName: 'Inventory Management',\n description: 'Stock levels and inventory tracking',\n },\n })\n\n // Inventory Entity\n const inventoryEntity = inventoryModel.addEntity({\n info: {\n name: 'inventory',\n displayName: 'Inventory',\n description: 'Stock levels and inventory information for products',\n },\n })\n\n addIdField(inventoryEntity, {\n displayName: 'Inventory ID',\n description: 'Unique identifier for the inventory record',\n })\n\n addQuantityField(inventoryEntity, { displayName: 'Stock Quantity', description: 'Available stock quantity' })\n\n const reservedQty = addQuantityField(inventoryEntity, {\n name: 'reserved_quantity',\n displayName: 'Reserved Quantity',\n description: 'Quantity reserved for pending orders',\n })\n reservedQty.schema = {\n defaultValue: {\n type: 'literal',\n value: '0',\n },\n minimum: 0,\n }\n\n addBooleanField(inventoryEntity, 'trackQuantity', 'true', {\n displayName: 'Track Quantity',\n description: 'Whether to track inventory for this product',\n })\n\n addBooleanField(inventoryEntity, 'allowBackorder', 'false', {\n displayName: 'Allow Backorder',\n description: 'Whether to allow ordering when out of stock',\n })\n\n // Product-Inventory Association (One-to-One)\n productEntity.addAssociation(\n { key: inventoryEntity.key },\n {\n info: {\n name: 'inventory',\n displayName: 'Product Inventory',\n description: 'Inventory information for this product',\n },\n required: true,\n multiple: false,\n }\n )\n\n //\n // 3. ORDER MANAGEMENT NAMESPACE\n //\n const orderManagement = domain.addNamespace({\n info: {\n name: 'OrderManagement',\n displayName: 'Order Management',\n description: 'Shopping cart, orders, and payment processing',\n },\n })\n\n // Shopping Cart Model\n const cartModel = orderManagement.addModel({\n info: {\n name: 'ShoppingCart',\n displayName: 'Shopping Cart',\n description: 'Shopping cart and cart items',\n },\n })\n\n // Cart Entity\n const cartEntity = cartModel.addEntity({\n info: {\n name: 'cart',\n displayName: 'Shopping Cart',\n description: 'User shopping cart',\n },\n })\n\n addIdField(cartEntity, { displayName: 'Cart ID', description: 'Unique identifier for the cart' })\n\n addSessionIdField(cartEntity, { description: 'Session identifier for guest carts' })\n\n addExpiresAtField(cartEntity, { description: 'When the cart expires for cleanup' })\n\n addCreatedAtField(cartEntity, { description: 'When the cart was created' })\n addUpdatedAtField(cartEntity, { description: 'When the cart was last updated' })\n\n // Cart-User Association (Many-to-One)\n cartEntity.addAssociation(\n { key: userEntity.key },\n {\n info: { name: 'user', displayName: 'Cart Owner', description: 'User who owns this cart' },\n required: false,\n multiple: false,\n semantics: [{ id: SemanticType.ResourceOwnerIdentifier }],\n }\n )\n\n // Cart Item Entity\n const cartItemEntity = cartModel.addEntity({\n info: {\n name: 'cart_item',\n displayName: 'Cart Item',\n description: 'Individual items in a shopping cart',\n },\n })\n\n addIdField(cartItemEntity, { displayName: 'Cart Item ID', description: 'Unique identifier for the cart item' })\n\n const cartItemQuantity = addQuantityField(cartItemEntity, { description: 'Number of items' })\n cartItemQuantity.schema = { minimum: 1 }\n\n const cartUnitPrice = addUnitPriceField(cartItemEntity, { description: 'Price per unit at time of adding to cart' })\n\n cartItemEntity.addProperty({\n info: { name: 'total_price', displayName: 'Total Price', description: 'Total price for this line item' },\n type: 'number',\n required: true,\n readOnly: true,\n semantics: [\n createCurrencySemantic({\n storageFormat: 'integer_cents',\n defaultCurrency: 'USD',\n decimalPlaces: 2,\n allowNegative: false,\n }),\n createCalculatedSemantic({\n formula: '{{unitPrice}} * {{quantity}}',\n dependencies: [cartUnitPrice.key, cartItemQuantity.key],\n recalculateOnUpdate: true,\n }),\n ],\n })\n\n // Cart-CartItem Association (One-to-Many)\n cartEntity.addAssociation(\n { key: cartItemEntity.key },\n {\n info: { name: 'items', displayName: 'Cart Items', description: 'Items in this cart' },\n required: false,\n multiple: true,\n onDelete: 'cascade',\n }\n )\n\n // CartItem-Product Association (Many-to-One)\n cartItemEntity.addAssociation(\n { key: productEntity.key },\n {\n info: { name: 'product', displayName: 'Product', description: 'Product for this cart item' },\n required: true,\n multiple: false,\n }\n )\n\n // Order Processing Model\n const orderModel = orderManagement.addModel({\n info: {\n name: 'Orders',\n displayName: 'Order Processing',\n description: 'Orders and order fulfillment',\n },\n })\n\n // Order Entity\n const orderEntity = orderModel.addEntity({\n info: {\n name: 'order',\n displayName: 'Order',\n description: 'Customer order',\n },\n })\n\n addIdField(orderEntity, { displayName: 'Order ID', description: 'Unique identifier for the order' })\n\n orderEntity.addProperty({\n info: { name: 'order_number', displayName: 'Order Number', description: 'Human-readable order number' },\n type: 'string',\n required: true,\n unique: true,\n })\n\n addCustomStatusField(\n orderEntity,\n ['pending', 'confirmed', 'processing', 'shipped', 'delivered', 'cancelled', 'refunded'],\n {\n displayName: 'Order Status',\n description: 'Current status of the order',\n }\n )\n\n const subtotal = addCurrencyAmountField(orderEntity, 'subtotal', 'Subtotal', {\n description: 'Order subtotal before taxes and shipping',\n })\n\n const taxAmount = addCurrencyAmountField(orderEntity, 'taxAmount', 'Tax Amount', {\n description: 'Total tax amount',\n })\n\n const shippingAmount = addCurrencyAmountField(orderEntity, 'shippingAmount', 'Shipping Amount', {\n description: 'Shipping cost',\n })\n\n orderEntity.addProperty({\n info: { name: 'total_amount', displayName: 'Total Amount', description: 'Final order total' },\n type: 'number',\n required: true,\n semantics: [\n createCurrencySemantic({\n storageFormat: 'integer_cents',\n defaultCurrency: 'USD',\n decimalPlaces: 2,\n allowNegative: false,\n }),\n createCalculatedSemantic({\n formula: '{{subtotal}} + {{taxAmount}} + {{shippingAmount}}',\n dependencies: [subtotal.key, taxAmount.key, shippingAmount.key],\n recalculateOnUpdate: true,\n }),\n ],\n })\n\n orderEntity.addProperty({\n info: { name: 'notes', displayName: 'Order Notes', description: 'Customer notes or special instructions' },\n type: 'string',\n })\n\n addCreatedAtField(orderEntity, { description: 'When the order was created' })\n addUpdatedAtField(orderEntity, { description: 'When the order was last updated' })\n\n // Order-User Association (Many-to-One)\n orderEntity.addAssociation(\n { key: userEntity.key },\n {\n info: { name: 'customer', displayName: 'Customer', description: 'Customer who placed this order' },\n required: true,\n multiple: false,\n semantics: [{ id: SemanticType.ResourceOwnerIdentifier }],\n }\n )\n\n // Order-Address Associations (Many-to-One)\n orderEntity.addAssociation(\n { key: addressEntity.key },\n {\n info: { name: 'shipping_address', displayName: 'Shipping Address', description: 'Address for order delivery' },\n required: true,\n multiple: false,\n }\n )\n\n orderEntity.addAssociation(\n { key: addressEntity.key },\n {\n info: { name: 'billing_address', displayName: 'Billing Address', description: 'Address for billing purposes' },\n required: true,\n multiple: false,\n }\n )\n\n // Order Line Item Entity\n const orderItemEntity = orderModel.addEntity({\n info: {\n name: 'order_item',\n displayName: 'Order Line Item',\n description: 'Individual line items in an order',\n },\n })\n\n addIdField(orderItemEntity, { displayName: 'Order Item ID', description: 'Unique identifier for the order item' })\n\n const quantity = addQuantityField(orderItemEntity, { description: 'Number of items ordered' })\n quantity.schema = { minimum: 1 }\n\n const unitPrice = addUnitPriceField(orderItemEntity, { description: 'Price per unit at time of order' })\n\n orderItemEntity.addProperty({\n info: { name: 'total_price', displayName: 'Total Price', description: 'Total price for this line item' },\n type: 'number',\n required: true,\n readOnly: true,\n semantics: [\n createCurrencySemantic({\n storageFormat: 'integer_cents',\n defaultCurrency: 'USD',\n decimalPlaces: 2,\n allowNegative: false,\n }),\n createCalculatedSemantic({\n formula: '{{quantity}} * {{unitPrice}}',\n dependencies: [quantity.key, unitPrice.key],\n recalculateOnUpdate: true,\n }),\n ],\n })\n\n // orderItemEntity.addProperty({\n // info: {\n // name: 'productSnapshot',\n // displayName: 'Product Snapshot',\n // description: 'Snapshot of product data at time of order',\n // },\n // type: 'object',\n // required: true,\n // readOnly: true,\n // })\n\n // Order-OrderItem Association (One-to-Many)\n orderEntity.addAssociation(\n { key: orderItemEntity.key },\n {\n info: { name: 'items', displayName: 'Order Items', description: 'Items in this order' },\n required: true,\n multiple: true,\n onDelete: 'cascade',\n }\n )\n\n // OrderItem-Product Association (Many-to-One)\n orderItemEntity.addAssociation(\n { key: productEntity.key },\n {\n info: { name: 'product', displayName: 'Product', description: 'Product for this order item' },\n required: true,\n multiple: false,\n }\n )\n\n // Payment Model\n const paymentModel = orderManagement.addModel({\n info: {\n name: 'Payments',\n displayName: 'Payment Processing',\n description: 'Payment methods and transactions',\n },\n })\n\n // Payment Entity\n const paymentEntity = paymentModel.addEntity({\n info: {\n name: 'payment',\n displayName: 'Payment',\n description: 'Payment transaction record',\n },\n })\n\n addIdField(paymentEntity, { displayName: 'Payment ID', description: 'Unique identifier for the payment' })\n\n paymentEntity.addProperty({\n info: { name: 'method', displayName: 'Payment Method', description: 'Method used for payment' },\n type: 'string',\n required: true,\n schema: {\n enum: ['credit_card', 'debit_card', 'paypal', 'bank_transfer', 'apple_pay', 'google_pay'],\n },\n })\n\n addCustomStatusField(paymentEntity, ['pending', 'authorized', 'captured', 'failed', 'cancelled', 'refunded'], {\n displayName: 'Payment Status',\n description: 'Current status of the payment',\n })\n\n addCurrencyAmountField(paymentEntity, 'amount', 'Payment Amount', { description: 'Amount charged' })\n\n paymentEntity.addProperty({\n info: { name: 'currency', displayName: 'Currency', description: 'Currency code for the payment' },\n type: 'string',\n required: true,\n schema: {\n defaultValue: {\n type: 'literal',\n value: 'USD',\n },\n },\n })\n\n paymentEntity.addProperty({\n info: {\n name: 'transaction_id',\n displayName: 'Transaction ID',\n description: 'External payment processor transaction ID',\n },\n type: 'string',\n })\n\n // paymentEntity.addProperty({\n // info: {\n // name: 'gatewayResponse',\n // displayName: 'Gateway Response',\n // description: 'Raw response from payment gateway',\n // },\n // type: 'object',\n // readOnly: true,\n // })\n\n addCreatedAtField(paymentEntity, { description: 'When the payment was created' })\n\n // Order-Payment Association (One-to-Many)\n orderEntity.addAssociation(\n { key: paymentEntity.key },\n {\n info: { name: 'payments', displayName: 'Order Payments', description: 'Payment transactions for this order' },\n required: false,\n multiple: true,\n onDelete: 'restrict', // Don't allow order deletion if payments exist\n }\n )\n\n return domain\n}\n"]}
|
package/build/src/modeling/templates/verticals/business-services/financial-services-domain.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Financial Services Data Domain Example
|
|
3
|
+
*
|
|
4
|
+
* This file demonstrates how to create a comprehensive financial services data domain
|
|
5
|
+
* using the API Client Core modeling system. It follows the business-first approach
|
|
6
|
+
* and demonstrates proper use of namespaces, models, entities, properties,
|
|
7
|
+
* associations, and semantic annotations.
|
|
8
|
+
*
|
|
9
|
+
* The example includes:
|
|
10
|
+
* - Account Management with bank accounts, investment accounts, and credit cards
|
|
11
|
+
* - Transaction Processing with payments, transfers, deposits, and withdrawals
|
|
12
|
+
* - Customer Management with KYC, risk profiles, and customer segments
|
|
13
|
+
* - Investment Portfolio with assets, positions, and performance tracking
|
|
14
|
+
* - Compliance & Reporting with regulatory reporting and audit trails
|
|
15
|
+
* - Fraud Detection with transaction monitoring and risk scoring
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import { createFinancialServicesDomain } from './financial-services-domain.js'
|
|
20
|
+
*
|
|
21
|
+
* const domain = createFinancialServicesDomain()
|
|
22
|
+
* console.log('Financial Services domain created with', domain.graph.nodeCount(), 'nodes')
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
import { DataDomain } from '../../../DataDomain.js';
|
|
26
|
+
import type { CreateTemplateOptions } from '../../types.js';
|
|
27
|
+
/**
|
|
28
|
+
* Creates a comprehensive financial services data domain following domain-driven design principles.
|
|
29
|
+
*
|
|
30
|
+
* This function demonstrates the proper hierarchy and organization for a financial services platform:
|
|
31
|
+
* 1. Creates the root DataDomain for the financial services platform
|
|
32
|
+
* 2. Organizes functionality into logical namespaces (Customer Management, Account Management, etc.)
|
|
33
|
+
* 3. Groups related entities into models within each namespace
|
|
34
|
+
* 4. Defines entities with proper semantic annotations for financial workflows
|
|
35
|
+
* 5. Establishes associations with appropriate cardinality for customer-account relationships
|
|
36
|
+
*
|
|
37
|
+
* @returns A fully configured DataDomain with all financial services entities and relationships
|
|
38
|
+
*/
|
|
39
|
+
export default function createFinancialServicesDomain(options?: CreateTemplateOptions): DataDomain;
|
|
40
|
+
//# sourceMappingURL=financial-services-domain.d.ts.map
|
package/build/src/modeling/templates/verticals/business-services/financial-services-domain.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"financial-services-domain.d.ts","sourceRoot":"","sources":["../../../../../../src/modeling/templates/verticals/business-services/financial-services-domain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAcnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAc3D;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,6BAA6B,CAAC,OAAO,GAAE,qBAA0B,GAAG,UAAU,CA62BrG"}
|