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,59 +0,0 @@
|
|
|
1
|
-
import { validationMessage } from "../interface/IBaseModel";
|
|
2
|
-
import { BaseModel } from "../abstract/BaseModel";
|
|
3
|
-
import { TaskAttributesModel } from "./TaskAttributesModel";
|
|
4
|
-
export declare enum AssignmentStatusEnum {
|
|
5
|
-
reserved = "reserved",
|
|
6
|
-
pending = "pending",
|
|
7
|
-
assigned = "assigned",
|
|
8
|
-
completed = "completed",
|
|
9
|
-
canceled = "canceled"
|
|
10
|
-
}
|
|
11
|
-
export declare class TaskModel extends BaseModel {
|
|
12
|
-
private _accountSid;
|
|
13
|
-
private _age;
|
|
14
|
-
private _assignmentStatus;
|
|
15
|
-
private _attributes;
|
|
16
|
-
private _dateCreated;
|
|
17
|
-
private _dateUpdated;
|
|
18
|
-
private _priority;
|
|
19
|
-
private _reason;
|
|
20
|
-
private _sid;
|
|
21
|
-
private _taskQueueSid;
|
|
22
|
-
private _timeout;
|
|
23
|
-
private _workflowSid;
|
|
24
|
-
private _workspaceSid;
|
|
25
|
-
private _workflowFriendlyName;
|
|
26
|
-
private _queueFriendlyName;
|
|
27
|
-
private _routingTarget;
|
|
28
|
-
private _requiredAttention;
|
|
29
|
-
constructor(accountSid: string, age: number, assignmentStatus: AssignmentStatusEnum, attributes: TaskAttributesModel, dateCreated: Date, dateUpdated: Date, priority: number, reason: string, sid: string, taskQueueSid: string, timeout: number, workflowSid: string, workspaceSid: string, workflowFriendlyName: string, queueFriendlyName: string, routingTarget: string, requiredAttention: boolean);
|
|
30
|
-
set accountSid(value: string);
|
|
31
|
-
get age(): number;
|
|
32
|
-
get assignmentStatus(): AssignmentStatusEnum;
|
|
33
|
-
set assignmentStatus(value: AssignmentStatusEnum);
|
|
34
|
-
get attributes(): TaskAttributesModel;
|
|
35
|
-
set attributes(value: TaskAttributesModel);
|
|
36
|
-
get dateCreated(): Date;
|
|
37
|
-
get dateUpdated(): Date;
|
|
38
|
-
get priority(): number;
|
|
39
|
-
set priority(value: number);
|
|
40
|
-
get reason(): string;
|
|
41
|
-
set reason(value: string);
|
|
42
|
-
get sid(): string;
|
|
43
|
-
set sid(value: string);
|
|
44
|
-
get taskQueueSid(): string;
|
|
45
|
-
set taskQueueSid(value: string);
|
|
46
|
-
get timeout(): number;
|
|
47
|
-
set timeout(value: number);
|
|
48
|
-
get workflowSid(): string;
|
|
49
|
-
set workflowSid(value: string);
|
|
50
|
-
get workspaceSid(): string;
|
|
51
|
-
get workflowFriendlyName(): string;
|
|
52
|
-
get queueFriendlyName(): string;
|
|
53
|
-
set queueFriendlyName(value: string);
|
|
54
|
-
get routingTarget(): string;
|
|
55
|
-
set routingTarget(value: string);
|
|
56
|
-
get requiredAttention(): boolean;
|
|
57
|
-
set requiredAttention(value: boolean);
|
|
58
|
-
validateData(): validationMessage[];
|
|
59
|
-
}
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaskModel = exports.AssignmentStatusEnum = void 0;
|
|
4
|
-
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
-
const TaskAttributesModel_1 = require("./TaskAttributesModel");
|
|
6
|
-
var AssignmentStatusEnum;
|
|
7
|
-
(function (AssignmentStatusEnum) {
|
|
8
|
-
AssignmentStatusEnum["reserved"] = "reserved";
|
|
9
|
-
AssignmentStatusEnum["pending"] = "pending";
|
|
10
|
-
AssignmentStatusEnum["assigned"] = "assigned";
|
|
11
|
-
AssignmentStatusEnum["completed"] = "completed";
|
|
12
|
-
AssignmentStatusEnum["canceled"] = "canceled";
|
|
13
|
-
})(AssignmentStatusEnum || (exports.AssignmentStatusEnum = AssignmentStatusEnum = {}));
|
|
14
|
-
class TaskModel extends BaseModel_1.BaseModel {
|
|
15
|
-
constructor(accountSid, age, assignmentStatus, attributes, dateCreated, dateUpdated, priority, reason, sid, taskQueueSid, timeout, workflowSid, workspaceSid, workflowFriendlyName, queueFriendlyName, routingTarget, requiredAttention) {
|
|
16
|
-
super();
|
|
17
|
-
this._accountSid = accountSid;
|
|
18
|
-
this._age = age;
|
|
19
|
-
this._assignmentStatus = assignmentStatus;
|
|
20
|
-
this._attributes = attributes;
|
|
21
|
-
this._dateCreated = dateCreated;
|
|
22
|
-
this._dateUpdated = dateUpdated;
|
|
23
|
-
this._priority = priority;
|
|
24
|
-
this._reason = reason;
|
|
25
|
-
this._sid = sid;
|
|
26
|
-
this._taskQueueSid = taskQueueSid;
|
|
27
|
-
this._timeout = timeout;
|
|
28
|
-
this._workflowSid = workflowSid;
|
|
29
|
-
this._workspaceSid = workspaceSid;
|
|
30
|
-
this._workflowFriendlyName = workflowFriendlyName;
|
|
31
|
-
this._queueFriendlyName = queueFriendlyName;
|
|
32
|
-
this._routingTarget = routingTarget;
|
|
33
|
-
this._requiredAttention = requiredAttention;
|
|
34
|
-
}
|
|
35
|
-
// Getters and Setters
|
|
36
|
-
set accountSid(value) {
|
|
37
|
-
this._accountSid = value;
|
|
38
|
-
}
|
|
39
|
-
get age() {
|
|
40
|
-
return this._age;
|
|
41
|
-
}
|
|
42
|
-
get assignmentStatus() {
|
|
43
|
-
return this._assignmentStatus;
|
|
44
|
-
}
|
|
45
|
-
set assignmentStatus(value) {
|
|
46
|
-
this._assignmentStatus = value;
|
|
47
|
-
}
|
|
48
|
-
get attributes() {
|
|
49
|
-
return this._attributes;
|
|
50
|
-
}
|
|
51
|
-
set attributes(value) {
|
|
52
|
-
this._attributes = value;
|
|
53
|
-
}
|
|
54
|
-
get dateCreated() {
|
|
55
|
-
return this._dateCreated;
|
|
56
|
-
}
|
|
57
|
-
get dateUpdated() {
|
|
58
|
-
return this._dateUpdated;
|
|
59
|
-
}
|
|
60
|
-
get priority() {
|
|
61
|
-
return this._priority;
|
|
62
|
-
}
|
|
63
|
-
set priority(value) {
|
|
64
|
-
this._priority = value;
|
|
65
|
-
}
|
|
66
|
-
get reason() {
|
|
67
|
-
return this._reason;
|
|
68
|
-
}
|
|
69
|
-
set reason(value) {
|
|
70
|
-
this._reason = value;
|
|
71
|
-
}
|
|
72
|
-
get sid() {
|
|
73
|
-
return this._sid;
|
|
74
|
-
}
|
|
75
|
-
set sid(value) {
|
|
76
|
-
this._sid = value;
|
|
77
|
-
}
|
|
78
|
-
get taskQueueSid() {
|
|
79
|
-
return this._taskQueueSid;
|
|
80
|
-
}
|
|
81
|
-
set taskQueueSid(value) {
|
|
82
|
-
this._taskQueueSid = value;
|
|
83
|
-
}
|
|
84
|
-
get timeout() {
|
|
85
|
-
return this._timeout;
|
|
86
|
-
}
|
|
87
|
-
set timeout(value) {
|
|
88
|
-
this._timeout = value;
|
|
89
|
-
}
|
|
90
|
-
get workflowSid() {
|
|
91
|
-
return this._workflowSid;
|
|
92
|
-
}
|
|
93
|
-
set workflowSid(value) {
|
|
94
|
-
this._workflowSid = value;
|
|
95
|
-
}
|
|
96
|
-
get workspaceSid() {
|
|
97
|
-
return this._workspaceSid;
|
|
98
|
-
}
|
|
99
|
-
get workflowFriendlyName() {
|
|
100
|
-
return this._workflowFriendlyName;
|
|
101
|
-
}
|
|
102
|
-
get queueFriendlyName() {
|
|
103
|
-
return this._queueFriendlyName;
|
|
104
|
-
}
|
|
105
|
-
set queueFriendlyName(value) {
|
|
106
|
-
this._queueFriendlyName = value;
|
|
107
|
-
}
|
|
108
|
-
get routingTarget() {
|
|
109
|
-
return this._routingTarget;
|
|
110
|
-
}
|
|
111
|
-
set routingTarget(value) {
|
|
112
|
-
this._routingTarget = value;
|
|
113
|
-
}
|
|
114
|
-
get requiredAttention() {
|
|
115
|
-
return this._requiredAttention;
|
|
116
|
-
}
|
|
117
|
-
set requiredAttention(value) {
|
|
118
|
-
this._requiredAttention = value;
|
|
119
|
-
}
|
|
120
|
-
// Validation Method
|
|
121
|
-
validateData() {
|
|
122
|
-
this.validationMessages = [];
|
|
123
|
-
if (typeof this._accountSid !== "string" || !this._accountSid.trim()) {
|
|
124
|
-
this.validationMessages.push({
|
|
125
|
-
type: "Error",
|
|
126
|
-
fieldDescription: "accountSid",
|
|
127
|
-
message: "AccountSid must be a non-empty string",
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
if (typeof this._age !== "number" || this._age < 0) {
|
|
131
|
-
this.validationMessages.push({
|
|
132
|
-
type: "Error",
|
|
133
|
-
fieldDescription: "age",
|
|
134
|
-
message: "Age must be a non-negative number",
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
if (!Object.values(AssignmentStatusEnum).includes(this._assignmentStatus)) {
|
|
138
|
-
this.validationMessages.push({
|
|
139
|
-
type: "Error",
|
|
140
|
-
fieldDescription: "assignmentStatus",
|
|
141
|
-
message: "AssignmentStatus must be a valid enum value",
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
if (!(this._attributes instanceof TaskAttributesModel_1.TaskAttributesModel)) {
|
|
145
|
-
this.validationMessages.push({
|
|
146
|
-
type: "Error",
|
|
147
|
-
fieldDescription: "attributes",
|
|
148
|
-
message: "Attributes must be an instance of TaskAttributesModel",
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
// Validate TaskAttributesModel fields
|
|
153
|
-
if (typeof this._attributes.channelType !== "string" || !this._attributes.channelType.trim()) {
|
|
154
|
-
this.validationMessages.push({
|
|
155
|
-
type: "Error",
|
|
156
|
-
fieldDescription: "attributes.channelType",
|
|
157
|
-
message: "ChannelType must be a non-empty string",
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
if (typeof this._attributes.from !== "string" || !this._attributes.from.trim()) {
|
|
161
|
-
this.validationMessages.push({
|
|
162
|
-
type: "Error",
|
|
163
|
-
fieldDescription: "attributes.from",
|
|
164
|
-
message: "From must be a non-empty string",
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
if (typeof this._attributes.email !== "string" || !this._attributes.email.trim()) {
|
|
168
|
-
this.validationMessages.push({
|
|
169
|
-
type: "Error",
|
|
170
|
-
fieldDescription: "attributes.email",
|
|
171
|
-
message: "Email must be a non-empty string",
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
if (typeof this._attributes.customerDevice !== "string" || !this._attributes.customerDevice.trim()) {
|
|
175
|
-
this.validationMessages.push({
|
|
176
|
-
type: "Error",
|
|
177
|
-
fieldDescription: "attributes.customerDevice",
|
|
178
|
-
message: "CustomerDevice must be a non-empty string",
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
if (typeof this._attributes.onHoldTime !== "number" || this._attributes.onHoldTime < 0) {
|
|
182
|
-
this.validationMessages.push({
|
|
183
|
-
type: "Error",
|
|
184
|
-
fieldDescription: "attributes.onHoldTime",
|
|
185
|
-
message: "OnHoldTime must be a non-negative number",
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
if (typeof this._attributes.conversationSid !== "string" || !this._attributes.conversationSid.trim()) {
|
|
189
|
-
this.validationMessages.push({
|
|
190
|
-
type: "Error",
|
|
191
|
-
fieldDescription: "attributes.conversationSid",
|
|
192
|
-
message: "ConversationSid must be a non-empty string",
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
if (typeof this._sid !== "string" || !this._sid.trim()) {
|
|
197
|
-
this.validationMessages.push({
|
|
198
|
-
type: "Error",
|
|
199
|
-
fieldDescription: "sid",
|
|
200
|
-
message: "Sid must be a non-empty string",
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
if (typeof this._taskQueueSid !== "string" || !this._taskQueueSid.trim()) {
|
|
204
|
-
this.validationMessages.push({
|
|
205
|
-
type: "Error",
|
|
206
|
-
fieldDescription: "taskQueueSid",
|
|
207
|
-
message: "TaskQueueSid must be a non-empty string",
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
if (this._timeout < 0) {
|
|
211
|
-
this.validationMessages.push({
|
|
212
|
-
type: "Error",
|
|
213
|
-
fieldDescription: "timeout",
|
|
214
|
-
message: "Timeout must be a non-negative number",
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
if (typeof this._workflowSid !== "string" || !this._workflowSid.trim()) {
|
|
218
|
-
this.validationMessages.push({
|
|
219
|
-
type: "Error",
|
|
220
|
-
fieldDescription: "workflowSid",
|
|
221
|
-
message: "WorkflowSid must be a non-empty string",
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
if (typeof this._workspaceSid !== "string" || !this._workspaceSid.trim()) {
|
|
225
|
-
this.validationMessages.push({
|
|
226
|
-
type: "Error",
|
|
227
|
-
fieldDescription: "workspaceSid",
|
|
228
|
-
message: "WorkspaceSid must be a non-empty string",
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
return this.validationMessages;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
exports.TaskModel = TaskModel;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../interface/IBaseModel";
|
|
3
|
-
export declare class WorkGroupDetailsModel extends BaseModel {
|
|
4
|
-
private _id;
|
|
5
|
-
private _totalAgents;
|
|
6
|
-
private _loggedOn;
|
|
7
|
-
private _agentsAvailable;
|
|
8
|
-
private _percentAvailable;
|
|
9
|
-
private _agentsAvailableToTakeCalls;
|
|
10
|
-
private _nonAcdInteractions;
|
|
11
|
-
private _availableForAcdInteractions;
|
|
12
|
-
private _notAvailableForAcdInteractions;
|
|
13
|
-
private _inboundAcdInteractions;
|
|
14
|
-
private _outboundAcdInteractions;
|
|
15
|
-
private _inboundAcw;
|
|
16
|
-
private _outboundAcw;
|
|
17
|
-
private _interactionWaiting;
|
|
18
|
-
private _interactionOnhold;
|
|
19
|
-
private _longestInteractionWaiting;
|
|
20
|
-
private _longestAvailable;
|
|
21
|
-
private _createdAt;
|
|
22
|
-
private _updatedAt;
|
|
23
|
-
constructor(id: string, totalAgents: number, loggedOn: number, agentsAvailable: number, percentAvailable: number, agentsAvailableToTakeCalls: number, nonAcdInteractions: number, availableForAcdInteractions: number, notAvailableForAcdInteractions: number, inboundAcdInteractions: number, outboundAcdInteractions: number, inboundAcw: number, outboundAcw: number, interactionWaiting: number, interactionOnhold: number, longestInteractionWaiting: string, longestAvailable: number, createdAt?: Date, updatedAt?: Date);
|
|
24
|
-
validateData(): validationMessage[];
|
|
25
|
-
get id(): string;
|
|
26
|
-
set id(value: string);
|
|
27
|
-
get totalAgents(): number;
|
|
28
|
-
set totalAgents(value: number);
|
|
29
|
-
get loggedOn(): number;
|
|
30
|
-
set loggedOn(value: number);
|
|
31
|
-
get agentsAvailable(): number;
|
|
32
|
-
set agentsAvailable(value: number);
|
|
33
|
-
get percentAvailable(): number;
|
|
34
|
-
set percentAvailable(value: number);
|
|
35
|
-
get agentsAvailableToTakeCalls(): number;
|
|
36
|
-
set agentsAvailableToTakeCalls(value: number);
|
|
37
|
-
get nonAcdInteractions(): number;
|
|
38
|
-
set nonAcdInteractions(value: number);
|
|
39
|
-
get availableForAcdInteractions(): number;
|
|
40
|
-
set availableForAcdInteractions(value: number);
|
|
41
|
-
get notAvailableForAcdInteractions(): number;
|
|
42
|
-
set notAvailableForAcdInteractions(value: number);
|
|
43
|
-
get inboundAcdInteractions(): number;
|
|
44
|
-
set inboundAcdInteractions(value: number);
|
|
45
|
-
get outboundAcdInteractions(): number;
|
|
46
|
-
set outboundAcdInteractions(value: number);
|
|
47
|
-
get inboundAcw(): number;
|
|
48
|
-
set inboundAcw(value: number);
|
|
49
|
-
get outboundAcw(): number;
|
|
50
|
-
set outboundAcw(value: number);
|
|
51
|
-
get interactionWaiting(): number;
|
|
52
|
-
set interactionWaiting(value: number);
|
|
53
|
-
get interactionOnhold(): number;
|
|
54
|
-
set interactionOnhold(value: number);
|
|
55
|
-
get longestInteractionWaiting(): string;
|
|
56
|
-
set longestInteractionWaiting(value: string);
|
|
57
|
-
get longestAvailable(): number;
|
|
58
|
-
set longestAvailable(value: number);
|
|
59
|
-
get createdAt(): Date | undefined;
|
|
60
|
-
set createdAt(value: Date | undefined);
|
|
61
|
-
get updatedAt(): Date | undefined;
|
|
62
|
-
set updatedAt(value: Date | undefined);
|
|
63
|
-
}
|
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkGroupDetailsModel = void 0;
|
|
4
|
-
const BaseModel_1 = require("../abstract/BaseModel");
|
|
5
|
-
class WorkGroupDetailsModel extends BaseModel_1.BaseModel {
|
|
6
|
-
constructor(id, totalAgents, loggedOn, agentsAvailable, percentAvailable, agentsAvailableToTakeCalls, nonAcdInteractions, availableForAcdInteractions, notAvailableForAcdInteractions, inboundAcdInteractions, outboundAcdInteractions, inboundAcw, outboundAcw, interactionWaiting, interactionOnhold, longestInteractionWaiting, longestAvailable, createdAt, updatedAt) {
|
|
7
|
-
super();
|
|
8
|
-
this._id = id;
|
|
9
|
-
this._totalAgents = totalAgents;
|
|
10
|
-
this._loggedOn = loggedOn;
|
|
11
|
-
this._agentsAvailable = agentsAvailable;
|
|
12
|
-
this._percentAvailable = percentAvailable;
|
|
13
|
-
this._agentsAvailableToTakeCalls = agentsAvailableToTakeCalls;
|
|
14
|
-
this._nonAcdInteractions = nonAcdInteractions;
|
|
15
|
-
this._availableForAcdInteractions = availableForAcdInteractions;
|
|
16
|
-
this._notAvailableForAcdInteractions = notAvailableForAcdInteractions;
|
|
17
|
-
this._inboundAcdInteractions = inboundAcdInteractions;
|
|
18
|
-
this._outboundAcdInteractions = outboundAcdInteractions;
|
|
19
|
-
this._inboundAcw = inboundAcw;
|
|
20
|
-
this._outboundAcw = outboundAcw;
|
|
21
|
-
this._interactionWaiting = interactionWaiting;
|
|
22
|
-
this._interactionOnhold = interactionOnhold;
|
|
23
|
-
this._longestInteractionWaiting = longestInteractionWaiting;
|
|
24
|
-
this._longestAvailable = longestAvailable;
|
|
25
|
-
this._createdAt = createdAt;
|
|
26
|
-
this._updatedAt = updatedAt;
|
|
27
|
-
}
|
|
28
|
-
validateData() {
|
|
29
|
-
this.validationMessages = [];
|
|
30
|
-
if (typeof this._id !== "string" || !this._id.trim()) {
|
|
31
|
-
this.validationMessages.push({
|
|
32
|
-
type: "Error",
|
|
33
|
-
fieldDescription: "id",
|
|
34
|
-
message: "ID must be a non-empty string",
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
if (this._totalAgents < 0) {
|
|
38
|
-
this.validationMessages.push({
|
|
39
|
-
type: "Error",
|
|
40
|
-
fieldDescription: "totalAgents",
|
|
41
|
-
message: "Total agents must be a non-negative number",
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
if (this._loggedOn < 0) {
|
|
45
|
-
this.validationMessages.push({
|
|
46
|
-
type: "Error",
|
|
47
|
-
fieldDescription: "loggedOn",
|
|
48
|
-
message: "Logged on agents must be a non-negative number",
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
if (this._agentsAvailable < 0) {
|
|
52
|
-
this.validationMessages.push({
|
|
53
|
-
type: "Error",
|
|
54
|
-
fieldDescription: "agentsAvailable",
|
|
55
|
-
message: "Agents available must be a non-negative number",
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
if (this._percentAvailable < 0 || this._percentAvailable > 100) {
|
|
59
|
-
this.validationMessages.push({
|
|
60
|
-
type: "Error",
|
|
61
|
-
fieldDescription: "percentAvailable",
|
|
62
|
-
message: "Percent available must be between 0 and 100",
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
if (this._agentsAvailableToTakeCalls < 0) {
|
|
66
|
-
this.validationMessages.push({
|
|
67
|
-
type: "Error",
|
|
68
|
-
fieldDescription: "agentsAvailableToTakeCalls",
|
|
69
|
-
message: "Agents available to take calls must be a non-negative number",
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
if (this._nonAcdInteractions < 0) {
|
|
73
|
-
this.validationMessages.push({
|
|
74
|
-
type: "Error",
|
|
75
|
-
fieldDescription: "nonAcdInteractions",
|
|
76
|
-
message: "Non-ACD interactions must be a non-negative number",
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
if (this._availableForAcdInteractions < 0) {
|
|
80
|
-
this.validationMessages.push({
|
|
81
|
-
type: "Error",
|
|
82
|
-
fieldDescription: "availableForAcdInteractions",
|
|
83
|
-
message: "Available for ACD interactions must be a non-negative number",
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
if (this._notAvailableForAcdInteractions < 0) {
|
|
87
|
-
this.validationMessages.push({
|
|
88
|
-
type: "Error",
|
|
89
|
-
fieldDescription: "notAvailableForAcdInteractions",
|
|
90
|
-
message: "Not available for ACD interactions must be a non-negative number",
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
if (this._inboundAcdInteractions < 0) {
|
|
94
|
-
this.validationMessages.push({
|
|
95
|
-
type: "Error",
|
|
96
|
-
fieldDescription: "inboundAcdInteractions",
|
|
97
|
-
message: "Inbound ACD interactions must be a non-negative number",
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
if (this._outboundAcdInteractions < 0) {
|
|
101
|
-
this.validationMessages.push({
|
|
102
|
-
type: "Error",
|
|
103
|
-
fieldDescription: "outboundAcdInteractions",
|
|
104
|
-
message: "Outbound ACD interactions must be a non-negative number",
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
if (this._inboundAcw < 0) {
|
|
108
|
-
this.validationMessages.push({
|
|
109
|
-
type: "Error",
|
|
110
|
-
fieldDescription: "inboundAcw",
|
|
111
|
-
message: "Inbound ACW must be a non-negative number",
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
if (this._outboundAcw < 0) {
|
|
115
|
-
this.validationMessages.push({
|
|
116
|
-
type: "Error",
|
|
117
|
-
fieldDescription: "outboundAcw",
|
|
118
|
-
message: "Outbound ACW must be a non-negative number",
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
if (this._interactionWaiting < 0) {
|
|
122
|
-
this.validationMessages.push({
|
|
123
|
-
type: "Error",
|
|
124
|
-
fieldDescription: "interactionWaiting",
|
|
125
|
-
message: "Interaction waiting count must be a non-negative number",
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
if (this._interactionOnhold < 0) {
|
|
129
|
-
this.validationMessages.push({
|
|
130
|
-
type: "Error",
|
|
131
|
-
fieldDescription: "interactionOnhold",
|
|
132
|
-
message: "Interaction on-hold count must be a non-negative number",
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
if (typeof this._longestInteractionWaiting !== "string" || !this._longestInteractionWaiting.trim()) {
|
|
136
|
-
this.validationMessages.push({
|
|
137
|
-
type: "Error",
|
|
138
|
-
fieldDescription: "longestInteractionWaiting",
|
|
139
|
-
message: "Longest interaction waiting must be a non-empty string",
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
if (this._longestAvailable < 0) {
|
|
143
|
-
this.validationMessages.push({
|
|
144
|
-
type: "Error",
|
|
145
|
-
fieldDescription: "longestAvailable",
|
|
146
|
-
message: "Longest available time must be a non-negative number",
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
if (this._createdAt && !(this._createdAt instanceof Date)) {
|
|
150
|
-
this.validationMessages.push({
|
|
151
|
-
type: "Error",
|
|
152
|
-
fieldDescription: "createdAt",
|
|
153
|
-
message: "CreatedAt must be a valid Date object or undefined",
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
if (this._updatedAt && !(this._updatedAt instanceof Date)) {
|
|
157
|
-
this.validationMessages.push({
|
|
158
|
-
type: "Error",
|
|
159
|
-
fieldDescription: "updatedAt",
|
|
160
|
-
message: "UpdatedAt must be a valid Date object or undefined",
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
return this.validationMessages;
|
|
164
|
-
}
|
|
165
|
-
// Getters and setters for all fields
|
|
166
|
-
get id() {
|
|
167
|
-
return this._id;
|
|
168
|
-
}
|
|
169
|
-
set id(value) {
|
|
170
|
-
this._id = value;
|
|
171
|
-
}
|
|
172
|
-
get totalAgents() {
|
|
173
|
-
return this._totalAgents;
|
|
174
|
-
}
|
|
175
|
-
set totalAgents(value) {
|
|
176
|
-
this._totalAgents = value;
|
|
177
|
-
}
|
|
178
|
-
get loggedOn() {
|
|
179
|
-
return this._loggedOn;
|
|
180
|
-
}
|
|
181
|
-
set loggedOn(value) {
|
|
182
|
-
this._loggedOn = value;
|
|
183
|
-
}
|
|
184
|
-
get agentsAvailable() {
|
|
185
|
-
return this._agentsAvailable;
|
|
186
|
-
}
|
|
187
|
-
set agentsAvailable(value) {
|
|
188
|
-
this._agentsAvailable = value;
|
|
189
|
-
}
|
|
190
|
-
get percentAvailable() {
|
|
191
|
-
return this._percentAvailable;
|
|
192
|
-
}
|
|
193
|
-
set percentAvailable(value) {
|
|
194
|
-
this._percentAvailable = value;
|
|
195
|
-
}
|
|
196
|
-
get agentsAvailableToTakeCalls() {
|
|
197
|
-
return this._agentsAvailableToTakeCalls;
|
|
198
|
-
}
|
|
199
|
-
set agentsAvailableToTakeCalls(value) {
|
|
200
|
-
this._agentsAvailableToTakeCalls = value;
|
|
201
|
-
}
|
|
202
|
-
get nonAcdInteractions() {
|
|
203
|
-
return this._nonAcdInteractions;
|
|
204
|
-
}
|
|
205
|
-
set nonAcdInteractions(value) {
|
|
206
|
-
this._nonAcdInteractions = value;
|
|
207
|
-
}
|
|
208
|
-
get availableForAcdInteractions() {
|
|
209
|
-
return this._availableForAcdInteractions;
|
|
210
|
-
}
|
|
211
|
-
set availableForAcdInteractions(value) {
|
|
212
|
-
this._availableForAcdInteractions = value;
|
|
213
|
-
}
|
|
214
|
-
get notAvailableForAcdInteractions() {
|
|
215
|
-
return this._notAvailableForAcdInteractions;
|
|
216
|
-
}
|
|
217
|
-
set notAvailableForAcdInteractions(value) {
|
|
218
|
-
this._notAvailableForAcdInteractions = value;
|
|
219
|
-
}
|
|
220
|
-
get inboundAcdInteractions() {
|
|
221
|
-
return this._inboundAcdInteractions;
|
|
222
|
-
}
|
|
223
|
-
set inboundAcdInteractions(value) {
|
|
224
|
-
this._inboundAcdInteractions = value;
|
|
225
|
-
}
|
|
226
|
-
get outboundAcdInteractions() {
|
|
227
|
-
return this._outboundAcdInteractions;
|
|
228
|
-
}
|
|
229
|
-
set outboundAcdInteractions(value) {
|
|
230
|
-
this._outboundAcdInteractions = value;
|
|
231
|
-
}
|
|
232
|
-
get inboundAcw() {
|
|
233
|
-
return this._inboundAcw;
|
|
234
|
-
}
|
|
235
|
-
set inboundAcw(value) {
|
|
236
|
-
this._inboundAcw = value;
|
|
237
|
-
}
|
|
238
|
-
get outboundAcw() {
|
|
239
|
-
return this._outboundAcw;
|
|
240
|
-
}
|
|
241
|
-
set outboundAcw(value) {
|
|
242
|
-
this._outboundAcw = value;
|
|
243
|
-
}
|
|
244
|
-
get interactionWaiting() {
|
|
245
|
-
return this._interactionWaiting;
|
|
246
|
-
}
|
|
247
|
-
set interactionWaiting(value) {
|
|
248
|
-
this._interactionWaiting = value;
|
|
249
|
-
}
|
|
250
|
-
get interactionOnhold() {
|
|
251
|
-
return this._interactionOnhold;
|
|
252
|
-
}
|
|
253
|
-
set interactionOnhold(value) {
|
|
254
|
-
this._interactionOnhold = value;
|
|
255
|
-
}
|
|
256
|
-
get longestInteractionWaiting() {
|
|
257
|
-
return this._longestInteractionWaiting;
|
|
258
|
-
}
|
|
259
|
-
set longestInteractionWaiting(value) {
|
|
260
|
-
this._longestInteractionWaiting = value;
|
|
261
|
-
}
|
|
262
|
-
get longestAvailable() {
|
|
263
|
-
return this._longestAvailable;
|
|
264
|
-
}
|
|
265
|
-
set longestAvailable(value) {
|
|
266
|
-
this._longestAvailable = value;
|
|
267
|
-
}
|
|
268
|
-
get createdAt() {
|
|
269
|
-
return this._createdAt;
|
|
270
|
-
}
|
|
271
|
-
set createdAt(value) {
|
|
272
|
-
this._createdAt = value;
|
|
273
|
-
}
|
|
274
|
-
get updatedAt() {
|
|
275
|
-
return this._updatedAt;
|
|
276
|
-
}
|
|
277
|
-
set updatedAt(value) {
|
|
278
|
-
this._updatedAt = value;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
exports.WorkGroupDetailsModel = WorkGroupDetailsModel;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "../../abstract/BaseModel";
|
|
2
|
-
import { validationMessage } from "../../interface/IBaseModel";
|
|
3
|
-
import { VoicemailModel } from './VoicemailModel';
|
|
4
|
-
import { CallbackModel } from './CallbackModel';
|
|
5
|
-
export declare class CallbackAndVoicemailModel extends BaseModel {
|
|
6
|
-
private _id;
|
|
7
|
-
private _isEnabled;
|
|
8
|
-
private _callback;
|
|
9
|
-
private _voicemail;
|
|
10
|
-
private _createdAt;
|
|
11
|
-
private _updatedAt;
|
|
12
|
-
constructor(id: string, isEnabled: boolean, callback: CallbackModel, voicemail: VoicemailModel, createdAt: Date, updatedAt: Date);
|
|
13
|
-
/**Getters and Setters */
|
|
14
|
-
get id(): string;
|
|
15
|
-
set id(value: string);
|
|
16
|
-
get isEnabled(): boolean;
|
|
17
|
-
set isEnabled(value: boolean);
|
|
18
|
-
get callback(): CallbackModel;
|
|
19
|
-
set callback(value: CallbackModel);
|
|
20
|
-
get voicemail(): VoicemailModel;
|
|
21
|
-
set voicemail(value: VoicemailModel);
|
|
22
|
-
get createdAt(): Date;
|
|
23
|
-
set createdAt(value: Date);
|
|
24
|
-
get updatedAt(): Date;
|
|
25
|
-
set updatedAt(value: Date);
|
|
26
|
-
/** **Validation Method** */
|
|
27
|
-
validateData(): validationMessage[];
|
|
28
|
-
setValidationMessages(data: validationMessage): void;
|
|
29
|
-
/****Serialization Support** */
|
|
30
|
-
get serialize(): Record<string, any>;
|
|
31
|
-
/****Deserialization Support** */
|
|
32
|
-
deserialize(data: Record<string, any>): void;
|
|
33
|
-
}
|