Skip to content

Commit f842f3f

Browse files
committed
added communication service to swagger.ts
1 parent 89de08d commit f842f3f

File tree

2 files changed

+77
-2
lines changed

2 files changed

+77
-2
lines changed

apps/property-tree/src/services/api/core/generated/api-types.ts

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,82 @@ export interface paths {
155155
};
156156
"openapi": {
157157
};
158+
"security": {
159+
};
160+
"/contacts/send-bulk-sms": {
161+
/**
162+
* Send SMS to multiple contacts
163+
* @description Send SMS messages to multiple phone numbers
164+
*/
165+
post: {
166+
requestBody: {
167+
content: {
168+
"application/json": {
169+
/** @description Array of phone numbers */
170+
phoneNumbers: string[];
171+
/** @description SMS message content */
172+
text: string;
173+
};
174+
};
175+
};
176+
responses: {
177+
/** @description SMS sent successfully */
178+
200: {
179+
content: {
180+
"application/json": {
181+
content?: components["schemas"]["BulkSmsResult"];
182+
};
183+
};
184+
};
185+
/** @description Invalid request */
186+
400: {
187+
content: never;
188+
};
189+
/** @description Internal server error */
190+
500: {
191+
content: never;
192+
};
193+
};
194+
};
195+
};
196+
"/contacts/send-bulk-email": {
197+
/**
198+
* Send email to multiple contacts
199+
* @description Send email messages to multiple email addresses
200+
*/
201+
post: {
202+
requestBody: {
203+
content: {
204+
"application/json": {
205+
/** @description Array of email addresses */
206+
emails: string[];
207+
/** @description Email subject */
208+
subject: string;
209+
/** @description Email message content */
210+
text: string;
211+
};
212+
};
213+
};
214+
responses: {
215+
/** @description Email sent successfully */
216+
200: {
217+
content: {
218+
"application/json": {
219+
content?: components["schemas"]["BulkEmailResult"];
220+
};
221+
};
222+
};
223+
/** @description Invalid request */
224+
400: {
225+
content: never;
226+
};
227+
/** @description Internal server error */
228+
500: {
229+
content: never;
230+
};
231+
};
232+
};
233+
};
158234
"/health": {
159235
/**
160236
* Check system health status
@@ -193,8 +269,6 @@ export interface paths {
193269
};
194270
};
195271
};
196-
"security": {
197-
};
198272
"/leases/search": {
199273
/**
200274
* Search and filter leases

core/src/swagger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const swaggerSpec = {
2020
},
2121
apis: [
2222
`${basePath}/services/auth-service/*.{ts,js}`,
23+
`${basePath}/services/communication-service/*.{ts,js}`,
2324
`${basePath}/services/health-service/*.{ts,js}`,
2425
`${basePath}/services/lease-service/*.{ts,js}`,
2526
`${basePath}/services/property-management-service/*.{ts,js}`,

0 commit comments

Comments
 (0)