@floristcloud/api-lib 1.0.69 → 1.0.70

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.
@@ -4,7 +4,7 @@ exports.GenerateAndSendPasswordByAdminContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const notification_channel_enum_1 = require("../../enum/notification-channel.enum");
6
6
  const GenerateAndSendPasswordByAdminRequestSchema = zod_1.z.object({
7
- channel: zod_1.z.enum([notification_channel_enum_1.NotificationChannelEnum.EMAIL, notification_channel_enum_1.NotificationChannelEnum.WHATSAPP]),
7
+ channel: zod_1.z.enum([notification_channel_enum_1.NotificationChannelEnum.EMAIL, notification_channel_enum_1.NotificationChannelEnum.TELEGRAM_BOT]),
8
8
  });
9
9
  const GenerateAndSendPasswordByAdminResponseSchema = zod_1.z.object({
10
10
  message: zod_1.z.string().optional(),
@@ -503,6 +503,7 @@ exports.ERRORS = {
503
503
  WHATSAPP_PHONE_NOT_FOUND: { code: 'W004', message: 'Phone number not found or invalid', httpCode: 400 },
504
504
  WHATSAPP_STATUS_CHECK_FAILED: { code: 'W005', message: 'Failed to check WhatsApp message status', httpCode: 500 },
505
505
  WHATSAPP_MESSAGE_NOT_FOUND: { code: 'W006', message: 'Message not found in notification', httpCode: 400 },
506
+ WHATSAPP_CHANNEL_NOT_IN_USE: { code: 'W007', message: 'WhatsApp channel is not in use', httpCode: 410 },
506
507
  //MAX MESSENGER
507
508
  MAX_MESSENGER_TEXT_NOT_SENT: { code: 'MX001', message: 'Failed to send text message via Max Messenger', httpCode: 500 },
508
509
  MAX_MESSENGER_FILE_NOT_SENT: { code: 'MX002', message: 'Failed to send file message via Max Messenger', httpCode: 500 },
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { NotificationChannelEnum } from '../../enum/notification-channel.enum';
3
3
 
4
4
  const GenerateAndSendPasswordByAdminRequestSchema = z.object({
5
- channel: z.enum([NotificationChannelEnum.EMAIL, NotificationChannelEnum.WHATSAPP]),
5
+ channel: z.enum([NotificationChannelEnum.EMAIL, NotificationChannelEnum.TELEGRAM_BOT]),
6
6
  });
7
7
 
8
8
  const GenerateAndSendPasswordByAdminResponseSchema = z.object({
package/constant/error.ts CHANGED
@@ -529,6 +529,7 @@ export const ERRORS = {
529
529
  WHATSAPP_PHONE_NOT_FOUND: { code: 'W004', message: 'Phone number not found or invalid', httpCode: 400 },
530
530
  WHATSAPP_STATUS_CHECK_FAILED: { code: 'W005', message: 'Failed to check WhatsApp message status', httpCode: 500 },
531
531
  WHATSAPP_MESSAGE_NOT_FOUND: { code: 'W006', message: 'Message not found in notification', httpCode: 400 },
532
+ WHATSAPP_CHANNEL_NOT_IN_USE: { code: 'W007', message: 'WhatsApp channel is not in use', httpCode: 410 },
532
533
 
533
534
  //MAX MESSENGER
534
535
  MAX_MESSENGER_TEXT_NOT_SENT: { code: 'MX001', message: 'Failed to send text message via Max Messenger', httpCode: 500 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floristcloud/api-lib",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {