@segment/public-api-sdk-typescript 32.0.2-b5004 → 32.0.2-b5006

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/package.json CHANGED
@@ -18,16 +18,16 @@
18
18
  "uuid": "^8.3.2",
19
19
  "request": "^2.88.2"
20
20
  },
21
- "version": "32.0.2b5004",
21
+ "version": "32.0.2b5006",
22
22
  "devDependencies": {
23
23
  "@types/bluebird": "^3.5.33",
24
- "@types/jest": "^29.1.1",
24
+ "@types/jest": "^29",
25
25
  "@types/node": "^12",
26
26
  "@types/request": "^2.48.8",
27
27
  "typescript": "^4.0",
28
28
  "prettier": "2.4.0",
29
- "jest": "29.1.2",
30
- "ts-jest": "29.0.3",
29
+ "jest": "^29",
30
+ "ts-jest": "^29",
31
31
  "@types/uuid": "^8.3.0"
32
32
  }
33
33
  }
@@ -1,10 +1,10 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Smoke tests parses errors correctly 1`] = `
4
- Object {
4
+ {
5
5
  "_consuming": false,
6
6
  "_dumped": false,
7
- "_events": Object {
7
+ "_events": {
8
8
  "end": [Function],
9
9
  },
10
10
  "_eventsCount": 1,
@@ -37,7 +37,7 @@ Object {
37
37
  "multiAwaitDrain": false,
38
38
  "needReadable": false,
39
39
  "objectMode": false,
40
- "pipes": Array [],
40
+ "pipes": [],
41
41
  "readableListening": false,
42
42
  "reading": false,
43
43
  "readingMore": true,
@@ -52,7 +52,7 @@ Object {
52
52
  "httpVersionMajor": 1,
53
53
  "httpVersionMinor": 1,
54
54
  "method": "DELETE",
55
- "rawHeaders": Array [
55
+ "rawHeaders": [
56
56
  "Accept",
57
57
  "application/json",
58
58
  "Authorization",
@@ -64,14 +64,14 @@ Object {
64
64
  "Connection",
65
65
  "close",
66
66
  ],
67
- "rawTrailers": Array [],
67
+ "rawTrailers": [],
68
68
  "socket": Any<Object>,
69
69
  "statusCode": null,
70
70
  "statusMessage": null,
71
71
  "upgrade": false,
72
72
  "url": "/sources/404",
73
73
  Symbol(kCapture): false,
74
- Symbol(kHeaders): Object {
74
+ Symbol(kHeaders): {
75
75
  "accept": "application/json",
76
76
  "authorization": "Bearer 1ba60ccaae1c1a5230",
77
77
  "connection": "close",
@@ -88,10 +88,10 @@ Object {
88
88
  exports[`Smoke tests parses errors correctly 2`] = `[HttpError: HTTP request failed]`;
89
89
 
90
90
  exports[`Smoke tests sends correct request and parses response for create 1`] = `
91
- Object {
91
+ {
92
92
  "_consuming": false,
93
93
  "_dumped": false,
94
- "_events": Object {
94
+ "_events": {
95
95
  "end": [Function],
96
96
  },
97
97
  "_eventsCount": 1,
@@ -124,7 +124,7 @@ Object {
124
124
  "multiAwaitDrain": false,
125
125
  "needReadable": false,
126
126
  "objectMode": false,
127
- "pipes": Array [],
127
+ "pipes": [],
128
128
  "readableListening": false,
129
129
  "reading": false,
130
130
  "readingMore": true,
@@ -139,7 +139,7 @@ Object {
139
139
  "httpVersionMajor": 1,
140
140
  "httpVersionMinor": 1,
141
141
  "method": "POST",
142
- "rawHeaders": Array [
142
+ "rawHeaders": [
143
143
  "Accept",
144
144
  "application/vnd.segment.v1+json",
145
145
  "Authorization",
@@ -153,14 +153,14 @@ Object {
153
153
  "Connection",
154
154
  "close",
155
155
  ],
156
- "rawTrailers": Array [],
156
+ "rawTrailers": [],
157
157
  "socket": Any<Object>,
158
158
  "statusCode": null,
159
159
  "statusMessage": null,
160
160
  "upgrade": false,
161
161
  "url": "/sources",
162
162
  Symbol(kCapture): false,
163
- Symbol(kHeaders): Object {
163
+ Symbol(kHeaders): {
164
164
  "accept": "application/vnd.segment.v1+json",
165
165
  "authorization": "Bearer 1ba60ccaae1c1a5230",
166
166
  "connection": "close",
@@ -176,15 +176,15 @@ Object {
176
176
  `;
177
177
 
178
178
  exports[`Smoke tests sends correct request and parses response for create 2`] = `
179
- Object {
179
+ {
180
180
  "body": CreateSource200Response1 {
181
181
  "data": CreateSourceV1Output {
182
182
  "source": Source5 {
183
183
  "enabled": true,
184
184
  "id": "source-id",
185
- "labels": Array [],
185
+ "labels": [],
186
186
  "metadata": Metadata1 {
187
- "categories": Array [
187
+ "categories": [
188
188
  "Website",
189
189
  ],
190
190
  "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
@@ -196,59 +196,59 @@ Object {
196
196
  "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
197
197
  },
198
198
  "name": "Javascript",
199
- "options": Array [],
199
+ "options": [],
200
200
  "slug": "javascript",
201
201
  },
202
202
  "name": "my-test-source",
203
- "settings": Object {},
203
+ "settings": {},
204
204
  "slug": "my-test-source",
205
205
  "workspaceId": "workspace-id",
206
- "writeKeys": Array [
206
+ "writeKeys": [
207
207
  "write-key",
208
208
  ],
209
209
  },
210
210
  },
211
211
  },
212
- "response": Object {
213
- "body": Object {
214
- "data": Object {
215
- "source": Object {
212
+ "response": {
213
+ "body": {
214
+ "data": {
215
+ "source": {
216
216
  "enabled": true,
217
217
  "id": "source-id",
218
- "labels": Array [],
219
- "metadata": Object {
220
- "categories": Array [
218
+ "labels": [],
219
+ "metadata": {
220
+ "categories": [
221
221
  "Website",
222
222
  ],
223
223
  "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
224
224
  "id": "IqDTy1TpoU",
225
225
  "isCloudEventSource": false,
226
- "logos": Object {
226
+ "logos": {
227
227
  "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
228
228
  "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
229
229
  "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
230
230
  },
231
231
  "name": "Javascript",
232
- "options": Array [],
232
+ "options": [],
233
233
  "slug": "javascript",
234
234
  },
235
235
  "name": "my-test-source",
236
- "settings": Object {},
236
+ "settings": {},
237
237
  "slug": "my-test-source",
238
238
  "workspaceId": "workspace-id",
239
- "writeKeys": Array [
239
+ "writeKeys": [
240
240
  "write-key",
241
241
  ],
242
242
  },
243
243
  },
244
244
  },
245
- "headers": Object {
245
+ "headers": {
246
246
  "connection": "close",
247
247
  "content-type": "application/json",
248
248
  "date": Any<String>,
249
249
  "transfer-encoding": "chunked",
250
250
  },
251
- "request": Object {
251
+ "request": {
252
252
  "headers": undefined,
253
253
  "method": undefined,
254
254
  "uri": undefined,
@@ -259,10 +259,10 @@ Object {
259
259
  `;
260
260
 
261
261
  exports[`Smoke tests sends correct request and parses response for delete 1`] = `
262
- Object {
262
+ {
263
263
  "_consuming": false,
264
264
  "_dumped": false,
265
- "_events": Object {
265
+ "_events": {
266
266
  "end": [Function],
267
267
  },
268
268
  "_eventsCount": 1,
@@ -295,7 +295,7 @@ Object {
295
295
  "multiAwaitDrain": false,
296
296
  "needReadable": false,
297
297
  "objectMode": false,
298
- "pipes": Array [],
298
+ "pipes": [],
299
299
  "readableListening": false,
300
300
  "reading": false,
301
301
  "readingMore": true,
@@ -310,7 +310,7 @@ Object {
310
310
  "httpVersionMajor": 1,
311
311
  "httpVersionMinor": 1,
312
312
  "method": "DELETE",
313
- "rawHeaders": Array [
313
+ "rawHeaders": [
314
314
  "Accept",
315
315
  "application/json",
316
316
  "Authorization",
@@ -322,14 +322,14 @@ Object {
322
322
  "Connection",
323
323
  "close",
324
324
  ],
325
- "rawTrailers": Array [],
325
+ "rawTrailers": [],
326
326
  "socket": Any<Object>,
327
327
  "statusCode": null,
328
328
  "statusMessage": null,
329
329
  "upgrade": false,
330
330
  "url": "/sources/my-source",
331
331
  Symbol(kCapture): false,
332
- Symbol(kHeaders): Object {
332
+ Symbol(kHeaders): {
333
333
  "accept": "application/json",
334
334
  "authorization": "Bearer 1ba60ccaae1c1a5230",
335
335
  "connection": "close",
@@ -344,25 +344,25 @@ Object {
344
344
  `;
345
345
 
346
346
  exports[`Smoke tests sends correct request and parses response for delete 2`] = `
347
- Object {
347
+ {
348
348
  "body": DeleteSource200Response1 {
349
349
  "data": DeleteSourceV1Output {
350
350
  "status": "SUCCESS",
351
351
  },
352
352
  },
353
- "response": Object {
354
- "body": Object {
355
- "data": Object {
353
+ "response": {
354
+ "body": {
355
+ "data": {
356
356
  "status": "SUCCESS",
357
357
  },
358
358
  },
359
- "headers": Object {
359
+ "headers": {
360
360
  "connection": "close",
361
361
  "content-type": "application/json",
362
362
  "date": Any<String>,
363
363
  "transfer-encoding": "chunked",
364
364
  },
365
- "request": Object {
365
+ "request": {
366
366
  "headers": undefined,
367
367
  "method": undefined,
368
368
  "uri": undefined,
@@ -373,10 +373,10 @@ Object {
373
373
  `;
374
374
 
375
375
  exports[`Smoke tests sends correct request and parses response for list 1`] = `
376
- Object {
376
+ {
377
377
  "_consuming": false,
378
378
  "_dumped": false,
379
- "_events": Object {
379
+ "_events": {
380
380
  "end": [Function],
381
381
  },
382
382
  "_eventsCount": 1,
@@ -409,7 +409,7 @@ Object {
409
409
  "multiAwaitDrain": false,
410
410
  "needReadable": false,
411
411
  "objectMode": false,
412
- "pipes": Array [],
412
+ "pipes": [],
413
413
  "readableListening": false,
414
414
  "reading": false,
415
415
  "readingMore": true,
@@ -424,7 +424,7 @@ Object {
424
424
  "httpVersionMajor": 1,
425
425
  "httpVersionMinor": 1,
426
426
  "method": "GET",
427
- "rawHeaders": Array [
427
+ "rawHeaders": [
428
428
  "Accept",
429
429
  "application/json",
430
430
  "Authorization",
@@ -434,14 +434,14 @@ Object {
434
434
  "Connection",
435
435
  "close",
436
436
  ],
437
- "rawTrailers": Array [],
437
+ "rawTrailers": [],
438
438
  "socket": Any<Object>,
439
439
  "statusCode": null,
440
440
  "statusMessage": null,
441
441
  "upgrade": false,
442
442
  "url": "/sources?pagination%5Bcount%5D=1",
443
443
  Symbol(kCapture): false,
444
- Symbol(kHeaders): Object {
444
+ Symbol(kHeaders): {
445
445
  "accept": "application/json",
446
446
  "authorization": "Bearer 1ba60ccaae1c1a5230",
447
447
  "connection": "close",
@@ -455,7 +455,7 @@ Object {
455
455
  `;
456
456
 
457
457
  exports[`Smoke tests sends correct request and parses response for list 2`] = `
458
- Object {
458
+ {
459
459
  "body": ListSources200Response1 {
460
460
  "data": ListSourcesV1Output {
461
461
  "pagination": Pagination {
@@ -464,13 +464,13 @@ Object {
464
464
  "previous": undefined,
465
465
  "totalEntries": 63,
466
466
  },
467
- "sources": Array [
467
+ "sources": [
468
468
  SourceV1 {
469
469
  "enabled": true,
470
470
  "id": "source-id",
471
- "labels": Array [],
471
+ "labels": [],
472
472
  "metadata": Metadata1 {
473
- "categories": Array [
473
+ "categories": [
474
474
  "Website",
475
475
  ],
476
476
  "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
@@ -482,67 +482,67 @@ Object {
482
482
  "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
483
483
  },
484
484
  "name": "Javascript",
485
- "options": Array [],
485
+ "options": [],
486
486
  "slug": "javascript",
487
487
  },
488
488
  "name": "my-test-source",
489
- "settings": Object {},
489
+ "settings": {},
490
490
  "slug": "my-test-source",
491
491
  "workspaceId": "workspace-id",
492
- "writeKeys": Array [
492
+ "writeKeys": [
493
493
  "write-key",
494
494
  ],
495
495
  },
496
496
  ],
497
497
  },
498
498
  },
499
- "response": Object {
500
- "body": Object {
501
- "data": Object {
502
- "pagination": Object {
499
+ "response": {
500
+ "body": {
501
+ "data": {
502
+ "pagination": {
503
503
  "current": "MA==",
504
504
  "next": "MQ==",
505
505
  "totalEntries": 63,
506
506
  },
507
- "sources": Array [
508
- Object {
507
+ "sources": [
508
+ {
509
509
  "enabled": true,
510
510
  "id": "source-id",
511
- "labels": Array [],
512
- "metadata": Object {
513
- "categories": Array [
511
+ "labels": [],
512
+ "metadata": {
513
+ "categories": [
514
514
  "Website",
515
515
  ],
516
516
  "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
517
517
  "id": "IqDTy1TpoU",
518
518
  "isCloudEventSource": false,
519
- "logos": Object {
519
+ "logos": {
520
520
  "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
521
521
  "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
522
522
  "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
523
523
  },
524
524
  "name": "Javascript",
525
- "options": Array [],
525
+ "options": [],
526
526
  "slug": "javascript",
527
527
  },
528
528
  "name": "my-test-source",
529
- "settings": Object {},
529
+ "settings": {},
530
530
  "slug": "my-test-source",
531
531
  "workspaceId": "workspace-id",
532
- "writeKeys": Array [
532
+ "writeKeys": [
533
533
  "write-key",
534
534
  ],
535
535
  },
536
536
  ],
537
537
  },
538
538
  },
539
- "headers": Object {
539
+ "headers": {
540
540
  "connection": "close",
541
541
  "content-type": "application/json",
542
542
  "date": Any<String>,
543
543
  "transfer-encoding": "chunked",
544
544
  },
545
- "request": Object {
545
+ "request": {
546
546
  "headers": undefined,
547
547
  "method": undefined,
548
548
  "uri": undefined,
@@ -553,10 +553,10 @@ Object {
553
553
  `;
554
554
 
555
555
  exports[`Smoke tests sends correct request and parses response for read 1`] = `
556
- Object {
556
+ {
557
557
  "_consuming": false,
558
558
  "_dumped": false,
559
- "_events": Object {
559
+ "_events": {
560
560
  "end": [Function],
561
561
  },
562
562
  "_eventsCount": 1,
@@ -589,7 +589,7 @@ Object {
589
589
  "multiAwaitDrain": false,
590
590
  "needReadable": false,
591
591
  "objectMode": false,
592
- "pipes": Array [],
592
+ "pipes": [],
593
593
  "readableListening": false,
594
594
  "reading": false,
595
595
  "readingMore": true,
@@ -604,7 +604,7 @@ Object {
604
604
  "httpVersionMajor": 1,
605
605
  "httpVersionMinor": 1,
606
606
  "method": "GET",
607
- "rawHeaders": Array [
607
+ "rawHeaders": [
608
608
  "Accept",
609
609
  "application/json",
610
610
  "Authorization",
@@ -614,14 +614,14 @@ Object {
614
614
  "Connection",
615
615
  "close",
616
616
  ],
617
- "rawTrailers": Array [],
617
+ "rawTrailers": [],
618
618
  "socket": Any<Object>,
619
619
  "statusCode": null,
620
620
  "statusMessage": null,
621
621
  "upgrade": false,
622
622
  "url": "/sources/source-id",
623
623
  Symbol(kCapture): false,
624
- Symbol(kHeaders): Object {
624
+ Symbol(kHeaders): {
625
625
  "accept": "application/json",
626
626
  "authorization": "Bearer 1ba60ccaae1c1a5230",
627
627
  "connection": "close",
@@ -635,15 +635,15 @@ Object {
635
635
  `;
636
636
 
637
637
  exports[`Smoke tests sends correct request and parses response for read 2`] = `
638
- Object {
638
+ {
639
639
  "body": GetSource200Response1 {
640
640
  "data": GetSourceV1Output {
641
641
  "source": Source4 {
642
642
  "enabled": true,
643
643
  "id": "source-id",
644
- "labels": Array [],
644
+ "labels": [],
645
645
  "metadata": Metadata1 {
646
- "categories": Array [
646
+ "categories": [
647
647
  "Website",
648
648
  ],
649
649
  "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
@@ -655,59 +655,59 @@ Object {
655
655
  "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
656
656
  },
657
657
  "name": "Javascript",
658
- "options": Array [],
658
+ "options": [],
659
659
  "slug": "javascript",
660
660
  },
661
661
  "name": "my-test-source",
662
- "settings": Object {},
662
+ "settings": {},
663
663
  "slug": "my-test-source",
664
664
  "workspaceId": "workspace-id",
665
- "writeKeys": Array [
665
+ "writeKeys": [
666
666
  "write-key",
667
667
  ],
668
668
  },
669
669
  },
670
670
  },
671
- "response": Object {
672
- "body": Object {
673
- "data": Object {
674
- "source": Object {
671
+ "response": {
672
+ "body": {
673
+ "data": {
674
+ "source": {
675
675
  "enabled": true,
676
676
  "id": "source-id",
677
- "labels": Array [],
678
- "metadata": Object {
679
- "categories": Array [
677
+ "labels": [],
678
+ "metadata": {
679
+ "categories": [
680
680
  "Website",
681
681
  ],
682
682
  "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
683
683
  "id": "IqDTy1TpoU",
684
684
  "isCloudEventSource": false,
685
- "logos": Object {
685
+ "logos": {
686
686
  "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
687
687
  "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
688
688
  "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
689
689
  },
690
690
  "name": "Javascript",
691
- "options": Array [],
691
+ "options": [],
692
692
  "slug": "javascript",
693
693
  },
694
694
  "name": "my-test-source",
695
- "settings": Object {},
695
+ "settings": {},
696
696
  "slug": "my-test-source",
697
697
  "workspaceId": "workspace-id",
698
- "writeKeys": Array [
698
+ "writeKeys": [
699
699
  "write-key",
700
700
  ],
701
701
  },
702
702
  },
703
703
  },
704
- "headers": Object {
704
+ "headers": {
705
705
  "connection": "close",
706
706
  "content-type": "application/json",
707
707
  "date": Any<String>,
708
708
  "transfer-encoding": "chunked",
709
709
  },
710
- "request": Object {
710
+ "request": {
711
711
  "headers": undefined,
712
712
  "method": undefined,
713
713
  "uri": undefined,
@@ -718,10 +718,10 @@ Object {
718
718
  `;
719
719
 
720
720
  exports[`Smoke tests sends correct request and parses response for update 1`] = `
721
- Object {
721
+ {
722
722
  "_consuming": false,
723
723
  "_dumped": false,
724
- "_events": Object {
724
+ "_events": {
725
725
  "end": [Function],
726
726
  },
727
727
  "_eventsCount": 1,
@@ -754,7 +754,7 @@ Object {
754
754
  "multiAwaitDrain": false,
755
755
  "needReadable": false,
756
756
  "objectMode": false,
757
- "pipes": Array [],
757
+ "pipes": [],
758
758
  "readableListening": false,
759
759
  "reading": false,
760
760
  "readingMore": true,
@@ -769,7 +769,7 @@ Object {
769
769
  "httpVersionMajor": 1,
770
770
  "httpVersionMinor": 1,
771
771
  "method": "PATCH",
772
- "rawHeaders": Array [
772
+ "rawHeaders": [
773
773
  "Accept",
774
774
  "application/vnd.segment.v1+json",
775
775
  "Authorization",
@@ -783,14 +783,14 @@ Object {
783
783
  "Connection",
784
784
  "close",
785
785
  ],
786
- "rawTrailers": Array [],
786
+ "rawTrailers": [],
787
787
  "socket": Any<Object>,
788
788
  "statusCode": null,
789
789
  "statusMessage": null,
790
790
  "upgrade": false,
791
791
  "url": "/sources/source-id",
792
792
  Symbol(kCapture): false,
793
- Symbol(kHeaders): Object {
793
+ Symbol(kHeaders): {
794
794
  "accept": "application/vnd.segment.v1+json",
795
795
  "authorization": "Bearer 1ba60ccaae1c1a5230",
796
796
  "connection": "close",
@@ -806,15 +806,15 @@ Object {
806
806
  `;
807
807
 
808
808
  exports[`Smoke tests sends correct request and parses response for update 2`] = `
809
- Object {
809
+ {
810
810
  "body": UpdateSource200Response1 {
811
811
  "data": UpdateSourceV1Output {
812
812
  "source": Source6 {
813
813
  "enabled": false,
814
814
  "id": "source-id",
815
- "labels": Array [],
815
+ "labels": [],
816
816
  "metadata": Metadata1 {
817
- "categories": Array [
817
+ "categories": [
818
818
  "Website",
819
819
  ],
820
820
  "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
@@ -826,59 +826,59 @@ Object {
826
826
  "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
827
827
  },
828
828
  "name": "Javascript",
829
- "options": Array [],
829
+ "options": [],
830
830
  "slug": "javascript",
831
831
  },
832
832
  "name": "My updated source",
833
- "settings": Object {},
833
+ "settings": {},
834
834
  "slug": "my-test-source",
835
835
  "workspaceId": "workspace-id",
836
- "writeKeys": Array [
836
+ "writeKeys": [
837
837
  "write-key",
838
838
  ],
839
839
  },
840
840
  },
841
841
  },
842
- "response": Object {
843
- "body": Object {
844
- "data": Object {
845
- "source": Object {
842
+ "response": {
843
+ "body": {
844
+ "data": {
845
+ "source": {
846
846
  "enabled": false,
847
847
  "id": "source-id",
848
- "labels": Array [],
849
- "metadata": Object {
850
- "categories": Array [
848
+ "labels": [],
849
+ "metadata": {
850
+ "categories": [
851
851
  "Website",
852
852
  ],
853
853
  "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
854
854
  "id": "IqDTy1TpoU",
855
855
  "isCloudEventSource": false,
856
- "logos": Object {
856
+ "logos": {
857
857
  "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
858
858
  "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
859
859
  "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
860
860
  },
861
861
  "name": "Javascript",
862
- "options": Array [],
862
+ "options": [],
863
863
  "slug": "javascript",
864
864
  },
865
865
  "name": "My updated source",
866
- "settings": Object {},
866
+ "settings": {},
867
867
  "slug": "my-test-source",
868
868
  "workspaceId": "workspace-id",
869
- "writeKeys": Array [
869
+ "writeKeys": [
870
870
  "write-key",
871
871
  ],
872
872
  },
873
873
  },
874
874
  },
875
- "headers": Object {
875
+ "headers": {
876
876
  "connection": "close",
877
877
  "content-type": "application/json",
878
878
  "date": Any<String>,
879
879
  "transfer-encoding": "chunked",
880
880
  },
881
- "request": Object {
881
+ "request": {
882
882
  "headers": undefined,
883
883
  "method": undefined,
884
884
  "uri": undefined,