1
1
import { retry } from 'ts-retry-promise' ;
2
2
3
- import { Cluster , keyspacePath } from '@cbjsdev/cbjs' ;
3
+ import { AnyCluster , Cluster , keyspacePath } from '@cbjsdev/cbjs' ;
4
4
import {
5
5
CouchbaseHttpApiConfig ,
6
6
createQueryIndex ,
@@ -14,7 +14,7 @@ import {
14
14
waitForUser ,
15
15
whoami ,
16
16
} from '@cbjsdev/http-client' ;
17
- import { hasOwn , waitFor } from '@cbjsdev/shared' ;
17
+ import { waitFor } from '@cbjsdev/shared' ;
18
18
19
19
import {
20
20
CouchbaseClusterChange ,
@@ -56,7 +56,7 @@ function getTimePrefix() {
56
56
}
57
57
58
58
export async function applyCouchbaseClusterChanges (
59
- cluster : Cluster ,
59
+ cluster : AnyCluster ,
60
60
apiConfig : CouchbaseHttpApiConfig ,
61
61
changes : CouchbaseClusterChange [ ] ,
62
62
options ?: ChangeOptions
@@ -67,7 +67,7 @@ export async function applyCouchbaseClusterChanges(
67
67
const operations : Record <
68
68
CouchbaseClusterChange [ 'type' ] ,
69
69
(
70
- cluster : Cluster ,
70
+ cluster : AnyCluster ,
71
71
apiConfig : CouchbaseHttpApiConfig ,
72
72
change : never ,
73
73
opts : { timeout ?: number }
@@ -109,7 +109,7 @@ export async function applyCouchbaseClusterChanges(
109
109
}
110
110
111
111
async function applyCreateBucket (
112
- cluster : Cluster ,
112
+ cluster : AnyCluster ,
113
113
apiConfig : CouchbaseHttpApiConfig ,
114
114
change : CouchbaseClusterChangeCreateBucket ,
115
115
opts : ChangeOptions
@@ -130,7 +130,7 @@ async function applyCreateBucket(
130
130
}
131
131
132
132
async function applyDropBucket (
133
- cluster : Cluster ,
133
+ cluster : AnyCluster ,
134
134
apiConfig : CouchbaseHttpApiConfig ,
135
135
change : CouchbaseClusterChangeDropBucket ,
136
136
opts : ChangeOptions
@@ -152,7 +152,7 @@ async function applyDropBucket(
152
152
}
153
153
154
154
async function applyUpdateBucket (
155
- cluster : Cluster ,
155
+ cluster : AnyCluster ,
156
156
apiConfig : CouchbaseHttpApiConfig ,
157
157
change : CouchbaseClusterChangeUpdateBucket ,
158
158
opts : ChangeOptions
@@ -178,7 +178,7 @@ async function applyUpdateBucket(
178
178
}
179
179
180
180
async function applyRecreateBucket (
181
- cluster : Cluster ,
181
+ cluster : AnyCluster ,
182
182
apiConfig : CouchbaseHttpApiConfig ,
183
183
change : CouchbaseClusterChangeRecreateBucket ,
184
184
opts : ChangeOptions
@@ -207,7 +207,7 @@ async function applyRecreateBucket(
207
207
}
208
208
209
209
async function applyCreateScope (
210
- cluster : Cluster ,
210
+ cluster : AnyCluster ,
211
211
apiConfig : CouchbaseHttpApiConfig ,
212
212
change : CouchbaseClusterChangeCreateScope ,
213
213
opts : ChangeOptions
@@ -230,7 +230,7 @@ async function applyCreateScope(
230
230
}
231
231
232
232
async function applyDropScope (
233
- cluster : Cluster ,
233
+ cluster : AnyCluster ,
234
234
apiConfig : CouchbaseHttpApiConfig ,
235
235
change : CouchbaseClusterChangeDropScope ,
236
236
opts : ChangeOptions
@@ -256,7 +256,7 @@ async function applyDropScope(
256
256
}
257
257
258
258
async function applyCreateCollection (
259
- cluster : Cluster ,
259
+ cluster : AnyCluster ,
260
260
apiConfig : CouchbaseHttpApiConfig ,
261
261
change : CouchbaseClusterChangeCreateCollection ,
262
262
opts : ChangeOptions
@@ -288,7 +288,7 @@ async function applyCreateCollection(
288
288
}
289
289
290
290
async function applyDropCollection (
291
- cluster : Cluster ,
291
+ cluster : AnyCluster ,
292
292
apiConfig : CouchbaseHttpApiConfig ,
293
293
change : CouchbaseClusterChangeDropCollection ,
294
294
opts : ChangeOptions
@@ -320,7 +320,7 @@ async function applyDropCollection(
320
320
}
321
321
322
322
async function applyUpdateCollection (
323
- cluster : Cluster ,
323
+ cluster : AnyCluster ,
324
324
apiConfig : CouchbaseHttpApiConfig ,
325
325
change : CouchbaseClusterChangeUpdateCollection ,
326
326
opts : ChangeOptions
@@ -351,7 +351,7 @@ async function applyUpdateCollection(
351
351
}
352
352
353
353
async function applyCreateIndex (
354
- cluster : Cluster ,
354
+ cluster : AnyCluster ,
355
355
apiConfig : CouchbaseHttpApiConfig ,
356
356
change : CouchbaseClusterChangeCreateIndex ,
357
357
opts : ChangeOptions
@@ -402,7 +402,7 @@ async function applyCreateIndex(
402
402
}
403
403
404
404
async function applyDropIndex (
405
- cluster : Cluster ,
405
+ cluster : AnyCluster ,
406
406
apiConfig : CouchbaseHttpApiConfig ,
407
407
change : CouchbaseClusterChangeDropIndex ,
408
408
opts : ChangeOptions
@@ -450,7 +450,7 @@ async function applyDropIndex(
450
450
}
451
451
452
452
async function applyUpdateIndex (
453
- cluster : Cluster ,
453
+ cluster : AnyCluster ,
454
454
apiConfig : CouchbaseHttpApiConfig ,
455
455
change : CouchbaseClusterChangeUpdateIndex ,
456
456
opts : ChangeOptions
@@ -488,7 +488,7 @@ async function applyUpdateIndex(
488
488
}
489
489
490
490
async function applyRecreateIndex (
491
- cluster : Cluster ,
491
+ cluster : AnyCluster ,
492
492
apiConfig : CouchbaseHttpApiConfig ,
493
493
change : CouchbaseClusterChangeRecreateIndex ,
494
494
opts : ChangeOptions
@@ -508,7 +508,7 @@ async function applyRecreateIndex(
508
508
}
509
509
510
510
async function applyCreateUser (
511
- cluster : Cluster ,
511
+ cluster : AnyCluster ,
512
512
apiConfig : CouchbaseHttpApiConfig ,
513
513
change : CouchbaseClusterChangeCreateUser ,
514
514
opts : ChangeOptions
@@ -524,7 +524,7 @@ async function applyCreateUser(
524
524
}
525
525
526
526
async function applyUpdateUser (
527
- cluster : Cluster ,
527
+ cluster : AnyCluster ,
528
528
apiConfig : CouchbaseHttpApiConfig ,
529
529
change : CouchbaseClusterChangeUpdateUser ,
530
530
opts : ChangeOptions
@@ -562,7 +562,7 @@ async function applyUpdateUser(
562
562
}
563
563
564
564
async function applyUpdateUserPassword (
565
- cluster : Cluster ,
565
+ cluster : AnyCluster ,
566
566
apiConfig : CouchbaseHttpApiConfig ,
567
567
change : CouchbaseClusterChangeUpdateUserPassword ,
568
568
opts : ChangeOptions
@@ -594,7 +594,7 @@ async function applyUpdateUserPassword(
594
594
}
595
595
596
596
async function applyRecreateUser (
597
- cluster : Cluster ,
597
+ cluster : AnyCluster ,
598
598
apiConfig : CouchbaseHttpApiConfig ,
599
599
change : CouchbaseClusterChangeRecreateUser ,
600
600
opts : ChangeOptions
@@ -613,7 +613,7 @@ async function applyRecreateUser(
613
613
}
614
614
615
615
async function applyDropUser (
616
- cluster : Cluster ,
616
+ cluster : AnyCluster ,
617
617
apiConfig : CouchbaseHttpApiConfig ,
618
618
change : CouchbaseClusterChangeDropUser ,
619
619
opts : ChangeOptions
@@ -632,7 +632,7 @@ async function applyDropUser(
632
632
}
633
633
634
634
async function applyUpsertSearchIndex (
635
- cluster : Cluster ,
635
+ cluster : AnyCluster ,
636
636
apiConfig : CouchbaseHttpApiConfig ,
637
637
change :
638
638
| CouchbaseClusterChangeCreateSearchIndex
@@ -686,7 +686,7 @@ async function applyUpsertSearchIndex(
686
686
}
687
687
688
688
async function applyDropSearchIndex (
689
- cluster : Cluster ,
689
+ cluster : AnyCluster ,
690
690
apiConfig : CouchbaseHttpApiConfig ,
691
691
change : CouchbaseClusterChangeDropSearchIndex ,
692
692
opts : ChangeOptions
0 commit comments