@magda/registry-client 2.3.3 → 3.0.0-alpha.1

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +92 -107
  2. package/dist/index.js +15257 -43466
  3. package/package.json +18 -8
package/dist/index.d.ts CHANGED
@@ -1,32 +1,28 @@
1
- /// <reference types="node" />
2
- import http = require('http');
3
1
  import { default as URI_2 } from 'urijs';
4
2
 
5
3
  /**
6
- * A type of aspect in the registry, unique for a tenant.
7
- */
4
+ * A type of aspect in the registry, unique for a tenant.
5
+ */
8
6
  export declare class AspectDefinition {
9
7
  /**
10
- * The identifier for the aspect type.
11
- */
8
+ * The identifier for the aspect type.
9
+ */
12
10
  'id': string;
13
11
  /**
14
- * The name of the aspect.
15
- */
12
+ * The name of the aspect.
13
+ */
16
14
  'name': string;
17
15
  /**
18
- * The JSON Schema of this aspect.
19
- */
16
+ * The JSON Schema of this aspect.
17
+ */
20
18
  'jsonSchema': any;
21
19
  }
22
20
 
23
21
  declare class AspectDefinitionsApi {
24
22
  protected basePath: string;
25
23
  protected defaultHeaders: any;
26
- protected _useQuerystring: boolean;
27
24
  protected authentications: any;
28
25
  constructor(basePath?: string);
29
- set useQuerystring(value: boolean);
30
26
  setApiKey(key: AspectDefinitionsApiApiKeys, value: string): void;
31
27
  /**
32
28
  * Create a new aspect
@@ -36,7 +32,7 @@ declare class AspectDefinitionsApi {
36
32
  * @param xMagdaSession Magda internal session id
37
33
  */
38
34
  create(xMagdaTenantId: number, aspect: AspectDefinition, xMagdaSession: string): Promise<{
39
- response: http.IncomingMessage;
35
+ response: Response;
40
36
  body: AspectDefinition;
41
37
  }>;
42
38
  /**
@@ -46,7 +42,7 @@ declare class AspectDefinitionsApi {
46
42
  * @param xMagdaSession Magda internal session id
47
43
  */
48
44
  getAll(xMagdaTenantId: number, xMagdaSession?: string): Promise<{
49
- response: http.IncomingMessage;
45
+ response: Response;
50
46
  body: Array<AspectDefinition>;
51
47
  }>;
52
48
  /**
@@ -57,7 +53,7 @@ declare class AspectDefinitionsApi {
57
53
  * @param xMagdaSession Magda internal session id
58
54
  */
59
55
  getById(xMagdaTenantId: number, id: string, xMagdaSession?: string): Promise<{
60
- response: http.IncomingMessage;
56
+ response: Response;
61
57
  body: AspectDefinition;
62
58
  }>;
63
59
  /**
@@ -69,7 +65,7 @@ declare class AspectDefinitionsApi {
69
65
  * @param xMagdaSession Magda internal session id
70
66
  */
71
67
  patchById(xMagdaTenantId: number, id: string, aspectPatch: Array<Operation>, xMagdaSession: string): Promise<{
72
- response: http.IncomingMessage;
68
+ response: Response;
73
69
  body: AspectDefinition;
74
70
  }>;
75
71
  /**
@@ -81,7 +77,7 @@ declare class AspectDefinitionsApi {
81
77
  * @param xMagdaSession Magda internal session id
82
78
  */
83
79
  putById(xMagdaTenantId: number, id: string, aspect: AspectDefinition, xMagdaSession: string): Promise<{
84
- response: http.IncomingMessage;
80
+ response: Response;
85
81
  body: AspectDefinition;
86
82
  }>;
87
83
  }
@@ -138,26 +134,26 @@ declare interface Eq<T> {
138
134
  }
139
135
 
140
136
  /**
141
- * A page of events.
142
- */
137
+ * A page of events.
138
+ */
143
139
  declare class EventsPage {
144
140
  /**
145
- * Whether there are more events available.
146
- */
141
+ * Whether there are more events available.
142
+ */
147
143
  'hasMore': boolean;
148
144
  /**
149
- * A token to be used to get the next page of events.
150
- */
145
+ * A token to be used to get the next page of events.
146
+ */
151
147
  'nextPageToken': string;
152
148
  /**
153
- * The events in this page.
154
- */
149
+ * The events in this page.
150
+ */
155
151
  'events': Array<RegistryEvent>;
156
152
  }
157
153
 
