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,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CXConfigExternalNumbersFilterService = void 0;
|
|
4
|
-
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
-
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
-
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
-
class CXConfigExternalNumbersFilterService extends Filter_1.Filter {
|
|
8
|
-
constructor(data) {
|
|
9
|
-
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
-
// Define allowed fields for AuditLog filters
|
|
11
|
-
this.allowedFields = {
|
|
12
|
-
name: "string",
|
|
13
|
-
phonenumber: "string",
|
|
14
|
-
type: "string"
|
|
15
|
-
};
|
|
16
|
-
this.data = data;
|
|
17
|
-
}
|
|
18
|
-
applyFilter(data) {
|
|
19
|
-
// Implementation of applyFilter if needed
|
|
20
|
-
return data;
|
|
21
|
-
}
|
|
22
|
-
filterApply(filterParams) {
|
|
23
|
-
const validFilters = this.validateFilters(filterParams);
|
|
24
|
-
const filteredParams = { filters: validFilters };
|
|
25
|
-
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
26
|
-
}
|
|
27
|
-
validateFilters(filterParams) {
|
|
28
|
-
return filterParams.filters.filter(filter => {
|
|
29
|
-
const expectedType = this.allowedFields[filter.fieldName];
|
|
30
|
-
if (!expectedType)
|
|
31
|
-
return false;
|
|
32
|
-
switch (expectedType) {
|
|
33
|
-
case "string":
|
|
34
|
-
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
35
|
-
default:
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
static getFilterData(filterOptions) {
|
|
41
|
-
// Create the filter data mappings with conditional dataList population
|
|
42
|
-
const fieldMappings = {
|
|
43
|
-
name: {
|
|
44
|
-
type: "input",
|
|
45
|
-
attributeName: "name",
|
|
46
|
-
label: "Name"
|
|
47
|
-
},
|
|
48
|
-
phonenumber: {
|
|
49
|
-
type: "dropdown",
|
|
50
|
-
attributeName: "phonenumber",
|
|
51
|
-
label: "Phonenumber",
|
|
52
|
-
dataList: filterOptions && filterOptions.phonenumber ? filterOptions.phonenumber : [], // Conditional dataList
|
|
53
|
-
isMultiselect: true
|
|
54
|
-
},
|
|
55
|
-
type: {
|
|
56
|
-
type: "dropdown",
|
|
57
|
-
attributeName: "type",
|
|
58
|
-
label: "type",
|
|
59
|
-
dataList: filterOptions && filterOptions.type ? filterOptions.type : [], // Conditional dataList
|
|
60
|
-
isMultiselect: true
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
// Return as an array
|
|
64
|
-
return Object.values(fieldMappings);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
exports.CXConfigExternalNumbersFilterService = CXConfigExternalNumbersFilterService;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
-
import { Filter } from "../../../common/abstract/Filter";
|
|
3
|
-
export declare class CXConfigOtherFilterService extends Filter {
|
|
4
|
-
private data;
|
|
5
|
-
allowedFields: {
|
|
6
|
-
name: string;
|
|
7
|
-
key: string;
|
|
8
|
-
};
|
|
9
|
-
constructor(data: any[]);
|
|
10
|
-
applyFilter(data: any[]): any[];
|
|
11
|
-
filterApply(filterParams: MultiFieldFilter): any[];
|
|
12
|
-
private validateFilters;
|
|
13
|
-
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
14
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CXConfigOtherFilterService = void 0;
|
|
4
|
-
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
-
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
-
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
-
class CXConfigOtherFilterService extends Filter_1.Filter {
|
|
8
|
-
constructor(data) {
|
|
9
|
-
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
-
// Define allowed fields
|
|
11
|
-
this.allowedFields = {
|
|
12
|
-
name: "string",
|
|
13
|
-
key: "string"
|
|
14
|
-
};
|
|
15
|
-
this.data = data;
|
|
16
|
-
}
|
|
17
|
-
applyFilter(data) {
|
|
18
|
-
// Implementation of applyFilter if needed
|
|
19
|
-
return data;
|
|
20
|
-
}
|
|
21
|
-
filterApply(filterParams) {
|
|
22
|
-
const validFilters = this.validateFilters(filterParams);
|
|
23
|
-
const filteredParams = { filters: validFilters };
|
|
24
|
-
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
25
|
-
}
|
|
26
|
-
validateFilters(filterParams) {
|
|
27
|
-
return filterParams.filters.filter(filter => {
|
|
28
|
-
const expectedType = this.allowedFields[filter.fieldName];
|
|
29
|
-
if (!expectedType)
|
|
30
|
-
return false;
|
|
31
|
-
switch (expectedType) {
|
|
32
|
-
case "string":
|
|
33
|
-
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
34
|
-
default:
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
static getFilterData(filterOptions) {
|
|
40
|
-
// Create the filter data mappings with conditional dataList population
|
|
41
|
-
const fieldMappings = {
|
|
42
|
-
name: {
|
|
43
|
-
type: "input",
|
|
44
|
-
attributeName: "name",
|
|
45
|
-
label: "Name"
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
// Return as an array
|
|
49
|
-
return Object.values(fieldMappings);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.CXConfigOtherFilterService = CXConfigOtherFilterService;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
-
import { Filter } from "../../../common/abstract/Filter";
|
|
3
|
-
export declare class CXConfigQueueMenuFilterService extends Filter {
|
|
4
|
-
private data;
|
|
5
|
-
allowedFields: {
|
|
6
|
-
name: string;
|
|
7
|
-
type: string;
|
|
8
|
-
voice: string;
|
|
9
|
-
order: string;
|
|
10
|
-
category: string;
|
|
11
|
-
};
|
|
12
|
-
constructor(data: any[]);
|
|
13
|
-
applyFilter(data: any[]): any[];
|
|
14
|
-
filterApply(filterParams: MultiFieldFilter): any[];
|
|
15
|
-
private validateFilters;
|
|
16
|
-
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
17
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CXConfigQueueMenuFilterService = void 0;
|
|
4
|
-
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
-
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
-
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
-
class CXConfigQueueMenuFilterService extends Filter_1.Filter {
|
|
8
|
-
constructor(data) {
|
|
9
|
-
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
-
// Define allowed fields for AuditLog filters
|
|
11
|
-
this.allowedFields = {
|
|
12
|
-
name: "string",
|
|
13
|
-
type: "string",
|
|
14
|
-
voice: "string",
|
|
15
|
-
order: "number",
|
|
16
|
-
category: "string"
|
|
17
|
-
};
|
|
18
|
-
this.data = data;
|
|
19
|
-
}
|
|
20
|
-
applyFilter(data) {
|
|
21
|
-
// Implementation of applyFilter if needed
|
|
22
|
-
return data;
|
|
23
|
-
}
|
|
24
|
-
filterApply(filterParams) {
|
|
25
|
-
const validFilters = this.validateFilters(filterParams);
|
|
26
|
-
const filteredParams = { filters: validFilters };
|
|
27
|
-
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
28
|
-
}
|
|
29
|
-
validateFilters(filterParams) {
|
|
30
|
-
return filterParams.filters.filter(filter => {
|
|
31
|
-
const expectedType = this.allowedFields[filter.fieldName];
|
|
32
|
-
if (!expectedType)
|
|
33
|
-
return false;
|
|
34
|
-
switch (expectedType) {
|
|
35
|
-
case "string":
|
|
36
|
-
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
37
|
-
case "number":
|
|
38
|
-
return typeof filter.value === "string" || typeof filter.value === "number";
|
|
39
|
-
default:
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
static getFilterData(filterOptions) {
|
|
45
|
-
// Create the filter data mappings with conditional dataList population
|
|
46
|
-
const fieldMappings = {
|
|
47
|
-
name: {
|
|
48
|
-
type: "input",
|
|
49
|
-
attributeName: "name",
|
|
50
|
-
label: "Name"
|
|
51
|
-
},
|
|
52
|
-
order: {
|
|
53
|
-
type: "dropdown",
|
|
54
|
-
attributeName: "order",
|
|
55
|
-
label: "Order",
|
|
56
|
-
dataList: filterOptions && filterOptions.order ? filterOptions.order : [], // Conditional dataList
|
|
57
|
-
isMultiselect: true
|
|
58
|
-
},
|
|
59
|
-
type: {
|
|
60
|
-
type: "dropdown",
|
|
61
|
-
attributeName: "type",
|
|
62
|
-
label: "Type",
|
|
63
|
-
dataList: filterOptions && filterOptions.type ? filterOptions.type : [], // Conditional dataList
|
|
64
|
-
isMultiselect: true
|
|
65
|
-
},
|
|
66
|
-
voice: {
|
|
67
|
-
type: "dropdown",
|
|
68
|
-
attributeName: "voice",
|
|
69
|
-
label: "Voice",
|
|
70
|
-
dataList: filterOptions && filterOptions.voice ? filterOptions.voice : [], // Conditional dataList
|
|
71
|
-
isMultiselect: true
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
// Return as an array
|
|
75
|
-
return Object.values(fieldMappings);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
exports.CXConfigQueueMenuFilterService = CXConfigQueueMenuFilterService;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
-
import { UIConfigFilterFields } from "../../../models/types/CxConfig.type";
|
|
3
|
-
import { Filter } from "../../../common/abstract/Filter";
|
|
4
|
-
export declare class CXConfigUIConfigFilterService extends Filter {
|
|
5
|
-
private data;
|
|
6
|
-
allowedFields: UIConfigFilterFields;
|
|
7
|
-
constructor(data: any[]);
|
|
8
|
-
applyFilter(data: any[]): any[];
|
|
9
|
-
filterApply(filterParams: MultiFieldFilter): any[];
|
|
10
|
-
private validateFilters;
|
|
11
|
-
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
12
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CXConfigUIConfigFilterService = void 0;
|
|
4
|
-
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
-
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
-
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
-
class CXConfigUIConfigFilterService extends Filter_1.Filter {
|
|
8
|
-
constructor(data) {
|
|
9
|
-
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
-
// Define allowed fields for AuditLog filters
|
|
11
|
-
this.allowedFields = {
|
|
12
|
-
name: "string",
|
|
13
|
-
};
|
|
14
|
-
this.data = data;
|
|
15
|
-
}
|
|
16
|
-
applyFilter(data) {
|
|
17
|
-
// Implementation of applyFilter if needed
|
|
18
|
-
return data;
|
|
19
|
-
}
|
|
20
|
-
filterApply(filterParams) {
|
|
21
|
-
const validFilters = this.validateFilters(filterParams);
|
|
22
|
-
const filteredParams = { filters: validFilters };
|
|
23
|
-
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
24
|
-
}
|
|
25
|
-
validateFilters(filterParams) {
|
|
26
|
-
return filterParams.filters.filter(filter => {
|
|
27
|
-
const expectedType = this.allowedFields[filter.fieldName];
|
|
28
|
-
if (!expectedType)
|
|
29
|
-
return false;
|
|
30
|
-
switch (expectedType) {
|
|
31
|
-
case "string":
|
|
32
|
-
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
33
|
-
default:
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
static getFilterData(filterOptions) {
|
|
39
|
-
// Create the filter data mappings with conditional dataList population
|
|
40
|
-
const fieldMappings = {
|
|
41
|
-
name: {
|
|
42
|
-
type: "input",
|
|
43
|
-
attributeName: "name",
|
|
44
|
-
label: "Name"
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
// Return as an array
|
|
48
|
-
return Object.values(fieldMappings);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.CXConfigUIConfigFilterService = CXConfigUIConfigFilterService;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
-
import { Filter } from "../../../common/abstract/Filter";
|
|
3
|
-
export declare class HoopHolidaysFilterService extends Filter {
|
|
4
|
-
private data;
|
|
5
|
-
allowedFields: {
|
|
6
|
-
date: string;
|
|
7
|
-
profileId: string;
|
|
8
|
-
};
|
|
9
|
-
constructor(data: any[]);
|
|
10
|
-
applyFilter(data: any[]): any[];
|
|
11
|
-
filterApply(filterParams: MultiFieldFilter): any[];
|
|
12
|
-
private validateFilters;
|
|
13
|
-
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
14
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HoopHolidaysFilterService = void 0;
|
|
4
|
-
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
-
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
-
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
-
class HoopHolidaysFilterService extends Filter_1.Filter {
|
|
8
|
-
constructor(data) {
|
|
9
|
-
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
-
// Define allowed fields for AuditLog filters
|
|
11
|
-
this.allowedFields = {
|
|
12
|
-
date: "dateRange",
|
|
13
|
-
profileId: "string"
|
|
14
|
-
};
|
|
15
|
-
this.data = data;
|
|
16
|
-
}
|
|
17
|
-
applyFilter(data) {
|
|
18
|
-
// Implementation of applyFilter if needed
|
|
19
|
-
return data;
|
|
20
|
-
}
|
|
21
|
-
filterApply(filterParams) {
|
|
22
|
-
const validFilters = this.validateFilters(filterParams);
|
|
23
|
-
const filteredParams = { filters: validFilters };
|
|
24
|
-
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
25
|
-
}
|
|
26
|
-
validateFilters(filterParams) {
|
|
27
|
-
return filterParams.filters.filter(filter => {
|
|
28
|
-
const expectedType = this.allowedFields[filter.fieldName];
|
|
29
|
-
if (!expectedType)
|
|
30
|
-
return false;
|
|
31
|
-
switch (expectedType) {
|
|
32
|
-
case "dateRange":
|
|
33
|
-
return (filter.value &&
|
|
34
|
-
typeof filter.value.startDate === "string" &&
|
|
35
|
-
typeof filter.value.endDate === "string" &&
|
|
36
|
-
!isNaN(Date.parse(filter.value.startDate)) &&
|
|
37
|
-
!isNaN(Date.parse(filter.value.endDate)));
|
|
38
|
-
case "string":
|
|
39
|
-
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
40
|
-
default:
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
static getFilterData(filterOptions) {
|
|
46
|
-
// Create the filter data mappings with conditional dataList population
|
|
47
|
-
const fieldMappings = {
|
|
48
|
-
date: {
|
|
49
|
-
type: "dateRange",
|
|
50
|
-
attributeName: "date",
|
|
51
|
-
label: "Date"
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
// Return as an array
|
|
55
|
-
return Object.values(fieldMappings);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.HoopHolidaysFilterService = HoopHolidaysFilterService;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
-
import { NotesFilterFields } from "../../../models/Hoop.model";
|
|
3
|
-
import { Filter } from "../../../common/abstract/Filter";
|
|
4
|
-
export declare class HoopNotesFilterService extends Filter {
|
|
5
|
-
private data;
|
|
6
|
-
allowedFields: NotesFilterFields;
|
|
7
|
-
constructor(data: any[]);
|
|
8
|
-
applyFilter(data: any[]): any[];
|
|
9
|
-
filterApply(filterParams: MultiFieldFilter): any[];
|
|
10
|
-
private validateFilters;
|
|
11
|
-
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
12
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HoopNotesFilterService = void 0;
|
|
4
|
-
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
-
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
-
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
-
class HoopNotesFilterService extends Filter_1.Filter {
|
|
8
|
-
constructor(data) {
|
|
9
|
-
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
-
// Define allowed fields for AuditLog filters
|
|
11
|
-
this.allowedFields = {
|
|
12
|
-
heading: "string"
|
|
13
|
-
};
|
|
14
|
-
this.data = data;
|
|
15
|
-
}
|
|
16
|
-
applyFilter(data) {
|
|
17
|
-
// Implementation of applyFilter if needed
|
|
18
|
-
return data;
|
|
19
|
-
}
|
|
20
|
-
filterApply(filterParams) {
|
|
21
|
-
const validFilters = this.validateFilters(filterParams);
|
|
22
|
-
const filteredParams = { filters: validFilters };
|
|
23
|
-
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
24
|
-
}
|
|
25
|
-
validateFilters(filterParams) {
|
|
26
|
-
return filterParams.filters.filter(filter => {
|
|
27
|
-
const expectedType = this.allowedFields[filter.fieldName];
|
|
28
|
-
if (!expectedType)
|
|
29
|
-
return false;
|
|
30
|
-
switch (expectedType) {
|
|
31
|
-
case "string":
|
|
32
|
-
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
33
|
-
default:
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
static getFilterData(filterOptions) {
|
|
39
|
-
// Create the filter data mappings with conditional dataList population
|
|
40
|
-
const fieldMappings = {
|
|
41
|
-
heading: {
|
|
42
|
-
type: "input",
|
|
43
|
-
attributeName: "heading",
|
|
44
|
-
label: "Note"
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
// Return as an array
|
|
48
|
-
return Object.values(fieldMappings);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.HoopNotesFilterService = HoopNotesFilterService;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
-
import { Filter } from "../../../common/abstract/Filter";
|
|
3
|
-
export declare class HoopPartialDaysFilterService extends Filter {
|
|
4
|
-
private data;
|
|
5
|
-
allowedFields: {
|
|
6
|
-
date: string;
|
|
7
|
-
profileId: string;
|
|
8
|
-
};
|
|
9
|
-
constructor(data: any[]);
|
|
10
|
-
applyFilter(data: any[]): any[];
|
|
11
|
-
filterApply(filterParams: MultiFieldFilter): any[];
|
|
12
|
-
private validateFilters;
|
|
13
|
-
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
14
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HoopPartialDaysFilterService = void 0;
|
|
4
|
-
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
-
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
-
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
-
class HoopPartialDaysFilterService extends Filter_1.Filter {
|
|
8
|
-
constructor(data) {
|
|
9
|
-
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
-
// Define allowed fields for AuditLog filters
|
|
11
|
-
this.allowedFields = {
|
|
12
|
-
date: "dateRange",
|
|
13
|
-
profileId: "string"
|
|
14
|
-
};
|
|
15
|
-
this.data = data;
|
|
16
|
-
}
|
|
17
|
-
applyFilter(data) {
|
|
18
|
-
// Implementation of applyFilter if needed
|
|
19
|
-
return data;
|
|
20
|
-
}
|
|
21
|
-
filterApply(filterParams) {
|
|
22
|
-
const validFilters = this.validateFilters(filterParams);
|
|
23
|
-
const filteredParams = { filters: validFilters };
|
|
24
|
-
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
25
|
-
}
|
|
26
|
-
validateFilters(filterParams) {
|
|
27
|
-
return filterParams.filters.filter(filter => {
|
|
28
|
-
const expectedType = this.allowedFields[filter.fieldName];
|
|
29
|
-
if (!expectedType)
|
|
30
|
-
return false;
|
|
31
|
-
switch (expectedType) {
|
|
32
|
-
case "dateRange":
|
|
33
|
-
return (filter.value &&
|
|
34
|
-
typeof filter.value.startDate === "string" &&
|
|
35
|
-
typeof filter.value.endDate === "string" &&
|
|
36
|
-
!isNaN(Date.parse(filter.value.startDate)) &&
|
|
37
|
-
!isNaN(Date.parse(filter.value.endDate)));
|
|
38
|
-
case "string":
|
|
39
|
-
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
40
|
-
default:
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
static getFilterData(filterOptions) {
|
|
46
|
-
// Create the filter data mappings with conditional dataList population
|
|
47
|
-
const fieldMappings = {
|
|
48
|
-
date: {
|
|
49
|
-
type: "dateRange",
|
|
50
|
-
attributeName: "date",
|
|
51
|
-
label: "Date"
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
// Return as an array
|
|
55
|
-
return Object.values(fieldMappings);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.HoopPartialDaysFilterService = HoopPartialDaysFilterService;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MainFilterService = void 0;
|
|
7
|
-
const Filter_1 = require("../../../common/abstract/Filter");
|
|
8
|
-
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
9
|
-
const moment_1 = __importDefault(require("moment"));
|
|
10
|
-
class MainFilterService {
|
|
11
|
-
static applyFilter(data, filters) {
|
|
12
|
-
return filters.filters.reduce((filteredData, filter) => {
|
|
13
|
-
const filterInstance = new (class extends Filter_1.Filter {
|
|
14
|
-
applyFilter(data) {
|
|
15
|
-
return data.filter(item => {
|
|
16
|
-
const fieldValue = item[this.fieldName];
|
|
17
|
-
// if (this.ignoreNull && (fieldValue == null || this.value == null)) return true;
|
|
18
|
-
// Helper function to ensure all filter values are in the field array
|
|
19
|
-
const containsAllValues = (fieldArray, filterArray) => {
|
|
20
|
-
return filterArray.every(value => fieldArray.includes(value));
|
|
21
|
-
};
|
|
22
|
-
// Main comparison logic
|
|
23
|
-
const processComparison = (field, filterValue) => {
|
|
24
|
-
if (field == null || filterValue == null)
|
|
25
|
-
return false;
|
|
26
|
-
switch (this.filterType) {
|
|
27
|
-
case FilterTypes_1.FilterTypes.Equality:
|
|
28
|
-
if (Array.isArray(filterValue) && Array.isArray(field)) {
|
|
29
|
-
// Strict condition: ensure all values from the filter are in the field
|
|
30
|
-
return containsAllValues(field, filterValue);
|
|
31
|
-
}
|
|
32
|
-
if (typeof field === "string" && typeof filterValue === "string") {
|
|
33
|
-
// Partial match for strings
|
|
34
|
-
return this.caseSensitive
|
|
35
|
-
? field.includes(filterValue)
|
|
36
|
-
: field.toLowerCase().includes(filterValue.toLowerCase());
|
|
37
|
-
}
|
|
38
|
-
// Direct match for other types
|
|
39
|
-
return field === filterValue;
|
|
40
|
-
case FilterTypes_1.FilterTypes.Inequality:
|
|
41
|
-
if (Array.isArray(filterValue) && Array.isArray(field)) {
|
|
42
|
-
// Ensure none of the filter values are in the field
|
|
43
|
-
return !containsAllValues(field, filterValue);
|
|
44
|
-
}
|
|
45
|
-
if (typeof field === "string" && typeof filterValue === "string") {
|
|
46
|
-
return this.caseSensitive
|
|
47
|
-
? !field.includes(filterValue)
|
|
48
|
-
: !field.toLowerCase().includes(filterValue.toLowerCase());
|
|
49
|
-
}
|
|
50
|
-
return field !== filterValue;
|
|
51
|
-
case FilterTypes_1.FilterTypes.Range:
|
|
52
|
-
return Array.isArray(filterValue) && filterValue.length === 2
|
|
53
|
-
? field >= filterValue[0] && field <= filterValue[1]
|
|
54
|
-
: false;
|
|
55
|
-
case FilterTypes_1.FilterTypes.DateRange:
|
|
56
|
-
if (typeof filterValue.startDate !== "string" ||
|
|
57
|
-
typeof filterValue.endDate !== "string")
|
|
58
|
-
return false;
|
|
59
|
-
const startDate = (0, moment_1.default)(filterValue.startDate).format();
|
|
60
|
-
const endDate = (0, moment_1.default)(filterValue.endDate).format();
|
|
61
|
-
const itemDate = (0, moment_1.default)(field).format();
|
|
62
|
-
return (0, moment_1.default)(itemDate).isBetween(startDate, endDate, undefined, '[]');
|
|
63
|
-
case FilterTypes_1.FilterTypes.DateTimeRange:
|
|
64
|
-
if (typeof filterValue.startDate !== "string" ||
|
|
65
|
-
typeof filterValue.startTime !== "string" ||
|
|
66
|
-
typeof filterValue.endDate !== "string" ||
|
|
67
|
-
typeof filterValue.endTime !== "string")
|
|
68
|
-
return false;
|
|
69
|
-
const startDateTime = (0, moment_1.default)(`${filterValue.startDate}T${filterValue.startTime || "00:00"}`).format();
|
|
70
|
-
const endDateTime = (0, moment_1.default)(`${filterValue.endDate}T${filterValue.endTime || "23:59"}`).format();
|
|
71
|
-
const itemDateTime = (0, moment_1.default)(field).format();
|
|
72
|
-
return (0, moment_1.default)(itemDateTime).isBetween(startDateTime, endDateTime, undefined, '[]');
|
|
73
|
-
case FilterTypes_1.FilterTypes.Regex:
|
|
74
|
-
if (typeof filterValue === "string") {
|
|
75
|
-
const regex = new RegExp(filterValue, this.caseSensitive ? "" : "i");
|
|
76
|
-
return regex.test(String(field));
|
|
77
|
-
}
|
|
78
|
-
return false;
|
|
79
|
-
default:
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
// If field and value are arrays, check strict condition for array match
|
|
84
|
-
if (Array.isArray(fieldValue) && Array.isArray(this.value)) {
|
|
85
|
-
return containsAllValues(fieldValue, this.value);
|
|
86
|
-
}
|
|
87
|
-
// If field is a string and value is an array, check if field matches any value in the array
|
|
88
|
-
if (typeof fieldValue === "string" && Array.isArray(this.value)) {
|
|
89
|
-
return this.value.some(v => this.caseSensitive
|
|
90
|
-
? fieldValue.includes(v)
|
|
91
|
-
: fieldValue.toLowerCase().includes(v.toLowerCase()));
|
|
92
|
-
}
|
|
93
|
-
// If field is a string and value is a string, perform partial string match
|
|
94
|
-
if (typeof fieldValue === "string" && typeof this.value === "string") {
|
|
95
|
-
return this.caseSensitive
|
|
96
|
-
? fieldValue.includes(this.value)
|
|
97
|
-
: fieldValue.toLowerCase().includes(this.value.toLowerCase());
|
|
98
|
-
}
|
|
99
|
-
// For other types, perform direct comparison
|
|
100
|
-
return processComparison(fieldValue, this.value);
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
})(filter);
|
|
104
|
-
return filterInstance.applyFilter(filteredData);
|
|
105
|
-
}, data);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
exports.MainFilterService = MainFilterService;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
-
import { Filter } from "../../../common/abstract/Filter";
|
|
3
|
-
export declare class NavigationFilterService extends Filter {
|
|
4
|
-
private data;
|
|
5
|
-
allowedFields: {
|
|
6
|
-
name: string;
|
|
7
|
-
is_enabled: string;
|
|
8
|
-
appliedVersion: string;
|
|
9
|
-
latestVersion: string;
|
|
10
|
-
dateOflatestVersion: string;
|
|
11
|
-
visible: string;
|
|
12
|
-
featureAccessRoles: string;
|
|
13
|
-
managementAccessRoles: string;
|
|
14
|
-
};
|
|
15
|
-
constructor(data: any[]);
|
|
16
|
-
applyFilter(data: any[]): any[];
|
|
17
|
-
filterApply(filterParams: MultiFieldFilter): any[];
|
|
18
|
-
private validateFilters;
|
|
19
|
-
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
20
|
-
}
|