TrendzControllerApi class

Constructors

TrendzControllerApi(Dio _dio, Serializers _serializers)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

connectToTrendz({CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<TrendzSynchronizationResult>>
Connect to Trendz (connectToTrendz) Initiates synchronization with Trendz (Connect button action). Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync. Available for users with 'SYS_ADMIN' authority.
getTrendzConfig({CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<TrendzConfiguration>>
Get Trendz configuration (getTrendzConfig) Retrieves Trendz configuration (URLs). Returns trendzUrl and tbUrl. Available for users with 'SYS_ADMIN' authority.
getTrendzSyncResult({CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<TrendzSynchronizationResult>>
Get Trendz synchronization result (getTrendzSyncResult) Retrieves Trendz synchronization result and status. Returns trendzVersion, updatedTs, resultType, and status. Available for any authorized user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performTrendzHealthcheck({CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<TrendzHealthcheckResult>>
Perform Trendz healthcheck (performTrendzHealthcheck) Performs healthcheck for Trendz integration. Returns version, type, status, and message. Can only be performed if Trendz is already synchronized and integration is enabled. Available for any authorized user.
publicConnectToTrendz({CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<void>>
Public connect to Trendz (publicConnectToTrendz) Initiates synchronization with Trendz if Trendz is not synced yet. Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync.
saveTrendzConfig({required TrendzConfiguration trendzConfiguration, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<TrendzConfiguration>>
Save Trendz configuration (saveTrendzConfig) Saves Trendz configuration (URLs only, without triggering synchronization). Request body example: ```json { &quot;trendzUrl&quot;: &quot;https://trendz.domain.com&quot;, &quot;tbUrl&quot;: &quot;https://thingsboard.domain.com&quot; } ``` Available for users with 'SYS_ADMIN' authority.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited