@eventcatalog/create-eventcatalog 3.0.10 → 3.0.12

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 (59) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
  3. package/templates/default/domains/Orders/entities/CartItem/index.mdx +121 -0
  4. package/templates/default/domains/Orders/entities/Customer/index.mdx +57 -0
  5. package/templates/default/domains/Orders/entities/Order/index.mdx +96 -0
  6. package/templates/default/domains/Orders/entities/OrderItem/index.mdx +59 -0
  7. package/templates/default/domains/Orders/entities/ShoppingCart/index.mdx +148 -0
  8. package/templates/default/domains/Orders/index.mdx +13 -0
  9. package/templates/default/domains/Payment/entities/Address/index.mdx +162 -0
  10. package/templates/default/domains/Payment/entities/Invoice/index.mdx +89 -0
  11. package/templates/default/domains/Payment/entities/Payment/index.mdx +137 -0
  12. package/templates/default/domains/Payment/entities/PaymentMethod/index.mdx +77 -0
  13. package/templates/default/domains/Payment/entities/Transaction/index.mdx +77 -0
  14. package/templates/default/domains/Payment/index.mdx +17 -1
  15. package/templates/default/domains/Payment/services/FraudDetectionService/events/FraudCheckCompleted/index.mdx +48 -0
  16. package/templates/default/domains/Payment/services/FraudDetectionService/events/FraudCheckCompleted/schema.json +44 -0
  17. package/templates/default/domains/Payment/services/FraudDetectionService/index.mdx +59 -0
  18. package/templates/default/domains/Payment/services/PaymentGatewayService/commands/ProcessPayment/index.mdx +72 -0
  19. package/templates/default/domains/Payment/services/PaymentGatewayService/commands/ProcessPayment/schema.json +58 -0
  20. package/templates/default/domains/Payment/services/PaymentGatewayService/events/PaymentFailed/index.mdx +60 -0
  21. package/templates/default/domains/Payment/services/PaymentGatewayService/events/PaymentFailed/schema.json +68 -0
  22. package/templates/default/domains/Payment/services/PaymentGatewayService/index.mdx +78 -0
  23. package/templates/default/domains/ProductCatalog/entities/Category/index.mdx +124 -0
  24. package/templates/default/domains/ProductCatalog/entities/Inventory/index.mdx +116 -0
  25. package/templates/default/domains/ProductCatalog/entities/Product/index.mdx +115 -0
  26. package/templates/default/domains/ProductCatalog/entities/Review/index.mdx +154 -0
  27. package/templates/default/domains/ProductCatalog/index.mdx +74 -0
  28. package/templates/default/domains/Subscriptions/entities/BillingProfile/index.mdx +68 -0
  29. package/templates/default/domains/Subscriptions/entities/SubscriptionPeriod/index.mdx +73 -0
  30. package/templates/default/domains/Subscriptions/index.mdx +13 -2
  31. package/templates/default/domains/Subscriptions/services/BillingService/events/SubscriptionPaymentDue/index.mdx +60 -0
  32. package/templates/default/domains/Subscriptions/services/BillingService/events/SubscriptionPaymentDue/schema.json +54 -0
  33. package/templates/default/domains/Subscriptions/services/BillingService/index.mdx +86 -0
  34. package/templates/default/domains/Subscriptions/services/PlanManagementService/index.mdx +93 -0
  35. package/templates/graphql/Dockerfile +23 -0
  36. package/templates/graphql/Dockerfile.server +23 -0
  37. package/templates/graphql/README-template.md +1 -0
  38. package/templates/graphql/dockerignore +8 -0
  39. package/templates/graphql/env +9 -0
  40. package/templates/graphql/eventcatalog.auth.js +45 -0
  41. package/templates/graphql/eventcatalog.config.js +60 -0
  42. package/templates/graphql/eventcatalog.styles.css +1 -0
  43. package/templates/graphql/gitignore +27 -0
  44. package/templates/graphql/graphql-files/orders-service.graphql +76 -0
  45. package/templates/graphql/graphql-files/payment-service.graphql +327 -0
  46. package/templates/graphql/npmrc +1 -0
  47. package/templates/graphql/public/logo.png +0 -0
  48. package/templates/graphql/teams/order-management.mdx +31 -0
  49. package/templates/graphql/teams/payment-management.mdx +18 -0
  50. package/templates/graphql/teams/product-management.mdx +18 -0
  51. package/templates/graphql/users/aSmith.mdx +27 -0
  52. package/templates/graphql/users/alee.mdx +8 -0
  53. package/templates/graphql/users/azhang.mdx +11 -0
  54. package/templates/graphql/users/dboyne.mdx +32 -0
  55. package/templates/graphql/users/dkim.mdx +11 -0
  56. package/templates/graphql/users/jbrown.mdx +11 -0
  57. package/templates/graphql/users/mSmith.mdx +8 -0
  58. package/templates/index.ts +4 -0
  59. package/templates/types.ts +1 -1
@@ -0,0 +1,27 @@
1
+ ---
2
+ id: asmith
3
+ name: Amy Smith
4
+ avatarUrl: https://randomuser.me/api/portraits/women/48.jpg
5
+ role: Product owner
6
+ ---
7
+
8
+ Hello! I'm Amy Smith, the Product Owner of the innovative Full Stackers team. With a strong focus on delivering exceptional value, I specialize in connecting business objectives with technical solutions to create products that users love.
9
+
10
+ ### About Me
11
+
12
+ With a comprehensive background in product management and a solid understanding of software development, I bring a unique perspective to the table. My career has been driven by a passion for understanding user needs, defining clear product visions, and leading teams to successful product deliveries.
13
+
14
+ ### What I Do
15
+
16
+ As the Product Owner for Full Stackers, my role involves a wide range of responsibilities aimed at ensuring our products are both high-quality and user-centric. Key aspects of my role include:
17
+
18
+ - **Product Vision & Strategy**: Defining and communicating the long-term vision and strategy for our products, ensuring alignment with the company's objectives and market demands.
19
+ - **Roadmap Planning**: Developing and maintaining a product roadmap that highlights key features and milestones, prioritizing tasks based on their business value and user feedback.
20
+ - **Stakeholder Management**: Engaging with stakeholders across the organization to gather requirements, provide updates, and ensure everyone is aligned on the product's direction.
21
+ - **User-Centric Design**: Championing the end-users by conducting user research, analyzing feedback, and ensuring our products effectively solve their problems.
22
+ - **Agile Leadership**: Leading the development process using Agile methodologies, facilitating sprint planning, and ensuring the team has clear priorities and objectives.
23
+
24
+ My mission is to deliver products that not only meet but exceed customer expectations. I thrive on the challenge of translating complex requirements into simple, intuitive solutions.
25
+
26
+ If you’re interested in product management, user experience, or discussing the latest trends in technology, feel free to reach out!
27
+
@@ -0,0 +1,8 @@
1
+ ---
2
+ id: alee
3
+ name: Alice Lee
4
+ avatarUrl: https://randomuser.me/api/portraits/women/91.jpg
5
+ role: Technical Writer
6
+ ---
7
+
8
+ As a Technical Writer on the Documentation team, I create clear, comprehensive documentation for our products and APIs. My focus is on making complex technical concepts accessible to developers and end-users alike. I collaborate with engineering teams to ensure our documentation stays current and accurate.
@@ -0,0 +1,11 @@
1
+ ---
2
+ id: azhang
3
+ name: Alice Zhang
4
+ avatarUrl: https://randomuser.me/api/portraits/women/97.jpg
5
+ role: Data Engineer
6
+ email: azhang@company.com
7
+ slackDirectMessageUrl: https://yourteam.slack.com/channels/azhang
8
+ msTeamsDirectMessageUrl: https://teams.microsoft.com/l/chat/0/0?users=azhang@company.com
9
+ ---
10
+
11
+ Building and maintaining data pipelines and infrastructure...
@@ -0,0 +1,32 @@
1
+ ---
2
+ id: dboyne
3
+ name: David Boyne
4
+ avatarUrl: "https://pbs.twimg.com/profile_images/1262283153563140096/DYRDqKg6_400x400.png"
5
+ role: Lead developer
6
+ email: test@test.com
7
+ slackDirectMessageUrl: https://yourteam.slack.com/channels/boyney123
8
+ ---
9
+
10
+ Hello! I'm David Boyne, the Tech Lead of an amazing team called Full Stackers. With a passion for building robust and scalable systems, I specialize in designing and implementing event-driven architectures that power modern, responsive applications.
11
+
12
+ ### About Me
13
+
14
+ With over a decade of experience in the tech industry, I have honed my skills in full-stack development, cloud computing, and distributed systems. My journey has taken me through various roles, from software engineer to architect, and now as a tech lead, I am committed to driving innovation and excellence within my team.
15
+
16
+ ### What I Do
17
+
18
+ At Full Stackers, we focus on creating seamless and efficient event-driven architectures that enhance the performance and scalability of our applications. My role involves:
19
+
20
+ - **Architecture Design**: Crafting scalable and resilient system architectures using event-driven paradigms.
21
+ - **Team Leadership**: Guiding a talented team of developers, fostering a collaborative and innovative environment.
22
+ - **Code Reviews & Mentorship**: Ensuring code quality and sharing knowledge to help the team grow.
23
+ - **Stakeholder Collaboration**: Working closely with other teams and stakeholders to align our technical solutions with business goals.
24
+ - **Continuous Improvement**: Advocating for best practices in software development, deployment, and monitoring.
25
+
26
+ I am passionate about leveraging the power of events to build systems that are not only highly responsive but also easier to maintain and extend. In an ever-evolving tech landscape, I strive to stay ahead of the curve, continuously learning and adapting to new technologies and methodologies.
27
+
28
+ Feel free to connect with me to discuss all things tech, event-driven architectures, or to exchange ideas on building better software systems!
29
+
30
+ ---
31
+ *David Boyne*
32
+ *Tech Lead, Full Stackers*
@@ -0,0 +1,11 @@
1
+ ---
2
+ id: dkim
3
+ name: David Kim
4
+ avatarUrl: https://randomuser.me/api/portraits/men/96.jpg
5
+ role: Performance Engineer
6
+ email: dkim@company.com
7
+ slackDirectMessageUrl: https://yourteam.slack.com/channels/dkim
8
+ msTeamsDirectMessageUrl: https://teams.microsoft.com/l/chat/0/0?users=dkim@company.com
9
+ ---
10
+
11
+ Optimizing application performance and user experience...
@@ -0,0 +1,11 @@
1
+ ---
2
+ id: jbrown
3
+ name: Jessica Brown
4
+ avatarUrl: https://randomuser.me/api/portraits/women/95.jpg
5
+ role: UI/UX Designer
6
+ email: jbrown@company.com
7
+ slackDirectMessageUrl: https://yourteam.slack.com/channels/jbrown
8
+ msTeamsDirectMessageUrl: https://teams.microsoft.com/l/chat/0/0?users=jbrown@company.com
9
+ ---
10
+
11
+ Creating intuitive and engaging user interfaces...
@@ -0,0 +1,8 @@
1
+ ---
2
+ id: msmith
3
+ name: Martin Smith
4
+ avatarUrl: "https://randomuser.me/api/portraits/men/51.jpg"
5
+ role: Senior software engineer
6
+ ---
7
+
8
+ As a Senior Mobile Developer on The Mobile Devs team, I play a key role in designing, developing, and maintaining our company’s mobile applications. My focus is on creating a seamless and intuitive user experience for our customers on both iOS and Android platforms. I work closely with cross-functional teams, including backend developers, UX/UI designers, and product managers, to deliver high-quality mobile solutions that meet business objectives and exceed user expectations.
@@ -82,6 +82,10 @@ export const installTemplate = async ({
82
82
  dependencies.push("@eventcatalog/generator-openapi");
83
83
  }
84
84
 
85
+ if (template === "graphql") {
86
+ dependencies.push("@eventcatalog/generator-graphql");
87
+ }
88
+
85
89
  if (template === "confluent") {
86
90
  dependencies.push("@eventcatalog/generator-confluent-schema-registry");
87
91
  }
@@ -1,6 +1,6 @@
1
1
  import { PackageManager } from "../helpers/get-pkg-manager";
2
2
 
3
- export type TemplateType = "default" | "app" | "empty" | "asyncapi" | "openapi" | "confluent" | "eventbridge" | "amazon-apigateway";
3
+ export type TemplateType = "default" | "app" | "empty" | "asyncapi" | "openapi" | "confluent" | "eventbridge" | "amazon-apigateway" | "graphql";
4
4
  export type TemplateMode = "js" | "ts";
5
5
 
6
6
  export interface GetTemplateFileArgs {