hgs-twilio-class-lib 1.1.70 → 1.1.72
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/README.md +5 -5
- package/package.json +56 -56
- package/lib/aws/abstract/ServiceObjectStore.d.ts +0 -9
- package/lib/aws/abstract/ServiceObjectStore.js +0 -10
- package/lib/aws/abstract/ServiceOpenRequest.d.ts +0 -7
- package/lib/aws/abstract/ServiceOpenRequest.js +0 -10
- package/lib/aws/abstract/ServiceRequest.d.ts +0 -3
- package/lib/aws/abstract/ServiceRequest.js +0 -7
- package/lib/aws/abstract/ServiceResource.d.ts +0 -20
- package/lib/aws/abstract/ServiceResource.js +0 -31
- package/lib/aws/abstract/ServiceResourceFactory.d.ts +0 -13
- package/lib/aws/abstract/ServiceResourceFactory.js +0 -14
- package/lib/aws/abstract/ServiceTransaction.d.ts +0 -6
- package/lib/aws/abstract/ServiceTransaction.js +0 -11
- package/lib/aws/impl/AWSAPIConfig.d.ts +0 -14
- package/lib/aws/impl/AWSAPIConfig.js +0 -38
- package/lib/aws/impl/AWSClient.d.ts +0 -5
- package/lib/aws/impl/AWSClient.js +0 -21
- package/lib/aws/impl/AWSConnectAPIConfig.d.ts +0 -17
- package/lib/aws/impl/AWSConnectAPIConfig.js +0 -38
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.d.ts +0 -18
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js +0 -24
- package/lib/aws/impl/DynamoDB/DynamoRequest.d.ts +0 -16
- package/lib/aws/impl/DynamoDB/DynamoRequest.js +0 -21
- package/lib/aws/impl/DynamoDB/DynamoResourse.d.ts +0 -29
- package/lib/aws/impl/DynamoDB/DynamoResourse.js +0 -45
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.d.ts +0 -16
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js +0 -63
- package/lib/aws/impl/DynamoDB/DynamoTable.d.ts +0 -26
- package/lib/aws/impl/DynamoDB/DynamoTable.js +0 -126
- package/lib/aws/impl/DynamoDB/DynamoTransaction.d.ts +0 -21
- package/lib/aws/impl/DynamoDB/DynamoTransaction.js +0 -37
- package/lib/aws/impl/HoopServices/HoopService.d.ts +0 -28
- package/lib/aws/impl/HoopServices/HoopService.js +0 -124
- package/lib/aws/impl/HoopServices/HoopServiceFactory.d.ts +0 -17
- package/lib/aws/impl/HoopServices/HoopServiceFactory.js +0 -53
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.d.ts +0 -18
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js +0 -24
- package/lib/aws/impl/HoopServices/HoopServiceResource.d.ts +0 -29
- package/lib/aws/impl/HoopServices/HoopServiceResource.js +0 -46
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.d.ts +0 -22
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.js +0 -37
- package/lib/aws/interface/IDirection.d.ts +0 -2
- package/lib/aws/interface/IDirection.js +0 -2
- package/lib/aws/interface/ILink.d.ts +0 -2
- package/lib/aws/interface/ILink.js +0 -2
- package/lib/aws/interface/IServiceDBOpenRequest.d.ts +0 -3
- package/lib/aws/interface/IServiceDBOpenRequest.js +0 -2
- package/lib/aws/interface/IServiceObjectStore.d.ts +0 -3
- package/lib/aws/interface/IServiceObjectStore.js +0 -2
- package/lib/aws/interface/IServiceObjectStoreParameters.d.ts +0 -4
- package/lib/aws/interface/IServiceObjectStoreParameters.js +0 -2
- package/lib/aws/interface/IServiceRequest.d.ts +0 -3
- package/lib/aws/interface/IServiceRequest.js +0 -2
- package/lib/aws/interface/IServiceResource.d.ts +0 -7
- package/lib/aws/interface/IServiceResource.js +0 -2
- package/lib/aws/interface/IServiceTransation.d.ts +0 -3
- package/lib/aws/interface/IServiceTransation.js +0 -2
- package/lib/aws/interface/ISubResourceUri.d.ts +0 -2
- package/lib/aws/interface/ISubResourceUri.js +0 -2
- package/lib/aws/interface/ISyncItemData.d.ts +0 -0
- package/lib/aws/interface/ISyncItemData.js +0 -1
- package/lib/aws/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/aws/interface/ISyncObjectStoreParameters.js +0 -1
- package/lib/aws/interface/ISyncTransactionOptions.d.ts +0 -4
- package/lib/aws/interface/ISyncTransactionOptions.js +0 -2
- package/lib/common/abstract/CommonError.d.ts +0 -8
- package/lib/common/abstract/CommonError.js +0 -12
- package/lib/common/abstract/Database.d.ts +0 -44
- package/lib/common/abstract/Database.js +0 -58
- package/lib/common/abstract/DatabaseClient.d.ts +0 -11
- package/lib/common/abstract/DatabaseClient.js +0 -21
- package/lib/common/abstract/DatabaseClientConfig.d.ts +0 -5
- package/lib/common/abstract/DatabaseClientConfig.js +0 -9
- package/lib/common/abstract/DatabaseFactory.d.ts +0 -70
- package/lib/common/abstract/DatabaseFactory.js +0 -32
- package/lib/common/abstract/DatabaseObjectStore.d.ts +0 -29
- package/lib/common/abstract/DatabaseObjectStore.js +0 -13
- package/lib/common/abstract/DatabaseOpenRequest.d.ts +0 -24
- package/lib/common/abstract/DatabaseOpenRequest.js +0 -13
- package/lib/common/abstract/DatabaseRequest.d.ts +0 -21
- package/lib/common/abstract/DatabaseRequest.js +0 -14
- package/lib/common/abstract/DatabaseTransaction.d.ts +0 -22
- package/lib/common/abstract/DatabaseTransaction.js +0 -13
- package/lib/common/abstract/Filter.d.ts +0 -12
- package/lib/common/abstract/Filter.js +0 -30
- package/lib/common/enum/ErrorTypes.d.ts +0 -4
- package/lib/common/enum/ErrorTypes.js +0 -9
- package/lib/common/enum/FilterTypes.d.ts +0 -10
- package/lib/common/enum/FilterTypes.js +0 -14
- package/lib/common/interface/IDatabaesInfo.d.ts +0 -2
- package/lib/common/interface/IDatabaesInfo.js +0 -2
- package/lib/common/interface/IDatabase.d.ts +0 -4
- package/lib/common/interface/IDatabase.js +0 -2
- package/lib/common/interface/IDatabaseClient.d.ts +0 -5
- package/lib/common/interface/IDatabaseClient.js +0 -2
- package/lib/common/interface/IDatabaseConfig.d.ts +0 -8
- package/lib/common/interface/IDatabaseConfig.js +0 -10
- package/lib/common/interface/IDatabaseDBOpenRequest.d.ts +0 -2
- package/lib/common/interface/IDatabaseDBOpenRequest.js +0 -2
- package/lib/common/interface/IDatabaseFactory.d.ts +0 -21
- package/lib/common/interface/IDatabaseFactory.js +0 -2
- package/lib/common/interface/IDatabaseObjectStore.d.ts +0 -2
- package/lib/common/interface/IDatabaseObjectStore.js +0 -2
- package/lib/common/interface/IDatabaseObjectStoreParameters.d.ts +0 -2
- package/lib/common/interface/IDatabaseObjectStoreParameters.js +0 -2
- package/lib/common/interface/IDatabaseRecord.d.ts +0 -2
- package/lib/common/interface/IDatabaseRecord.js +0 -2
- package/lib/common/interface/IDatabaseRequest.d.ts +0 -2
- package/lib/common/interface/IDatabaseRequest.js +0 -2
- package/lib/common/interface/IDatabaseTransaction.d.ts +0 -2
- package/lib/common/interface/IDatabaseTransaction.js +0 -2
- package/lib/common/interface/IDatabaseTransactionOptions.d.ts +0 -2
- package/lib/common/interface/IDatabaseTransactionOptions.js +0 -2
- package/lib/common/interface/IError.d.ts +0 -5
- package/lib/common/interface/IError.js +0 -2
- package/lib/common/interface/IErrorDetails.d.ts +0 -6
- package/lib/common/interface/IErrorDetails.js +0 -2
- package/lib/common/interface/IFilter.d.ts +0 -25
- package/lib/common/interface/IFilter.js +0 -2
- package/lib/common/type/DatabaseReadyType.d.ts +0 -1
- package/lib/common/type/DatabaseReadyType.js +0 -2
- package/lib/common/type/FilterInputType.d.ts +0 -1
- package/lib/common/type/FilterInputType.js +0 -2
- package/lib/common/type/SearchParameterType.d.ts +0 -15
- package/lib/common/type/SearchParameterType.js +0 -3
- package/lib/common/utils/dateFormat.d.ts +0 -1
- package/lib/common/utils/dateFormat.js +0 -58
- package/lib/common/utils/filter.d.ts +0 -1
- package/lib/common/utils/filter.js +0 -99
- package/lib/common/utils/newFilter.d.ts +0 -1
- package/lib/common/utils/newFilter.js +0 -126
- package/lib/common/utils/pagination.d.ts +0 -1
- package/lib/common/utils/pagination.js +0 -9
- package/lib/common/utils/search.d.ts +0 -1
- package/lib/common/utils/search.js +0 -14
- package/lib/common/utils/sort.d.ts +0 -1
- package/lib/common/utils/sort.js +0 -29
- package/lib/config/AWSConfig.d.ts +0 -6
- package/lib/config/AWSConfig.js +0 -9
- package/lib/config/DatabaseConfig.d.ts +0 -33
- package/lib/config/DatabaseConfig.js +0 -36
- package/lib/config/TwilioConfig.d.ts +0 -4
- package/lib/config/TwilioConfig.js +0 -7
- package/lib/controller/Common.d.ts +0 -20
- package/lib/controller/Common.js +0 -57
- package/lib/controller/DatabaseFactoryCollection.d.ts +0 -6
- package/lib/controller/DatabaseFactoryCollection.js +0 -14
- package/lib/controller/MainController.d.ts +0 -6
- package/lib/controller/MainController.js +0 -174
- package/lib/controller/aws/HoopBuisnessHours.d.ts +0 -23
- package/lib/controller/aws/HoopBuisnessHours.js +0 -408
- package/lib/controller/aws/HoopOperationsController.d.ts +0 -9
- package/lib/controller/aws/HoopOperationsController.js +0 -86
- package/lib/controller/aws/HoopOverrideBranchesController.d.ts +0 -7
- package/lib/controller/aws/HoopOverrideBranchesController.js +0 -40
- package/lib/controller/aws/HoopProfilesListController.d.ts +0 -8
- package/lib/controller/aws/HoopProfilesListController.js +0 -61
- package/lib/controller/aws/PlaybackScreenrecordings.d.ts +0 -9
- package/lib/controller/aws/PlaybackScreenrecordings.js +0 -63
- package/lib/controller/twilio/AgentActionsController.d.ts +0 -54
- package/lib/controller/twilio/AgentActionsController.js +0 -177
- package/lib/controller/twilio/AgentScorecardController.d.ts +0 -53
- package/lib/controller/twilio/AgentScorecardController.js +0 -173
- package/lib/controller/twilio/AuditLogController.d.ts +0 -15
- package/lib/controller/twilio/AuditLogController.js +0 -137
- package/lib/controller/twilio/CallLogsController.d.ts +0 -12
- package/lib/controller/twilio/CallLogsController.js +0 -131
- package/lib/controller/twilio/CallbackAndVoicemailController.d.ts +0 -12
- package/lib/controller/twilio/CallbackAndVoicemailController.js +0 -114
- package/lib/controller/twilio/ChannelSettingTaskInfoController.d.ts +0 -11
- package/lib/controller/twilio/ChannelSettingTaskInfoController.js +0 -117
- package/lib/controller/twilio/ChannelSettingsController.d.ts +0 -16
- package/lib/controller/twilio/ChannelSettingsController.js +0 -142
- package/lib/controller/twilio/CxConfigAssetController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigAssetController.js +0 -128
- package/lib/controller/twilio/CxConfigController.d.ts +0 -18
- package/lib/controller/twilio/CxConfigController.js +0 -112
- package/lib/controller/twilio/CxConfigExternalNumbersController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigExternalNumbersController.js +0 -138
- package/lib/controller/twilio/CxConfigOther.d.ts +0 -16
- package/lib/controller/twilio/CxConfigOther.js +0 -128
- package/lib/controller/twilio/CxConfigQueueMenuController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigQueueMenuController.js +0 -129
- package/lib/controller/twilio/CxConfigUIconfigController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigUIconfigController.js +0 -132
- package/lib/controller/twilio/GPMController.d.ts +0 -12
- package/lib/controller/twilio/GPMController.js +0 -151
- package/lib/controller/twilio/HoopBusinessHoursController.d.ts +0 -18
- package/lib/controller/twilio/HoopBusinessHoursController.js +0 -285
- package/lib/controller/twilio/HoopHolidaysController.d.ts +0 -14
- package/lib/controller/twilio/HoopHolidaysController.js +0 -152
- package/lib/controller/twilio/HoopMainController.d.ts +0 -13
- package/lib/controller/twilio/HoopMainController.js +0 -297
- package/lib/controller/twilio/HoopNotesController.d.ts +0 -14
- package/lib/controller/twilio/HoopNotesController.js +0 -149
- package/lib/controller/twilio/HoopOperationsController.d.ts +0 -14
- package/lib/controller/twilio/HoopOperationsController.js +0 -138
- package/lib/controller/twilio/HoopOverrideBranchesController.d.ts +0 -14
- package/lib/controller/twilio/HoopOverrideBranchesController.js +0 -137
- package/lib/controller/twilio/HoopPartialDaysController.d.ts +0 -14
- package/lib/controller/twilio/HoopPartialDaysController.js +0 -152
- package/lib/controller/twilio/HoopProfilesListController.d.ts +0 -14
- package/lib/controller/twilio/HoopProfilesListController.js +0 -147
- package/lib/controller/twilio/NavigationController.d.ts +0 -13
- package/lib/controller/twilio/NavigationController.js +0 -170
- package/lib/controller/twilio/QualityFormsController.d.ts +0 -12
- package/lib/controller/twilio/QualityFormsController.js +0 -129
- package/lib/controller/twilio/QuickLinkController.d.ts +0 -11
- package/lib/controller/twilio/QuickLinkController.js +0 -122
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.d.ts +0 -14
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.js +0 -126
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.d.ts +0 -53
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +0 -160
- package/lib/controller/twilio/TaskInfoPanelController.d.ts +0 -15
- package/lib/controller/twilio/TaskInfoPanelController.js +0 -134
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js +0 -52
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.js +0 -89
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js +0 -81
- package/lib/controller/twilio/filterImpl/CallLogsFilter.d.ts +0 -20
- package/lib/controller/twilio/filterImpl/CallLogsFilter.js +0 -101
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js +0 -59
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js +0 -67
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js +0 -52
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.d.ts +0 -17
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js +0 -78
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js +0 -51
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js +0 -58
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.js +0 -51
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +0 -58
- package/lib/controller/twilio/filterImpl/MainFilterService.d.ts +0 -4
- package/lib/controller/twilio/filterImpl/MainFilterService.js +0 -108
- package/lib/controller/twilio/filterImpl/NavigationFilter.d.ts +0 -20
- package/lib/controller/twilio/filterImpl/NavigationFilter.js +0 -90
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js +0 -53
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js +0 -62
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js +0 -52
- package/lib/express/ApiResponse.d.ts +0 -15
- package/lib/express/ApiResponse.js +0 -11
- package/lib/express/RequestValidator.d.ts +0 -50
- package/lib/express/RequestValidator.js +0 -77
- package/lib/express/RequireParamsPicker.d.ts +0 -7
- package/lib/express/RequireParamsPicker.js +0 -14
- package/lib/express/ValidateRequireParameters.d.ts +0 -3
- package/lib/express/ValidateRequireParameters.js +0 -39
- package/lib/index.d.ts +0 -39
- package/lib/index.js +0 -100
- package/lib/models/BatchUpdateSkills.model.d.ts +0 -0
- package/lib/models/BatchUpdateSkills.model.js +0 -11
- package/lib/models/CannedMessage.model.d.ts +0 -4
- package/lib/models/CannedMessage.model.js +0 -1
- package/lib/models/ChannelSettingsTaskInfo.model.d.ts +0 -87
- package/lib/models/ChannelSettingsTaskInfo.model.js +0 -1
- package/lib/models/CustomerFeedback.model.d.ts +0 -9
- package/lib/models/CustomerFeedback.model.js +0 -1
- package/lib/models/Filter.model.d.ts +0 -15
- package/lib/models/Filter.model.js +0 -2
- package/lib/models/Hoop.model.d.ts +0 -15
- package/lib/models/Hoop.model.js +0 -18
- package/lib/models/Navigation.model.d.ts +0 -28
- package/lib/models/Navigation.model.js +0 -8
- package/lib/models/Roles.Model.d.ts +0 -8
- package/lib/models/Roles.Model.js +0 -1
- package/lib/models/abstract/BaseModel.d.ts +0 -17
- package/lib/models/abstract/BaseModel.js +0 -40
- package/lib/models/impl/AgentActionsLogsModel.d.ts +0 -27
- package/lib/models/impl/AgentActionsLogsModel.js +0 -89
- package/lib/models/impl/AgentActionsModel.d.ts +0 -19
- package/lib/models/impl/AgentActionsModel.js +0 -60
- package/lib/models/impl/AgentScorecardModel.d.ts +0 -66
- package/lib/models/impl/AgentScorecardModel.js +0 -282
- package/lib/models/impl/AuditLogsModel.d.ts +0 -31
- package/lib/models/impl/AuditLogsModel.js +0 -146
- package/lib/models/impl/CallLogsModel.d.ts +0 -37
- package/lib/models/impl/CallLogsModel.js +0 -109
- package/lib/models/impl/CallStatisticsModel.d.ts +0 -16
- package/lib/models/impl/CallStatisticsModel.js +0 -52
- package/lib/models/impl/CategoryDetailsModel.d.ts +0 -17
- package/lib/models/impl/CategoryDetailsModel.js +0 -44
- package/lib/models/impl/MemberModel.d.ts +0 -42
- package/lib/models/impl/MemberModel.js +0 -170
- package/lib/models/impl/ModelValidationError.d.ts +0 -6
- package/lib/models/impl/ModelValidationError.js +0 -15
- package/lib/models/impl/NavigationModel.d.ts +0 -39
- package/lib/models/impl/NavigationModel.js +0 -126
- package/lib/models/impl/PerformanceStatisticsModel.d.ts +0 -41
- package/lib/models/impl/PerformanceStatisticsModel.js +0 -129
- package/lib/models/impl/PlaybackScreenrecordings.d.ts +0 -39
- package/lib/models/impl/PlaybackScreenrecordings.js +0 -133
- package/lib/models/impl/ProfileModel.d.ts +0 -23
- package/lib/models/impl/ProfileModel.js +0 -102
- package/lib/models/impl/QualityFormsModel.d.ts +0 -39
- package/lib/models/impl/QualityFormsModel.js +0 -150
- package/lib/models/impl/QuestionDetailsModel.d.ts +0 -39
- package/lib/models/impl/QuestionDetailsModel.js +0 -173
- package/lib/models/impl/QueueDetailsModel.d.ts +0 -63
- package/lib/models/impl/QueueDetailsModel.js +0 -261
- package/lib/models/impl/QueueModel.d.ts +0 -39
- package/lib/models/impl/QueueModel.js +0 -156
- package/lib/models/impl/QuickLinkModel.d.ts +0 -24
- package/lib/models/impl/QuickLinkModel.js +0 -122
- package/lib/models/impl/StatisticsNumberDetailsModel.d.ts +0 -18
- package/lib/models/impl/StatisticsNumberDetailsModel.js +0 -72
- package/lib/models/impl/StatisticsTimeDetailsModel.d.ts +0 -18
- package/lib/models/impl/StatisticsTimeDetailsModel.js +0 -72
- package/lib/models/impl/TaskAttributesModel.d.ts +0 -31
- package/lib/models/impl/TaskAttributesModel.js +0 -108
- package/lib/models/impl/TaskChannelModel.d.ts +0 -15
- package/lib/models/impl/TaskChannelModel.js +0 -69
- package/lib/models/impl/TaskComplete.d.ts +0 -0
- package/lib/models/impl/TaskComplete.js +0 -1
- package/lib/models/impl/TaskInfoPanelModel.d.ts +0 -16
- package/lib/models/impl/TaskInfoPanelModel.js +0 -69
- package/lib/models/impl/TaskModel.d.ts +0 -59
- package/lib/models/impl/TaskModel.js +0 -234
- package/lib/models/impl/WorkGroupDetailsModel.d.ts +0 -63
- package/lib/models/impl/WorkGroupDetailsModel.js +0 -281
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.d.ts +0 -33
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js +0 -140
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.d.ts +0 -8
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js +0 -12
- package/lib/models/impl/callbackandvoicemail/CallbackModel.d.ts +0 -19
- package/lib/models/impl/callbackandvoicemail/CallbackModel.js +0 -82
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.d.ts +0 -25
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.js +0 -108
- package/lib/models/impl/channelsettings/ChannelSettingModel.d.ts +0 -68
- package/lib/models/impl/channelsettings/ChannelSettingModel.js +0 -240
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.d.ts +0 -31
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js +0 -106
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.d.ts +0 -25
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js +0 -80
- package/lib/models/impl/channelsettings/TaskInfoModel.d.ts +0 -13
- package/lib/models/impl/channelsettings/TaskInfoModel.js +0 -52
- package/lib/models/impl/cxconfig/CxConfigNamespace.d.ts +0 -16
- package/lib/models/impl/cxconfig/CxConfigNamespace.js +0 -20
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.d.ts +0 -27
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js +0 -173
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.d.ts +0 -24
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js +0 -103
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.d.ts +0 -24
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js +0 -149
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.d.ts +0 -27
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js +0 -179
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.d.ts +0 -37
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js +0 -197
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.d.ts +0 -27
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js +0 -159
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.d.ts +0 -40
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js +0 -128
- package/lib/models/impl/hoop/HoopBusinessHoursModel.d.ts +0 -39
- package/lib/models/impl/hoop/HoopBusinessHoursModel.js +0 -122
- package/lib/models/impl/hoop/HoopDescriptionModel.d.ts +0 -16
- package/lib/models/impl/hoop/HoopDescriptionModel.js +0 -64
- package/lib/models/impl/hoop/HoopHolidaysImplModel.d.ts +0 -25
- package/lib/models/impl/hoop/HoopHolidaysImplModel.js +0 -118
- package/lib/models/impl/hoop/HoopNotesImplModel.d.ts +0 -25
- package/lib/models/impl/hoop/HoopNotesImplModel.js +0 -117
- package/lib/models/impl/hoop/HoopOperationsImplModel.d.ts +0 -28
- package/lib/models/impl/hoop/HoopOperationsImplModel.js +0 -161
- package/lib/models/impl/hoop/HoopOverrideImplModel.d.ts +0 -22
- package/lib/models/impl/hoop/HoopOverrideImplModel.js +0 -143
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.d.ts +0 -31
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.js +0 -140
- package/lib/models/impl/hoop/HoopProfilesListImplModel.d.ts +0 -22
- package/lib/models/impl/hoop/HoopProfilesListImplModel.js +0 -104
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.d.ts +0 -22
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.js +0 -86
- package/lib/models/index.d.ts +0 -25
- package/lib/models/index.js +0 -53
- package/lib/models/interface/IBaseModel.d.ts +0 -11
- package/lib/models/interface/IBaseModel.js +0 -2
- package/lib/models/types/AgentScorecard.type.d.ts +0 -6
- package/lib/models/types/AgentScorecard.type.js +0 -7
- package/lib/models/types/AuditLog.type.d.ts +0 -13
- package/lib/models/types/AuditLog.type.js +0 -10
- package/lib/models/types/CallLog.type.d.ts +0 -16
- package/lib/models/types/CallLog.type.js +0 -10
- package/lib/models/types/ChannelSetting.type.d.ts +0 -7
- package/lib/models/types/ChannelSetting.type.js +0 -11
- package/lib/models/types/CxConfig.type.d.ts +0 -72
- package/lib/models/types/CxConfig.type.js +0 -43
- package/lib/models/types/Hoop.type.d.ts +0 -9
- package/lib/models/types/Hoop.type.js +0 -13
- package/lib/models/types/Navigation.type.d.ts +0 -11
- package/lib/models/types/Navigation.type.js +0 -8
- package/lib/models/types/Profile.type.d.ts +0 -1
- package/lib/models/types/Profile.type.js +0 -2
- package/lib/models/types/QueueDetails.type.d.ts +0 -6
- package/lib/models/types/QueueDetails.type.js +0 -7
- package/lib/models/types/TaskComplete.type.d.ts +0 -7
- package/lib/models/types/TaskComplete.type.js +0 -6
- package/lib/models/types/TaskInfoPanel.type.d.ts +0 -6
- package/lib/models/types/TaskInfoPanel.type.js +0 -7
- package/lib/server.d.ts +0 -1
- package/lib/server.js +0 -39
- package/lib/twilio/abstract/ServiceObjectStore.d.ts +0 -6
- package/lib/twilio/abstract/ServiceObjectStore.js +0 -10
- package/lib/twilio/abstract/ServiceOpenRequest.d.ts +0 -7
- package/lib/twilio/abstract/ServiceOpenRequest.js +0 -10
- package/lib/twilio/abstract/ServiceRequest.d.ts +0 -3
- package/lib/twilio/abstract/ServiceRequest.js +0 -7
- package/lib/twilio/abstract/ServiceResource.d.ts +0 -23
- package/lib/twilio/abstract/ServiceResource.js +0 -37
- package/lib/twilio/abstract/ServiceResourceFactory.d.ts +0 -15
- package/lib/twilio/abstract/ServiceResourceFactory.js +0 -18
- package/lib/twilio/abstract/ServiceTransaction.d.ts +0 -6
- package/lib/twilio/abstract/ServiceTransaction.js +0 -11
- package/lib/twilio/abstract/SyncServiceItemResource.d.ts +0 -31
- package/lib/twilio/abstract/SyncServiceItemResource.js +0 -60
- package/lib/twilio/abstract/TwilioClientConfig.d.ts +0 -0
- package/lib/twilio/abstract/TwilioClientConfig.js +0 -1
- package/lib/twilio/impl/TwilioAPIKeyConfig.d.ts +0 -14
- package/lib/twilio/impl/TwilioAPIKeyConfig.js +0 -31
- package/lib/twilio/impl/TwilioAuthTokenConfig.d.ts +0 -11
- package/lib/twilio/impl/TwilioAuthTokenConfig.js +0 -24
- package/lib/twilio/impl/TwilioClient.d.ts +0 -6
- package/lib/twilio/impl/TwilioClient.js +0 -21
- package/lib/twilio/impl/message/messageService.d.ts +0 -0
- package/lib/twilio/impl/message/messageService.js +0 -42
- package/lib/twilio/impl/sync/SyncDocument.d.ts +0 -24
- package/lib/twilio/impl/sync/SyncDocument.js +0 -52
- package/lib/twilio/impl/sync/SyncDocumentTransaction.d.ts +0 -20
- package/lib/twilio/impl/sync/SyncDocumentTransaction.js +0 -31
- package/lib/twilio/impl/sync/SyncList.d.ts +0 -24
- package/lib/twilio/impl/sync/SyncList.js +0 -52
- package/lib/twilio/impl/sync/SyncListItem.d.ts +0 -5
- package/lib/twilio/impl/sync/SyncListItem.js +0 -22
- package/lib/twilio/impl/sync/SyncListTransaction.d.ts +0 -20
- package/lib/twilio/impl/sync/SyncListTransaction.js +0 -31
- package/lib/twilio/impl/sync/SyncMap.d.ts +0 -25
- package/lib/twilio/impl/sync/SyncMap.js +0 -139
- package/lib/twilio/impl/sync/SyncMapItem.d.ts +0 -5
- package/lib/twilio/impl/sync/SyncMapItem.js +0 -7
- package/lib/twilio/impl/sync/SyncMapTransaction.d.ts +0 -22
- package/lib/twilio/impl/sync/SyncMapTransaction.js +0 -38
- package/lib/twilio/impl/sync/SyncOpenRequest.d.ts +0 -18
- package/lib/twilio/impl/sync/SyncOpenRequest.js +0 -24
- package/lib/twilio/impl/sync/SyncRequest.d.ts +0 -16
- package/lib/twilio/impl/sync/SyncRequest.js +0 -21
- package/lib/twilio/impl/sync/SyncResource.d.ts +0 -50
- package/lib/twilio/impl/sync/SyncResource.js +0 -97
- package/lib/twilio/impl/sync/SyncServiceFactory.d.ts +0 -22
- package/lib/twilio/impl/sync/SyncServiceFactory.js +0 -117
- package/lib/twilio/interface/IDirection.d.ts +0 -2
- package/lib/twilio/interface/IDirection.js +0 -2
- package/lib/twilio/interface/ILink.d.ts +0 -2
- package/lib/twilio/interface/ILink.js +0 -2
- package/lib/twilio/interface/IServiceDBOpenRequest.d.ts +0 -3
- package/lib/twilio/interface/IServiceDBOpenRequest.js +0 -2
- package/lib/twilio/interface/IServiceObjectStore.d.ts +0 -3
- package/lib/twilio/interface/IServiceObjectStore.js +0 -2
- package/lib/twilio/interface/IServiceObjectStoreParameters.d.ts +0 -4
- package/lib/twilio/interface/IServiceObjectStoreParameters.js +0 -2
- package/lib/twilio/interface/IServiceRequest.d.ts +0 -3
- package/lib/twilio/interface/IServiceRequest.js +0 -2
- package/lib/twilio/interface/IServiceResource.d.ts +0 -8
- package/lib/twilio/interface/IServiceResource.js +0 -2
- package/lib/twilio/interface/IServiceTransation.d.ts +0 -3
- package/lib/twilio/interface/IServiceTransation.js +0 -2
- package/lib/twilio/interface/ISubResourceUri.d.ts +0 -2
- package/lib/twilio/interface/ISubResourceUri.js +0 -2
- package/lib/twilio/interface/ISyncItemData.d.ts +0 -0
- package/lib/twilio/interface/ISyncItemData.js +0 -1
- package/lib/twilio/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/twilio/interface/ISyncObjectStoreParameters.js +0 -1
- package/lib/twilio/interface/ISyncTransactionOptions.d.ts +0 -4
- package/lib/twilio/interface/ISyncTransactionOptions.js +0 -2
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { PromptWidgetType, PromptFileType } from "../../types/CxConfig.type";
|
|
2
|
-
import { BaseModel } from "../../abstract/BaseModel";
|
|
3
|
-
import { validationMessage } from "../../interface/IBaseModel";
|
|
4
|
-
export declare class CxConfiguratorGPMPromptModel extends BaseModel {
|
|
5
|
-
private _id;
|
|
6
|
-
private _name;
|
|
7
|
-
private _type;
|
|
8
|
-
private _fileType;
|
|
9
|
-
private _value;
|
|
10
|
-
private _language;
|
|
11
|
-
private _voice;
|
|
12
|
-
private _hints;
|
|
13
|
-
private _createdAt;
|
|
14
|
-
private _updatedAt;
|
|
15
|
-
constructor(id: string, name: string, type: PromptWidgetType, fileType: PromptFileType, value: string, language: string | null, voice: string | null, hints: string | null, createdAt: Date | undefined, updatedAt: Date | undefined);
|
|
16
|
-
get id(): string;
|
|
17
|
-
set id(value: string);
|
|
18
|
-
get name(): string;
|
|
19
|
-
set name(value: string);
|
|
20
|
-
get type(): PromptWidgetType;
|
|
21
|
-
set type(value: PromptWidgetType);
|
|
22
|
-
get fileType(): PromptFileType;
|
|
23
|
-
set fileType(value: PromptFileType);
|
|
24
|
-
get value(): string;
|
|
25
|
-
set value(value: string);
|
|
26
|
-
get language(): string | null;
|
|
27
|
-
set language(value: string | null);
|
|
28
|
-
get voice(): string | null;
|
|
29
|
-
set voice(value: string | null);
|
|
30
|
-
get hints(): string | null;
|
|
31
|
-
set hints(value: string | null);
|
|
32
|
-
get createdAt(): Date | undefined;
|
|
33
|
-
set createdAt(value: Date | undefined);
|
|
34
|
-
get updatedAt(): Date | undefined;
|
|
35
|
-
set updatedAt(value: Date | undefined);
|
|
36
|
-
validateData(): validationMessage[];
|
|
37
|
-
}
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CxConfiguratorGPMPromptModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../../abstract/BaseModel");
|
|
5
|
-
const uuid_1 = require("uuid");
|
|
6
|
-
class CxConfiguratorGPMPromptModel extends BaseModel_1.BaseModel {
|
|
7
|
-
constructor(id, name, type, fileType, value, language, voice, hints, createdAt, updatedAt) {
|
|
8
|
-
super();
|
|
9
|
-
this._id = id;
|
|
10
|
-
this._name = name;
|
|
11
|
-
this._type = type;
|
|
12
|
-
this._fileType = fileType;
|
|
13
|
-
this._value = value;
|
|
14
|
-
this._language = language;
|
|
15
|
-
this._voice = voice;
|
|
16
|
-
this._hints = hints;
|
|
17
|
-
this._createdAt = createdAt;
|
|
18
|
-
this._updatedAt = updatedAt;
|
|
19
|
-
}
|
|
20
|
-
// Getters and Setters
|
|
21
|
-
get id() {
|
|
22
|
-
return this._id;
|
|
23
|
-
}
|
|
24
|
-
set id(value) {
|
|
25
|
-
this._id = value;
|
|
26
|
-
}
|
|
27
|
-
get name() {
|
|
28
|
-
return this._name;
|
|
29
|
-
}
|
|
30
|
-
set name(value) {
|
|
31
|
-
this._name = value;
|
|
32
|
-
}
|
|
33
|
-
get type() {
|
|
34
|
-
return this._type;
|
|
35
|
-
}
|
|
36
|
-
set type(value) {
|
|
37
|
-
this._type = value;
|
|
38
|
-
}
|
|
39
|
-
get fileType() {
|
|
40
|
-
return this._fileType;
|
|
41
|
-
}
|
|
42
|
-
set fileType(value) {
|
|
43
|
-
this._fileType = value;
|
|
44
|
-
}
|
|
45
|
-
get value() {
|
|
46
|
-
return this._value;
|
|
47
|
-
}
|
|
48
|
-
set value(value) {
|
|
49
|
-
this._value = value;
|
|
50
|
-
}
|
|
51
|
-
get language() {
|
|
52
|
-
return this._language;
|
|
53
|
-
}
|
|
54
|
-
set language(value) {
|
|
55
|
-
this._language = value;
|
|
56
|
-
}
|
|
57
|
-
get voice() {
|
|
58
|
-
return this._voice;
|
|
59
|
-
}
|
|
60
|
-
set voice(value) {
|
|
61
|
-
this._voice = value;
|
|
62
|
-
}
|
|
63
|
-
get hints() {
|
|
64
|
-
return this._hints;
|
|
65
|
-
}
|
|
66
|
-
set hints(value) {
|
|
67
|
-
this._hints = value;
|
|
68
|
-
}
|
|
69
|
-
get createdAt() {
|
|
70
|
-
return this._createdAt;
|
|
71
|
-
}
|
|
72
|
-
set createdAt(value) {
|
|
73
|
-
this._createdAt = value;
|
|
74
|
-
}
|
|
75
|
-
get updatedAt() {
|
|
76
|
-
return this._updatedAt;
|
|
77
|
-
}
|
|
78
|
-
set updatedAt(value) {
|
|
79
|
-
this._updatedAt = value;
|
|
80
|
-
}
|
|
81
|
-
// Validation method
|
|
82
|
-
validateData() {
|
|
83
|
-
console.log(" data in validation method", this);
|
|
84
|
-
this.validationMessages = [];
|
|
85
|
-
const validationRules = {
|
|
86
|
-
id: {
|
|
87
|
-
validator: (value) => {
|
|
88
|
-
const errors = [];
|
|
89
|
-
if (typeof value !== "string" || value.trim() === "" || !(0, uuid_1.validate)(value)) {
|
|
90
|
-
errors.push("ID must be a valid non-empty UUID.");
|
|
91
|
-
}
|
|
92
|
-
return errors;
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
name: {
|
|
96
|
-
validator: (value) => {
|
|
97
|
-
const errors = [];
|
|
98
|
-
if (typeof value !== "string") {
|
|
99
|
-
errors.push("Name must be a string.");
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
if (value.trim().length < 5) {
|
|
103
|
-
errors.push("Name must be at least 5 characters long.");
|
|
104
|
-
}
|
|
105
|
-
if (!/^[a-zA-Z0-9]/.test(value)) {
|
|
106
|
-
errors.push("Name must start with a letter or number.");
|
|
107
|
-
}
|
|
108
|
-
if (!/[a-zA-Z]/.test(value)) {
|
|
109
|
-
errors.push("Name must contain at least one alphabet character.");
|
|
110
|
-
}
|
|
111
|
-
if (value.length > 100) {
|
|
112
|
-
errors.push("Name must not exceed 100 characters.");
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return errors;
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
type: {
|
|
119
|
-
validator: (value) => {
|
|
120
|
-
return value === "Gather" || value === "Say"
|
|
121
|
-
? []
|
|
122
|
-
: ['Type must be either "Gather" or "Say".'];
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
fileType: {
|
|
126
|
-
validator: (value) => {
|
|
127
|
-
return value === "Text" || value === "Audio"
|
|
128
|
-
? []
|
|
129
|
-
: ['File type must be either "Text" or "Audio".'];
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
value: {
|
|
133
|
-
validator: (value, model) => {
|
|
134
|
-
const errors = [];
|
|
135
|
-
const isAudio = model.fileType === "Audio";
|
|
136
|
-
if (isAudio && (value === null || typeof value !== "string" || value.trim() === "")) {
|
|
137
|
-
errors.push("Value is required when fileType is 'Audio'.");
|
|
138
|
-
}
|
|
139
|
-
else if (value !== null && (typeof value !== "string" || value.trim() === "")) {
|
|
140
|
-
errors.push("Value must be a non-empty string or null.");
|
|
141
|
-
}
|
|
142
|
-
else if (value.trim().length < 5) {
|
|
143
|
-
errors.push("Value must be at least 5 characters long.");
|
|
144
|
-
}
|
|
145
|
-
return errors;
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
language: {
|
|
149
|
-
validator: (value) => value === null || (typeof value === "string" && value.trim() !== "")
|
|
150
|
-
? []
|
|
151
|
-
: ["Language must be a non-empty string or null."],
|
|
152
|
-
},
|
|
153
|
-
voice: {
|
|
154
|
-
validator: (value, model) => value === null || (typeof value === "string" && value.trim() !== "")
|
|
155
|
-
? []
|
|
156
|
-
: ["Voice must be a non-empty string or null."],
|
|
157
|
-
},
|
|
158
|
-
hints: {
|
|
159
|
-
validator: (value) => value === null || (typeof value === "string" && value.trim() !== "")
|
|
160
|
-
? []
|
|
161
|
-
: ["Hints must be a non-empty string or null."],
|
|
162
|
-
},
|
|
163
|
-
createdAt: {
|
|
164
|
-
validator: (value) => {
|
|
165
|
-
const parsedDate = new Date(value);
|
|
166
|
-
return parsedDate instanceof Date && !isNaN(parsedDate.getTime())
|
|
167
|
-
? []
|
|
168
|
-
: ["CreatedAt must be a valid date."];
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
updatedAt: {
|
|
172
|
-
validator: (value) => {
|
|
173
|
-
const parsedDate = new Date(value);
|
|
174
|
-
return parsedDate instanceof Date && !isNaN(parsedDate.getTime())
|
|
175
|
-
? []
|
|
176
|
-
: ["UpdatedAt must be a valid date."];
|
|
177
|
-
},
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
for (const key in validationRules) {
|
|
181
|
-
if (!validationRules.hasOwnProperty(key))
|
|
182
|
-
continue;
|
|
183
|
-
const validator = validationRules[key].validator;
|
|
184
|
-
const value = this[key];
|
|
185
|
-
const errors = validator(value, this); // pass full model for conditional validation
|
|
186
|
-
for (const msg of errors) {
|
|
187
|
-
this.validationMessages.push({
|
|
188
|
-
type: "Error",
|
|
189
|
-
fieldDescription: key,
|
|
190
|
-
message: msg,
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
return this.validationMessages;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
exports.CxConfiguratorGPMPromptModel = CxConfiguratorGPMPromptModel;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../../interface/IBaseModel";
|
|
3
|
-
export declare class CxConfiguratorOtherModel extends BaseModel {
|
|
4
|
-
private _id;
|
|
5
|
-
private _name;
|
|
6
|
-
private _key;
|
|
7
|
-
private _value;
|
|
8
|
-
private _description;
|
|
9
|
-
private _createdAt;
|
|
10
|
-
private _updatedAt;
|
|
11
|
-
constructor(id: string, name: string, key: string, value: string, description: string, createdAt: Date | undefined, updatedAt: Date | undefined);
|
|
12
|
-
get id(): string;
|
|
13
|
-
set id(value: string);
|
|
14
|
-
get name(): string;
|
|
15
|
-
set name(value: string);
|
|
16
|
-
get key(): string;
|
|
17
|
-
set key(value: string);
|
|
18
|
-
get value(): string;
|
|
19
|
-
set value(value: string);
|
|
20
|
-
get description(): string;
|
|
21
|
-
set description(value: string);
|
|
22
|
-
get createdAt(): Date | undefined;
|
|
23
|
-
set createdAt(value: Date | undefined);
|
|
24
|
-
get updatedAt(): Date | undefined;
|
|
25
|
-
set updatedAt(value: Date | undefined);
|
|
26
|
-
validateData(): validationMessage[];
|
|
27
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CxConfiguratorOtherModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../../abstract/BaseModel");
|
|
5
|
-
const uuid_1 = require("uuid");
|
|
6
|
-
class CxConfiguratorOtherModel extends BaseModel_1.BaseModel {
|
|
7
|
-
constructor(id, name, key, value, description, createdAt, updatedAt) {
|
|
8
|
-
super();
|
|
9
|
-
this._id = id;
|
|
10
|
-
this._name = name;
|
|
11
|
-
this._key = key;
|
|
12
|
-
this._value = value;
|
|
13
|
-
this._description = description;
|
|
14
|
-
this._createdAt = createdAt;
|
|
15
|
-
this._updatedAt = updatedAt;
|
|
16
|
-
}
|
|
17
|
-
// Getters and Setters
|
|
18
|
-
get id() {
|
|
19
|
-
return this._id;
|
|
20
|
-
}
|
|
21
|
-
set id(value) {
|
|
22
|
-
this._id = value;
|
|
23
|
-
}
|
|
24
|
-
get name() {
|
|
25
|
-
return this._name;
|
|
26
|
-
}
|
|
27
|
-
set name(value) {
|
|
28
|
-
this._name = value;
|
|
29
|
-
}
|
|
30
|
-
get key() {
|
|
31
|
-
return this._key;
|
|
32
|
-
}
|
|
33
|
-
set key(value) {
|
|
34
|
-
this._key = value;
|
|
35
|
-
}
|
|
36
|
-
get value() {
|
|
37
|
-
return this._value;
|
|
38
|
-
}
|
|
39
|
-
set value(value) {
|
|
40
|
-
this._value = value;
|
|
41
|
-
}
|
|
42
|
-
get description() {
|
|
43
|
-
return this._description;
|
|
44
|
-
}
|
|
45
|
-
set description(value) {
|
|
46
|
-
this._description = value;
|
|
47
|
-
}
|
|
48
|
-
get createdAt() {
|
|
49
|
-
return this._createdAt;
|
|
50
|
-
}
|
|
51
|
-
set createdAt(value) {
|
|
52
|
-
this._createdAt = value;
|
|
53
|
-
}
|
|
54
|
-
get updatedAt() {
|
|
55
|
-
return this._updatedAt;
|
|
56
|
-
}
|
|
57
|
-
set updatedAt(value) {
|
|
58
|
-
this._updatedAt = value;
|
|
59
|
-
}
|
|
60
|
-
// Validation method
|
|
61
|
-
validateData() {
|
|
62
|
-
console.log(" data in validation method", this);
|
|
63
|
-
this.validationMessages = [];
|
|
64
|
-
const validationRules = {
|
|
65
|
-
id: {
|
|
66
|
-
validator: (value) => {
|
|
67
|
-
const errors = [];
|
|
68
|
-
if (typeof value !== "string" || value.trim() === "" || !(0, uuid_1.validate)(value)) {
|
|
69
|
-
errors.push("ID must be a valid non-empty UUID.");
|
|
70
|
-
}
|
|
71
|
-
return errors;
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
name: {
|
|
75
|
-
validator: (value) => {
|
|
76
|
-
const errors = [];
|
|
77
|
-
if (typeof value !== "string") {
|
|
78
|
-
errors.push("Name must be a string.");
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
if (value.trim().length < 5) {
|
|
82
|
-
errors.push("Name must be at least 5 characters long.");
|
|
83
|
-
}
|
|
84
|
-
if (!/^[a-zA-Z0-9]/.test(value)) {
|
|
85
|
-
errors.push("Name must start with a letter or number.");
|
|
86
|
-
}
|
|
87
|
-
if (!/[a-zA-Z]/.test(value)) {
|
|
88
|
-
errors.push("Name must contain at least one alphabet character.");
|
|
89
|
-
}
|
|
90
|
-
if (value.length > 100) {
|
|
91
|
-
errors.push("Name must not exceed 100 characters.");
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return errors;
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
key: {
|
|
98
|
-
validator: (value) => {
|
|
99
|
-
return typeof value === "string" && value.trim() !== ""
|
|
100
|
-
? []
|
|
101
|
-
: ["Key must be a non-empty string."];
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
value: {
|
|
105
|
-
validator: (value) => {
|
|
106
|
-
const errors = [];
|
|
107
|
-
if (typeof value !== "string" || value.trim() === "") {
|
|
108
|
-
errors.push("Value must be a non-empty string.");
|
|
109
|
-
}
|
|
110
|
-
return errors;
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
description: {
|
|
114
|
-
validator: (value) => {
|
|
115
|
-
const errors = [];
|
|
116
|
-
if (typeof value !== "string" || value.trim() === "") {
|
|
117
|
-
errors.push("Description must be a non-empty string.");
|
|
118
|
-
}
|
|
119
|
-
else if (value.trim().length < 5) {
|
|
120
|
-
errors.push("Description must be at least 5 characters long.");
|
|
121
|
-
}
|
|
122
|
-
return errors;
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
createdAt: {
|
|
126
|
-
validator: (value) => {
|
|
127
|
-
const parsedDate = new Date(value);
|
|
128
|
-
return parsedDate instanceof Date && !isNaN(parsedDate.getTime())
|
|
129
|
-
? []
|
|
130
|
-
: ["CreatedAt must be a valid date."];
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
updatedAt: {
|
|
134
|
-
validator: (value) => {
|
|
135
|
-
const parsedDate = new Date(value);
|
|
136
|
-
return parsedDate instanceof Date && !isNaN(parsedDate.getTime())
|
|
137
|
-
? []
|
|
138
|
-
: ["UpdatedAt must be a valid date."];
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
};
|
|
142
|
-
for (const key in validationRules) {
|
|
143
|
-
if (!validationRules.hasOwnProperty(key))
|
|
144
|
-
continue;
|
|
145
|
-
const validator = validationRules[key].validator;
|
|
146
|
-
const value = this[key];
|
|
147
|
-
const errors = validator(value, this);
|
|
148
|
-
for (const msg of errors) {
|
|
149
|
-
this.validationMessages.push({
|
|
150
|
-
type: "Error",
|
|
151
|
-
fieldDescription: key,
|
|
152
|
-
message: msg,
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return this.validationMessages;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
exports.CxConfiguratorOtherModel = CxConfiguratorOtherModel;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../../interface/IBaseModel";
|
|
3
|
-
import { QueueMenuCategoryType, QueueMenuMessageType } from "../../types/CxConfig.type";
|
|
4
|
-
export declare class CxConfiguratorQueueMenuModel extends BaseModel {
|
|
5
|
-
private _id;
|
|
6
|
-
private _name;
|
|
7
|
-
private _category;
|
|
8
|
-
private _type;
|
|
9
|
-
private _value;
|
|
10
|
-
private _language;
|
|
11
|
-
private _fileName;
|
|
12
|
-
private _voice;
|
|
13
|
-
private _order;
|
|
14
|
-
private _createdAt;
|
|
15
|
-
private _updatedAt;
|
|
16
|
-
constructor(id: string, name: string, category: QueueMenuCategoryType, type: QueueMenuMessageType, value: string, language: string | undefined | null, fileName: string | undefined | null, voice: string | undefined | null, order: number | undefined | null, createdAt: Date | undefined, updatedAt: Date | undefined);
|
|
17
|
-
get id(): string;
|
|
18
|
-
set id(value: string);
|
|
19
|
-
get name(): string;
|
|
20
|
-
set name(value: string);
|
|
21
|
-
get category(): QueueMenuCategoryType;
|
|
22
|
-
set category(value: QueueMenuCategoryType);
|
|
23
|
-
get type(): QueueMenuMessageType;
|
|
24
|
-
set type(value: QueueMenuMessageType);
|
|
25
|
-
get value(): string;
|
|
26
|
-
set value(value: string);
|
|
27
|
-
get language(): string | undefined | null;
|
|
28
|
-
set language(value: string | undefined | null);
|
|
29
|
-
get fileName(): string | undefined | null;
|
|
30
|
-
set fileName(value: string | undefined | null);
|
|
31
|
-
get voice(): string | undefined | null;
|
|
32
|
-
set voice(value: string | undefined | null);
|
|
33
|
-
get order(): number | undefined | null;
|
|
34
|
-
set order(value: number | undefined | null);
|
|
35
|
-
get createdAt(): Date | undefined;
|
|
36
|
-
set createdAt(value: Date | undefined);
|
|
37
|
-
get updatedAt(): Date | undefined;
|
|
38
|
-
set updatedAt(value: Date | undefined);
|
|
39
|
-
validateData(): validationMessage[];
|
|
40
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CxConfiguratorQueueMenuModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../../abstract/BaseModel");
|
|
5
|
-
const uuid_1 = require("uuid");
|
|
6
|
-
class CxConfiguratorQueueMenuModel extends BaseModel_1.BaseModel {
|
|
7
|
-
constructor(id, name, category, type, value, language, fileName, voice, order, createdAt, updatedAt) {
|
|
8
|
-
super();
|
|
9
|
-
this._id = id;
|
|
10
|
-
this._name = name;
|
|
11
|
-
this._category = category;
|
|
12
|
-
this._type = type;
|
|
13
|
-
this._value = value;
|
|
14
|
-
this._language = language;
|
|
15
|
-
this._fileName = fileName;
|
|
16
|
-
this._voice = voice;
|
|
17
|
-
this._order = order;
|
|
18
|
-
this._createdAt = createdAt;
|
|
19
|
-
this._updatedAt = updatedAt;
|
|
20
|
-
}
|
|
21
|
-
// Getters and Setters
|
|
22
|
-
get id() {
|
|
23
|
-
return this._id;
|
|
24
|
-
}
|
|
25
|
-
set id(value) {
|
|
26
|
-
this._id = value;
|
|
27
|
-
}
|
|
28
|
-
get name() {
|
|
29
|
-
return this._name;
|
|
30
|
-
}
|
|
31
|
-
set name(value) {
|
|
32
|
-
this._name = value;
|
|
33
|
-
}
|
|
34
|
-
get category() {
|
|
35
|
-
return this._category;
|
|
36
|
-
}
|
|
37
|
-
set category(value) {
|
|
38
|
-
this._category = value;
|
|
39
|
-
}
|
|
40
|
-
get type() {
|
|
41
|
-
return this._type;
|
|
42
|
-
}
|
|
43
|
-
set type(value) {
|
|
44
|
-
this._type = value;
|
|
45
|
-
}
|
|
46
|
-
get value() {
|
|
47
|
-
return this._value;
|
|
48
|
-
}
|
|
49
|
-
set value(value) {
|
|
50
|
-
this._value = value;
|
|
51
|
-
}
|
|
52
|
-
get language() {
|
|
53
|
-
return this._language;
|
|
54
|
-
}
|
|
55
|
-
set language(value) {
|
|
56
|
-
this._language = value;
|
|
57
|
-
}
|
|
58
|
-
get fileName() {
|
|
59
|
-
return this._fileName;
|
|
60
|
-
}
|
|
61
|
-
set fileName(value) {
|
|
62
|
-
this._fileName = value;
|
|
63
|
-
}
|
|
64
|
-
get voice() {
|
|
65
|
-
return this._voice;
|
|
66
|
-
}
|
|
67
|
-
set voice(value) {
|
|
68
|
-
this._voice = value;
|
|
69
|
-
}
|
|
70
|
-
get order() {
|
|
71
|
-
return this._order;
|
|
72
|
-
}
|
|
73
|
-
set order(value) {
|
|
74
|
-
this._order = value;
|
|
75
|
-
}
|
|
76
|
-
get createdAt() {
|
|
77
|
-
return this._createdAt;
|
|
78
|
-
}
|
|
79
|
-
set createdAt(value) {
|
|
80
|
-
this._createdAt = value;
|
|
81
|
-
}
|
|
82
|
-
get updatedAt() {
|
|
83
|
-
return this._updatedAt;
|
|
84
|
-
}
|
|
85
|
-
set updatedAt(value) {
|
|
86
|
-
this._updatedAt = value;
|
|
87
|
-
}
|
|
88
|
-
// Validation method
|
|
89
|
-
validateData() {
|
|
90
|
-
console.log(' data in validation method', this);
|
|
91
|
-
this.validationMessages = [];
|
|
92
|
-
const validationRules = {
|
|
93
|
-
id: (value) => typeof value === "string" && value.trim() !== "" && (0, uuid_1.validate)(value),
|
|
94
|
-
name: (value) => value === null || typeof value === "string" && value.trim() !== "",
|
|
95
|
-
order: (value) => value === null || typeof value === "number",
|
|
96
|
-
type: (value) => value === "Text" || value === "Audio",
|
|
97
|
-
value: (value) => typeof value === "string" && value.trim() !== "",
|
|
98
|
-
category: (value) => typeof value === "string" && value.trim() !== "",
|
|
99
|
-
language: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
100
|
-
voice: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
101
|
-
fileName: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
102
|
-
createdAt: (value) => {
|
|
103
|
-
const parsedDate = new Date(value);
|
|
104
|
-
return parsedDate instanceof Date && !isNaN(parsedDate.getTime());
|
|
105
|
-
},
|
|
106
|
-
updatedAt: (value) => {
|
|
107
|
-
const parsedDate = new Date(value);
|
|
108
|
-
return parsedDate instanceof Date && !isNaN(parsedDate.getTime());
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
for (const key in validationRules) {
|
|
112
|
-
if (!validationRules.hasOwnProperty(key))
|
|
113
|
-
continue;
|
|
114
|
-
const validator = validationRules[key];
|
|
115
|
-
const value = this[key]; // Dynamically access the property
|
|
116
|
-
if (!validator(value)) {
|
|
117
|
-
console.error(`Validation failed for property "${key}".`);
|
|
118
|
-
this.validationMessages.push({
|
|
119
|
-
type: "Error",
|
|
120
|
-
fieldDescription: key,
|
|
121
|
-
message: `${key} is not valid`,
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return this.validationMessages;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
exports.CxConfiguratorQueueMenuModel = CxConfiguratorQueueMenuModel;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../../interface/IBaseModel";
|
|
3
|
-
import { HoopDescriptionModel } from "./HoopDescriptionModel";
|
|
4
|
-
import { HoopWeeklyTimingModel } from "./HoopWeeklyTimingModel";
|
|
5
|
-
export declare class HoopBusinessHoursModel extends BaseModel {
|
|
6
|
-
private _isOpen;
|
|
7
|
-
private _isHoliday;
|
|
8
|
-
private _isPartialDay;
|
|
9
|
-
private _isRegularDay;
|
|
10
|
-
private _description;
|
|
11
|
-
private _overrideBranches;
|
|
12
|
-
private _weeklyTiming;
|
|
13
|
-
private _weeklyTimingString;
|
|
14
|
-
private _reopenTiming;
|
|
15
|
-
private _timeZone;
|
|
16
|
-
constructor(isOpen: boolean, isHoliday: boolean, isPartialDay: boolean, isRegularDay: boolean, description: HoopDescriptionModel, overrideBranches: Record<string, boolean | string>, weeklyTiming: HoopWeeklyTimingModel[], weeklyTimingString: string, reopenTiming: Date, timeZone: string);
|
|
17
|
-
get isOpen(): boolean;
|
|
18
|
-
set isOpen(value: boolean);
|
|
19
|
-
get isHoliday(): boolean;
|
|
20
|
-
set isHoliday(value: boolean);
|
|
21
|
-
get isPartialDay(): boolean;
|
|
22
|
-
set isPartialDay(value: boolean);
|
|
23
|
-
get isRegularDay(): boolean;
|
|
24
|
-
set isRegularDay(value: boolean);
|
|
25
|
-
get description(): HoopDescriptionModel;
|
|
26
|
-
set description(value: HoopDescriptionModel);
|
|
27
|
-
get overrideBranches(): Record<string, boolean | string>;
|
|
28
|
-
set overrideBranches(value: Record<string, boolean | string>);
|
|
29
|
-
get weeklyTiming(): HoopWeeklyTimingModel[];
|
|
30
|
-
set weeklyTiming(value: HoopWeeklyTimingModel[]);
|
|
31
|
-
get weeklyTimingString(): string;
|
|
32
|
-
set weeklyTimingString(value: string);
|
|
33
|
-
get reopenTiming(): Date;
|
|
34
|
-
set reopenTiming(value: Date);
|
|
35
|
-
get timeZone(): string;
|
|
36
|
-
set timeZone(value: string);
|
|
37
|
-
validateData(): validationMessage[];
|
|
38
|
-
setValidationMessages(data: validationMessage): void;
|
|
39
|
-
}
|