158
154
  /**
159
- * The type of a registry modification event.
160
- */
155
+ * The type of a registry modification event.
156
+ */
161
157
  export declare type EventType = 'CreateRecord' | 'CreateAspectDefinition' | 'CreateRecordAspect' | 'PatchRecord' | 'PatchAspectDefinition' | 'PatchRecordAspect' | 'DeleteRecord' | 'DeleteAspectDefinition' | 'DeleteRecordAspect';
162
158
 
163
159
  declare interface Functor<T> {
@@ -181,7 +177,7 @@ declare class JsValue {
181
177
 
182
178
  declare class Maybe<T> implements Monad<T>, Functor<T>, Eq<Maybe<T>> {
183
179
  private type;
184
- private value;
180
+ private value?;
185
181
  constructor(type: MaybeType, value?: T);
186
182
  static sequence<T>(t: {
187
183
  [k: string]: Maybe<T>;
@@ -193,9 +189,11 @@ declare class Maybe<T> implements Monad<T>, Functor<T>, Eq<Maybe<T>> {
193
189
  }) => Maybe<{
194
190
  [k: string]: any;
195
191
  }>;
196
- static maybe<T>(t: T): Maybe<T>;
192
+ static maybe<T>(t?: T | null): Maybe<T>;
197
193
  static just<T>(t: T): Maybe<T>;
198
194
  static nothing<T>(): Maybe<T>;
195
+ static isJust<T>(t: Maybe<T>): boolean;
196
+ static isNothing<T>(t: Maybe<T>): boolean;
199
197
  unit<U>(u: U): Maybe<U>;
200
198
  bind<U>(f: (t: T) => Maybe<U>): Maybe<U>;
201
199
  of: <U>(u: U) => Maybe<U>;
@@ -209,7 +207,7 @@ declare class Maybe<T> implements Monad<T>, Functor<T>, Eq<Maybe<T>> {
209
207
  valueOr<U extends T>(defaultValue: U): T | U;
210
208
  valueOrCompute<U extends T>(defaultValueFunction: () => U): T | U;
211
209
  valueOrThrow(error?: Error): T;
212
- do(patterns?: OptionalMaybePatterns<T, void>): Maybe<T>;
210
+ do(patterns?: Partial<MaybePatterns<T, void>>): Maybe<T>;
213
211
  }
214
212
 
215
213
  declare interface MaybePatterns<T, U> {
@@ -219,7 +217,7 @@ declare interface MaybePatterns<T, U> {
219
217
 
220
218
  declare enum MaybeType {
221
219
  Nothing = 0,
222
- Just = 1,
220
+ Just = 1
223
221
  }
224
222
 
225
223
  declare interface Monad<T> {
@@ -236,11 +234,6 @@ declare class MultipleDeleteResult {
236
234
  declare class Operation {
237
235
  }
238
236
 
239
- declare interface OptionalMaybePatterns<T, U> {
240
- just?: (t: T) => U;
241
- nothing?: () => U;
242
- }
243
-
244
237
  declare class PatchRecordsRequest {
245
238
  'recordIds': Array<string>;
246
239
  'jsonPath': JsonPatch;
@@ -252,28 +245,28 @@ declare class PutRecordsAspectRequest {
252
245
  }
253
246
 
254
247
  /**
255
- * A record in the registry, usually including data for one or more aspects, unique for a tenant.
256
- */
248
+ * A record in the registry, usually including data for one or more aspects, unique for a tenant.
249
+ */
257
250
  declare class Record_2 {
258
251
  /**
259
- * The identifier of the record
260
- */
252
+ * The identifier of the record
253
+ */
261
254
  'id': string;
262
255
  /**
263
- * The name of the record
264
- */
256
+ * The name of the record
257
+ */
265
258
  'name': string;
266
259
  /**
267
- * The aspects included in this record
268
- */
260
+ * The aspects included in this record
261
+ */
269
262
  'aspects': any;
270
263
  /**
271
- * A tag representing the action by the source of this record (e.g. an id for a individual crawl of a data portal).
272
- */
264
+ * A tag representing the action by the source of this record (e.g. an id for a individual crawl of a data portal).
265
+ */
273
266
  'sourceTag': string;
274
267
  /**
275
- * The identifier of a tenant
276
- */
268
+ * The identifier of a tenant
269
+ */
277
270
  'tenantId': number;
278
271
  }
279
272
  export { Record_2 as Record }
@@ -281,10 +274,8 @@ export { Record_2 as Record }
281
274
  declare class RecordAspectsApi {
282
275
  protected basePath: string;
283
276
  protected defaultHeaders: any;
284
- protected _useQuerystring: boolean;
285
277
  protected authentications: any;
286
278
  constructor(basePath?: string);
287
- set useQuerystring(value: boolean);
288
279
  setApiKey(key: RecordAspectsApiApiKeys, value: string): void;
289
280
  /**
290
281
  * Delete a record aspect by ID
@@ -295,7 +286,7 @@ declare class RecordAspectsApi {
295
286
  * @param xMagdaTenantId 0
296
287
  */
297
288
  deleteById(recordId: string, aspectId: string, xMagdaSession: string, xMagdaTenantId: number): Promise<{
298
- response: http.IncomingMessage;
289
+ response: Response;
299
290
  body: DeleteResult;
300
291
  }>;
301
292
  /**
@@ -310,7 +301,7 @@ declare class RecordAspectsApi {
310
301
  * @param xMagdaSession Magda internal session id
311
302
  */
312
303
  getAspects(xMagdaTenantId: number, recordId: string, keyword?: string, aspectIdOnly?: boolean, start?: number, limit?: number, xMagdaSession?: string): Promise<{
313
- response: http.IncomingMessage;
304
+ response: Response;
314
305
  body: Array<any>;
315
306
  }>;
316
307
  /**
@@ -322,7 +313,7 @@ declare class RecordAspectsApi {
322
313
  * @param xMagdaSession Magda internal session id
323
314
  */
324
315
  getAspectsCount(xMagdaTenantId: number, recordId: string, keyword?: string, xMagdaSession?: string): Promise<{
325
- response: http.IncomingMessage;
316
+ response: Response;
326
317
  body: CountResponse;
327
318
  }>;
328
319
  /**
@@ -334,7 +325,7 @@ declare class RecordAspectsApi {
334
325
  * @param xMagdaSession Magda internal session id
335
326
  */
336
327
  getById(xMagdaTenantId: number, recordId: string, aspectId: string, xMagdaSession?: string): Promise<{
337
- response: http.IncomingMessage;
328
+ response: Response;
338
329
  body: any;
339
330
  }>;
340
331
  /**
@@ -347,7 +338,7 @@ declare class RecordAspectsApi {
347
338
  * @param xMagdaTenantId 0
348
339
  */
349
340
  patchById(recordId: string, aspectId: string, aspectPatch: Array<Operation>, xMagdaSession: string, xMagdaTenantId: number): Promise<{
350
- response: http.IncomingMessage;
341
+ response: Response;
351
342
  body: any;
352
343
  }>;
353
344
  /**
@@ -361,7 +352,7 @@ declare class RecordAspectsApi {
361
352
  * @param merge Whether merge the supplied aspect data to existing aspect data or replace it
362
353
  */
363
354
  putById(recordId: string, aspectId: string, aspect: any, xMagdaSession: string, xMagdaTenantId: number, merge?: boolean): Promise<{
364
- response: http.IncomingMessage;
355
+ response: Response;
365
356
  body: any;
366
357
  }>;
367
358
  }
@@ -372,10 +363,8 @@ declare enum RecordAspectsApiApiKeys {
372
363
  declare class RecordHistoryApi {
373
364
  protected basePath: string;
374
365
  protected defaultHeaders: any;
375
- protected _useQuerystring: boolean;
376
366
  protected authentications: any;
377
367
  constructor(basePath?: string);
378
- set useQuerystring(value: boolean);
379
368
  setApiKey(key: RecordHistoryApiApiKeys, value: string): void;
380
369
  /**
381
370
  * Get a list of all events affecting this record
@@ -391,7 +380,7 @@ declare class RecordHistoryApi {
391
380
  * @param reversePageTokenOrder When pagination via pageToken, by default, records with smaller pageToken (i.e. older records) will be returned first. When this parameter is set to &#x60;true&#x60;, higher pageToken records (newer records) will be returned.
392
381
  */
393
382
  history(xMagdaTenantId: number, recordId: string, xMagdaSession: string, pageToken?: string, start?: number, limit?: number, aspect?: Array<string>, dereference?: boolean, reversePageTokenOrder?: boolean): Promise<{
394
- response: http.IncomingMessage;
383
+ response: Response;
395
384
  body: EventsPage;
396
385
  }>;
397
386
  /**
@@ -402,7 +391,7 @@ declare class RecordHistoryApi {
402
391
  * @param eventId The ID of the last event to be applied to the record. The event with this ID need not actually apply to the record, in which case that last event prior to this even that does apply will be used.
403
392
  */
404
393
  version(xMagdaTenantId: number, recordId: string, eventId: string): Promise<{
405
- response: http.IncomingMessage;
394
+ response: Response;
406
395
  body: Record_2;
407
396
  }>;
408
397
  }
@@ -413,10 +402,8 @@ declare enum RecordHistoryApiApiKeys {
413
402
  declare class RecordsApi {
414
403
  protected basePath: string;
415
404
  protected defaultHeaders: any;
416
- protected _useQuerystring: boolean;
417
405
  protected authentications: any;
418
406
  constructor(basePath?: string);
419
- set useQuerystring(value: boolean);
420
407
  setApiKey(key: RecordsApiApiKeys, value: string): void;
421
408
  /**
422
409
  * Create a new record
@@ -426,7 +413,7 @@ declare class RecordsApi {
426
413
  * @param xMagdaSession Magda internal session id
427
414
  */
428
415
  create(xMagdaTenantId: number, record: Record_2, xMagdaSession: string): Promise<{
429
- response: http.IncomingMessage;
416
+ response: Response;
430
417
  body: Record_2;
431
418
  }>;
432
419
  /**
@@ -437,7 +424,7 @@ declare class RecordsApi {
437
424
  * @param xMagdaSession Magda internal session id
438
425
  */
439
426
  deleteById(xMagdaTenantId: number, recordId: string, xMagdaSession: string): Promise<{
440
- response: http.IncomingMessage;
427
+ response: Response;
441
428
  body: DeleteResult;
442
429
  }>;
443
430
  /**
@@ -449,7 +436,7 @@ declare class RecordsApi {
449
436
  * @param xMagdaSession Magda internal session id
450
437
  */
451
438
  deleteRecordsAspectArrayItems(xMagdaTenantId: number, aspectId: string, requestData: DeleteRecordsAspectArrayItemsRequest, xMagdaSession: string): Promise<{
452
- response: http.IncomingMessage;
439
+ response: Response;
453
440
  body: Array<any>;
454
441
  }>;
455
442
  /**
@@ -472,7 +459,7 @@ declare class RecordsApi {
472
459
  * @param xMagdaSession Magda internal session id
473
460
  */
474
461
  getAll(xMagdaTenantId: number, aspect?: Array<string>, optionalAspect?: Array<string>, pageToken?: string, start?: number, limit?: number, dereference?: boolean, aspectQuery?: Array<string>, aspectOrQuery?: Array<string>, orderBy?: string, orderByDir?: string, orderNullFirst?: boolean, reversePageTokenOrder?: boolean, q?: string, xMagdaSession?: string): Promise<{
475
- response: http.IncomingMessage;
462
+ response: Response;
476
463
  body: Array<Record_2>;
477
464
  }>;
478
465
  /**
@@ -487,7 +474,7 @@ declare class RecordsApi {
487
474
  * @param xMagdaSession Magda internal session id
488
475
  */
489
476
  getAllSummary(xMagdaTenantId: number, pageToken?: string, start?: number, limit?: number, reversePageTokenOrder?: boolean, q?: string, xMagdaSession?: string): Promise<{
490
- response: http.IncomingMessage;
477
+ response: Response;
491
478
  body: Array<RecordSummary>;
492
479
  }>;
493
480
  /**
@@ -501,7 +488,7 @@ declare class RecordsApi {
501
488
  * @param xMagdaSession Magda internal session id
502
489
  */
503
490
  getById(id: string, xMagdaTenantId: number, aspect?: Array<string>, optionalAspect?: Array<string>, dereference?: boolean, xMagdaSession?: string): Promise<{
504
- response: http.IncomingMessage;
491
+ response: Response;
505
492
  body: Record_2;
506
493
  }>;
507
494
  /**
@@ -512,7 +499,7 @@ declare class RecordsApi {
512
499
  * @param xMagdaSession Magda internal session id
513
500
  */
514
501
  getByIdInFull(id: string, xMagdaTenantId: number, xMagdaSession?: string): Promise<{
515
- response: http.IncomingMessage;
502
+ response: Response;
516
503
  body: Record_2;
517
504
  }>;
518
505
  /**
@@ -523,7 +510,7 @@ declare class RecordsApi {
523
510
  * @param xMagdaSession Magda internal session id
524
511
  */
525
512
  getByIdSummary(id: string, xMagdaTenantId: number, xMagdaSession?: string): Promise<{
526
- response: http.IncomingMessage;
513
+ response: Response;
527
514
  body: RecordSummary;
528
515
  }>;
529
516
  /**
@@ -537,7 +524,7 @@ declare class RecordsApi {
537
524
  * @param xMagdaSession Magda internal session id
538
525
  */
539
526
  getCount(xMagdaTenantId: number, aspect?: Array<string>, aspectQuery?: Array<string>, aspectOrQuery?: Array<string>, q?: string, xMagdaSession?: string): Promise<{
540
- response: http.IncomingMessage;
527
+ response: Response;
541
528
  body: CountResponse;
542
529
  }>;
543
530
  /**
@@ -549,7 +536,7 @@ declare class RecordsApi {
549
536
  * @param xMagdaSession Magda internal session id
550
537
  */
551
538
  getPageTokens(xMagdaTenantId: number, aspect?: Array<string>, limit?: number, xMagdaSession?: string): Promise<{
552
- response: http.IncomingMessage;
539
+ response: Response;
553
540
  body: Array<string>;
554
541
  }>;
555
542
  /**
@@ -561,7 +548,7 @@ declare class RecordsApi {
561
548
  * @param xMagdaSession Magda internal session id
562
549
  */
563
550
  patchById(xMagdaTenantId: number, id: string, recordPatch: Array<Operation>, xMagdaSession: string): Promise<{
564
- response: http.IncomingMessage;
551
+ response: Response;
565
552
  body: Record_2;
566
553
  }>;
567
554
  /**
@@ -572,7 +559,7 @@ declare class RecordsApi {
572
559
  * @param xMagdaSession Magda internal session id
573
560
  */
574
561
  patchRecords(xMagdaTenantId: number, requestData: PatchRecordsRequest, xMagdaSession: string): Promise<{
575
- response: http.IncomingMessage;
562
+ response: Response;
576
563
  body: Array<any>;
577
564
  }>;
578
565
  /**
@@ -585,7 +572,7 @@ declare class RecordsApi {
585
572
  * @param merge Whether merge the supplied aspect data to existing aspect data or replace it
586
573
  */
587
574
  putById(xMagdaTenantId: number, id: string, record: Record_2, xMagdaSession: string, merge?: boolean): Promise<{
588
- response: http.IncomingMessage;
575
+ response: Response;
589
576
  body: Record_2;
590
577
  }>;
591
578
  /**
@@ -598,7 +585,7 @@ declare class RecordsApi {
598
585
  * @param merge Whether merge the supplied aspect data to existing aspect data or replace it
599
586
  */
600
587
  putRecordsAspect(xMagdaTenantId: number, aspectId: string, requestData: PutRecordsAspectRequest, xMagdaSession: string, merge?: boolean): Promise<{
601
- response: http.IncomingMessage;
588
+ response: Response;
602
589
  body: Array<any>;
603
590
  }>;
604
591
  /**
@@ -610,7 +597,7 @@ declare class RecordsApi {
610
597
  * @param xMagdaSession Magda internal session id
611
598
  */
612
599
  trimBySourceTag(xMagdaTenantId: number, sourceTagToPreserve: string, sourceId: string, xMagdaSession: string): Promise<{
613
- response: http.IncomingMessage;
600
+ response: Response;
614
601
  body: MultipleDeleteResult;
615
602
  }>;
616
603
  }
@@ -626,24 +613,24 @@ declare interface RecordsPage<I extends Record_2> {
626
613
  }
627
614
 
628
615
  /**
629
- * A summary of a record in the registry. Summaries specify which aspects are available, but do not include data for any aspects.
630
- */
616
+ * A summary of a record in the registry. Summaries specify which aspects are available, but do not include data for any aspects.
617
+ */
631
618
  declare class RecordSummary {
632
619
  /**
633
- * The identifier of the record
634
- */
620
+ * The identifier of the record
621
+ */
635
622
  'id': string;
636
623
  /**
637
- * The name of the record
638
- */
624
+ * The name of the record
625
+ */
639
626
  'name': string;
640
627
  /**
641
- * The list of aspect IDs for which this record has data
642
- */
628
+ * The list of aspect IDs for which this record has data
629
+ */
643
630
  'aspects': Array<string>;
644
631
  /**
645
- * The identifier of the tenant
646
- */
632
+ * The identifier of the tenant
633
+ */
647
634
  'tenantId': number;
648
635
  }
649
636
 
@@ -719,30 +706,30 @@ export declare class WebHook {
719
706
  }
720
707
 
721
708
  /**
722
- * Asynchronously acknowledges receipt of a web hook notification.
723
- */
709
+ * Asynchronously acknowledges receipt of a web hook notification.
710
+ */
724
711
  declare class WebHookAcknowledgement {
725
712
  /**
726
- * True if the web hook was received successfully and the listener is ready for further notifications. False if the web hook was not received and the same notification should be repeated.
727
- */
713
+ * True if the web hook was received successfully and the listener is ready for further notifications. False if the web hook was not received and the same notification should be repeated.
714
+ */
728
715
  'succeeded': boolean;
729
716
  /**
730
- * The ID of the last event received by the listener. This should be the value of the `lastEventId` property of the web hook payload that is being acknowledged. This value is ignored if `succeeded` is false.
731
- */
717
+ * The ID of the last event received by the listener. This should be the value of the `lastEventId` property of the web hook payload that is being acknowledged. This value is ignored if `succeeded` is false.
718
+ */
732
719
  'lastEventIdReceived': any;
733
720
  /**
734
- * Should the webhook be active or inactive?
735
- */
721
+ * Should the webhook be active or inactive?
722
+ */
736
723
  'active': any;
737
724
  }
738
725
 
739
726
  /**
740
- * The response to an asynchronous web hook acknowledgement.
741
- */
727
+ * The response to an asynchronous web hook acknowledgement.
728
+ */
742
729
  declare class WebHookAcknowledgementResponse {
743
730
  /**
744
- * The ID of the last event successfully received by the listener. Further notifications will start after this event.
745
- */
731
+ * The ID of the last event successfully received by the listener. Further notifications will start after this event.
732
+ */
746
733
  'lastEventIdReceived': number;
747
734
  }
748
735
 
@@ -758,10 +745,8 @@ declare class WebHookConfig {
758
745
  declare class WebHooksApi {
759
746
  protected basePath: string;
760
747
  protected defaultHeaders: any;
761
- protected _useQuerystring: boolean;
762
748
  protected authentications: any;
763
749
  constructor(basePath?: string);
764
- set useQuerystring(value: boolean);
765
750
  setApiKey(key: WebHooksApiApiKeys, value: string): void;
766
751
  /**
767
752
  * Acknowledge a previously-deferred web hook
@@ -771,7 +756,7 @@ declare class WebHooksApi {
771
756
  * @param xMagdaSession Magda internal session id
772
757
  */
773
758
  ack(id: string, acknowledgement: WebHookAcknowledgement, xMagdaSession: string): Promise<{
774
- response: http.IncomingMessage;
759
+ response: Response;
775
760
  body: WebHookAcknowledgementResponse;
776
761
  }>;
777
762
  /**
@@ -781,7 +766,7 @@ declare class WebHooksApi {
781
766
  * @param xMagdaSession Magda internal session id
782
767
  */
783
768
  create(hook: WebHook, xMagdaSession: string): Promise<{
784
- response: http.IncomingMessage;
769
+ response: Response;
785
770
  body: WebHook;
786
771
  }>;
787
772
  /**
@@ -791,7 +776,7 @@ declare class WebHooksApi {
791
776
  * @param xMagdaSession Magda internal session id
792
777
  */
793
778
  deleteById(hookId: string, xMagdaSession: string): Promise<{
794
- response: http.IncomingMessage;
779
+ response: Response;
795
780
  body: DeleteResult;
796
781
  }>;
797
782
  /**
@@ -800,7 +785,7 @@ declare class WebHooksApi {
800
785
  * @param xMagdaSession Magda internal session id
801
786
  */
802
787
  getAll(xMagdaSession: string): Promise<{
803
- response: http.IncomingMessage;
788
+ response: Response;
804
789
  body: Array<WebHook>;
805
790
  }>;
806
791
  /**
@@ -810,7 +795,7 @@ declare class WebHooksApi {
810
795
  * @param xMagdaSession Magda internal session id
811
796
  */
812
797
  getById(id: string, xMagdaSession: string): Promise<{
813
- response: http.IncomingMessage;
798
+ response: Response;
814
799
  body: WebHook;
815
800
  }>;
816
801
  /**
@@ -821,7 +806,7 @@ declare class WebHooksApi {
821
806
  * @param xMagdaSession Magda internal session id
822
807
  */
823
808
  putById(id: string, hook: WebHook, xMagdaSession: string): Promise<{
824
- response: http.IncomingMessage;
809
+ response: Response;
825
810
  body: WebHook;
826
811
  }>;
827
812
  }