-
Notifications
You must be signed in to change notification settings - Fork 3
/
GESI.wrappers.js
2518 lines (2327 loc) · 102 KB
/
GESI.wrappers.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* GESI.Wrappers V.03
*
* Wrapper Functions for Existing GSI Library in Google Scripts Editor
* Not recodmended for new Sheets that need new characters to be authorized.
* Eve Character Authentication with SSO is Unavialble. Please wait for Google to approve GESI to the app store.
*
* Instructions:
*
* Install:
* Copy this file to the app scripts editor
*
* Removal:
* Delete this file.
*
* Author BlackSmoke https://github.com/Blacksmoke16/GESI/
* Modified by CJ Kilman https://github.com/StarShip-Avalon-Projects/EveProjects/tree/main
*/
// functions.ts
/**
* List all active player alliances
e, sho
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function alliances(show_column_headings = true, version = "v1")
{
return GESI.invoke('alliances', { show_column_headings, version })
}
/**
* Public information about an alliance
*
* @param {number} alliance_id - An EVE alliance ID
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function alliances_alliance(alliance_id, show_column_headings = true, version = "v2")
{
if (!alliance_id) throw new Error(`alliance_id is required`);
return GESI.invoke('alliances_alliance', { alliance_id, show_column_headings, version })
}
/**
* Return contacts of an alliance
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function alliances_alliance_contacts(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('alliances_alliance_contacts', { name, show_column_headings, version })
}
/**
* Return custom labels for an alliance's contacts
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function alliances_alliance_contacts_labels(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('alliances_alliance_contacts_labels', { name, show_column_headings, version })
}
/**
* List all current member corporations of an alliance
*
* @param {number} alliance_id - An EVE alliance ID
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function alliances_alliance_corporations(alliance_id, show_column_headings = true, version = "v1")
{
if (!alliance_id) throw new Error(`alliance_id is required`);
return GESI.invoke('alliances_alliance_corporations', { alliance_id, show_column_headings, version })
}
/**
* Get the icon urls for a alliance
*
* @param {number} alliance_id - An EVE alliance ID
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function alliances_alliance_icons(alliance_id, show_column_headings = true, version = "v1")
{
if (!alliance_id) throw new Error(`alliance_id is required`);
return GESI.invoke('alliances_alliance_icons', { alliance_id, show_column_headings, version })
}
/**
* Bulk lookup of character IDs to corporation, alliance and faction
*
* @param {number[]} characters - The character IDs to fetch affiliations for. All characters must exist, or none will be returned
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_affiliation(characters, show_column_headings = true, version = "v1")
{
if (!characters) throw new Error(`characters is required`);
return GESI.invoke('characters_affiliation', { characters, show_column_headings, version })
}
/**
* Public information about a character
*
* @param {number} character_id - An EVE character ID
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character(character_id, show_column_headings = true, version = "v4")
{
if (!character_id) throw new Error(`character_id is required`);
return GESI.invoke('characters_character', { character_id, show_column_headings, version })
}
/**
* Return a list of agents research information for a character. The formula for finding the current research points with an agent is: currentPoints = remainderPoints + pointsPerDay * days(currentTime - researchStartDate)
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_agents_research(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_agents_research', { name, show_column_headings, version })
}
/**
* Return a list of the characters assets
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_assets(name, show_column_headings = true, version = "v4")
{
return GESI.invoke('characters_character_assets', { name, show_column_headings, version })
}
/**
* Return locations for a set of item ids, which you can get from character assets endpoint. Coordinates for items in hangars or stations are set to (-1,0,0)
*
* @param {number[]} item_ids - A list of item ids
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_assets_locations(item_ids,name, show_column_headings = true, version = "v1")
{
if (!item_ids) throw new Error(`item_ids is required`);
return GESI.invoke('characters_character_assets_locations', { item_ids, name, show_column_headings, version })
}
/**
* Return names for a set of item ids, which you can get from character assets endpoint. Typically used for items that can customize names, like containers or ships.
*
* @param {number[]} item_ids - A list of item ids
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_assets_names(item_ids,name, show_column_headings = true, version = "v1")
{
if (!item_ids) throw new Error(`item_ids is required`);
return GESI.invoke('characters_character_assets_names', { item_ids, name, show_column_headings, version })
}
/**
* Return attributes of a character
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_attributes(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_attributes', { name, show_column_headings, version })
}
/**
* Return a list of blueprints the character owns
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_blueprints(name, show_column_headings = true, version = "v2")
{
return GESI.invoke('characters_character_blueprints', { name, show_column_headings, version })
}
/**
* A list of your character's personal bookmarks
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_bookmarks(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_bookmarks', { name, show_column_headings, version })
}
/**
* A list of your character's personal bookmark folders
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_bookmarks_folders(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_bookmarks_folders', { name, show_column_headings, version })
}
/**
* Get 49 event summaries from the calendar. If no from_event ID is given, the resource will return the next 50 chronological event summaries from now. If a from_event ID is specified, it will return the next 50 chronological event summaries from after that event
*
* @param {number} from_event - The event ID to retrieve events from
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_calendar(from_event,name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_calendar', { from_event, name, show_column_headings, version })
}
/**
* Get all the information for a specific event
*
* @param {number} event_id - The id of the event requested
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_calendar_event(event_id,name, show_column_headings = true, version = "v2")
{
if (!event_id) throw new Error(`event_id is required`);
return GESI.invoke('characters_character_calendar_event', { event_id, name, show_column_headings, version })
}
/**
* Get all invited attendees for a given event
*
* @param {number} event_id - The id of the event requested
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_calendar_event_attendees(event_id,name, show_column_headings = true, version = "v1")
{
if (!event_id) throw new Error(`event_id is required`);
return GESI.invoke('characters_character_calendar_event_attendees', { event_id, name, show_column_headings, version })
}
/**
* A list of the character's clones
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_clones(name, show_column_headings = true, version = "v2")
{
return GESI.invoke('characters_character_clones', { name, show_column_headings, version })
}
/**
* Return contacts of a character
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_contacts(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_contacts', { name, show_column_headings, version })
}
/**
* Return custom labels for a character's contacts
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_contacts_labels(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_contacts_labels', { name, show_column_headings, version })
}
/**
* Returns contracts available to a character, only if the character is issuer, acceptor or assignee. Only returns contracts no older than 29 days, or if the status is "in_progress".
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_contracts(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_contracts', { name, show_column_headings, version })
}
/**
* Lists bids on a particular auction contract
*
* @param {number} contract_id - ID of a contract
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_contracts_contract_bids(contract_id,name, show_column_headings = true, version = "v1")
{
if (!contract_id) throw new Error(`contract_id is required`);
return GESI.invoke('characters_character_contracts_contract_bids', { contract_id, name, show_column_headings, version })
}
/**
* Lists items of a particular contract
*
* @param {number} contract_id - ID of a contract
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_contracts_contract_items(contract_id,name, show_column_headings = true, version = "v1")
{
if (!contract_id) throw new Error(`contract_id is required`);
return GESI.invoke('characters_character_contracts_contract_items', { contract_id, name, show_column_headings, version })
}
/**
* Get a list of all the corporations a character has been a member of
*
* @param {number} character_id - An EVE character ID
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_corporationhistory(character_id, show_column_headings = true, version = "v1")
{
if (!character_id) throw new Error(`character_id is required`);
return GESI.invoke('characters_character_corporationhistory', { character_id, show_column_headings, version })
}
/**
* Return a character's jump activation and fatigue information
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_fatigue(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_fatigue', { name, show_column_headings, version })
}
/**
* Return fittings of a character
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_fittings(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_fittings', { name, show_column_headings, version })
}
/**
* Return the fleet ID the character is in, if any.
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_fleet(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_fleet', { name, show_column_headings, version })
}
/**
* Statistical overview of a character involved in faction warfare
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_fw_stats(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_fw_stats', { name, show_column_headings, version })
}
/**
* Return implants on the active clone of a character
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_implants(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_implants', { name, show_column_headings, version })
}
/**
* List industry jobs placed by a character
*
* @param {boolean} include_completed - Whether to retrieve completed character industry jobs. Only includes jobs from the past 89 days
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_industry_jobs(include_completed,name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_industry_jobs', { include_completed, name, show_column_headings, version })
}
/**
* Return a list of a character's kills and losses going back 89 days
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_killmails_recent(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_killmails_recent', { name, show_column_headings, version })
}
/**
* Information about the characters current location. Returns the current solar system id, and also the current station or structure ID if applicable
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_location(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_location', { name, show_column_headings, version })
}
/**
* Return a list of loyalty points for all corporations the character has worked for
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_loyalty_points(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_loyalty_points', { name, show_column_headings, version })
}
/**
* Return the 49 most recent mail headers belonging to the character that match the query criteria. Queries can be filtered by label, and last_mail_id can be used to paginate backwards
*
* @param {number[]} labels - Fetch only mails that match one or more of the given labels
* @param {number} last_mail_id - List only mail with an ID lower than the given ID, if present
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_mail(labels, last_mail_id,name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_mail', { labels, last_mail_id, name, show_column_headings, version })
}
/**
* Return a list of the users mail labels, unread counts for each label and a total unread count.
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_mail_labels(name, show_column_headings = true, version = "v2")
{
return GESI.invoke('characters_character_mail_labels', { name, show_column_headings, version })
}
/**
* Return all mailing lists that the character is subscribed to
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_mail_lists(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_mail_lists', { name, show_column_headings, version })
}
/**
* Return the contents of an EVE mail
*
* @param {number} mail_id - An EVE mail ID
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_mail_mail(mail_id,name, show_column_headings = true, version = "v1")
{
if (!mail_id) throw new Error(`mail_id is required`);
return GESI.invoke('characters_character_mail_mail', { mail_id, name, show_column_headings, version })
}
/**
* Return a list of medals the character has
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_medals(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_medals', { name, show_column_headings, version })
}
/**
* Paginated record of all mining done by a character for the past 29 days
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_mining(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_mining', { name, show_column_headings, version })
}
/**
* Return character notifications
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_notifications(name, show_column_headings = true, version = "v4")
{
return GESI.invoke('characters_character_notifications', { name, show_column_headings, version })
}
/**
* Return notifications about having been added to someone's contact list
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_notifications_contacts(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_notifications_contacts', { name, show_column_headings, version })
}
/**
* Checks if the character is currently online
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_online(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_online', { name, show_column_headings, version })
}
/**
* Return a list of tasks finished by a character
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_opportunities(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_opportunities', { name, show_column_headings, version })
}
/**
* List open market orders placed by a character
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_orders(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_orders', { name, show_column_headings, version })
}
/**
* List cancelled and expired market orders placed by a character up to 89 days in the past.
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_orders_history(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_orders_history', { name, show_column_headings, version })
}
/**
* Returns a list of all planetary colonies owned by a character.
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_planets(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_planets', { name, show_column_headings, version })
}
/**
* Returns full details on the layout of a single planetary colony, including links, pins and routes. Note: Planetary information is only recalculated when the colony is viewed through the client. Information will not update until this criteria is met.
*
* @param {number} planet_id - Planet id of the target planet
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_planets_planet(planet_id,name, show_column_headings = true, version = "v2")
{
if (!planet_id) throw new Error(`planet_id is required`);
return GESI.invoke('characters_character_planets_planet', { planet_id, name, show_column_headings, version })
}
/**
* Get portrait urls for a character
*
* @param {number} character_id - An EVE character ID
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_portrait(character_id, show_column_headings = true, version = "v1")
{
if (!character_id) throw new Error(`character_id is required`);
return GESI.invoke('characters_character_portrait', { character_id, show_column_headings, version })
}
/**
* Returns a character's corporation roles
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_roles(name, show_column_headings = true, version = "v2")
{
return GESI.invoke('characters_character_roles', { name, show_column_headings, version })
}
/**
* Search for entities that match a given sub-string.
*
* @param {string} search - The string to search on
* @param {string[]} categories - Type of entities to search for
* @param {string} language - Language to use in the response, takes precedence over Accept-Language
* @param {boolean} strict - Whether the search should be a strict match
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_search(search, categories, language, strict,name, show_column_headings = true, version = "v2")
{
if (!search) throw new Error(`search is required`);
if (!categories) throw new Error(`categories is required`);
return GESI.invoke('characters_character_search', { search, categories, language, strict, name, show_column_headings, version })
}
/**
* Get the current ship type, name and id
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_ship(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_ship', { name, show_column_headings, version })
}
/**
* List the configured skill queue for the given character
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_skillqueue(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_skillqueue', { name, show_column_headings, version })
}
/**
* List all trained skills for the given character
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_skills(name, show_column_headings = true, version = "v3")
{
return GESI.invoke('characters_character_skills', { name, show_column_headings, version })
}
/**
* Return character standings from agents, NPC corporations, and factions
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_standings(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_standings', { name, show_column_headings, version })
}
/**
* Returns a character's titles
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_titles(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_titles', { name, show_column_headings, version })
}
/**
* Returns a character's wallet balance
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_wallet(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_wallet', { name, show_column_headings, version })
}
/**
* Retrieve the given character's wallet journal going 29 days back
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_wallet_journal(name, show_column_headings = true, version = "v5")
{
return GESI.invoke('characters_character_wallet_journal', { name, show_column_headings, version })
}
/**
* Get wallet transactions of a character
*
* @param {number} from_id - Only show transactions happened before the one referenced by this id
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function characters_character_wallet_transactions(from_id,name, show_column_headings = true, version = "v1")
{
return GESI.invoke('characters_character_wallet_transactions', { from_id, name, show_column_headings, version })
}
/**
* Lists bids on a public auction contract
*
* @param {number} contract_id - ID of a contract
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function contracts_public_bids_contract(contract_id, show_column_headings = true, version = "v1")
{
if (!contract_id) throw new Error(`contract_id is required`);
return GESI.invoke('contracts_public_bids_contract', { contract_id, show_column_headings, version })
}
/**
* Lists items of a public contract
*
* @param {number} contract_id - ID of a contract
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function contracts_public_items_contract(contract_id, show_column_headings = true, version = "v1")
{
if (!contract_id) throw new Error(`contract_id is required`);
return GESI.invoke('contracts_public_items_contract', { contract_id, show_column_headings, version })
}
/**
* Returns a paginated list of all public contracts in the given region
*
* @param {number} region_id - An EVE region id
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function contracts_public_region(region_id, show_column_headings = true, version = "v1")
{
if (!region_id) throw new Error(`region_id is required`);
return GESI.invoke('contracts_public_region', { region_id, show_column_headings, version })
}
/**
* Extraction timers for all moon chunks being extracted by refineries belonging to a corporation.
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function corporation_corporation_mining_extractions(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('corporation_corporation_mining_extractions', { name, show_column_headings, version })
}
/**
* Paginated list of all entities capable of observing and recording mining for a corporation
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function corporation_corporation_mining_observers(name, show_column_headings = true, version = "v1")
{
return GESI.invoke('corporation_corporation_mining_observers', { name, show_column_headings, version })
}
/**
* Paginated record of all mining seen by an observer
*
* @param {number} observer_id - A mining observer id
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function corporation_corporation_mining_observers_observer(observer_id,name, show_column_headings = true, version = "v1")
{
if (!observer_id) throw new Error(`observer_id is required`);
return GESI.invoke('corporation_corporation_mining_observers_observer', { observer_id, name, show_column_headings, version })
}
/**
* Public information about a corporation
*
* @param {number} corporation_id - An EVE corporation ID
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function corporations_corporation(corporation_id, show_column_headings = true, version = "v4")
{
if (!corporation_id) throw new Error(`corporation_id is required`);
return GESI.invoke('corporations_corporation', { corporation_id, show_column_headings, version })
}
/**
* Get a list of all the alliances a corporation has been a member of
*
* @param {number} corporation_id - An EVE corporation ID
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function corporations_corporation_alliancehistory(corporation_id, show_column_headings = true, version = "v2")
{
if (!corporation_id) throw new Error(`corporation_id is required`);
return GESI.invoke('corporations_corporation_alliancehistory', { corporation_id, show_column_headings, version })
}
/**
* Return a list of the corporation assets
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function corporations_corporation_assets(name, show_column_headings = true, version = "v4")
{
return GESI.invoke('corporations_corporation_assets', { name, show_column_headings, version });
}
/**
* Return locations for a set of item ids, which you can get from corporation assets endpoint. Coordinates for items in hangars or stations are set to (-1,0,0)
*
* @param {number[]} item_ids - A list of item ids
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function corporations_corporation_assets_locations(item_ids,name, show_column_headings = true, version = "v1")
{
if (!item_ids) throw new Error(`item_ids is required`);
return GESI.invoke('corporations_corporation_assets_locations', { item_ids, name, show_column_headings, version });
}
/**
* Return names for a set of item ids, which you can get from corporation assets endpoint. Only valid for items that can customize names, like containers or ships
*
* @param {number[]} item_ids - A list of item ids
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function corporations_corporation_assets_names(item_ids,name, show_column_headings = true, version = "v1")
{
if (!item_ids) throw new Error(`item_ids is required`);
return GESI.invoke('corporations_corporation_assets_names', { item_ids, name, show_column_headings, version });
}
/**
* Returns a list of blueprints the corporation owns
*
* @param {string} name - Name of the character used for auth. Defaults to the first authenticated character.
* @param {boolean} show_column_headings - If column headings should be shown.
* @param {string} version - Which ESI version to use for the request.
* @customfunction
*/
function corporations_corporation_blueprints(name, show_column_headings = true, version = "v2")
{
return GESI.invoke('corporations_corporation_blueprints', { name, show_column_headings, version })
}