@@ -154,6 +154,10 @@ export namespace Customer {
154154 into : MergeID ;
155155 }
156156
157+ interface SubscriptionData {
158+ subscriptions : Array < { uuid : string ; data_source_uuid ?: string } > ;
159+ }
160+
157161 function create ( config : Config , data : NewCustomer ) : Promise < Customer > ;
158162 function retrieve ( config : Config , uuid : string ) : Promise < Customer > ;
159163 function modify ( config : Config , uuid : string , data : UpdateCustomer ) : Promise < Customer > ;
@@ -162,6 +166,14 @@ export namespace Customer {
162166 function search ( config : Config , params ?: SearchCustomersParams ) : Promise < Entries < Customer > > ;
163167 function merge ( config : Config , params ?: MergeCustomersParams ) : Promise < { } > ;
164168 function attributes ( config : Config , uuid : string ) : Promise < Attributes > ;
169+ /**
170+ * @deprecated Use Metrics.Customer.connectSubscriptions instead
171+ */
172+ function connectSubscriptions ( config : Config , customerUuid : string , data : SubscriptionData ) : Promise < { } > ;
173+ /**
174+ * @deprecated Use Metrics.Customer.disconnectSubscriptions instead
175+ */
176+ function disconnectSubscriptions ( config : Config , customerUuid : string , data : SubscriptionData ) : Promise < { } > ;
165177}
166178
167179export namespace Plan {
@@ -413,12 +425,28 @@ export namespace Metrics {
413425 type : string ;
414426 }
415427
428+ interface SubscriptionConnectionData {
429+ subscriptions : Array < { uuid : string ; data_source_uuid : string } > ;
430+ }
431+
416432 function subscriptions (
417433 config : Config ,
418434 uuid : string ,
419435 params ?: CursorParams ,
420436 ) : Promise < Entries < MetricsSubscription > > ;
421437 function activities ( config : Config , uuid : string , params ?: CursorParams ) : Promise < Entries < MetricsActivity > > ;
438+ function connectSubscriptions (
439+ config : Config ,
440+ dataSourceUuid : string ,
441+ customerUuid : string ,
442+ data : SubscriptionConnectionData ,
443+ ) : Promise < { } > ;
444+ function disconnectSubscriptions (
445+ config : Config ,
446+ dataSourceUuid : string ,
447+ customerUuid : string ,
448+ data : SubscriptionConnectionData ,
449+ ) : Promise < { } > ;
422450 }
423451}
424452
0 commit comments