nitrostack 1.0.54 → 1.0.56

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 (220) hide show
  1. package/dist/cli/commands/init.d.ts.map +1 -1
  2. package/dist/cli/commands/init.js +14 -9
  3. package/dist/cli/commands/init.js.map +1 -1
  4. package/dist/widgets/hooks/index.d.ts +7 -0
  5. package/dist/widgets/hooks/index.d.ts.map +1 -0
  6. package/dist/widgets/hooks/index.js +7 -0
  7. package/dist/widgets/hooks/index.js.map +1 -0
  8. package/dist/widgets/hooks/use-display-mode.d.ts +11 -0
  9. package/dist/widgets/hooks/use-display-mode.d.ts.map +1 -0
  10. package/dist/widgets/hooks/use-display-mode.js +13 -0
  11. package/dist/widgets/hooks/use-display-mode.js.map +1 -0
  12. package/dist/widgets/hooks/use-max-height.d.ts +10 -0
  13. package/dist/widgets/hooks/use-max-height.d.ts.map +1 -0
  14. package/dist/widgets/hooks/use-max-height.js +13 -0
  15. package/dist/widgets/hooks/use-max-height.js.map +1 -0
  16. package/dist/widgets/hooks/use-openai-global.d.ts +12 -0
  17. package/dist/widgets/hooks/use-openai-global.d.ts.map +1 -0
  18. package/dist/widgets/hooks/use-openai-global.js +32 -0
  19. package/dist/widgets/hooks/use-openai-global.js.map +1 -0
  20. package/dist/widgets/hooks/use-theme.d.ts +10 -0
  21. package/dist/widgets/hooks/use-theme.d.ts.map +1 -0
  22. package/dist/widgets/hooks/use-theme.js +12 -0
  23. package/dist/widgets/hooks/use-theme.js.map +1 -0
  24. package/dist/widgets/hooks/use-widget-state.d.ts +18 -0
  25. package/dist/widgets/hooks/use-widget-state.d.ts.map +1 -0
  26. package/dist/widgets/hooks/use-widget-state.js +27 -0
  27. package/dist/widgets/hooks/use-widget-state.js.map +1 -0
  28. package/dist/widgets/hooks/useWidgetSDK.d.ts +47 -0
  29. package/dist/widgets/hooks/useWidgetSDK.d.ts.map +1 -0
  30. package/dist/widgets/hooks/useWidgetSDK.js +67 -0
  31. package/dist/widgets/hooks/useWidgetSDK.js.map +1 -0
  32. package/dist/widgets/index.d.ts +7 -1
  33. package/dist/widgets/index.d.ts.map +1 -1
  34. package/dist/widgets/index.js +11 -1
  35. package/dist/widgets/index.js.map +1 -1
  36. package/dist/widgets/runtime/WidgetLayout.d.ts +32 -0
  37. package/dist/widgets/runtime/WidgetLayout.d.ts.map +1 -0
  38. package/dist/widgets/runtime/WidgetLayout.js +143 -0
  39. package/dist/widgets/runtime/WidgetLayout.js.map +1 -0
  40. package/dist/widgets/runtime/widget-polyfill.d.ts +1 -0
  41. package/dist/widgets/runtime/widget-polyfill.d.ts.map +1 -0
  42. package/dist/widgets/runtime/widget-polyfill.js +28 -0
  43. package/dist/widgets/runtime/widget-polyfill.js.map +1 -0
  44. package/dist/widgets/sdk.d.ts +109 -0
  45. package/dist/widgets/sdk.d.ts.map +1 -0
  46. package/dist/widgets/sdk.js +221 -0
  47. package/dist/widgets/sdk.js.map +1 -0
  48. package/dist/widgets/types.d.ts +89 -0
  49. package/dist/widgets/types.d.ts.map +1 -0
  50. package/dist/widgets/types.js +8 -0
  51. package/dist/widgets/types.js.map +1 -0
  52. package/dist/widgets/utils/media-queries.d.ts +34 -0
  53. package/dist/widgets/utils/media-queries.d.ts.map +1 -0
  54. package/dist/widgets/utils/media-queries.js +42 -0
  55. package/dist/widgets/utils/media-queries.js.map +1 -0
  56. package/package.json +2 -2
  57. package/src/studio/app/chat/page.tsx +274 -137
  58. package/src/studio/app/globals.css +140 -64
  59. package/src/studio/branding.md +807 -0
  60. package/src/studio/components/WidgetRenderer.tsx +222 -16
  61. package/src/studio/lib/llm-service.ts +39 -39
  62. package/templates/typescript-oauth/.env.example +27 -0
  63. package/templates/typescript-oauth/README.md +226 -306
  64. package/templates/typescript-oauth/package-lock.json +4253 -0
  65. package/templates/typescript-oauth/package.json +10 -5
  66. package/templates/typescript-oauth/src/app.module.ts +39 -36
  67. package/templates/typescript-oauth/src/guards/oauth.guard.ts +0 -1
  68. package/templates/typescript-oauth/src/index.ts +22 -30
  69. package/templates/typescript-oauth/src/modules/flights/booking.tools.ts +323 -0
  70. package/templates/typescript-oauth/src/modules/flights/flights.module.ts +14 -0
  71. package/templates/typescript-oauth/src/modules/flights/flights.prompts.ts +231 -0
  72. package/templates/typescript-oauth/src/modules/flights/flights.resources.ts +215 -0
  73. package/templates/typescript-oauth/src/modules/flights/flights.tools.ts +457 -0
  74. package/templates/typescript-oauth/src/services/duffel.service.ts +285 -0
  75. package/templates/typescript-oauth/src/widgets/app/airport-search/page.tsx +270 -0
  76. package/templates/typescript-oauth/src/widgets/app/flight-details/page.tsx +261 -0
  77. package/templates/typescript-oauth/src/widgets/app/flight-search-results/page.tsx +378 -0
  78. package/templates/typescript-oauth/src/widgets/app/globals.css +167 -0
  79. package/templates/typescript-oauth/src/widgets/app/layout.tsx +6 -2
  80. package/templates/typescript-oauth/src/widgets/app/order-cancellation/page.tsx +207 -0
  81. package/templates/typescript-oauth/src/widgets/app/order-summary/page.tsx +245 -0
  82. package/templates/typescript-oauth/src/widgets/app/payment-confirmation/page.tsx +152 -0
  83. package/templates/typescript-oauth/src/widgets/app/seat-selection/page.tsx +486 -0
  84. package/templates/typescript-oauth/src/widgets/next-env.d.ts +5 -0
  85. package/templates/typescript-oauth/src/widgets/package-lock.json +155 -126
  86. package/templates/typescript-oauth/src/widgets/widget-manifest.json +374 -27
  87. package/templates/typescript-pizzaz/IMPLEMENTATION.md +98 -0
  88. package/templates/typescript-pizzaz/README.md +233 -0
  89. package/templates/typescript-pizzaz/package.json +31 -0
  90. package/templates/typescript-pizzaz/src/app.module.ts +28 -0
  91. package/templates/typescript-pizzaz/src/index.ts +30 -0
  92. package/templates/typescript-pizzaz/src/modules/pizzaz/pizzaz.data.ts +106 -0
  93. package/templates/typescript-pizzaz/src/modules/pizzaz/pizzaz.module.ts +11 -0
  94. package/templates/typescript-pizzaz/src/modules/pizzaz/pizzaz.service.ts +60 -0
  95. package/templates/typescript-pizzaz/src/modules/pizzaz/pizzaz.tools.ts +197 -0
  96. package/templates/typescript-pizzaz/src/widgets/app/layout.tsx +18 -0
  97. package/templates/typescript-pizzaz/src/widgets/app/pizza-list/page.tsx +272 -0
  98. package/templates/typescript-pizzaz/src/widgets/app/pizza-map/page.tsx +216 -0
  99. package/templates/typescript-pizzaz/src/widgets/app/pizza-shop/page.tsx +374 -0
  100. package/templates/typescript-pizzaz/src/widgets/components/CompactShopCard.tsx +144 -0
  101. package/templates/typescript-pizzaz/src/widgets/components/PizzaCard.tsx +191 -0
  102. package/templates/typescript-pizzaz/src/widgets/package.json +30 -0
  103. package/templates/typescript-pizzaz/src/widgets/widget-manifest.json +253 -0
  104. package/templates/typescript-pizzaz/tsconfig.json +30 -0
  105. package/templates/typescript-starter/src/modules/calculator/calculator.resources.ts +0 -1
  106. package/templates/typescript-starter/src/widgets/app/calculator-result/page.tsx +102 -56
  107. package/templates/typescript-starter/src/widgets/app/layout.tsx +6 -2
  108. package/templates/typescript-auth/AI_AGENT_CLI_REFERENCE.md +0 -702
  109. package/templates/typescript-auth/AI_AGENT_SDK_REFERENCE.md +0 -1260
  110. package/templates/typescript-auth/README.md +0 -402
  111. package/templates/typescript-auth/package.json +0 -36
  112. package/templates/typescript-auth/src/app.module.ts +0 -103
  113. package/templates/typescript-auth/src/db/database.ts +0 -160
  114. package/templates/typescript-auth/src/db/seed.ts +0 -374
  115. package/templates/typescript-auth/src/db/setup.ts +0 -87
  116. package/templates/typescript-auth/src/events/analytics.service.ts +0 -52
  117. package/templates/typescript-auth/src/events/notification.service.ts +0 -40
  118. package/templates/typescript-auth/src/filters/global-exception.filter.ts +0 -28
  119. package/templates/typescript-auth/src/guards/README.md +0 -75
  120. package/templates/typescript-auth/src/guards/jwt.guard.ts +0 -105
  121. package/templates/typescript-auth/src/health/database.health.ts +0 -41
  122. package/templates/typescript-auth/src/index.ts +0 -29
  123. package/templates/typescript-auth/src/interceptors/transform.interceptor.ts +0 -24
  124. package/templates/typescript-auth/src/middleware/logging.middleware.ts +0 -42
  125. package/templates/typescript-auth/src/modules/addresses/addresses.module.ts +0 -16
  126. package/templates/typescript-auth/src/modules/addresses/addresses.prompts.ts +0 -114
  127. package/templates/typescript-auth/src/modules/addresses/addresses.resources.ts +0 -40
  128. package/templates/typescript-auth/src/modules/addresses/addresses.tools.ts +0 -284
  129. package/templates/typescript-auth/src/modules/auth/auth.module.ts +0 -16
  130. package/templates/typescript-auth/src/modules/auth/auth.prompts.ts +0 -147
  131. package/templates/typescript-auth/src/modules/auth/auth.resources.ts +0 -84
  132. package/templates/typescript-auth/src/modules/auth/auth.tools.ts +0 -139
  133. package/templates/typescript-auth/src/modules/cart/cart.module.ts +0 -16
  134. package/templates/typescript-auth/src/modules/cart/cart.prompts.ts +0 -95
  135. package/templates/typescript-auth/src/modules/cart/cart.resources.ts +0 -44
  136. package/templates/typescript-auth/src/modules/cart/cart.tools.ts +0 -277
  137. package/templates/typescript-auth/src/modules/orders/orders.module.ts +0 -16
  138. package/templates/typescript-auth/src/modules/orders/orders.prompts.ts +0 -88
  139. package/templates/typescript-auth/src/modules/orders/orders.resources.ts +0 -48
  140. package/templates/typescript-auth/src/modules/orders/orders.tools.ts +0 -303
  141. package/templates/typescript-auth/src/modules/products/products.module.ts +0 -16
  142. package/templates/typescript-auth/src/modules/products/products.prompts.ts +0 -146
  143. package/templates/typescript-auth/src/modules/products/products.resources.ts +0 -98
  144. package/templates/typescript-auth/src/modules/products/products.tools.ts +0 -266
  145. package/templates/typescript-auth/src/pipes/validation.pipe.ts +0 -42
  146. package/templates/typescript-auth/src/services/database.service.ts +0 -90
  147. package/templates/typescript-auth/src/widgets/app/add-to-cart/page.tsx +0 -122
  148. package/templates/typescript-auth/src/widgets/app/address-added/page.tsx +0 -116
  149. package/templates/typescript-auth/src/widgets/app/address-deleted/page.tsx +0 -105
  150. package/templates/typescript-auth/src/widgets/app/address-list/page.tsx +0 -139
  151. package/templates/typescript-auth/src/widgets/app/address-updated/page.tsx +0 -153
  152. package/templates/typescript-auth/src/widgets/app/cart-cleared/page.tsx +0 -86
  153. package/templates/typescript-auth/src/widgets/app/cart-updated/page.tsx +0 -116
  154. package/templates/typescript-auth/src/widgets/app/categories/page.tsx +0 -134
  155. package/templates/typescript-auth/src/widgets/app/layout.tsx +0 -21
  156. package/templates/typescript-auth/src/widgets/app/login-result/page.tsx +0 -129
  157. package/templates/typescript-auth/src/widgets/app/order-confirmation/page.tsx +0 -231
  158. package/templates/typescript-auth/src/widgets/app/order-details/page.tsx +0 -225
  159. package/templates/typescript-auth/src/widgets/app/order-history/page.tsx +0 -218
  160. package/templates/typescript-auth/src/widgets/app/product-card/page.tsx +0 -121
  161. package/templates/typescript-auth/src/widgets/app/products-grid/page.tsx +0 -198
  162. package/templates/typescript-auth/src/widgets/app/shopping-cart/page.tsx +0 -187
  163. package/templates/typescript-auth/src/widgets/app/whoami/page.tsx +0 -165
  164. package/templates/typescript-auth/src/widgets/next.config.js +0 -38
  165. package/templates/typescript-auth/src/widgets/package.json +0 -18
  166. package/templates/typescript-auth/src/widgets/styles/ecommerce.ts +0 -169
  167. package/templates/typescript-auth/src/widgets/tsconfig.json +0 -28
  168. package/templates/typescript-auth/src/widgets/types/tool-data.ts +0 -141
  169. package/templates/typescript-auth/src/widgets/widget-manifest.json +0 -464
  170. package/templates/typescript-auth/tsconfig.json +0 -27
  171. package/templates/typescript-auth-api-key/AI_AGENT_CLI_REFERENCE.md +0 -701
  172. package/templates/typescript-auth-api-key/AI_AGENT_SDK_REFERENCE.md +0 -1260
  173. package/templates/typescript-auth-api-key/README.md +0 -485
  174. package/templates/typescript-auth-api-key/package.json +0 -21
  175. package/templates/typescript-auth-api-key/src/app.module.ts +0 -38
  176. package/templates/typescript-auth-api-key/src/guards/apikey.guard.ts +0 -47
  177. package/templates/typescript-auth-api-key/src/guards/multi-auth.guard.ts +0 -157
  178. package/templates/typescript-auth-api-key/src/index.ts +0 -47
  179. package/templates/typescript-auth-api-key/src/modules/calculator/calculator.module.ts +0 -12
  180. package/templates/typescript-auth-api-key/src/modules/calculator/calculator.prompts.ts +0 -73
  181. package/templates/typescript-auth-api-key/src/modules/calculator/calculator.resources.ts +0 -60
  182. package/templates/typescript-auth-api-key/src/modules/calculator/calculator.tools.ts +0 -71
  183. package/templates/typescript-auth-api-key/src/modules/demo/demo.module.ts +0 -18
  184. package/templates/typescript-auth-api-key/src/modules/demo/demo.tools.ts +0 -155
  185. package/templates/typescript-auth-api-key/src/modules/demo/multi-auth.tools.ts +0 -123
  186. package/templates/typescript-auth-api-key/src/widgets/app/calculator-operations/page.tsx +0 -133
  187. package/templates/typescript-auth-api-key/src/widgets/app/calculator-result/page.tsx +0 -134
  188. package/templates/typescript-auth-api-key/src/widgets/app/layout.tsx +0 -14
  189. package/templates/typescript-auth-api-key/src/widgets/package.json +0 -24
  190. package/templates/typescript-auth-api-key/src/widgets/widget-manifest.json +0 -48
  191. package/templates/typescript-auth-api-key/tsconfig.json +0 -23
  192. package/templates/typescript-oauth/OAUTH_SETUP.md +0 -592
  193. package/templates/typescript-oauth/src/modules/demo/demo.module.ts +0 -16
  194. package/templates/typescript-oauth/src/modules/demo/demo.tools.ts +0 -190
  195. package/templates/typescript-oauth/src/widgets/app/calculator-operations/page.tsx +0 -133
  196. package/templates/typescript-oauth/src/widgets/app/calculator-result/page.tsx +0 -134
  197. package/templates/typescript-oauth/src/widgets/out/404.html +0 -1
  198. package/templates/typescript-oauth/src/widgets/out/_next/static/WU9THacVqL52RZbrZOLS1/_buildManifest.js +0 -1
  199. package/templates/typescript-oauth/src/widgets/out/_next/static/WU9THacVqL52RZbrZOLS1/_ssgManifest.js +0 -1
  200. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/117-eb57c7ef86f964a4.js +0 -2
  201. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/app/_not-found/page-dcb83ba3e4d0aafd.js +0 -1
  202. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/app/calculator-operations/page-b8913a740073ea8a.js +0 -1
  203. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/app/calculator-result/page-ddaaab2fce95dea2.js +0 -1
  204. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/app/layout-cbd3ebdc4ecc5247.js +0 -1
  205. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/fd9d1056-749e5812300142af.js +0 -1
  206. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/framework-f66176bb897dc684.js +0 -1
  207. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/main-76df43fcef3db344.js +0 -1
  208. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/main-app-f9c40224d04023c5.js +0 -1
  209. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/pages/_app-72b849fbd24ac258.js +0 -1
  210. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/pages/_error-7ba65e1336b92748.js +0 -1
  211. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
  212. package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/webpack-100b9e646d9c912e.js +0 -1
  213. package/templates/typescript-oauth/src/widgets/out/calculator-operations.html +0 -1
  214. package/templates/typescript-oauth/src/widgets/out/calculator-operations.txt +0 -7
  215. package/templates/typescript-oauth/src/widgets/out/calculator-result.html +0 -1
  216. package/templates/typescript-oauth/src/widgets/out/calculator-result.txt +0 -7
  217. package/templates/typescript-starter/src/widgets/app/calculator-operations/page.tsx +0 -133
  218. /package/templates/{typescript-auth-api-key → typescript-oauth}/src/health/system.health.ts +0 -0
  219. /package/templates/{typescript-auth-api-key → typescript-pizzaz}/src/widgets/next.config.js +0 -0
  220. /package/templates/{typescript-auth-api-key → typescript-pizzaz}/src/widgets/tsconfig.json +0 -0
@@ -1,464 +0,0 @@
1
- {
2
- "version": "1.0.0",
3
- "widgets": [
4
- {
5
- "uri": "/login-result",
6
- "name": "Login Result",
7
- "description": "Displays login success with user information and JWT token",
8
- "examples": [
9
- {
10
- "name": "Successful Login - Emily",
11
- "description": "Login result for Emily Johnson",
12
- "data": {
13
- "message": "Login successful!",
14
- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
15
- "user": {
16
- "id": "user-emily",
17
- "email": "emily.johnson@x.dummyjson.com",
18
- "name": "Emily Johnson"
19
- },
20
- "instructions": {
21
- "step1": "Copy the token above",
22
- "step2": "In the inspector, go to Chat tab",
23
- "step3": "Paste the token in the 'JWT Token' field (if available)",
24
- "step4": "Or use: Authorization: Bearer <token>",
25
- "expiresIn": "24 hours"
26
- }
27
- }
28
- }
29
- ],
30
- "tags": ["auth", "login", "jwt"]
31
- },
32
- {
33
- "uri": "/whoami",
34
- "name": "User Profile",
35
- "description": "Shows current authenticated user's profile information",
36
- "examples": [
37
- {
38
- "name": "Emily's Profile",
39
- "description": "Profile for Emily Johnson",
40
- "data": {
41
- "user": {
42
- "id": "user-emily",
43
- "email": "emily.johnson@x.dummyjson.com",
44
- "name": "Emily Johnson",
45
- "profile_picture": "https://dummyjson.com/icon/emilys/128",
46
- "memberSince": "2024-01-01T00:00:00Z"
47
- },
48
- "authenticated": true
49
- }
50
- }
51
- ],
52
- "tags": ["auth", "profile", "user"]
53
- },
54
- {
55
- "uri": "/products-grid",
56
- "name": "Products Grid",
57
- "description": "Displays a grid of products with filtering and pagination",
58
- "examples": [
59
- {
60
- "name": "Beauty Products - Page 1",
61
- "description": "First page of beauty products",
62
- "data": {
63
- "products": [
64
- {
65
- "id": "prod-1",
66
- "name": "Essence Mascara Lash Princess",
67
- "description": "The Essence Mascara Lash Princess is a popular mascara known for its volumizing and lengthening effects.",
68
- "price": 9.99,
69
- "category": "Beauty",
70
- "stock": 99,
71
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/essence-mascara-lash-princess/thumbnail.webp"
72
- },
73
- {
74
- "id": "prod-2",
75
- "name": "Eyeshadow Palette with Mirror",
76
- "description": "The Eyeshadow Palette offers a versatile range of eyeshadow shades for creating stunning eye looks.",
77
- "price": 19.99,
78
- "category": "Beauty",
79
- "stock": 34,
80
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/eyeshadow-palette-with-mirror/thumbnail.webp"
81
- },
82
- {
83
- "id": "prod-3",
84
- "name": "Powder Canister",
85
- "description": "The Powder Canister is a finely milled setting powder designed to set makeup and control shine.",
86
- "price": 14.99,
87
- "category": "Beauty",
88
- "stock": 89,
89
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/powder-canister/thumbnail.webp"
90
- },
91
- {
92
- "id": "prod-4",
93
- "name": "Red Lipstick",
94
- "description": "The Red Lipstick is a classic and bold choice for adding a pop of color to your lips.",
95
- "price": 12.99,
96
- "category": "Beauty",
97
- "stock": 91,
98
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/red-lipstick/thumbnail.webp"
99
- }
100
- ],
101
- "pagination": {
102
- "page": 1,
103
- "limit": 4,
104
- "total": 5,
105
- "totalPages": 2,
106
- "hasMore": true
107
- }
108
- }
109
- }
110
- ],
111
- "tags": ["products", "ecommerce", "shopping", "grid"]
112
- },
113
- {
114
- "uri": "/product-card",
115
- "name": "Product Card",
116
- "description": "Displays detailed information for a single product",
117
- "examples": [
118
- {
119
- "name": "Essence Mascara Details",
120
- "description": "Details for Essence Mascara product",
121
- "data": {
122
- "product": {
123
- "id": "prod-1",
124
- "name": "Essence Mascara Lash Princess",
125
- "description": "The Essence Mascara Lash Princess is a popular mascara known for its volumizing and lengthening effects.",
126
- "price": 9.99,
127
- "category": "Beauty",
128
- "stock": 99,
129
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/essence-mascara-lash-princess/thumbnail.webp"
130
- },
131
- "availability": "In Stock",
132
- "stockMessage": "Available"
133
- }
134
- }
135
- ],
136
- "tags": ["products", "details", "ecommerce"]
137
- },
138
- {
139
- "uri": "/categories",
140
- "name": "Product Categories",
141
- "description": "Shows all available product categories with counts",
142
- "examples": [
143
- {
144
- "name": "All Categories",
145
- "description": "List of all product categories",
146
- "data": {
147
- "categories": [
148
- { "name": "Beauty", "productCount": 5 },
149
- { "name": "Fragrances", "productCount": 5 },
150
- { "name": "Furniture", "productCount": 5 },
151
- { "name": "Groceries", "productCount": 5 }
152
- ]
153
- }
154
- }
155
- ],
156
- "tags": ["products", "categories", "navigation"]
157
- },
158
- {
159
- "uri": "/add-to-cart",
160
- "name": "Add to Cart Confirmation",
161
- "description": "Confirms a product was added to the shopping cart",
162
- "examples": [
163
- {
164
- "name": "Added Mascara",
165
- "description": "Confirmation for adding 2 mascaras",
166
- "data": {
167
- "message": "Added to cart!",
168
- "item": {
169
- "id": "prod-1",
170
- "name": "Essence Mascara Lash Princess",
171
- "price": 9.99,
172
- "quantity": 2,
173
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/essence-mascara-lash-princess/thumbnail.webp"
174
- },
175
- "cartItemCount": 2
176
- }
177
- }
178
- ],
179
- "tags": ["cart", "ecommerce", "confirmation"]
180
- },
181
- {
182
- "uri": "/shopping-cart",
183
- "name": "Shopping Cart",
184
- "description": "Displays all items in the shopping cart with total",
185
- "examples": [
186
- {
187
- "name": "Cart with 2 Items",
188
- "description": "Shopping cart with mascara and eyeshadow",
189
- "data": {
190
- "items": [
191
- {
192
- "id": "cart-item-1",
193
- "quantity": 2,
194
- "product_id": "prod-1",
195
- "name": "Essence Mascara Lash Princess",
196
- "price": 9.99,
197
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/essence-mascara-lash-princess/thumbnail.webp"
198
- },
199
- {
200
- "id": "cart-item-2",
201
- "quantity": 1,
202
- "product_id": "prod-2",
203
- "name": "Eyeshadow Palette with Mirror",
204
- "price": 19.99,
205
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/eyeshadow-palette-with-mirror/thumbnail.webp"
206
- }
207
- ],
208
- "total": 39.97,
209
- "itemCount": 2
210
- }
211
- }
212
- ],
213
- "tags": ["cart", "ecommerce", "shopping"]
214
- },
215
- {
216
- "uri": "/cart-updated",
217
- "name": "Cart Updated",
218
- "description": "Confirms cart item quantity was updated",
219
- "examples": [
220
- {
221
- "name": "Updated Quantity",
222
- "description": "Updated mascara quantity to 3",
223
- "data": {
224
- "message": "Cart updated successfully",
225
- "product": "Essence Mascara Lash Princess",
226
- "quantity": 3
227
- }
228
- }
229
- ],
230
- "tags": ["cart", "update", "confirmation"]
231
- },
232
- {
233
- "uri": "/cart-cleared",
234
- "name": "Cart Cleared",
235
- "description": "Confirms all items were removed from cart",
236
- "examples": [
237
- {
238
- "name": "Cleared Cart",
239
- "description": "Cart cleared with 2 items removed",
240
- "data": {
241
- "message": "Shopping cart cleared",
242
- "itemsRemoved": 2
243
- }
244
- }
245
- ],
246
- "tags": ["cart", "clear", "confirmation"]
247
- },
248
- {
249
- "uri": "/order-confirmation",
250
- "name": "Order Confirmation",
251
- "description": "Displays order confirmation with items and total",
252
- "examples": [
253
- {
254
- "name": "Order Placed",
255
- "description": "Confirmation for order with 2 items",
256
- "data": {
257
- "message": "Order created successfully!",
258
- "order": {
259
- "id": "order-12345",
260
- "total": 39.97,
261
- "status": "pending",
262
- "estimated_delivery": "3-5 business days",
263
- "payment_method": "credit_card",
264
- "created_at": "2024-01-15T10:30:00Z",
265
- "items": [
266
- {
267
- "id": "prod-1",
268
- "product_id": "prod-1",
269
- "name": "Essence Mascara Lash Princess",
270
- "quantity": 2,
271
- "price": 9.99,
272
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/essence-mascara-lash-princess/thumbnail.webp"
273
- },
274
- {
275
- "id": "prod-2",
276
- "product_id": "prod-2",
277
- "name": "Eyeshadow Palette with Mirror",
278
- "quantity": 1,
279
- "price": 19.99,
280
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/eyeshadow-palette-with-mirror/thumbnail.webp"
281
- }
282
- ]
283
- }
284
- }
285
- }
286
- ],
287
- "tags": ["orders", "checkout", "confirmation"]
288
- },
289
- {
290
- "uri": "/order-history",
291
- "name": "Order History",
292
- "description": "Shows a list of all user orders",
293
- "examples": [
294
- {
295
- "name": "Past Orders",
296
- "description": "List of 2 orders",
297
- "data": {
298
- "orders": [
299
- {
300
- "id": "order-12345",
301
- "total": 39.97,
302
- "status": "pending",
303
- "created_at": "2024-01-15T10:30:00Z",
304
- "itemCount": 2
305
- },
306
- {
307
- "id": "order-12344",
308
- "total": 89.96,
309
- "status": "delivered",
310
- "created_at": "2024-01-10T14:20:00Z",
311
- "itemCount": 3
312
- }
313
- ],
314
- "totalOrders": 2,
315
- "pagination": {
316
- "page": 1,
317
- "totalPages": 1,
318
- "totalResults": 2
319
- }
320
- }
321
- }
322
- ],
323
- "tags": ["orders", "history", "ecommerce"]
324
- },
325
- {
326
- "uri": "/order-details",
327
- "name": "Order Details",
328
- "description": "Shows detailed information for a specific order",
329
- "examples": [
330
- {
331
- "name": "Order #12345",
332
- "description": "Details for order with 2 items",
333
- "data": {
334
- "order": {
335
- "id": "order-12345",
336
- "total": 39.97,
337
- "status": "pending",
338
- "payment_method": "credit_card",
339
- "created_at": "2024-01-15T10:30:00Z",
340
- "items": [
341
- {
342
- "id": "prod-1",
343
- "product_id": "prod-1",
344
- "name": "Essence Mascara Lash Princess",
345
- "quantity": 2,
346
- "price": 9.99,
347
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/essence-mascara-lash-princess/thumbnail.webp"
348
- },
349
- {
350
- "id": "prod-2",
351
- "product_id": "prod-2",
352
- "name": "Eyeshadow Palette with Mirror",
353
- "quantity": 1,
354
- "price": 19.99,
355
- "image_url": "https://cdn.dummyjson.com/product-images/beauty/eyeshadow-palette-with-mirror/thumbnail.webp"
356
- }
357
- ]
358
- }
359
- }
360
- }
361
- ],
362
- "tags": ["orders", "details", "ecommerce"]
363
- },
364
- {
365
- "uri": "/address-added",
366
- "name": "Address Added",
367
- "description": "Confirms a new shipping address was added",
368
- "examples": [
369
- {
370
- "name": "New Address",
371
- "description": "Confirmation for adding address",
372
- "data": {
373
- "message": "Address added successfully!",
374
- "addressId": "addr-1",
375
- "isDefault": true
376
- }
377
- }
378
- ],
379
- "tags": ["address", "shipping", "confirmation"]
380
- },
381
- {
382
- "uri": "/address-list",
383
- "name": "Address List",
384
- "description": "Shows all saved shipping addresses",
385
- "examples": [
386
- {
387
- "name": "All Addresses",
388
- "description": "List of 2 saved addresses",
389
- "data": {
390
- "addresses": [
391
- {
392
- "id": "addr-1",
393
- "full_name": "Emily Johnson",
394
- "street": "123 Main Street",
395
- "city": "San Francisco",
396
- "state": "CA",
397
- "zip_code": "94102",
398
- "country": "USA",
399
- "phone": "+1-555-0100",
400
- "is_default": true
401
- },
402
- {
403
- "id": "addr-2",
404
- "full_name": "Emily Johnson",
405
- "street": "456 Office Blvd",
406
- "city": "San Francisco",
407
- "state": "CA",
408
- "zip_code": "94103",
409
- "country": "USA",
410
- "phone": "+1-555-0100",
411
- "is_default": false
412
- }
413
- ]
414
- }
415
- }
416
- ],
417
- "tags": ["address", "shipping", "list"]
418
- },
419
- {
420
- "uri": "/address-updated",
421
- "name": "Address Updated",
422
- "description": "Confirms an address was set as default",
423
- "examples": [
424
- {
425
- "name": "Default Address Set",
426
- "description": "Confirmation for setting default address",
427
- "data": {
428
- "message": "Default address updated!",
429
- "address": {
430
- "id": "addr-2",
431
- "full_name": "Emily Johnson",
432
- "street": "456 Office Blvd",
433
- "city": "San Francisco",
434
- "state": "CA",
435
- "zip_code": "94103",
436
- "country": "USA",
437
- "phone": "+1-555-0100",
438
- "is_default": true
439
- }
440
- }
441
- }
442
- ],
443
- "tags": ["address", "update", "confirmation"]
444
- },
445
- {
446
- "uri": "/address-deleted",
447
- "name": "Address Deleted",
448
- "description": "Confirms an address was deleted",
449
- "examples": [
450
- {
451
- "name": "Address Removed",
452
- "description": "Confirmation for deleting address",
453
- "data": {
454
- "message": "Address deleted successfully!",
455
- "addressId": "addr-2"
456
- }
457
- }
458
- ],
459
- "tags": ["address", "delete", "confirmation"]
460
- }
461
- ],
462
- "generatedAt": "2025-01-24T00:00:00.000Z"
463
- }
464
-
@@ -1,27 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "ES2022",
5
- "lib": ["ES2022"],
6
- "moduleResolution": "node",
7
- "rootDir": "./src",
8
- "outDir": "./dist",
9
- "esModuleInterop": true,
10
- "forceConsistentCasingInFileNames": true,
11
- "strict": true,
12
- "skipLibCheck": true,
13
- "resolveJsonModule": true,
14
- "declaration": true,
15
- "declarationMap": true,
16
- "sourceMap": true,
17
- "experimentalDecorators": true,
18
- "emitDecoratorMetadata": true
19
- },
20
- "include": ["src/**/*"],
21
- "exclude": ["node_modules", "dist", "src/widgets"],
22
- "ts-node": {
23
- "esm": true,
24
- "experimentalSpecifierResolution": "node"
25
- }
26
- }
27
-