common-tg-service 1.0.1
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/LICENSE +21 -0
- package/README.md +201 -0
- package/dist/IMap/IMap.d.ts +13 -0
- package/dist/IMap/IMap.js +160 -0
- package/dist/IMap/IMap.js.map +1 -0
- package/dist/app.controller.d.ts +11 -0
- package/dist/app.controller.js +160 -0
- package/dist/app.controller.js.map +1 -0
- package/dist/app.module.d.ts +4 -0
- package/dist/app.module.js +79 -0
- package/dist/app.module.js.map +1 -0
- package/dist/app.service.d.ts +3 -0
- package/dist/app.service.js +20 -0
- package/dist/app.service.js.map +1 -0
- package/dist/cloudinary.d.ts +17 -0
- package/dist/cloudinary.js +207 -0
- package/dist/cloudinary.js.map +1 -0
- package/dist/components/ConfigurationInit/configuration.schema.d.ts +38 -0
- package/dist/components/ConfigurationInit/configuration.schema.js +31 -0
- package/dist/components/ConfigurationInit/configuration.schema.js.map +1 -0
- package/dist/components/ConfigurationInit/init.controller.d.ts +7 -0
- package/dist/components/ConfigurationInit/init.controller.js +52 -0
- package/dist/components/ConfigurationInit/init.controller.js.map +1 -0
- package/dist/components/ConfigurationInit/init.module.d.ts +34 -0
- package/dist/components/ConfigurationInit/init.module.js +65 -0
- package/dist/components/ConfigurationInit/init.module.js.map +1 -0
- package/dist/components/ConfigurationInit/init.service.d.ts +35 -0
- package/dist/components/ConfigurationInit/init.service.js +59 -0
- package/dist/components/ConfigurationInit/init.service.js.map +1 -0
- package/dist/components/Telegram/Telegram.controller.d.ts +356 -0
- package/dist/components/Telegram/Telegram.controller.js +1366 -0
- package/dist/components/Telegram/Telegram.controller.js.map +1 -0
- package/dist/components/Telegram/Telegram.module.d.ts +2 -0
- package/dist/components/Telegram/Telegram.module.js +47 -0
- package/dist/components/Telegram/Telegram.module.js.map +1 -0
- package/dist/components/Telegram/Telegram.service.d.ts +453 -0
- package/dist/components/Telegram/Telegram.service.js +679 -0
- package/dist/components/Telegram/Telegram.service.js.map +1 -0
- package/dist/components/Telegram/TelegramManager.d.ts +486 -0
- package/dist/components/Telegram/TelegramManager.js +2530 -0
- package/dist/components/Telegram/TelegramManager.js.map +1 -0
- package/dist/components/Telegram/config/telegram-validation.config.d.ts +15 -0
- package/dist/components/Telegram/config/telegram-validation.config.js +47 -0
- package/dist/components/Telegram/config/telegram-validation.config.js.map +1 -0
- package/dist/components/Telegram/dto/batch-operations.dto.d.ts +24 -0
- package/dist/components/Telegram/dto/batch-operations.dto.js +102 -0
- package/dist/components/Telegram/dto/batch-operations.dto.js.map +1 -0
- package/dist/components/Telegram/dto/channel-operation.dto.d.ts +5 -0
- package/dist/components/Telegram/dto/channel-operation.dto.js +35 -0
- package/dist/components/Telegram/dto/channel-operation.dto.js.map +1 -0
- package/dist/components/Telegram/dto/common-responses.dto.d.ts +18 -0
- package/dist/components/Telegram/dto/common-responses.dto.js +52 -0
- package/dist/components/Telegram/dto/common-responses.dto.js.map +1 -0
- package/dist/components/Telegram/dto/contact-block-list.dto.d.ts +4 -0
- package/dist/components/Telegram/dto/contact-block-list.dto.js +28 -0
- package/dist/components/Telegram/dto/contact-block-list.dto.js.map +1 -0
- package/dist/components/Telegram/dto/contact-management.dto.d.ts +25 -0
- package/dist/components/Telegram/dto/contact-management.dto.js +88 -0
- package/dist/components/Telegram/dto/contact-management.dto.js.map +1 -0
- package/dist/components/Telegram/dto/contact-operation.dto.d.ts +12 -0
- package/dist/components/Telegram/dto/contact-operation.dto.js +43 -0
- package/dist/components/Telegram/dto/contact-operation.dto.js.map +1 -0
- package/dist/components/Telegram/dto/create-chat-folder.dto.d.ts +13 -0
- package/dist/components/Telegram/dto/create-chat-folder.dto.js +84 -0
- package/dist/components/Telegram/dto/create-chat-folder.dto.js.map +1 -0
- package/dist/components/Telegram/dto/group-operations.dto.d.ts +77 -0
- package/dist/components/Telegram/dto/group-operations.dto.js +282 -0
- package/dist/components/Telegram/dto/group-operations.dto.js.map +1 -0
- package/dist/components/Telegram/dto/index.d.ts +12 -0
- package/dist/components/Telegram/dto/index.js +32 -0
- package/dist/components/Telegram/dto/index.js.map +1 -0
- package/dist/components/Telegram/dto/media-filter.dto.d.ts +14 -0
- package/dist/components/Telegram/dto/media-filter.dto.js +64 -0
- package/dist/components/Telegram/dto/media-filter.dto.js.map +1 -0
- package/dist/components/Telegram/dto/media-metadata.dto.d.ts +0 -0
- package/dist/components/Telegram/dto/media-metadata.dto.js +1 -0
- package/dist/components/Telegram/dto/media-metadata.dto.js.map +1 -0
- package/dist/components/Telegram/dto/media-operations.dto.d.ts +38 -0
- package/dist/components/Telegram/dto/media-operations.dto.js +152 -0
- package/dist/components/Telegram/dto/media-operations.dto.js.map +1 -0
- package/dist/components/Telegram/dto/message-operations.dto.d.ts +0 -0
- package/dist/components/Telegram/dto/message-operations.dto.js +1 -0
- package/dist/components/Telegram/dto/message-operations.dto.js.map +1 -0
- package/dist/components/Telegram/dto/message-search.dto.d.ts +15 -0
- package/dist/components/Telegram/dto/message-search.dto.js +60 -0
- package/dist/components/Telegram/dto/message-search.dto.js.map +1 -0
- package/dist/components/Telegram/dto/metadata-operations.dto.d.ts +20 -0
- package/dist/components/Telegram/dto/metadata-operations.dto.js +101 -0
- package/dist/components/Telegram/dto/metadata-operations.dto.js.map +1 -0
- package/dist/components/Telegram/dto/notification-settings.dto.d.ts +15 -0
- package/dist/components/Telegram/dto/notification-settings.dto.js +60 -0
- package/dist/components/Telegram/dto/notification-settings.dto.js.map +1 -0
- package/dist/components/Telegram/dto/profile-settings.dto.d.ts +20 -0
- package/dist/components/Telegram/dto/profile-settings.dto.js +91 -0
- package/dist/components/Telegram/dto/profile-settings.dto.js.map +1 -0
- package/dist/components/Telegram/dto/response-validation.dto.d.ts +7 -0
- package/dist/components/Telegram/dto/response-validation.dto.js +37 -0
- package/dist/components/Telegram/dto/response-validation.dto.js.map +1 -0
- package/dist/components/Telegram/dto/schedule-operations.dto.d.ts +22 -0
- package/dist/components/Telegram/dto/schedule-operations.dto.js +97 -0
- package/dist/components/Telegram/dto/schedule-operations.dto.js.map +1 -0
- package/dist/components/Telegram/dto/update-profile.dto.d.ts +4 -0
- package/dist/components/Telegram/dto/update-profile.dto.js +29 -0
- package/dist/components/Telegram/dto/update-profile.dto.js.map +1 -0
- package/dist/components/Telegram/index.d.ts +5 -0
- package/dist/components/Telegram/index.js +22 -0
- package/dist/components/Telegram/index.js.map +1 -0
- package/dist/components/Telegram/types/client-operations.d.ts +34 -0
- package/dist/components/Telegram/types/client-operations.js +3 -0
- package/dist/components/Telegram/types/client-operations.js.map +1 -0
- package/dist/components/Telegram/types/telegram-error.d.ts +15 -0
- package/dist/components/Telegram/types/telegram-error.js +23 -0
- package/dist/components/Telegram/types/telegram-error.js.map +1 -0
- package/dist/components/Telegram/types/telegram-responses.d.ts +7 -0
- package/dist/components/Telegram/types/telegram-responses.js +3 -0
- package/dist/components/Telegram/types/telegram-responses.js.map +1 -0
- package/dist/components/Telegram/types/telegram-types.d.ts +14 -0
- package/dist/components/Telegram/types/telegram-types.js +3 -0
- package/dist/components/Telegram/types/telegram-types.js.map +1 -0
- package/dist/components/Telegram/utils/client-metadata.d.ts +19 -0
- package/dist/components/Telegram/utils/client-metadata.js +71 -0
- package/dist/components/Telegram/utils/client-metadata.js.map +1 -0
- package/dist/components/Telegram/utils/connection-manager.d.ts +17 -0
- package/dist/components/Telegram/utils/connection-manager.js +75 -0
- package/dist/components/Telegram/utils/connection-manager.js.map +1 -0
- package/dist/components/Telegram/utils/rate-limiter.d.ts +9 -0
- package/dist/components/Telegram/utils/rate-limiter.js +31 -0
- package/dist/components/Telegram/utils/rate-limiter.js.map +1 -0
- package/dist/components/Telegram/utils/telegram-logger.d.ts +10 -0
- package/dist/components/Telegram/utils/telegram-logger.js +29 -0
- package/dist/components/Telegram/utils/telegram-logger.js.map +1 -0
- package/dist/components/TgSignup/TgSignup.module.d.ts +2 -0
- package/dist/components/TgSignup/TgSignup.module.js +25 -0
- package/dist/components/TgSignup/TgSignup.module.js.map +1 -0
- package/dist/components/TgSignup/TgSignup.service.d.ts +24 -0
- package/dist/components/TgSignup/TgSignup.service.js +351 -0
- package/dist/components/TgSignup/TgSignup.service.js.map +1 -0
- package/dist/components/TgSignup/dto/tg-signup.dto.d.ts +16 -0
- package/dist/components/TgSignup/dto/tg-signup.dto.js +111 -0
- package/dist/components/TgSignup/dto/tg-signup.dto.js.map +1 -0
- package/dist/components/TgSignup/tgSignup.controller.d.ts +9 -0
- package/dist/components/TgSignup/tgSignup.controller.js +142 -0
- package/dist/components/TgSignup/tgSignup.controller.js.map +1 -0
- package/dist/components/active-channels/active-channels.controller.d.ts +19 -0
- package/dist/components/active-channels/active-channels.controller.js +168 -0
- package/dist/components/active-channels/active-channels.controller.js.map +1 -0
- package/dist/components/active-channels/active-channels.module.d.ts +2 -0
- package/dist/components/active-channels/active-channels.module.js +32 -0
- package/dist/components/active-channels/active-channels.module.js.map +1 -0
- package/dist/components/active-channels/active-channels.service.d.ts +61 -0
- package/dist/components/active-channels/active-channels.service.js +229 -0
- package/dist/components/active-channels/active-channels.service.js.map +1 -0
- package/dist/components/active-channels/dto/add-reaction.dto.d.ts +3 -0
- package/dist/components/active-channels/dto/add-reaction.dto.js +21 -0
- package/dist/components/active-channels/dto/add-reaction.dto.js.map +1 -0
- package/dist/components/active-channels/dto/create-active-channel.dto.d.ts +19 -0
- package/dist/components/active-channels/dto/create-active-channel.dto.js +117 -0
- package/dist/components/active-channels/dto/create-active-channel.dto.js.map +1 -0
- package/dist/components/active-channels/dto/update-active-channel.dto.d.ts +5 -0
- package/dist/components/active-channels/dto/update-active-channel.dto.js +9 -0
- package/dist/components/active-channels/dto/update-active-channel.dto.js.map +1 -0
- package/dist/components/active-channels/schemas/active-channel.schema.d.ts +56 -0
- package/dist/components/active-channels/schemas/active-channel.schema.js +142 -0
- package/dist/components/active-channels/schemas/active-channel.schema.js.map +1 -0
- package/dist/components/archived-clients/archived-client.controller.d.ts +18 -0
- package/dist/components/archived-clients/archived-client.controller.js +137 -0
- package/dist/components/archived-clients/archived-client.controller.js.map +1 -0
- package/dist/components/archived-clients/archived-client.module.d.ts +2 -0
- package/dist/components/archived-clients/archived-client.module.js +34 -0
- package/dist/components/archived-clients/archived-client.module.js.map +1 -0
- package/dist/components/archived-clients/archived-client.service.d.ts +46 -0
- package/dist/components/archived-clients/archived-client.service.js +147 -0
- package/dist/components/archived-clients/archived-client.service.js.map +1 -0
- package/dist/components/buffer-clients/buffer-client.controller.d.ts +24 -0
- package/dist/components/buffer-clients/buffer-client.controller.js +174 -0
- package/dist/components/buffer-clients/buffer-client.controller.js.map +1 -0
- package/dist/components/buffer-clients/buffer-client.module.d.ts +2 -0
- package/dist/components/buffer-clients/buffer-client.module.js +42 -0
- package/dist/components/buffer-clients/buffer-client.module.js.map +1 -0
- package/dist/components/buffer-clients/buffer-client.service.d.ts +75 -0
- package/dist/components/buffer-clients/buffer-client.service.js +533 -0
- package/dist/components/buffer-clients/buffer-client.service.js.map +1 -0
- package/dist/components/buffer-clients/dto/create-buffer-client.dto.d.ts +7 -0
- package/dist/components/buffer-clients/dto/create-buffer-client.dto.js +59 -0
- package/dist/components/buffer-clients/dto/create-buffer-client.dto.js.map +1 -0
- package/dist/components/buffer-clients/dto/search-buffer- client.dto.d.ts +7 -0
- package/dist/components/buffer-clients/dto/search-buffer- client.dto.js +63 -0
- package/dist/components/buffer-clients/dto/search-buffer- client.dto.js.map +1 -0
- package/dist/components/buffer-clients/dto/update-buffer-client.dto.d.ts +5 -0
- package/dist/components/buffer-clients/dto/update-buffer-client.dto.js +9 -0
- package/dist/components/buffer-clients/dto/update-buffer-client.dto.js.map +1 -0
- package/dist/components/buffer-clients/schemas/buffer-client.schema.d.ts +43 -0
- package/dist/components/buffer-clients/schemas/buffer-client.schema.js +49 -0
- package/dist/components/buffer-clients/schemas/buffer-client.schema.js.map +1 -0
- package/dist/components/builds/build.controller.d.ts +7 -0
- package/dist/components/builds/build.controller.js +52 -0
- package/dist/components/builds/build.controller.js.map +1 -0
- package/dist/components/builds/build.module.d.ts +2 -0
- package/dist/components/builds/build.module.js +32 -0
- package/dist/components/builds/build.module.js.map +1 -0
- package/dist/components/builds/build.service.d.ts +36 -0
- package/dist/components/builds/build.service.js +58 -0
- package/dist/components/builds/build.service.js.map +1 -0
- package/dist/components/builds/builds.schema.d.ts +38 -0
- package/dist/components/builds/builds.schema.js +29 -0
- package/dist/components/builds/builds.schema.js.map +1 -0
- package/dist/components/channels/channels.controller.d.ts +16 -0
- package/dist/components/channels/channels.controller.js +112 -0
- package/dist/components/channels/channels.controller.js.map +1 -0
- package/dist/components/channels/channels.module.d.ts +2 -0
- package/dist/components/channels/channels.module.js +30 -0
- package/dist/components/channels/channels.module.js.map +1 -0
- package/dist/components/channels/channels.service.d.ts +43 -0
- package/dist/components/channels/channels.service.js +167 -0
- package/dist/components/channels/channels.service.js.map +1 -0
- package/dist/components/channels/dto/create-channel.dto.d.ts +13 -0
- package/dist/components/channels/dto/create-channel.dto.js +104 -0
- package/dist/components/channels/dto/create-channel.dto.js.map +1 -0
- package/dist/components/channels/dto/search-channel.dto.d.ts +9 -0
- package/dist/components/channels/dto/search-channel.dto.js +66 -0
- package/dist/components/channels/dto/search-channel.dto.js.map +1 -0
- package/dist/components/channels/dto/update-channel.dto.d.ts +5 -0
- package/dist/components/channels/dto/update-channel.dto.js +9 -0
- package/dist/components/channels/dto/update-channel.dto.js.map +1 -0
- package/dist/components/channels/schemas/channel.schema.d.ts +49 -0
- package/dist/components/channels/schemas/channel.schema.js +93 -0
- package/dist/components/channels/schemas/channel.schema.js.map +1 -0
- package/dist/components/clients/client.controller.d.ts +32 -0
- package/dist/components/clients/client.controller.js +230 -0
- package/dist/components/clients/client.controller.js.map +1 -0
- package/dist/components/clients/client.module.d.ts +2 -0
- package/dist/components/clients/client.module.js +40 -0
- package/dist/components/clients/client.module.js.map +1 -0
- package/dist/components/clients/client.service.d.ts +76 -0
- package/dist/components/clients/client.service.js +417 -0
- package/dist/components/clients/client.service.js.map +1 -0
- package/dist/components/clients/dto/create-client.dto.d.ts +17 -0
- package/dist/components/clients/dto/create-client.dto.js +77 -0
- package/dist/components/clients/dto/create-client.dto.js.map +1 -0
- package/dist/components/clients/dto/search-client.dto.d.ts +16 -0
- package/dist/components/clients/dto/search-client.dto.js +119 -0
- package/dist/components/clients/dto/search-client.dto.js.map +1 -0
- package/dist/components/clients/dto/setup-client.dto.d.ts +6 -0
- package/dist/components/clients/dto/setup-client.dto.js +66 -0
- package/dist/components/clients/dto/setup-client.dto.js.map +1 -0
- package/dist/components/clients/dto/update-client.dto.d.ts +5 -0
- package/dist/components/clients/dto/update-client.dto.js +9 -0
- package/dist/components/clients/dto/update-client.dto.js.map +1 -0
- package/dist/components/clients/schemas/client.schema.d.ts +53 -0
- package/dist/components/clients/schemas/client.schema.js +105 -0
- package/dist/components/clients/schemas/client.schema.js.map +1 -0
- package/dist/components/n-point/npoint.controller.d.ts +9 -0
- package/dist/components/n-point/npoint.controller.js +134 -0
- package/dist/components/n-point/npoint.controller.js.map +1 -0
- package/dist/components/n-point/npoint.module.d.ts +2 -0
- package/dist/components/n-point/npoint.module.js +23 -0
- package/dist/components/n-point/npoint.module.js.map +1 -0
- package/dist/components/n-point/npoint.service.d.ts +14 -0
- package/dist/components/n-point/npoint.service.js +158 -0
- package/dist/components/n-point/npoint.service.js.map +1 -0
- package/dist/components/promote-clients/dto/create-promote-client.dto.d.ts +7 -0
- package/dist/components/promote-clients/dto/create-promote-client.dto.js +59 -0
- package/dist/components/promote-clients/dto/create-promote-client.dto.js.map +1 -0
- package/dist/components/promote-clients/dto/search-promote-client.dto.d.ts +6 -0
- package/dist/components/promote-clients/dto/search-promote-client.dto.js +54 -0
- package/dist/components/promote-clients/dto/search-promote-client.dto.js.map +1 -0
- package/dist/components/promote-clients/dto/update-promote-client.dto.d.ts +5 -0
- package/dist/components/promote-clients/dto/update-promote-client.dto.js +9 -0
- package/dist/components/promote-clients/dto/update-promote-client.dto.js.map +1 -0
- package/dist/components/promote-clients/promote-client.controller.d.ts +24 -0
- package/dist/components/promote-clients/promote-client.controller.js +174 -0
- package/dist/components/promote-clients/promote-client.controller.js.map +1 -0
- package/dist/components/promote-clients/promote-client.module.d.ts +2 -0
- package/dist/components/promote-clients/promote-client.module.js +42 -0
- package/dist/components/promote-clients/promote-client.module.js.map +1 -0
- package/dist/components/promote-clients/promote-client.service.d.ts +73 -0
- package/dist/components/promote-clients/promote-client.service.js +564 -0
- package/dist/components/promote-clients/promote-client.service.js.map +1 -0
- package/dist/components/promote-clients/schemas/promote-client.schema.d.ts +43 -0
- package/dist/components/promote-clients/schemas/promote-client.schema.js +49 -0
- package/dist/components/promote-clients/schemas/promote-client.schema.js.map +1 -0
- package/dist/components/promote-msgs/promote-msgs.controller.d.ts +7 -0
- package/dist/components/promote-msgs/promote-msgs.controller.js +52 -0
- package/dist/components/promote-msgs/promote-msgs.controller.js.map +1 -0
- package/dist/components/promote-msgs/promote-msgs.module.d.ts +2 -0
- package/dist/components/promote-msgs/promote-msgs.module.js +30 -0
- package/dist/components/promote-msgs/promote-msgs.module.js.map +1 -0
- package/dist/components/promote-msgs/promote-msgs.schema.d.ts +38 -0
- package/dist/components/promote-msgs/promote-msgs.schema.js +29 -0
- package/dist/components/promote-msgs/promote-msgs.schema.js.map +1 -0
- package/dist/components/promote-msgs/promote-msgs.service.d.ts +34 -0
- package/dist/components/promote-msgs/promote-msgs.service.js +48 -0
- package/dist/components/promote-msgs/promote-msgs.service.js.map +1 -0
- package/dist/components/promote-stats/dto/create-promote-stat.dto.d.ts +10 -0
- package/dist/components/promote-stats/dto/create-promote-stat.dto.js +49 -0
- package/dist/components/promote-stats/dto/create-promote-stat.dto.js.map +1 -0
- package/dist/components/promote-stats/dto/update-promote-stat.dto.d.ts +5 -0
- package/dist/components/promote-stats/dto/update-promote-stat.dto.js +9 -0
- package/dist/components/promote-stats/dto/update-promote-stat.dto.js.map +1 -0
- package/dist/components/promote-stats/promote-stat.controller.d.ts +12 -0
- package/dist/components/promote-stats/promote-stat.controller.js +82 -0
- package/dist/components/promote-stats/promote-stat.controller.js.map +1 -0
- package/dist/components/promote-stats/promote-stat.module.d.ts +2 -0
- package/dist/components/promote-stats/promote-stat.module.js +31 -0
- package/dist/components/promote-stats/promote-stat.module.js.map +1 -0
- package/dist/components/promote-stats/promote-stat.service.d.ts +42 -0
- package/dist/components/promote-stats/promote-stat.service.js +80 -0
- package/dist/components/promote-stats/promote-stat.service.js.map +1 -0
- package/dist/components/promote-stats/schemas/promote-stat.schema.d.ts +46 -0
- package/dist/components/promote-stats/schemas/promote-stat.schema.js +62 -0
- package/dist/components/promote-stats/schemas/promote-stat.schema.js.map +1 -0
- package/dist/components/shared/dto/execute-request.dto.d.ts +21 -0
- package/dist/components/shared/dto/execute-request.dto.js +86 -0
- package/dist/components/shared/dto/execute-request.dto.js.map +1 -0
- package/dist/components/stats/create-stat.dto.d.ts +14 -0
- package/dist/components/stats/create-stat.dto.js +65 -0
- package/dist/components/stats/create-stat.dto.js.map +1 -0
- package/dist/components/stats/stat.controller.d.ts +12 -0
- package/dist/components/stats/stat.controller.js +85 -0
- package/dist/components/stats/stat.controller.js.map +1 -0
- package/dist/components/stats/stat.module.d.ts +2 -0
- package/dist/components/stats/stat.module.js +30 -0
- package/dist/components/stats/stat.module.js.map +1 -0
- package/dist/components/stats/stat.schema.d.ts +50 -0
- package/dist/components/stats/stat.schema.js +83 -0
- package/dist/components/stats/stat.schema.js.map +1 -0
- package/dist/components/stats/stat.service.d.ts +39 -0
- package/dist/components/stats/stat.service.js +61 -0
- package/dist/components/stats/stat.service.js.map +1 -0
- package/dist/components/stats/update-stat.dto.d.ts +5 -0
- package/dist/components/stats/update-stat.dto.js +9 -0
- package/dist/components/stats/update-stat.dto.js.map +1 -0
- package/dist/components/stats2/create-stat2.dto.d.ts +14 -0
- package/dist/components/stats2/create-stat2.dto.js +65 -0
- package/dist/components/stats2/create-stat2.dto.js.map +1 -0
- package/dist/components/stats2/stat2.controller.d.ts +12 -0
- package/dist/components/stats2/stat2.controller.js +85 -0
- package/dist/components/stats2/stat2.controller.js.map +1 -0
- package/dist/components/stats2/stat2.module.d.ts +2 -0
- package/dist/components/stats2/stat2.module.js +30 -0
- package/dist/components/stats2/stat2.module.js.map +1 -0
- package/dist/components/stats2/stat2.schema.d.ts +50 -0
- package/dist/components/stats2/stat2.schema.js +83 -0
- package/dist/components/stats2/stat2.schema.js.map +1 -0
- package/dist/components/stats2/stat2.service.d.ts +39 -0
- package/dist/components/stats2/stat2.service.js +61 -0
- package/dist/components/stats2/stat2.service.js.map +1 -0
- package/dist/components/stats2/update-stat2.dto.d.ts +5 -0
- package/dist/components/stats2/update-stat2.dto.js +9 -0
- package/dist/components/stats2/update-stat2.dto.js.map +1 -0
- package/dist/components/transactions/dto/create-transaction.dto.d.ts +10 -0
- package/dist/components/transactions/dto/create-transaction.dto.js +49 -0
- package/dist/components/transactions/dto/create-transaction.dto.js.map +1 -0
- package/dist/components/transactions/dto/update-transaction.dto.d.ts +5 -0
- package/dist/components/transactions/dto/update-transaction.dto.js +9 -0
- package/dist/components/transactions/dto/update-transaction.dto.js.map +1 -0
- package/dist/components/transactions/schemas/transaction.schema.d.ts +45 -0
- package/dist/components/transactions/schemas/transaction.schema.js +54 -0
- package/dist/components/transactions/schemas/transaction.schema.js.map +1 -0
- package/dist/components/transactions/transaction.controller.d.ts +15 -0
- package/dist/components/transactions/transaction.controller.js +99 -0
- package/dist/components/transactions/transaction.controller.js.map +1 -0
- package/dist/components/transactions/transaction.module.d.ts +2 -0
- package/dist/components/transactions/transaction.module.js +30 -0
- package/dist/components/transactions/transaction.module.js.map +1 -0
- package/dist/components/transactions/transaction.service.d.ts +41 -0
- package/dist/components/transactions/transaction.service.js +77 -0
- package/dist/components/transactions/transaction.service.js.map +1 -0
- package/dist/components/upi-ids/upi-ids.controller.d.ts +7 -0
- package/dist/components/upi-ids/upi-ids.controller.js +52 -0
- package/dist/components/upi-ids/upi-ids.controller.js.map +1 -0
- package/dist/components/upi-ids/upi-ids.module.d.ts +2 -0
- package/dist/components/upi-ids/upi-ids.module.js +32 -0
- package/dist/components/upi-ids/upi-ids.module.js.map +1 -0
- package/dist/components/upi-ids/upi-ids.schema.d.ts +38 -0
- package/dist/components/upi-ids/upi-ids.schema.js +33 -0
- package/dist/components/upi-ids/upi-ids.schema.js.map +1 -0
- package/dist/components/upi-ids/upi-ids.service.d.ts +39 -0
- package/dist/components/upi-ids/upi-ids.service.js +83 -0
- package/dist/components/upi-ids/upi-ids.service.js.map +1 -0
- package/dist/components/user-data/dto/create-user-data.dto.d.ts +22 -0
- package/dist/components/user-data/dto/create-user-data.dto.js +97 -0
- package/dist/components/user-data/dto/create-user-data.dto.js.map +1 -0
- package/dist/components/user-data/dto/search-user-data.dto.d.ts +18 -0
- package/dist/components/user-data/dto/search-user-data.dto.js +83 -0
- package/dist/components/user-data/dto/search-user-data.dto.js.map +1 -0
- package/dist/components/user-data/dto/update-user-data.dto.d.ts +5 -0
- package/dist/components/user-data/dto/update-user-data.dto.js +9 -0
- package/dist/components/user-data/dto/update-user-data.dto.js.map +1 -0
- package/dist/components/user-data/schemas/user-data.schema.d.ts +59 -0
- package/dist/components/user-data/schemas/user-data.schema.js +113 -0
- package/dist/components/user-data/schemas/user-data.schema.js.map +1 -0
- package/dist/components/user-data/user-data.controller.d.ts +18 -0
- package/dist/components/user-data/user-data.controller.js +141 -0
- package/dist/components/user-data/user-data.controller.js.map +1 -0
- package/dist/components/user-data/user-data.module.d.ts +2 -0
- package/dist/components/user-data/user-data.module.js +30 -0
- package/dist/components/user-data/user-data.module.js.map +1 -0
- package/dist/components/user-data/user-data.service.d.ts +46 -0
- package/dist/components/user-data/user-data.service.js +131 -0
- package/dist/components/user-data/user-data.service.js.map +1 -0
- package/dist/components/users/dto/create-user.dto.d.ts +33 -0
- package/dist/components/users/dto/create-user.dto.js +142 -0
- package/dist/components/users/dto/create-user.dto.js.map +1 -0
- package/dist/components/users/dto/search-user.dto.d.ts +24 -0
- package/dist/components/users/dto/search-user.dto.js +152 -0
- package/dist/components/users/dto/search-user.dto.js.map +1 -0
- package/dist/components/users/dto/update-user.dto.d.ts +5 -0
- package/dist/components/users/dto/update-user.dto.js +9 -0
- package/dist/components/users/dto/update-user.dto.js.map +1 -0
- package/dist/components/users/schemas/user.schema.d.ts +70 -0
- package/dist/components/users/schemas/user.schema.js +179 -0
- package/dist/components/users/schemas/user.schema.js.map +1 -0
- package/dist/components/users/users.controller.d.ts +16 -0
- package/dist/components/users/users.controller.js +120 -0
- package/dist/components/users/users.controller.js.map +1 -0
- package/dist/components/users/users.module.d.ts +2 -0
- package/dist/components/users/users.module.js +34 -0
- package/dist/components/users/users.module.js.map +1 -0
- package/dist/components/users/users.service.d.ts +46 -0
- package/dist/components/users/users.service.js +117 -0
- package/dist/components/users/users.service.js.map +1 -0
- package/dist/features/clients/index.d.ts +14 -0
- package/dist/features/clients/index.js +31 -0
- package/dist/features/clients/index.js.map +1 -0
- package/dist/features/stats/index.d.ts +10 -0
- package/dist/features/stats/index.js +31 -0
- package/dist/features/stats/index.js.map +1 -0
- package/dist/features/telegram/index.d.ts +4 -0
- package/dist/features/telegram/index.js +26 -0
- package/dist/features/telegram/index.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/telegram.d.ts +86 -0
- package/dist/interfaces/telegram.js +10 -0
- package/dist/interfaces/telegram.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +81 -0
- package/dist/main.js.map +1 -0
- package/dist/middlewares/logger.middleware.d.ts +6 -0
- package/dist/middlewares/logger.middleware.js +60 -0
- package/dist/middlewares/logger.middleware.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/utils/fetchWithTimeout.d.ts +4 -0
- package/dist/utils/fetchWithTimeout.js +180 -0
- package/dist/utils/fetchWithTimeout.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +16 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/logbots.d.ts +2 -0
- package/dist/utils/logbots.js +36 -0
- package/dist/utils/logbots.js.map +1 -0
- package/dist/utils/parseError.d.ts +6 -0
- package/dist/utils/parseError.js +115 -0
- package/dist/utils/parseError.js.map +1 -0
- package/dist/utils.d.ts +8 -0
- package/dist/utils.js +87 -0
- package/dist/utils.js.map +1 -0
- package/package.json +109 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stat2.schema.js","sourceRoot":"","sources":["../../../src/components/stats2/stat2.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,6CAA8C;AAMvC,IAAM,KAAK,GAAX,MAAM,KAAK;CAgDjB,CAAA;AAhDY,sBAAK;AAGhB;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;IAC9D,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACV;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;IAClD,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACX;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;IACvD,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACP;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;IACzD,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACN;AAInB;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAC/D,IAAA,eAAI,EA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AgDjB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAC9D,kBAAU,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { Model } from 'mongoose';
|
|
27
|
+
import { CreateStatDto } from './create-stat2.dto';
|
|
28
|
+
import { UpdateStatDto } from './update-stat2.dto';
|
|
29
|
+
import { Stat2, Stat2Document } from './stat2.schema';
|
|
30
|
+
export declare class Stat2Service {
|
|
31
|
+
private statModel;
|
|
32
|
+
constructor(statModel: Model<Stat2Document>);
|
|
33
|
+
create(createStatDto: CreateStatDto): Promise<Stat2>;
|
|
34
|
+
findByChatIdAndProfile(chatId: string, profile: string): Promise<Stat2>;
|
|
35
|
+
update(chatId: string, profile: string, updateStatDto: UpdateStatDto): Promise<Stat2>;
|
|
36
|
+
findAll(): Promise<Stat2[]>;
|
|
37
|
+
deleteOne(chatId: string, profile: string): Promise<void>;
|
|
38
|
+
deleteAll(): Promise<void>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Stat2Service = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
18
|
+
const mongoose_2 = require("mongoose");
|
|
19
|
+
let Stat2Service = class Stat2Service {
|
|
20
|
+
constructor(statModel) {
|
|
21
|
+
this.statModel = statModel;
|
|
22
|
+
}
|
|
23
|
+
async create(createStatDto) {
|
|
24
|
+
const createdStat = new this.statModel(createStatDto);
|
|
25
|
+
return createdStat.save();
|
|
26
|
+
}
|
|
27
|
+
async findByChatIdAndProfile(chatId, profile) {
|
|
28
|
+
const stat = await this.statModel.findOne({ chatId, profile }).exec();
|
|
29
|
+
if (!stat) {
|
|
30
|
+
throw new common_1.NotFoundException(`Stat not found for chatId ${chatId} and profile ${profile}`);
|
|
31
|
+
}
|
|
32
|
+
return stat;
|
|
33
|
+
}
|
|
34
|
+
async update(chatId, profile, updateStatDto) {
|
|
35
|
+
const stat = await this.statModel.findOneAndUpdate({ chatId, profile }, updateStatDto, { new: true }).exec();
|
|
36
|
+
if (!stat) {
|
|
37
|
+
throw new common_1.NotFoundException(`Stat not found for chatId ${chatId} and profile ${profile}`);
|
|
38
|
+
}
|
|
39
|
+
return stat;
|
|
40
|
+
}
|
|
41
|
+
async findAll() {
|
|
42
|
+
const stats = await this.statModel.find().exec();
|
|
43
|
+
return stats;
|
|
44
|
+
}
|
|
45
|
+
async deleteOne(chatId, profile) {
|
|
46
|
+
const result = await this.statModel.deleteOne({ chatId, profile }).exec();
|
|
47
|
+
if (result.deletedCount === 0) {
|
|
48
|
+
throw new common_1.NotFoundException(`Stat not found for chatId ${chatId} and profile ${profile}`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async deleteAll() {
|
|
52
|
+
await this.statModel.deleteMany({}).exec();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.Stat2Service = Stat2Service;
|
|
56
|
+
exports.Stat2Service = Stat2Service = __decorate([
|
|
57
|
+
(0, common_1.Injectable)(),
|
|
58
|
+
__param(0, (0, mongoose_1.InjectModel)("Stats2Module")),
|
|
59
|
+
__metadata("design:paramtypes", [mongoose_2.Model])
|
|
60
|
+
], Stat2Service);
|
|
61
|
+
//# sourceMappingURL=stat2.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stat2.service.js","sourceRoot":"","sources":["../../../src/components/stats2/stat2.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,+CAA+C;AAC/C,uCAAiC;AAM1B,IAAM,YAAY,GAAlB,MAAM,YAAY;IACvB,YAAiD,SAA+B;QAA/B,cAAS,GAAT,SAAS,CAAsB;IAAG,CAAC;IAEpF,KAAK,CAAC,MAAM,CAAC,aAA4B;QACvC,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QACtD,OAAO,WAAW,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,sBAAsB,CAAC,MAAc,EAAE,OAAe;QAC1D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACtE,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,0BAAiB,CAAC,6BAA6B,MAAM,gBAAgB,OAAO,EAAE,CAAC,CAAC;QAC5F,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAc,EAAE,OAAe,EAAE,aAA4B;QACxE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC7G,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,0BAAiB,CAAC,6BAA6B,MAAM,gBAAgB,OAAO,EAAE,CAAC,CAAC;QAC5F,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;QACjD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,MAAc,EAAE,OAAe;QAC7C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC1E,IAAI,MAAM,CAAC,YAAY,KAAK,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,0BAAiB,CAAC,6BAA6B,MAAM,gBAAgB,OAAO,EAAE,CAAC,CAAC;QAC5F,CAAC;IACH,CAAC;IAED,KAAK,CAAC,SAAS;QACb,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC7C,CAAC;CACF,CAAA;AAvCY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;IAEE,WAAA,IAAA,sBAAW,EAAC,cAAc,CAAC,CAAA;qCAAoB,gBAAK;GADtD,YAAY,CAuCxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateStatDto = void 0;
|
|
4
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
5
|
+
const create_stat2_dto_1 = require("./create-stat2.dto");
|
|
6
|
+
class UpdateStatDto extends (0, swagger_1.PartialType)(create_stat2_dto_1.CreateStatDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateStatDto = UpdateStatDto;
|
|
9
|
+
//# sourceMappingURL=update-stat2.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-stat2.dto.js","sourceRoot":"","sources":["../../../src/components/stats2/update-stat2.dto.ts"],"names":[],"mappings":";;;AACA,6CAA8C;AAC9C,yDAAmD;AAEnD,MAAa,aAAc,SAAQ,IAAA,qBAAW,EAAC,gCAAa,CAAC;CAAG;AAAhE,sCAAgE"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateTransactionDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class CreateTransactionDto {
|
|
15
|
+
}
|
|
16
|
+
exports.CreateTransactionDto = CreateTransactionDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)({ description: 'Unique transaction ID (UTR).' }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], CreateTransactionDto.prototype, "transactionId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)({ description: 'Amount involved in the transaction.' }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], CreateTransactionDto.prototype, "amount", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ description: 'Issue type reported by the user.' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateTransactionDto.prototype, "issue", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({ description: 'Description of issue reported by the user.' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateTransactionDto.prototype, "description", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ description: 'Refund method selected by the user.' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateTransactionDto.prototype, "refundMethod", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ description: 'User profile ID.' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CreateTransactionDto.prototype, "profile", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({ description: 'User chat ID.' }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], CreateTransactionDto.prototype, "chatId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({ description: 'IP address of the user.' }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreateTransactionDto.prototype, "ip", void 0);
|
|
49
|
+
//# sourceMappingURL=create-transaction.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-transaction.dto.js","sourceRoot":"","sources":["../../../../src/components/transactions/dto/create-transaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAE9C,MAAa,oBAAoB;CAwBhC;AAxBD,oDAwBC;AAtBC;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;;2DACvC;AAGtB;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;;oDACrD;AAGf;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;;mDACnD;AAGd;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4CAA4C,EAAE,CAAC;;yDACvD;AAGpB;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;;0DAC/C;AAGrB;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;;qDACjC;AAGhB;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;;oDAC/B;AAGf;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;;gDAC7C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateTransactionDto = void 0;
|
|
4
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
5
|
+
const create_transaction_dto_1 = require("./create-transaction.dto");
|
|
6
|
+
class UpdateTransactionDto extends (0, swagger_1.PartialType)(create_transaction_dto_1.CreateTransactionDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateTransactionDto = UpdateTransactionDto;
|
|
9
|
+
//# sourceMappingURL=update-transaction.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-transaction.dto.js","sourceRoot":"","sources":["../../../../src/components/transactions/dto/update-transaction.dto.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAC9C,qEAAgE;AAEhE,MAAa,oBAAqB,SAAQ,IAAA,qBAAW,EAAC,6CAAoB,CAAC;CAAG;AAA9E,oDAA8E"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { Document } from 'mongoose';
|
|
27
|
+
export declare class Transaction extends Document {
|
|
28
|
+
transactionId: string;
|
|
29
|
+
amount: number;
|
|
30
|
+
issue: string;
|
|
31
|
+
description: string;
|
|
32
|
+
refundMethod: string;
|
|
33
|
+
profile: string;
|
|
34
|
+
chatId: string;
|
|
35
|
+
ipAddress: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const TransactionSchema: import("mongoose").Schema<Transaction, import("mongoose").Model<Transaction, any, any, any, Document<unknown, any, Transaction> & Transaction & Required<{
|
|
38
|
+
_id: unknown;
|
|
39
|
+
}> & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Transaction, Document<unknown, {}, import("mongoose").FlatRecord<Transaction>> & import("mongoose").FlatRecord<Transaction> & Required<{
|
|
42
|
+
_id: unknown;
|
|
43
|
+
}> & {
|
|
44
|
+
__v: number;
|
|
45
|
+
}>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.TransactionSchema = exports.Transaction = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
let Transaction = class Transaction extends mongoose_2.Document {
|
|
16
|
+
};
|
|
17
|
+
exports.Transaction = Transaction;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], Transaction.prototype, "transactionId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], Transaction.prototype, "amount", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Transaction.prototype, "issue", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Transaction.prototype, "description", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_1.Prop)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Transaction.prototype, "refundMethod", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Transaction.prototype, "profile", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Transaction.prototype, "chatId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Transaction.prototype, "ipAddress", void 0);
|
|
50
|
+
exports.Transaction = Transaction = __decorate([
|
|
51
|
+
(0, mongoose_1.Schema)({ timestamps: true })
|
|
52
|
+
], Transaction);
|
|
53
|
+
exports.TransactionSchema = mongoose_1.SchemaFactory.createForClass(Transaction);
|
|
54
|
+
//# sourceMappingURL=transaction.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.schema.js","sourceRoot":"","sources":["../../../../src/components/transactions/schemas/transaction.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoC;AAG7B,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,mBAAQ;CAwBxC,CAAA;AAxBY,kCAAW;AAEtB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kDACJ;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CACX;AAGf;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CACZ;AAGd;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACN;AAGpB;IADC,IAAA,eAAI,GAAE;;iDACc;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4CACV;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CACX;AAGf;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;8CACR;sBAvBP,WAAW;IADvB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAChB,WAAW,CAwBvB;AAEY,QAAA,iBAAiB,GAAG,wBAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CreateTransactionDto } from './dto/create-transaction.dto';
|
|
2
|
+
import { UpdateTransactionDto } from './dto/update-transaction.dto';
|
|
3
|
+
import { TransactionService } from './transaction.service';
|
|
4
|
+
export declare class TransactionController {
|
|
5
|
+
private readonly transactionService;
|
|
6
|
+
constructor(transactionService: TransactionService);
|
|
7
|
+
create(createTransactionDto: CreateTransactionDto): Promise<import("./schemas/transaction.schema").Transaction>;
|
|
8
|
+
findOne(id: string): Promise<import("./schemas/transaction.schema").Transaction>;
|
|
9
|
+
findAll(search?: string, limit?: number, offset?: number): Promise<{
|
|
10
|
+
transactions: import("./schemas/transaction.schema").Transaction[];
|
|
11
|
+
total: number;
|
|
12
|
+
}>;
|
|
13
|
+
update(id: string, updateTransactionDto: UpdateTransactionDto): Promise<import("./schemas/transaction.schema").Transaction>;
|
|
14
|
+
delete(id: string): Promise<import("./schemas/transaction.schema").Transaction>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.TransactionController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
const create_transaction_dto_1 = require("./dto/create-transaction.dto");
|
|
19
|
+
const update_transaction_dto_1 = require("./dto/update-transaction.dto");
|
|
20
|
+
const transaction_service_1 = require("./transaction.service");
|
|
21
|
+
let TransactionController = class TransactionController {
|
|
22
|
+
constructor(transactionService) {
|
|
23
|
+
this.transactionService = transactionService;
|
|
24
|
+
}
|
|
25
|
+
async create(createTransactionDto) {
|
|
26
|
+
return this.transactionService.create(createTransactionDto);
|
|
27
|
+
}
|
|
28
|
+
async findOne(id) {
|
|
29
|
+
return this.transactionService.findOne(id);
|
|
30
|
+
}
|
|
31
|
+
async findAll(search, limit, offset) {
|
|
32
|
+
return this.transactionService.findAll(search, limit, offset);
|
|
33
|
+
}
|
|
34
|
+
async update(id, updateTransactionDto) {
|
|
35
|
+
return this.transactionService.update(id, updateTransactionDto);
|
|
36
|
+
}
|
|
37
|
+
async delete(id) {
|
|
38
|
+
return this.transactionService.delete(id);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
exports.TransactionController = TransactionController;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, common_1.Post)(),
|
|
44
|
+
(0, swagger_1.ApiOperation)({ summary: 'Create a new transaction' }),
|
|
45
|
+
(0, swagger_1.ApiResponse)({ status: 201, description: 'Transaction created successfully.' }),
|
|
46
|
+
(0, swagger_1.ApiResponse)({ status: 400, description: 'Invalid input.' }),
|
|
47
|
+
__param(0, (0, common_1.Body)()),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", [create_transaction_dto_1.CreateTransactionDto]),
|
|
50
|
+
__metadata("design:returntype", Promise)
|
|
51
|
+
], TransactionController.prototype, "create", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, common_1.Get)(':id'),
|
|
54
|
+
(0, swagger_1.ApiOperation)({ summary: 'Get transaction by ID' }),
|
|
55
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'Transaction retrieved successfully.' }),
|
|
56
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'Transaction not found.' }),
|
|
57
|
+
__param(0, (0, common_1.Param)('id')),
|
|
58
|
+
__metadata("design:type", Function),
|
|
59
|
+
__metadata("design:paramtypes", [String]),
|
|
60
|
+
__metadata("design:returntype", Promise)
|
|
61
|
+
], TransactionController.prototype, "findOne", null);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, common_1.Get)(),
|
|
64
|
+
(0, swagger_1.ApiOperation)({ summary: 'Get all transactions or search transactions' }),
|
|
65
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'Transactions retrieved successfully.' }),
|
|
66
|
+
__param(0, (0, common_1.Query)('search')),
|
|
67
|
+
__param(1, (0, common_1.Query)('limit')),
|
|
68
|
+
__param(2, (0, common_1.Query)('offset')),
|
|
69
|
+
__metadata("design:type", Function),
|
|
70
|
+
__metadata("design:paramtypes", [String, Number, Number]),
|
|
71
|
+
__metadata("design:returntype", Promise)
|
|
72
|
+
], TransactionController.prototype, "findAll", null);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, common_1.Put)(':id'),
|
|
75
|
+
(0, swagger_1.ApiOperation)({ summary: 'Update a transaction by ID' }),
|
|
76
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'Transaction updated successfully.' }),
|
|
77
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'Transaction not found.' }),
|
|
78
|
+
__param(0, (0, common_1.Param)('id')),
|
|
79
|
+
__param(1, (0, common_1.Body)()),
|
|
80
|
+
__metadata("design:type", Function),
|
|
81
|
+
__metadata("design:paramtypes", [String, update_transaction_dto_1.UpdateTransactionDto]),
|
|
82
|
+
__metadata("design:returntype", Promise)
|
|
83
|
+
], TransactionController.prototype, "update", null);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, common_1.Delete)(':id'),
|
|
86
|
+
(0, swagger_1.ApiOperation)({ summary: 'Delete a transaction by ID' }),
|
|
87
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'Transaction deleted successfully.' }),
|
|
88
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'Transaction not found.' }),
|
|
89
|
+
__param(0, (0, common_1.Param)('id')),
|
|
90
|
+
__metadata("design:type", Function),
|
|
91
|
+
__metadata("design:paramtypes", [String]),
|
|
92
|
+
__metadata("design:returntype", Promise)
|
|
93
|
+
], TransactionController.prototype, "delete", null);
|
|
94
|
+
exports.TransactionController = TransactionController = __decorate([
|
|
95
|
+
(0, swagger_1.ApiTags)('Transactions'),
|
|
96
|
+
(0, common_1.Controller)('transactions'),
|
|
97
|
+
__metadata("design:paramtypes", [transaction_service_1.TransactionService])
|
|
98
|
+
], TransactionController);
|
|
99
|
+
//# sourceMappingURL=transaction.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.controller.js","sourceRoot":"","sources":["../../../src/components/transactions/transaction.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;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,EAAE,GAAG,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;IAC9E,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACtD,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;mDAExB;gCA/CU,qBAAqB;IAFjC,IAAA,iBAAO,EAAC,cAAc,CAAC;IACvB,IAAA,mBAAU,EAAC,cAAc,CAAC;qCAEwB,wCAAkB;GADxD,qBAAqB,CAgDjC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.TransactionModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
12
|
+
const transaction_service_1 = require("./transaction.service");
|
|
13
|
+
const transaction_controller_1 = require("./transaction.controller");
|
|
14
|
+
const transaction_schema_1 = require("./schemas/transaction.schema");
|
|
15
|
+
let TransactionModule = class TransactionModule {
|
|
16
|
+
};
|
|
17
|
+
exports.TransactionModule = TransactionModule;
|
|
18
|
+
exports.TransactionModule = TransactionModule = __decorate([
|
|
19
|
+
(0, common_1.Module)({
|
|
20
|
+
imports: [
|
|
21
|
+
mongoose_1.MongooseModule.forFeature([
|
|
22
|
+
{ name: transaction_schema_1.Transaction.name, schema: transaction_schema_1.TransactionSchema },
|
|
23
|
+
]),
|
|
24
|
+
],
|
|
25
|
+
controllers: [transaction_controller_1.TransactionController],
|
|
26
|
+
providers: [transaction_service_1.TransactionService],
|
|
27
|
+
exports: [transaction_service_1.TransactionService]
|
|
28
|
+
})
|
|
29
|
+
], TransactionModule);
|
|
30
|
+
//# sourceMappingURL=transaction.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.module.js","sourceRoot":"","sources":["../../../src/components/transactions/transaction.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,+CAAkD;AAClD,+DAA2D;AAC3D,qEAAiE;AACjE,qEAA8E;AAYvE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAV7B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,yBAAc,CAAC,UAAU,CAAC;gBACxB,EAAE,IAAI,EAAE,gCAAW,CAAC,IAAI,EAAE,MAAM,EAAE,sCAAiB,EAAE;aACtD,CAAC;SACH;QACD,WAAW,EAAE,CAAC,8CAAqB,CAAC;QACpC,SAAS,EAAE,CAAC,wCAAkB,CAAC;QAC/B,OAAO,EAAC,CAAC,wCAAkB,CAAC;KAC7B,CAAC;GACW,iBAAiB,CAAG"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { Model } from 'mongoose';
|
|
27
|
+
import { CreateTransactionDto } from './dto/create-transaction.dto';
|
|
28
|
+
import { UpdateTransactionDto } from './dto/update-transaction.dto';
|
|
29
|
+
import { Transaction } from './schemas/transaction.schema';
|
|
30
|
+
export declare class TransactionService {
|
|
31
|
+
private readonly transactionModel;
|
|
32
|
+
constructor(transactionModel: Model<Transaction>);
|
|
33
|
+
create(createTransactionDto: CreateTransactionDto): Promise<Transaction>;
|
|
34
|
+
findOne(id: string): Promise<Transaction>;
|
|
35
|
+
findAll(search?: string, limit?: number, offset?: number): Promise<{
|
|
36
|
+
transactions: Transaction[];
|
|
37
|
+
total: number;
|
|
38
|
+
}>;
|
|
39
|
+
update(id: string, updateTransactionDto: UpdateTransactionDto): Promise<Transaction>;
|
|
40
|
+
delete(id: string): Promise<Transaction>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.TransactionService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
18
|
+
const mongoose_2 = require("mongoose");
|
|
19
|
+
const transaction_schema_1 = require("./schemas/transaction.schema");
|
|
20
|
+
let TransactionService = class TransactionService {
|
|
21
|
+
constructor(transactionModel) {
|
|
22
|
+
this.transactionModel = transactionModel;
|
|
23
|
+
}
|
|
24
|
+
async create(createTransactionDto) {
|
|
25
|
+
const newTransaction = new this.transactionModel(createTransactionDto);
|
|
26
|
+
return await newTransaction.save();
|
|
27
|
+
}
|
|
28
|
+
async findOne(id) {
|
|
29
|
+
const transaction = await this.transactionModel.findById(id).exec();
|
|
30
|
+
if (!transaction) {
|
|
31
|
+
throw new common_1.NotFoundException('Transaction not found');
|
|
32
|
+
}
|
|
33
|
+
return transaction;
|
|
34
|
+
}
|
|
35
|
+
async findAll(search, limit = 10, offset = 0) {
|
|
36
|
+
const query = search
|
|
37
|
+
? {
|
|
38
|
+
$or: [
|
|
39
|
+
{ transactionId: { $regex: search, $options: 'i' } },
|
|
40
|
+
{ issue: { $regex: search, $options: 'i' } },
|
|
41
|
+
{ profile: { $regex: search, $options: 'i' } },
|
|
42
|
+
{ chatId: { $regex: search, $options: 'i' } },
|
|
43
|
+
],
|
|
44
|
+
}
|
|
45
|
+
: {};
|
|
46
|
+
const transactions = await this.transactionModel
|
|
47
|
+
.find(query)
|
|
48
|
+
.skip(offset)
|
|
49
|
+
.limit(limit)
|
|
50
|
+
.exec();
|
|
51
|
+
const total = await this.transactionModel.countDocuments(query).exec();
|
|
52
|
+
return { transactions, total };
|
|
53
|
+
}
|
|
54
|
+
async update(id, updateTransactionDto) {
|
|
55
|
+
const updatedTransaction = await this.transactionModel
|
|
56
|
+
.findByIdAndUpdate(id, updateTransactionDto, { new: true })
|
|
57
|
+
.exec();
|
|
58
|
+
if (!updatedTransaction) {
|
|
59
|
+
throw new common_1.NotFoundException('Transaction not found');
|
|
60
|
+
}
|
|
61
|
+
return updatedTransaction;
|
|
62
|
+
}
|
|
63
|
+
async delete(id) {
|
|
64
|
+
const deletedTransaction = await this.transactionModel.findByIdAndDelete(id).exec();
|
|
65
|
+
if (!deletedTransaction) {
|
|
66
|
+
throw new common_1.NotFoundException('Transaction not found');
|
|
67
|
+
}
|
|
68
|
+
return deletedTransaction;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
exports.TransactionService = TransactionService;
|
|
72
|
+
exports.TransactionService = TransactionService = __decorate([
|
|
73
|
+
(0, common_1.Injectable)(),
|
|
74
|
+
__param(0, (0, mongoose_1.InjectModel)(transaction_schema_1.Transaction.name)),
|
|
75
|
+
__metadata("design:paramtypes", [mongoose_2.Model])
|
|
76
|
+
], TransactionService);
|
|
77
|
+
//# sourceMappingURL=transaction.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.service.js","sourceRoot":"","sources":["../../../src/components/transactions/transaction.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,+CAA+C;AAC/C,uCAAiC;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