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,66 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
-
export declare class AgentScorecardModel extends BaseModel {
|
|
4
|
-
private _id;
|
|
5
|
-
private _ht;
|
|
6
|
-
private _uniqueName;
|
|
7
|
-
private _tsCompleted;
|
|
8
|
-
private _tsCreated;
|
|
9
|
-
private _taskSid;
|
|
10
|
-
private _queueName;
|
|
11
|
-
private _channel;
|
|
12
|
-
private _HoldTimeline;
|
|
13
|
-
private _UnHoldTimeline;
|
|
14
|
-
private _taskCreated;
|
|
15
|
-
private _reservationCreated;
|
|
16
|
-
private _tsHangUp;
|
|
17
|
-
private _from;
|
|
18
|
-
private _to;
|
|
19
|
-
private _isOutbound;
|
|
20
|
-
private _queueSid;
|
|
21
|
-
private _hang_up_by;
|
|
22
|
-
private _createdAt;
|
|
23
|
-
private _updatedAt;
|
|
24
|
-
constructor(id: string, ht: string, uniqueName: string, tsCompleted: string, tsCreated: string, taskSid: string, queueName: string, channel: string, HoldTimeline: number, UnHoldTimeline: number, taskCreated: number, reservationCreated: number, tsHangUp: number, from: number, to: number, isOutbound: number, queueSid: string, hang_up_by: string, createdAt: Date | undefined | string, updatedAt: Date | undefined | string);
|
|
25
|
-
get id(): string;
|
|
26
|
-
set id(value: string);
|
|
27
|
-
get ht(): string;
|
|
28
|
-
set ht(value: string);
|
|
29
|
-
get uniqueName(): string;
|
|
30
|
-
set uniqueName(value: string);
|
|
31
|
-
get tsCompleted(): string;
|
|
32
|
-
set tsCompleted(value: string);
|
|
33
|
-
get tsCreated(): string;
|
|
34
|
-
set tsCreated(value: string);
|
|
35
|
-
get taskSid(): string;
|
|
36
|
-
set taskSid(value: string);
|
|
37
|
-
get queueName(): string;
|
|
38
|
-
set queueName(value: string);
|
|
39
|
-
get channel(): string;
|
|
40
|
-
set channel(value: string);
|
|
41
|
-
get HoldTimeline(): number;
|
|
42
|
-
set HoldTimeline(value: number);
|
|
43
|
-
get UnHoldTimeline(): number;
|
|
44
|
-
set UnHoldTimeline(value: number);
|
|
45
|
-
get taskCreated(): number;
|
|
46
|
-
set taskCreated(value: number);
|
|
47
|
-
get reservationCreated(): number;
|
|
48
|
-
set reservationCreated(value: number);
|
|
49
|
-
get tsHangUp(): number;
|
|
50
|
-
set tsHangUp(value: number);
|
|
51
|
-
get from(): number;
|
|
52
|
-
set from(value: number);
|
|
53
|
-
get to(): number;
|
|
54
|
-
set to(value: number);
|
|
55
|
-
get isOutbound(): number;
|
|
56
|
-
set isOutbound(value: number);
|
|
57
|
-
get queueSid(): string;
|
|
58
|
-
set queueSid(value: string);
|
|
59
|
-
get hang_up_by(): string;
|
|
60
|
-
set hang_up_by(value: string);
|
|
61
|
-
get createdAt(): Date | undefined | string;
|
|
62
|
-
set createdAt(value: Date | undefined | string);
|
|
63
|
-
get updatedAt(): Date | undefined | string;
|
|
64
|
-
set updatedAt(value: Date | undefined | string);
|
|
65
|
-
validateData(): validationMessage[];
|
|
66
|
-
}
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentScorecardModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
-
class AgentScorecardModel extends BaseModel_1.BaseModel {
|
|
6
|
-
constructor(id, ht, uniqueName, tsCompleted, tsCreated, taskSid, queueName, channel, HoldTimeline, UnHoldTimeline, taskCreated, reservationCreated, tsHangUp, from, to, isOutbound, queueSid, hang_up_by, createdAt, updatedAt) {
|
|
7
|
-
super();
|
|
8
|
-
this._id = id;
|
|
9
|
-
this._ht = ht;
|
|
10
|
-
this._uniqueName = uniqueName;
|
|
11
|
-
this._tsCompleted = tsCompleted;
|
|
12
|
-
this._tsCreated = tsCreated;
|
|
13
|
-
this._taskSid = taskSid;
|
|
14
|
-
this._queueName = queueName;
|
|
15
|
-
this._channel = channel;
|
|
16
|
-
this._HoldTimeline = HoldTimeline;
|
|
17
|
-
this._UnHoldTimeline = UnHoldTimeline;
|
|
18
|
-
this._taskCreated = taskCreated;
|
|
19
|
-
this._reservationCreated = reservationCreated;
|
|
20
|
-
this._tsHangUp = tsHangUp;
|
|
21
|
-
this._from = from;
|
|
22
|
-
this._to = to;
|
|
23
|
-
this._isOutbound = isOutbound;
|
|
24
|
-
this._queueSid = queueSid;
|
|
25
|
-
this._hang_up_by = hang_up_by;
|
|
26
|
-
this._createdAt = createdAt;
|
|
27
|
-
this._updatedAt = updatedAt;
|
|
28
|
-
}
|
|
29
|
-
// Getters and Setters
|
|
30
|
-
get id() {
|
|
31
|
-
return this._id;
|
|
32
|
-
}
|
|
33
|
-
set id(value) {
|
|
34
|
-
this._id = value;
|
|
35
|
-
}
|
|
36
|
-
get ht() {
|
|
37
|
-
return this.ht;
|
|
38
|
-
}
|
|
39
|
-
set ht(value) {
|
|
40
|
-
this._ht = value;
|
|
41
|
-
}
|
|
42
|
-
get uniqueName() {
|
|
43
|
-
return this._uniqueName;
|
|
44
|
-
}
|
|
45
|
-
set uniqueName(value) {
|
|
46
|
-
this._uniqueName = value;
|
|
47
|
-
}
|
|
48
|
-
get tsCompleted() {
|
|
49
|
-
return this._tsCompleted;
|
|
50
|
-
}
|
|
51
|
-
set tsCompleted(value) {
|
|
52
|
-
this._tsCompleted = value;
|
|
53
|
-
}
|
|
54
|
-
get tsCreated() {
|
|
55
|
-
return this._tsCreated;
|
|
56
|
-
}
|
|
57
|
-
set tsCreated(value) {
|
|
58
|
-
this._tsCreated = value;
|
|
59
|
-
}
|
|
60
|
-
get taskSid() {
|
|
61
|
-
return this._taskSid;
|
|
62
|
-
}
|
|
63
|
-
set taskSid(value) {
|
|
64
|
-
this._taskSid = value;
|
|
65
|
-
}
|
|
66
|
-
get queueName() {
|
|
67
|
-
return this._queueName;
|
|
68
|
-
}
|
|
69
|
-
set queueName(value) {
|
|
70
|
-
this._queueName = value;
|
|
71
|
-
}
|
|
72
|
-
get channel() {
|
|
73
|
-
return this._channel;
|
|
74
|
-
}
|
|
75
|
-
set channel(value) {
|
|
76
|
-
this._channel = value;
|
|
77
|
-
}
|
|
78
|
-
get HoldTimeline() {
|
|
79
|
-
return this._HoldTimeline;
|
|
80
|
-
}
|
|
81
|
-
set HoldTimeline(value) {
|
|
82
|
-
this._HoldTimeline = value;
|
|
83
|
-
}
|
|
84
|
-
get UnHoldTimeline() {
|
|
85
|
-
return this._UnHoldTimeline;
|
|
86
|
-
}
|
|
87
|
-
set UnHoldTimeline(value) {
|
|
88
|
-
this._UnHoldTimeline = value;
|
|
89
|
-
}
|
|
90
|
-
get taskCreated() {
|
|
91
|
-
return this._taskCreated;
|
|
92
|
-
}
|
|
93
|
-
set taskCreated(value) {
|
|
94
|
-
this._taskCreated = value;
|
|
95
|
-
}
|
|
96
|
-
get reservationCreated() {
|
|
97
|
-
return this._reservationCreated;
|
|
98
|
-
}
|
|
99
|
-
set reservationCreated(value) {
|
|
100
|
-
this._reservationCreated = value;
|
|
101
|
-
}
|
|
102
|
-
get tsHangUp() {
|
|
103
|
-
return this._tsHangUp;
|
|
104
|
-
}
|
|
105
|
-
set tsHangUp(value) {
|
|
106
|
-
this._tsHangUp = value;
|
|
107
|
-
}
|
|
108
|
-
get from() {
|
|
109
|
-
return this._from;
|
|
110
|
-
}
|
|
111
|
-
set from(value) {
|
|
112
|
-
this._from = value;
|
|
113
|
-
}
|
|
114
|
-
get to() {
|
|
115
|
-
return this._to;
|
|
116
|
-
}
|
|
117
|
-
set to(value) {
|
|
118
|
-
this._to = value;
|
|
119
|
-
}
|
|
120
|
-
get isOutbound() {
|
|
121
|
-
return this._isOutbound;
|
|
122
|
-
}
|
|
123
|
-
set isOutbound(value) {
|
|
124
|
-
this._isOutbound = value;
|
|
125
|
-
}
|
|
126
|
-
get queueSid() {
|
|
127
|
-
return this._queueSid;
|
|
128
|
-
}
|
|
129
|
-
set queueSid(value) {
|
|
130
|
-
this._queueSid = value;
|
|
131
|
-
}
|
|
132
|
-
get hang_up_by() {
|
|
133
|
-
return this._hang_up_by;
|
|
134
|
-
}
|
|
135
|
-
set hang_up_by(value) {
|
|
136
|
-
this._hang_up_by = value;
|
|
137
|
-
}
|
|
138
|
-
get createdAt() {
|
|
139
|
-
return this._createdAt;
|
|
140
|
-
}
|
|
141
|
-
set createdAt(value) {
|
|
142
|
-
this._createdAt = value;
|
|
143
|
-
}
|
|
144
|
-
get updatedAt() {
|
|
145
|
-
return this._updatedAt;
|
|
146
|
-
}
|
|
147
|
-
set updatedAt(value) {
|
|
148
|
-
this._updatedAt = value;
|
|
149
|
-
}
|
|
150
|
-
// Validation Method
|
|
151
|
-
validateData() {
|
|
152
|
-
this.validationMessages = [];
|
|
153
|
-
if (typeof this._id !== "string" || !this._id.trim()) {
|
|
154
|
-
this.validationMessages.push({
|
|
155
|
-
type: "Error",
|
|
156
|
-
fieldDescription: "id",
|
|
157
|
-
message: "ID must be a non-empty string",
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
if (typeof this._ht !== "string" || !this._ht.trim()) {
|
|
161
|
-
this.validationMessages.push({
|
|
162
|
-
type: "Error",
|
|
163
|
-
fieldDescription: "ht",
|
|
164
|
-
message: "ht must be a non-empty string",
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
if (typeof this._uniqueName !== "string" || !this._uniqueName.trim()) {
|
|
168
|
-
this.validationMessages.push({
|
|
169
|
-
type: "Error",
|
|
170
|
-
fieldDescription: "uniqueName",
|
|
171
|
-
message: "uniqueName must be a non-empty string",
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
if (typeof this._tsCompleted !== "string" || !this._tsCompleted.trim()) {
|
|
175
|
-
this.validationMessages.push({
|
|
176
|
-
type: "Error",
|
|
177
|
-
fieldDescription: "tsCompleted",
|
|
178
|
-
message: "tsCompleted must be a non-empty string",
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
if (typeof this._tsCreated !== "string" || this._tsCreated.trim()) {
|
|
182
|
-
this.validationMessages.push({
|
|
183
|
-
type: "Error",
|
|
184
|
-
fieldDescription: "tsCreated",
|
|
185
|
-
message: "tsCreated must be a non-empty string",
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
if (typeof this._taskSid !== "string" || this._taskSid.trim()) {
|
|
189
|
-
this.validationMessages.push({
|
|
190
|
-
type: "Error",
|
|
191
|
-
fieldDescription: "taskSid",
|
|
192
|
-
message: "taskSid must be a non-empty string",
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
if (typeof this._queueName !== "string" || this._queueName.trim()) {
|
|
196
|
-
this.validationMessages.push({
|
|
197
|
-
type: "Error",
|
|
198
|
-
fieldDescription: "queueName",
|
|
199
|
-
message: "queueName must be a non-empty string",
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
if (typeof this._channel !== "string" || this._channel.trim()) {
|
|
203
|
-
this.validationMessages.push({
|
|
204
|
-
type: "Error",
|
|
205
|
-
fieldDescription: "channel",
|
|
206
|
-
message: "Channel must be a non-empty string",
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
if (typeof this._HoldTimeline !== "number" || this._HoldTimeline < 0) {
|
|
210
|
-
this.validationMessages.push({
|
|
211
|
-
type: "Error",
|
|
212
|
-
fieldDescription: "HoldTimeline",
|
|
213
|
-
message: "HoldTimeline must be a non-negative number",
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
if (typeof this._UnHoldTimeline !== "number" || this._UnHoldTimeline < 0) {
|
|
217
|
-
this.validationMessages.push({
|
|
218
|
-
type: "Error",
|
|
219
|
-
fieldDescription: "UnHoldTimeline",
|
|
220
|
-
message: "UnHoldTimeline must be a non-negative number",
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
if (typeof this._taskCreated !== "number" || this._taskCreated < 0) {
|
|
224
|
-
this.validationMessages.push({
|
|
225
|
-
type: "Error",
|
|
226
|
-
fieldDescription: "taskCreated",
|
|
227
|
-
message: "taskCreated must be a non-negative number",
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
if (typeof this._reservationCreated !== "number" || this._reservationCreated < 0) {
|
|
231
|
-
this.validationMessages.push({
|
|
232
|
-
type: "Error",
|
|
233
|
-
fieldDescription: "reservationCreated",
|
|
234
|
-
message: "reservationCreated must be a non-negative number",
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
if (typeof this._tsHangUp !== "number" || this._tsHangUp < 0) {
|
|
238
|
-
this.validationMessages.push({
|
|
239
|
-
type: "Error",
|
|
240
|
-
fieldDescription: "tsHangUp",
|
|
241
|
-
message: "tsHangUp must be a non-negative number",
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
if (typeof this._from !== "number" || this._from < 0) {
|
|
245
|
-
this.validationMessages.push({
|
|
246
|
-
type: "Error",
|
|
247
|
-
fieldDescription: "from",
|
|
248
|
-
message: "from must be a non-negative number",
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
if (typeof this._to !== "number" || this._to < 0) {
|
|
252
|
-
this.validationMessages.push({
|
|
253
|
-
type: "Error",
|
|
254
|
-
fieldDescription: "to",
|
|
255
|
-
message: "to must be a non-negative number",
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
if (typeof this._isOutbound !== "number" || this._isOutbound < 0) {
|
|
259
|
-
this.validationMessages.push({
|
|
260
|
-
type: "Error",
|
|
261
|
-
fieldDescription: "isOutbound",
|
|
262
|
-
message: "isOutbound must be a non-negative number",
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
if (typeof this._queueSid !== "string" || this._queueSid.trim()) {
|
|
266
|
-
this.validationMessages.push({
|
|
267
|
-
type: "Error",
|
|
268
|
-
fieldDescription: "queueSid",
|
|
269
|
-
message: "queueSid must be a non-empty string",
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
if (typeof this._hang_up_by !== "string" || this._hang_up_by.trim()) {
|
|
273
|
-
this.validationMessages.push({
|
|
274
|
-
type: "Error",
|
|
275
|
-
fieldDescription: "hang_up_by",
|
|
276
|
-
message: "hang_up_by must be a non-empty string"
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
return this.validationMessages;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
exports.AgentScorecardModel = AgentScorecardModel;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
-
export declare class AuditLogModel extends BaseModel {
|
|
4
|
-
private _id;
|
|
5
|
-
private _workerSid;
|
|
6
|
-
private _fieldName;
|
|
7
|
-
private _category;
|
|
8
|
-
private _date;
|
|
9
|
-
private _oldValue;
|
|
10
|
-
private _newValue;
|
|
11
|
-
private _action;
|
|
12
|
-
constructor(id: string, workerSid: string, fieldName: string, category: string, date: Date, oldValue: string, newValue: string, action: "create" | "edit" | "delete");
|
|
13
|
-
get id(): string;
|
|
14
|
-
get workerSid(): string;
|
|
15
|
-
get fieldName(): string;
|
|
16
|
-
get category(): string;
|
|
17
|
-
get date(): Date;
|
|
18
|
-
get oldValue(): string;
|
|
19
|
-
get newValue(): string;
|
|
20
|
-
get action(): "create" | "edit" | "delete";
|
|
21
|
-
set id(value: string);
|
|
22
|
-
set workerSid(value: string);
|
|
23
|
-
set fieldName(value: string);
|
|
24
|
-
set category(value: string);
|
|
25
|
-
set date(value: Date | undefined);
|
|
26
|
-
set oldValue(value: string);
|
|
27
|
-
set newValue(value: string);
|
|
28
|
-
set action(value: "create" | "edit" | "delete");
|
|
29
|
-
validateData(): validationMessage[];
|
|
30
|
-
setValidationMessages(message: validationMessage): void;
|
|
31
|
-
}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuditLogModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
-
const uuid_1 = require("uuid");
|
|
6
|
-
class AuditLogModel extends BaseModel_1.BaseModel {
|
|
7
|
-
constructor(id, workerSid, fieldName, category, date, oldValue, newValue, action) {
|
|
8
|
-
super();
|
|
9
|
-
// Initialize private attributes
|
|
10
|
-
this._id = id;
|
|
11
|
-
this._workerSid = workerSid;
|
|
12
|
-
this._fieldName = fieldName;
|
|
13
|
-
this._category = category;
|
|
14
|
-
this._date = date;
|
|
15
|
-
this._oldValue = oldValue;
|
|
16
|
-
this._newValue = newValue;
|
|
17
|
-
this._action = action;
|
|
18
|
-
this.validateData();
|
|
19
|
-
}
|
|
20
|
-
// Getters
|
|
21
|
-
get id() {
|
|
22
|
-
return this._id;
|
|
23
|
-
}
|
|
24
|
-
get workerSid() {
|
|
25
|
-
return this._workerSid;
|
|
26
|
-
}
|
|
27
|
-
get fieldName() {
|
|
28
|
-
return this._fieldName;
|
|
29
|
-
}
|
|
30
|
-
get category() {
|
|
31
|
-
return this._category;
|
|
32
|
-
}
|
|
33
|
-
get date() {
|
|
34
|
-
return this._date;
|
|
35
|
-
}
|
|
36
|
-
get oldValue() {
|
|
37
|
-
return this._oldValue;
|
|
38
|
-
}
|
|
39
|
-
get newValue() {
|
|
40
|
-
return this._newValue;
|
|
41
|
-
}
|
|
42
|
-
get action() {
|
|
43
|
-
return this._action;
|
|
44
|
-
}
|
|
45
|
-
// Setters
|
|
46
|
-
set id(value) {
|
|
47
|
-
if (!(0, uuid_1.validate)(value)) {
|
|
48
|
-
throw new Error("Invalid ID format.");
|
|
49
|
-
}
|
|
50
|
-
this._id = value;
|
|
51
|
-
}
|
|
52
|
-
set workerSid(value) {
|
|
53
|
-
if (typeof value !== "string" || value.trim() === "") {
|
|
54
|
-
throw new Error("workerSid must be a non-empty string.");
|
|
55
|
-
}
|
|
56
|
-
this._workerSid = value;
|
|
57
|
-
}
|
|
58
|
-
set fieldName(value) {
|
|
59
|
-
if (typeof value !== "string" || value.trim() === "") {
|
|
60
|
-
throw new Error("fieldName must be a non-empty string.");
|
|
61
|
-
}
|
|
62
|
-
this._fieldName = value;
|
|
63
|
-
}
|
|
64
|
-
set category(value) {
|
|
65
|
-
if (typeof value !== "string" || value.trim() === "") {
|
|
66
|
-
throw new Error("category must be a non-empty string.");
|
|
67
|
-
}
|
|
68
|
-
this._category = value;
|
|
69
|
-
}
|
|
70
|
-
set date(value) {
|
|
71
|
-
if (!(value instanceof Date) || isNaN(value.getTime())) {
|
|
72
|
-
throw new Error("Invalid date value.");
|
|
73
|
-
}
|
|
74
|
-
this._date = value;
|
|
75
|
-
}
|
|
76
|
-
set oldValue(value) {
|
|
77
|
-
if (typeof value !== "string" && value !== null) {
|
|
78
|
-
throw new Error("oldValue must be a string or null.");
|
|
79
|
-
}
|
|
80
|
-
this._oldValue = value;
|
|
81
|
-
}
|
|
82
|
-
set newValue(value) {
|
|
83
|
-
if (typeof value !== "string" && value !== "") {
|
|
84
|
-
throw new Error("newValue must be a string or null.");
|
|
85
|
-
}
|
|
86
|
-
this._newValue = value;
|
|
87
|
-
}
|
|
88
|
-
set action(value) {
|
|
89
|
-
if (!["create", "edit", "delete"].includes(value)) {
|
|
90
|
-
throw new Error("Invalid action value.");
|
|
91
|
-
}
|
|
92
|
-
this._action = value;
|
|
93
|
-
}
|
|
94
|
-
// Validation logic
|
|
95
|
-
validateData() {
|
|
96
|
-
this.validationMessages = [];
|
|
97
|
-
const validationRules = {
|
|
98
|
-
id: (value) => typeof value === "string" && (0, uuid_1.validate)(value),
|
|
99
|
-
workerSid: (value) => typeof value === "string" && value.trim() !== "",
|
|
100
|
-
fieldName: (value) => typeof value === "string" && value.trim() !== "",
|
|
101
|
-
category: (value) => typeof value === "string" && value.trim() !== "",
|
|
102
|
-
date: (value) => value instanceof Date && !isNaN(value.getTime()),
|
|
103
|
-
oldValue: (value) => typeof value === "string" || value === null,
|
|
104
|
-
newValue: (value) => typeof value === "string" || value === null,
|
|
105
|
-
action: (value) => ["create", "edit", "delete"].includes(value),
|
|
106
|
-
};
|
|
107
|
-
for (const key in validationRules) {
|
|
108
|
-
const validator = validationRules[key];
|
|
109
|
-
const value = this[key];
|
|
110
|
-
if (!validator(value)) {
|
|
111
|
-
this.setValidationMessages({
|
|
112
|
-
type: "Error",
|
|
113
|
-
fieldDescription: key,
|
|
114
|
-
message: `${key} is invalid.`,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return this.validationMessages;
|
|
119
|
-
}
|
|
120
|
-
setValidationMessages(message) {
|
|
121
|
-
this.validationMessages.push(message);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
exports.AuditLogModel = AuditLogModel;
|
|
125
|
-
// var auditLog = new AuditLogModel("b84f9268-3c34-4e33-a4d9-c8f3154",
|
|
126
|
-
// "",
|
|
127
|
-
// "",
|
|
128
|
-
// "status",
|
|
129
|
-
// new Date(),
|
|
130
|
-
// "",
|
|
131
|
-
// "closed",
|
|
132
|
-
// "edit"
|
|
133
|
-
// );
|
|
134
|
-
// console.log(auditLog.validationMessages);
|
|
135
|
-
// console.log(auditLog.serialize);
|
|
136
|
-
// auditLog.deserialize({
|
|
137
|
-
// id: 'b84f9268-3c34-4e33-a4d9-c8f3154',
|
|
138
|
-
// workerSid: '',
|
|
139
|
-
// fieldName: '',
|
|
140
|
-
// category: 'status',
|
|
141
|
-
// date: "2025-01-03T18:22:30.135Z",
|
|
142
|
-
// oldValue: '',
|
|
143
|
-
// newValue: 'closed',
|
|
144
|
-
// action: 'edit'
|
|
145
|
-
// })
|
|
146
|
-
// console.log(auditLog);
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
-
import { hangUpType } from "../types/CallLog.type";
|
|
4
|
-
export declare class CallLogsModel extends BaseModel {
|
|
5
|
-
private _id;
|
|
6
|
-
private _uniqueName;
|
|
7
|
-
private _disposition;
|
|
8
|
-
private _fromNumber;
|
|
9
|
-
private _toNumber;
|
|
10
|
-
private _start;
|
|
11
|
-
private _end;
|
|
12
|
-
private _duration;
|
|
13
|
-
private _hangUpDirection;
|
|
14
|
-
private _callSid;
|
|
15
|
-
constructor(id: string, uniqueName: string, disposition: string | null, fromNumber: string | null, toNumber: string | null, start: Date | undefined, end: Date | undefined, duration: number, hangUpDirection: hangUpType, callSid: string | null);
|
|
16
|
-
get id(): string;
|
|
17
|
-
set id(value: string);
|
|
18
|
-
get uniqueName(): string;
|
|
19
|
-
set uniqueName(value: string);
|
|
20
|
-
get disposition(): string | null;
|
|
21
|
-
set disposition(value: string | null);
|
|
22
|
-
get fromNumber(): string | null;
|
|
23
|
-
set fromNumber(value: string | null);
|
|
24
|
-
get toNumber(): string | null;
|
|
25
|
-
set toNumber(value: string | null);
|
|
26
|
-
get start(): Date | undefined;
|
|
27
|
-
set start(value: Date | undefined);
|
|
28
|
-
get end(): Date | undefined;
|
|
29
|
-
set end(value: Date | undefined);
|
|
30
|
-
get duration(): number;
|
|
31
|
-
set duration(value: number);
|
|
32
|
-
get hangUpDirection(): hangUpType;
|
|
33
|
-
set hangUpDirection(value: hangUpType);
|
|
34
|
-
get callSid(): string | null;
|
|
35
|
-
set callSid(value: string | null);
|
|
36
|
-
validateData(): validationMessage[];
|
|
37
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CallLogsModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
-
const uuid_1 = require("uuid");
|
|
6
|
-
class CallLogsModel extends BaseModel_1.BaseModel {
|
|
7
|
-
constructor(id, uniqueName, disposition, fromNumber, toNumber, start, end, duration, hangUpDirection, callSid) {
|
|
8
|
-
super();
|
|
9
|
-
this._id = id;
|
|
10
|
-
this._uniqueName = uniqueName;
|
|
11
|
-
this._disposition = disposition;
|
|
12
|
-
this._fromNumber = fromNumber;
|
|
13
|
-
this._toNumber = toNumber;
|
|
14
|
-
this._start = start;
|
|
15
|
-
this._end = end;
|
|
16
|
-
this._duration = duration;
|
|
17
|
-
this._hangUpDirection = hangUpDirection;
|
|
18
|
-
this._callSid = callSid;
|
|
19
|
-
}
|
|
20
|
-
// Getters and Setters
|
|
21
|
-
get id() {
|
|
22
|
-
return this._id;
|
|
23
|
-
}
|
|
24
|
-
set id(value) {
|
|
25
|
-
this._id = value;
|
|
26
|
-
}
|
|
27
|
-
get uniqueName() {
|
|
28
|
-
return this._uniqueName;
|
|
29
|
-
}
|
|
30
|
-
set uniqueName(value) {
|
|
31
|
-
this._uniqueName = value;
|
|
32
|
-
}
|
|
33
|
-
get disposition() {
|
|
34
|
-
return this._disposition;
|
|
35
|
-
}
|
|
36
|
-
set disposition(value) {
|
|
37
|
-
this._disposition = value;
|
|
38
|
-
}
|
|
39
|
-
get fromNumber() {
|
|
40
|
-
return this._fromNumber;
|
|
41
|
-
}
|
|
42
|
-
set fromNumber(value) {
|
|
43
|
-
this._fromNumber = value;
|
|
44
|
-
}
|
|
45
|
-
get toNumber() {
|
|
46
|
-
return this._toNumber;
|
|
47
|
-
}
|
|
48
|
-
set toNumber(value) {
|
|
49
|
-
this._toNumber = value;
|
|
50
|
-
}
|
|
51
|
-
get start() {
|
|
52
|
-
return this._start;
|
|
53
|
-
}
|
|
54
|
-
set start(value) {
|
|
55
|
-
this._start = value;
|
|
56
|
-
}
|
|
57
|
-
get end() {
|
|
58
|
-
return this._end;
|
|
59
|
-
}
|
|
60
|
-
set end(value) {
|
|
61
|
-
this._end = value;
|
|
62
|
-
}
|
|
63
|
-
get duration() {
|
|
64
|
-
return this._duration;
|
|
65
|
-
}
|
|
66
|
-
set duration(value) {
|
|
67
|
-
this._duration = value;
|
|
68
|
-
}
|
|
69
|
-
get hangUpDirection() {
|
|
70
|
-
return this._hangUpDirection;
|
|
71
|
-
}
|
|
72
|
-
set hangUpDirection(value) {
|
|
73
|
-
this._hangUpDirection = value;
|
|
74
|
-
}
|
|
75
|
-
get callSid() {
|
|
76
|
-
return this._callSid;
|
|
77
|
-
}
|
|
78
|
-
set callSid(value) {
|
|
79
|
-
this._callSid = value;
|
|
80
|
-
}
|
|
81
|
-
// Validation logic
|
|
82
|
-
validateData() {
|
|
83
|
-
this.validationMessages = [];
|
|
84
|
-
const validationRules = {
|
|
85
|
-
id: (value) => typeof value === "string" && (0, uuid_1.validate)(value),
|
|
86
|
-
disposition: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
87
|
-
fromNumber: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
88
|
-
toNumber: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
|
|
89
|
-
start: (value) => !isNaN(new Date(value).getTime()),
|
|
90
|
-
end: (value) => !isNaN(new Date(value).getTime()),
|
|
91
|
-
duration: (value) => typeof value === "number" && value >= 0,
|
|
92
|
-
hangUpDirection: (value) => typeof value === "string" && value.trim() !== "",
|
|
93
|
-
callSid: (value) => value === null || (typeof value === "string" && value.trim() !== "")
|
|
94
|
-
};
|
|
95
|
-
for (const key in validationRules) {
|
|
96
|
-
const validator = validationRules[key];
|
|
97
|
-
const value = this[`_${key}`];
|
|
98
|
-
if (!validator(value)) {
|
|
99
|
-
this.validationMessages.push({
|
|
100
|
-
type: 'Error',
|
|
101
|
-
fieldDescription: key,
|
|
102
|
-
message: `${key} is not valid`,
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return this.validationMessages;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
exports.CallLogsModel = CallLogsModel;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
-
import { StatisticsNumberDetailsModel } from "./StatisticsNumberDetailsModel";
|
|
4
|
-
export declare class CallStatisticsModel extends BaseModel {
|
|
5
|
-
private _interactionsReceived;
|
|
6
|
-
private _interactionsAnswered;
|
|
7
|
-
private _interactionsAbandoned;
|
|
8
|
-
constructor(interactionsReceived: StatisticsNumberDetailsModel, interactionsAnswered: StatisticsNumberDetailsModel, interactionsAbandoned: StatisticsNumberDetailsModel);
|
|
9
|
-
get interactionsReceived(): StatisticsNumberDetailsModel;
|
|
10
|
-
set interactionsReceived(value: StatisticsNumberDetailsModel);
|
|
11
|
-
get interactionsAnswered(): StatisticsNumberDetailsModel;
|
|
12
|
-
set interactionsAnswered(value: StatisticsNumberDetailsModel);
|
|
13
|
-
get interactionsAbandoned(): StatisticsNumberDetailsModel;
|
|
14
|
-
set interactionsAbandoned(value: StatisticsNumberDetailsModel);
|
|
15
|
-
validateData(): validationMessage[];
|
|
16
|
-
}
|