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,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CallStatisticsModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
-
const StatisticsNumberDetailsModel_1 = require("./StatisticsNumberDetailsModel");
|
|
6
|
-
class CallStatisticsModel extends BaseModel_1.BaseModel {
|
|
7
|
-
constructor(interactionsReceived, interactionsAnswered, interactionsAbandoned) {
|
|
8
|
-
super();
|
|
9
|
-
this._interactionsReceived = interactionsReceived;
|
|
10
|
-
this._interactionsAnswered = interactionsAnswered;
|
|
11
|
-
this._interactionsAbandoned = interactionsAbandoned;
|
|
12
|
-
}
|
|
13
|
-
// Getters and Setters
|
|
14
|
-
get interactionsReceived() {
|
|
15
|
-
return this._interactionsReceived;
|
|
16
|
-
}
|
|
17
|
-
set interactionsReceived(value) {
|
|
18
|
-
this._interactionsReceived = value;
|
|
19
|
-
}
|
|
20
|
-
get interactionsAnswered() {
|
|
21
|
-
return this._interactionsAnswered;
|
|
22
|
-
}
|
|
23
|
-
set interactionsAnswered(value) {
|
|
24
|
-
this._interactionsAnswered = value;
|
|
25
|
-
}
|
|
26
|
-
get interactionsAbandoned() {
|
|
27
|
-
return this._interactionsAbandoned;
|
|
28
|
-
}
|
|
29
|
-
set interactionsAbandoned(value) {
|
|
30
|
-
this._interactionsAbandoned = value;
|
|
31
|
-
}
|
|
32
|
-
// Validation Method
|
|
33
|
-
validateData() {
|
|
34
|
-
this.validationMessages = [];
|
|
35
|
-
const fields = [
|
|
36
|
-
{ field: this._interactionsReceived, name: "interactionsReceived" },
|
|
37
|
-
{ field: this._interactionsAnswered, name: "interactionsAnswered" },
|
|
38
|
-
{ field: this._interactionsAbandoned, name: "interactionsAbandoned" },
|
|
39
|
-
];
|
|
40
|
-
fields.forEach(({ field, name }) => {
|
|
41
|
-
if (!(field instanceof StatisticsNumberDetailsModel_1.StatisticsNumberDetailsModel)) {
|
|
42
|
-
this.validationMessages.push({
|
|
43
|
-
type: "Error",
|
|
44
|
-
fieldDescription: name,
|
|
45
|
-
message: "Invalid StatisticsNumberDetailsModel instance",
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
return this.validationMessages;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.CallStatisticsModel = CallStatisticsModel;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
-
import { QuestionDetailsModel } from "./QuestionDetailsModel";
|
|
4
|
-
export declare class CategoryDetailModel extends BaseModel {
|
|
5
|
-
private _categories;
|
|
6
|
-
constructor(categories: {
|
|
7
|
-
[category: string]: QuestionDetailsModel[];
|
|
8
|
-
});
|
|
9
|
-
get categories(): {
|
|
10
|
-
[category: string]: QuestionDetailsModel[];
|
|
11
|
-
};
|
|
12
|
-
set categories(value: {
|
|
13
|
-
[category: string]: QuestionDetailsModel[];
|
|
14
|
-
});
|
|
15
|
-
private validateCategories;
|
|
16
|
-
validateData(): validationMessage[];
|
|
17
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CategoryDetailModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
-
const QuestionDetailsModel_1 = require("./QuestionDetailsModel");
|
|
6
|
-
class CategoryDetailModel extends BaseModel_1.BaseModel {
|
|
7
|
-
constructor(categories) {
|
|
8
|
-
super();
|
|
9
|
-
this._categories = categories;
|
|
10
|
-
}
|
|
11
|
-
// Getter and Setter
|
|
12
|
-
get categories() {
|
|
13
|
-
return this._categories;
|
|
14
|
-
}
|
|
15
|
-
set categories(value) {
|
|
16
|
-
if (this.validateCategories(value)) {
|
|
17
|
-
this._categories = value;
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid categories data");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
// Validation for categories
|
|
24
|
-
validateCategories(value) {
|
|
25
|
-
return (typeof value === "object" &&
|
|
26
|
-
value !== null &&
|
|
27
|
-
Object.keys(value).every((key) => typeof key === "string" &&
|
|
28
|
-
Array.isArray(value[key]) &&
|
|
29
|
-
value[key].every((item) => item instanceof QuestionDetailsModel_1.QuestionDetailsModel)));
|
|
30
|
-
}
|
|
31
|
-
// Validate Data
|
|
32
|
-
validateData() {
|
|
33
|
-
this.validationMessages = [];
|
|
34
|
-
if (!this.validateCategories(this._categories)) {
|
|
35
|
-
this.validationMessages.push({
|
|
36
|
-
type: "Error",
|
|
37
|
-
fieldDescription: "categories",
|
|
38
|
-
message: "Categories must be an object with keys as strings and values as arrays of QuestionDetailsModel instances.",
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
return this.validationMessages;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.CategoryDetailModel = CategoryDetailModel;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
-
type Department = "gather" | "say";
|
|
4
|
-
type Skills = "aext" | "audio";
|
|
5
|
-
export declare class MemberModel extends BaseModel {
|
|
6
|
-
private _id;
|
|
7
|
-
private _fullName;
|
|
8
|
-
private _extension;
|
|
9
|
-
private _department;
|
|
10
|
-
private _skills;
|
|
11
|
-
private _status;
|
|
12
|
-
private _loggedOn;
|
|
13
|
-
private _timeInStatus;
|
|
14
|
-
private _state;
|
|
15
|
-
private _duration;
|
|
16
|
-
private _interactionId;
|
|
17
|
-
constructor(id: string, fullName: string, extension: string, department: Department, skills: Skills, status: string, loggedOn: string | null, timeInStatus: string | null, state: string, duration: string | null, interactionId: string);
|
|
18
|
-
get id(): string;
|
|
19
|
-
set id(value: string);
|
|
20
|
-
get fullName(): string;
|
|
21
|
-
set fullName(value: string);
|
|
22
|
-
get extension(): string;
|
|
23
|
-
set extension(value: string);
|
|
24
|
-
get department(): Department;
|
|
25
|
-
set department(value: Department);
|
|
26
|
-
get skills(): Skills;
|
|
27
|
-
set skills(value: Skills);
|
|
28
|
-
get status(): string;
|
|
29
|
-
set status(value: string);
|
|
30
|
-
get loggedOn(): string | null;
|
|
31
|
-
set loggedOn(value: string | null);
|
|
32
|
-
get timeInStatus(): string | null;
|
|
33
|
-
set timeInStatus(value: string | null);
|
|
34
|
-
get state(): string;
|
|
35
|
-
set state(value: string);
|
|
36
|
-
get duration(): string | null;
|
|
37
|
-
set duration(value: string | null);
|
|
38
|
-
get interactionId(): string;
|
|
39
|
-
set interactionId(value: string);
|
|
40
|
-
validateData(): validationMessage[];
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MemberModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
-
class MemberModel extends BaseModel_1.BaseModel {
|
|
6
|
-
constructor(id, fullName, extension, department, skills, status, loggedOn, timeInStatus, state, duration, interactionId) {
|
|
7
|
-
super();
|
|
8
|
-
this._id = id;
|
|
9
|
-
this._fullName = fullName;
|
|
10
|
-
this._extension = extension;
|
|
11
|
-
this._department = department;
|
|
12
|
-
this._skills = skills;
|
|
13
|
-
this._status = status;
|
|
14
|
-
this._loggedOn = loggedOn;
|
|
15
|
-
this._timeInStatus = timeInStatus;
|
|
16
|
-
this._state = state;
|
|
17
|
-
this._duration = duration;
|
|
18
|
-
this._interactionId = interactionId;
|
|
19
|
-
}
|
|
20
|
-
// Getters and Setters
|
|
21
|
-
get id() {
|
|
22
|
-
return this._id;
|
|
23
|
-
}
|
|
24
|
-
set id(value) {
|
|
25
|
-
this._id = value;
|
|
26
|
-
}
|
|
27
|
-
get fullName() {
|
|
28
|
-
return this._fullName;
|
|
29
|
-
}
|
|
30
|
-
set fullName(value) {
|
|
31
|
-
this._fullName = value;
|
|
32
|
-
}
|
|
33
|
-
get extension() {
|
|
34
|
-
return this._extension;
|
|
35
|
-
}
|
|
36
|
-
set extension(value) {
|
|
37
|
-
this._extension = value;
|
|
38
|
-
}
|
|
39
|
-
get department() {
|
|
40
|
-
return this._department;
|
|
41
|
-
}
|
|
42
|
-
set department(value) {
|
|
43
|
-
this._department = value;
|
|
44
|
-
}
|
|
45
|
-
get skills() {
|
|
46
|
-
return this._skills;
|
|
47
|
-
}
|
|
48
|
-
set skills(value) {
|
|
49
|
-
this._skills = value;
|
|
50
|
-
}
|
|
51
|
-
get status() {
|
|
52
|
-
return this._status;
|
|
53
|
-
}
|
|
54
|
-
set status(value) {
|
|
55
|
-
this._status = value;
|
|
56
|
-
}
|
|
57
|
-
get loggedOn() {
|
|
58
|
-
return this._loggedOn;
|
|
59
|
-
}
|
|
60
|
-
set loggedOn(value) {
|
|
61
|
-
this._loggedOn = value;
|
|
62
|
-
}
|
|
63
|
-
get timeInStatus() {
|
|
64
|
-
return this._timeInStatus;
|
|
65
|
-
}
|
|
66
|
-
set timeInStatus(value) {
|
|
67
|
-
this._timeInStatus = value;
|
|
68
|
-
}
|
|
69
|
-
get state() {
|
|
70
|
-
return this._state;
|
|
71
|
-
}
|
|
72
|
-
set state(value) {
|
|
73
|
-
this._state = value;
|
|
74
|
-
}
|
|
75
|
-
get duration() {
|
|
76
|
-
return this._duration;
|
|
77
|
-
}
|
|
78
|
-
set duration(value) {
|
|
79
|
-
this._duration = value;
|
|
80
|
-
}
|
|
81
|
-
get interactionId() {
|
|
82
|
-
return this._interactionId;
|
|
83
|
-
}
|
|
84
|
-
set interactionId(value) {
|
|
85
|
-
this._interactionId = value;
|
|
86
|
-
}
|
|
87
|
-
// Validation Method
|
|
88
|
-
validateData() {
|
|
89
|
-
this.validationMessages = [];
|
|
90
|
-
if (typeof this._id !== "string" || !this._id.trim()) {
|
|
91
|
-
this.validationMessages.push({
|
|
92
|
-
type: "Error",
|
|
93
|
-
fieldDescription: "id",
|
|
94
|
-
message: "ID must be a non-empty string",
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
if (typeof this._fullName !== "string" || !this._fullName.trim()) {
|
|
98
|
-
this.validationMessages.push({
|
|
99
|
-
type: "Error",
|
|
100
|
-
fieldDescription: "fullName",
|
|
101
|
-
message: "Full name must be a non-empty string",
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
if (typeof this._extension !== "string" || !this._extension.trim()) {
|
|
105
|
-
this.validationMessages.push({
|
|
106
|
-
type: "Error",
|
|
107
|
-
fieldDescription: "extension",
|
|
108
|
-
message: "Extension must be a non-empty string",
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
if (!["Gather", "Say"].includes(this._department)) {
|
|
112
|
-
this.validationMessages.push({
|
|
113
|
-
type: "Error",
|
|
114
|
-
fieldDescription: "department",
|
|
115
|
-
message: "Department must be either 'Gather' or 'Say'",
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
if (!["Text", "Audio"].includes(this._skills)) {
|
|
119
|
-
this.validationMessages.push({
|
|
120
|
-
type: "Error",
|
|
121
|
-
fieldDescription: "skills",
|
|
122
|
-
message: "Skills must be either 'Text' or 'Audio'",
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
if (typeof this._status !== "string" || !this._status.trim()) {
|
|
126
|
-
this.validationMessages.push({
|
|
127
|
-
type: "Error",
|
|
128
|
-
fieldDescription: "status",
|
|
129
|
-
message: "Status must be a non-empty string",
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
if (this._loggedOn && typeof this._loggedOn !== "string") {
|
|
133
|
-
this.validationMessages.push({
|
|
134
|
-
type: "Error",
|
|
135
|
-
fieldDescription: "loggedOn",
|
|
136
|
-
message: "LoggedOn must be a string or null",
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
if (this._timeInStatus && typeof this._timeInStatus !== "string") {
|
|
140
|
-
this.validationMessages.push({
|
|
141
|
-
type: "Error",
|
|
142
|
-
fieldDescription: "timeInStatus",
|
|
143
|
-
message: "TimeInStatus must be a string or null",
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
if (typeof this._state !== "string" || !this._state.trim()) {
|
|
147
|
-
this.validationMessages.push({
|
|
148
|
-
type: "Error",
|
|
149
|
-
fieldDescription: "state",
|
|
150
|
-
message: "State must be a non-empty string",
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
if (this._duration && typeof this._duration !== "string") {
|
|
154
|
-
this.validationMessages.push({
|
|
155
|
-
type: "Error",
|
|
156
|
-
fieldDescription: "duration",
|
|
157
|
-
message: "Duration must be a string or null",
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
if (typeof this._interactionId !== "string" || !this._interactionId.trim()) {
|
|
161
|
-
this.validationMessages.push({
|
|
162
|
-
type: "Error",
|
|
163
|
-
fieldDescription: "interactionId",
|
|
164
|
-
message: "Interaction ID must be a non-empty string",
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
return this.validationMessages;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
exports.MemberModel = MemberModel;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CommonError } from "../../common/abstract/CommonError";
|
|
2
|
-
import { IErrorDetails } from "../../common/interface/IErrorDetails";
|
|
3
|
-
export declare class ModelValidationError extends CommonError {
|
|
4
|
-
constructor(error: IErrorDetails);
|
|
5
|
-
handleError(error: IErrorDetails): IErrorDetails;
|
|
6
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModelValidationError = void 0;
|
|
4
|
-
const CommonError_1 = require("../../common/abstract/CommonError");
|
|
5
|
-
const ErrorTypes_1 = require("../../common/enum/ErrorTypes");
|
|
6
|
-
class ModelValidationError extends CommonError_1.CommonError {
|
|
7
|
-
constructor(error) {
|
|
8
|
-
error.type = ErrorTypes_1.ErrorTypes.ValidationError;
|
|
9
|
-
super(error);
|
|
10
|
-
}
|
|
11
|
-
handleError(error) {
|
|
12
|
-
throw new Error("Method not implemented.");
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.ModelValidationError = ModelValidationError;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
-
export declare class NavigationModel extends BaseModel {
|
|
4
|
-
private _id;
|
|
5
|
-
private _name;
|
|
6
|
-
private _isEnabled;
|
|
7
|
-
private _visible;
|
|
8
|
-
private _appliedVersion;
|
|
9
|
-
private _latestVersion;
|
|
10
|
-
private _dateOflatestVersion;
|
|
11
|
-
private _description;
|
|
12
|
-
private _route;
|
|
13
|
-
private _createdAt;
|
|
14
|
-
private _updatedAt;
|
|
15
|
-
constructor(id: string, name: string, isEnabled: boolean, visible: boolean, appliedVersion: string, latestVersion: string, dateOflatestVersion: string, description: string, route: string, 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 isEnabled(): boolean;
|
|
21
|
-
set isEnabled(value: boolean);
|
|
22
|
-
get visible(): boolean;
|
|
23
|
-
set visible(value: boolean);
|
|
24
|
-
get appliedVersion(): string;
|
|
25
|
-
set appliedVersion(value: string);
|
|
26
|
-
get latestVersion(): string;
|
|
27
|
-
set latestVersion(value: string);
|
|
28
|
-
get dateOflatestVersion(): string;
|
|
29
|
-
set dateOflatestVersion(value: string);
|
|
30
|
-
get description(): string;
|
|
31
|
-
set description(value: string);
|
|
32
|
-
get route(): string;
|
|
33
|
-
set route(value: string);
|
|
34
|
-
get createdAt(): Date | undefined;
|
|
35
|
-
set createdAt(value: Date | undefined);
|
|
36
|
-
get updatedAt(): Date | undefined;
|
|
37
|
-
set updatedAt(value: Date | undefined);
|
|
38
|
-
validateData(): validationMessage[];
|
|
39
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NavigationModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
-
class NavigationModel extends BaseModel_1.BaseModel {
|
|
6
|
-
constructor(id, name, isEnabled, visible, appliedVersion, latestVersion, dateOflatestVersion, description, route, createdAt, updatedAt) {
|
|
7
|
-
super();
|
|
8
|
-
this._id = id;
|
|
9
|
-
this._name = name;
|
|
10
|
-
this._isEnabled = isEnabled;
|
|
11
|
-
this._visible = visible;
|
|
12
|
-
this._appliedVersion = appliedVersion;
|
|
13
|
-
this._latestVersion = latestVersion;
|
|
14
|
-
this._dateOflatestVersion = dateOflatestVersion;
|
|
15
|
-
this._description = description;
|
|
16
|
-
this._route = route;
|
|
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 isEnabled() {
|
|
34
|
-
return this._isEnabled;
|
|
35
|
-
}
|
|
36
|
-
set isEnabled(value) {
|
|
37
|
-
this._isEnabled = value;
|
|
38
|
-
}
|
|
39
|
-
get visible() {
|
|
40
|
-
return this._visible;
|
|
41
|
-
}
|
|
42
|
-
set visible(value) {
|
|
43
|
-
this._visible = value;
|
|
44
|
-
}
|
|
45
|
-
get appliedVersion() {
|
|
46
|
-
return this._appliedVersion;
|
|
47
|
-
}
|
|
48
|
-
set appliedVersion(value) {
|
|
49
|
-
this._appliedVersion = value;
|
|
50
|
-
}
|
|
51
|
-
get latestVersion() {
|
|
52
|
-
return this._latestVersion;
|
|
53
|
-
}
|
|
54
|
-
set latestVersion(value) {
|
|
55
|
-
this._latestVersion = value;
|
|
56
|
-
}
|
|
57
|
-
get dateOflatestVersion() {
|
|
58
|
-
return this._dateOflatestVersion;
|
|
59
|
-
}
|
|
60
|
-
set dateOflatestVersion(value) {
|
|
61
|
-
this._dateOflatestVersion = value;
|
|
62
|
-
}
|
|
63
|
-
get description() {
|
|
64
|
-
return this._description;
|
|
65
|
-
}
|
|
66
|
-
set description(value) {
|
|
67
|
-
this._description = value;
|
|
68
|
-
}
|
|
69
|
-
get route() {
|
|
70
|
-
return this._route;
|
|
71
|
-
}
|
|
72
|
-
set route(value) {
|
|
73
|
-
this._route = value;
|
|
74
|
-
}
|
|
75
|
-
get createdAt() {
|
|
76
|
-
return this._createdAt;
|
|
77
|
-
}
|
|
78
|
-
set createdAt(value) {
|
|
79
|
-
this._createdAt = value;
|
|
80
|
-
}
|
|
81
|
-
get updatedAt() {
|
|
82
|
-
return this._updatedAt;
|
|
83
|
-
}
|
|
84
|
-
set updatedAt(value) {
|
|
85
|
-
this._updatedAt = value;
|
|
86
|
-
}
|
|
87
|
-
// Validation method
|
|
88
|
-
validateData() {
|
|
89
|
-
this.validationMessages = [];
|
|
90
|
-
const validationRules = {
|
|
91
|
-
id: (value) => typeof value === "string" && value.trim() !== "",
|
|
92
|
-
name: (value) => typeof value === "string" && value.trim() !== "",
|
|
93
|
-
isEnabled: (value) => typeof value === "boolean",
|
|
94
|
-
visible: (value) => typeof value === "boolean",
|
|
95
|
-
appliedVersion: (value) => typeof value === "string" && value.trim() !== "",
|
|
96
|
-
description: (value) => typeof value === "string" && value.trim() !== "",
|
|
97
|
-
latestVersion: (value) => typeof value === "string" && value.trim() !== "",
|
|
98
|
-
dateOflatestVersion: (value) => typeof value === "string" && value.trim() !== "",
|
|
99
|
-
route: (value) => typeof value === "string",
|
|
100
|
-
createdAt: (value) => {
|
|
101
|
-
const parsedDate = new Date(value);
|
|
102
|
-
return parsedDate instanceof Date && !isNaN(parsedDate.getTime());
|
|
103
|
-
},
|
|
104
|
-
updatedAt: (value) => {
|
|
105
|
-
const parsedDate = new Date(value);
|
|
106
|
-
return parsedDate instanceof Date && !isNaN(parsedDate.getTime());
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
for (const key in validationRules) {
|
|
110
|
-
if (!validationRules.hasOwnProperty(key))
|
|
111
|
-
continue;
|
|
112
|
-
const validator = validationRules[key];
|
|
113
|
-
const value = this[key]; // Dynamically access the property
|
|
114
|
-
if (!validator(value)) {
|
|
115
|
-
console.error(`Validation failed for property "${key}".`);
|
|
116
|
-
this.validationMessages.push({
|
|
117
|
-
type: "Error",
|
|
118
|
-
fieldDescription: key,
|
|
119
|
-
message: `${key} is not valid`,
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return this.validationMessages;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
exports.NavigationModel = NavigationModel;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
-
import { StatisticsTimeDetailsModel } from "./StatisticsTimeDetailsModel";
|
|
4
|
-
import { StatisticsNumberDetailsModel } from "./StatisticsNumberDetailsModel";
|
|
5
|
-
export declare class PerformanceStatisticsModel extends BaseModel {
|
|
6
|
-
private _averageWaitTime;
|
|
7
|
-
private _longestWaitTime;
|
|
8
|
-
private _averageHoldTime;
|
|
9
|
-
private _longestHoldTime;
|
|
10
|
-
private _averageTalkTime;
|
|
11
|
-
private _longestTalkTime;
|
|
12
|
-
private _serviceLevel;
|
|
13
|
-
private _abandonRate;
|
|
14
|
-
private _longestInboundAcdInteraction;
|
|
15
|
-
private _longestNonAcdInteraction;
|
|
16
|
-
private _longestOutboundAcdInteraction;
|
|
17
|
-
constructor(averageWaitTime: StatisticsTimeDetailsModel, longestWaitTime: StatisticsTimeDetailsModel, averageHoldTime: StatisticsTimeDetailsModel, longestHoldTime: StatisticsTimeDetailsModel, averageTalkTime: StatisticsTimeDetailsModel, longestTalkTime: StatisticsTimeDetailsModel, serviceLevel: StatisticsNumberDetailsModel, abandonRate: StatisticsNumberDetailsModel, longestInboundAcdInteraction: StatisticsTimeDetailsModel, longestNonAcdInteraction: StatisticsTimeDetailsModel, longestOutboundAcdInteraction: StatisticsTimeDetailsModel);
|
|
18
|
-
get averageWaitTime(): StatisticsTimeDetailsModel;
|
|
19
|
-
set averageWaitTime(value: StatisticsTimeDetailsModel);
|
|
20
|
-
get longestWaitTime(): StatisticsTimeDetailsModel;
|
|
21
|
-
set longestWaitTime(value: StatisticsTimeDetailsModel);
|
|
22
|
-
get averageHoldTime(): StatisticsTimeDetailsModel;
|
|
23
|
-
set averageHoldTime(value: StatisticsTimeDetailsModel);
|
|
24
|
-
get longestHoldTime(): StatisticsTimeDetailsModel;
|
|
25
|
-
set longestHoldTime(value: StatisticsTimeDetailsModel);
|
|
26
|
-
get averageTalkTime(): StatisticsTimeDetailsModel;
|
|
27
|
-
set averageTalkTime(value: StatisticsTimeDetailsModel);
|
|
28
|
-
get longestTalkTime(): StatisticsTimeDetailsModel;
|
|
29
|
-
set longestTalkTime(value: StatisticsTimeDetailsModel);
|
|
30
|
-
get serviceLevel(): StatisticsNumberDetailsModel;
|
|
31
|
-
set serviceLevel(value: StatisticsNumberDetailsModel);
|
|
32
|
-
get abandonRate(): StatisticsNumberDetailsModel;
|
|
33
|
-
set abandonRate(value: StatisticsNumberDetailsModel);
|
|
34
|
-
get longestInboundAcdInteraction(): StatisticsTimeDetailsModel;
|
|
35
|
-
set longestInboundAcdInteraction(value: StatisticsTimeDetailsModel);
|
|
36
|
-
get longestNonAcdInteraction(): StatisticsTimeDetailsModel;
|
|
37
|
-
set longestNonAcdInteraction(value: StatisticsTimeDetailsModel);
|
|
38
|
-
get longestOutboundAcdInteraction(): StatisticsTimeDetailsModel;
|
|
39
|
-
set longestOutboundAcdInteraction(value: StatisticsTimeDetailsModel);
|
|
40
|
-
validateData(): validationMessage[];
|
|
41
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PerformanceStatisticsModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
-
const StatisticsTimeDetailsModel_1 = require("./StatisticsTimeDetailsModel");
|
|
6
|
-
const StatisticsNumberDetailsModel_1 = require("./StatisticsNumberDetailsModel");
|
|
7
|
-
class PerformanceStatisticsModel extends BaseModel_1.BaseModel {
|
|
8
|
-
constructor(averageWaitTime, longestWaitTime, averageHoldTime, longestHoldTime, averageTalkTime, longestTalkTime, serviceLevel, abandonRate, longestInboundAcdInteraction, longestNonAcdInteraction, longestOutboundAcdInteraction) {
|
|
9
|
-
super();
|
|
10
|
-
this._averageWaitTime = averageWaitTime;
|
|
11
|
-
this._longestWaitTime = longestWaitTime;
|
|
12
|
-
this._averageHoldTime = averageHoldTime;
|
|
13
|
-
this._longestHoldTime = longestHoldTime;
|
|
14
|
-
this._averageTalkTime = averageTalkTime;
|
|
15
|
-
this._longestTalkTime = longestTalkTime;
|
|
16
|
-
this._serviceLevel = serviceLevel;
|
|
17
|
-
this._abandonRate = abandonRate;
|
|
18
|
-
this._longestInboundAcdInteraction = longestInboundAcdInteraction;
|
|
19
|
-
this._longestNonAcdInteraction = longestNonAcdInteraction;
|
|
20
|
-
this._longestOutboundAcdInteraction = longestOutboundAcdInteraction;
|
|
21
|
-
}
|
|
22
|
-
// Getters and Setters
|
|
23
|
-
get averageWaitTime() {
|
|
24
|
-
return this._averageWaitTime;
|
|
25
|
-
}
|
|
26
|
-
set averageWaitTime(value) {
|
|
27
|
-
this._averageWaitTime = value;
|
|
28
|
-
}
|
|
29
|
-
get longestWaitTime() {
|
|
30
|
-
return this._longestWaitTime;
|
|
31
|
-
}
|
|
32
|
-
set longestWaitTime(value) {
|
|
33
|
-
this._longestWaitTime = value;
|
|
34
|
-
}
|
|
35
|
-
get averageHoldTime() {
|
|
36
|
-
return this._averageHoldTime;
|
|
37
|
-
}
|
|
38
|
-
set averageHoldTime(value) {
|
|
39
|
-
this._averageHoldTime = value;
|
|
40
|
-
}
|
|
41
|
-
get longestHoldTime() {
|
|
42
|
-
return this._longestHoldTime;
|
|
43
|
-
}
|
|
44
|
-
set longestHoldTime(value) {
|
|
45
|
-
this._longestHoldTime = value;
|
|
46
|
-
}
|
|
47
|
-
get averageTalkTime() {
|
|
48
|
-
return this._averageTalkTime;
|
|
49
|
-
}
|
|
50
|
-
set averageTalkTime(value) {
|
|
51
|
-
this._averageTalkTime = value;
|
|
52
|
-
}
|
|
53
|
-
get longestTalkTime() {
|
|
54
|
-
return this._longestTalkTime;
|
|
55
|
-
}
|
|
56
|
-
set longestTalkTime(value) {
|
|
57
|
-
this._longestTalkTime = value;
|
|
58
|
-
}
|
|
59
|
-
get serviceLevel() {
|
|
60
|
-
return this._serviceLevel;
|
|
61
|
-
}
|
|
62
|
-
set serviceLevel(value) {
|
|
63
|
-
this._serviceLevel = value;
|
|
64
|
-
}
|
|
65
|
-
get abandonRate() {
|
|
66
|
-
return this._abandonRate;
|
|
67
|
-
}
|
|
68
|
-
set abandonRate(value) {
|
|
69
|
-
this._abandonRate = value;
|
|
70
|
-
}
|
|
71
|
-
get longestInboundAcdInteraction() {
|
|
72
|
-
return this._longestInboundAcdInteraction;
|
|
73
|
-
}
|
|
74
|
-
set longestInboundAcdInteraction(value) {
|
|
75
|
-
this._longestInboundAcdInteraction = value;
|
|
76
|
-
}
|
|
77
|
-
get longestNonAcdInteraction() {
|
|
78
|
-
return this._longestNonAcdInteraction;
|
|
79
|
-
}
|
|
80
|
-
set longestNonAcdInteraction(value) {
|
|
81
|
-
this._longestNonAcdInteraction = value;
|
|
82
|
-
}
|
|
83
|
-
get longestOutboundAcdInteraction() {
|
|
84
|
-
return this._longestOutboundAcdInteraction;
|
|
85
|
-
}
|
|
86
|
-
set longestOutboundAcdInteraction(value) {
|
|
87
|
-
this._longestOutboundAcdInteraction = value;
|
|
88
|
-
}
|
|
89
|
-
// Validation Method
|
|
90
|
-
validateData() {
|
|
91
|
-
this.validationMessages = [];
|
|
92
|
-
const timeDetailsFields = [
|
|
93
|
-
this._averageWaitTime,
|
|
94
|
-
this._longestWaitTime,
|
|
95
|
-
this._averageHoldTime,
|
|
96
|
-
this._longestHoldTime,
|
|
97
|
-
this._averageTalkTime,
|
|
98
|
-
this._longestTalkTime,
|
|
99
|
-
this._longestInboundAcdInteraction,
|
|
100
|
-
this._longestNonAcdInteraction,
|
|
101
|
-
this._longestOutboundAcdInteraction,
|
|
102
|
-
];
|
|
103
|
-
timeDetailsFields.forEach((field, index) => {
|
|
104
|
-
if (!(field instanceof StatisticsTimeDetailsModel_1.StatisticsTimeDetailsModel)) {
|
|
105
|
-
this.validationMessages.push({
|
|
106
|
-
type: "Error",
|
|
107
|
-
fieldDescription: `Field at index ${index}`,
|
|
108
|
-
message: "Invalid StatisticsTimeDetailsModel instance",
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
if (!(this._serviceLevel instanceof StatisticsNumberDetailsModel_1.StatisticsNumberDetailsModel)) {
|
|
113
|
-
this.validationMessages.push({
|
|
114
|
-
type: "Error",
|
|
115
|
-
fieldDescription: "serviceLevel",
|
|
116
|
-
message: "Invalid StatisticsNumberDetailsModel instance",
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
if (!(this._abandonRate instanceof StatisticsNumberDetailsModel_1.StatisticsNumberDetailsModel)) {
|
|
120
|
-
this.validationMessages.push({
|
|
121
|
-
type: "Error",
|
|
122
|
-
fieldDescription: "abandonRate",
|
|
123
|
-
message: "Invalid StatisticsNumberDetailsModel instance",
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
return this.validationMessages;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
exports.PerformanceStatisticsModel = PerformanceStatisticsModel;
|