artifacts-api-client 1.2.0 → 1.4.0

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.
@@ -1,5 +1,5 @@
1
1
  import { ArtifactsHttpClient } from '../http-client/artifacts.http-client';
2
- import { CreateCharacterApiBody, CreateCharacterApiResult, GetAllCharactersApiQuery, GetAllCharactersApiResult, GetCharacterApiResult } from './types/api-schema-bindings.types';
2
+ import { CreateCharacterApiBody, CreateCharacterApiResult, DeleteCharacterApiBody, DeleteCharacterApiResult, GetAllCharactersApiQuery, GetAllCharactersApiResult, GetCharacterApiResult } from './types/api-schema-bindings.types';
3
3
  export declare class ArtifactsCharactersApi {
4
4
  private readonly httpClient;
5
5
  constructor(httpClient: ArtifactsHttpClient);
@@ -9,4 +9,6 @@ export declare class ArtifactsCharactersApi {
9
9
  getAll(params?: GetAllCharactersApiQuery): Promise<GetAllCharactersApiResult>;
10
10
  /** Fetch characters details. */
11
11
  get(name: string): Promise<GetCharacterApiResult>;
12
+ /** Delete character on your account. */
13
+ delete(body: DeleteCharacterApiBody): Promise<DeleteCharacterApiResult>;
12
14
  }
@@ -23,5 +23,12 @@ class ArtifactsCharactersApi {
23
23
  get(name) {
24
24
  return this.httpClient.get(`/characters/${name}`);
25
25
  }
26
+ /** Delete character on your account. */
27
+ delete(body) {
28
+ return this.httpClient.post('/characters/delete', {
29
+ body,
30
+ isSecure: true,
31
+ });
32
+ }
26
33
  }
27
34
  exports.ArtifactsCharactersApi = ArtifactsCharactersApi;
@@ -62,3 +62,5 @@ export type GetAllResourcesApiQuery = paths['/resources/']['get']['parameters'][
62
62
  export type GetAllResourcesApiResult = paths['/resources/']['get']['responses'][200]['content']['application/json'];
63
63
  export type GetResourceApiResult = paths['/resources/{code}']['get']['responses'][200]['content']['application/json'];
64
64
  export type GenerateTokenResult = paths['/token/']['post']['responses'][200]['content']['application/json'];
65
+ export type DeleteCharacterApiBody = paths['/characters/delete']['post']['requestBody']['content']['application/json'];
66
+ export type DeleteCharacterApiResult = paths['/characters/delete']['post']['responses'][200]['content']['application/json'];
@@ -463,6 +463,26 @@ export interface paths {
463
463
  patch?: never;
464
464
  trace?: never;
465
465
  };
466
+ '/characters/delete': {
467
+ parameters: {
468
+ query?: never;
469
+ header?: never;
470
+ path?: never;
471
+ cookie?: never;
472
+ };
473
+ get?: never;
474
+ put?: never;
475
+ /**
476
+ * Delete Character
477
+ * @description Delete character on your account.
478
+ */
479
+ post: operations['delete_character_characters_delete_post'];
480
+ delete?: never;
481
+ options?: never;
482
+ head?: never;
483
+ patch?: never;
484
+ trace?: never;
485
+ };
466
486
  '/characters/': {
467
487
  parameters: {
468
488
  query?: never;
@@ -791,6 +811,38 @@ export interface components {
791
811
  ActionItemBankResponseSchema: {
792
812
  data: components['schemas']['BankItemSchema'];
793
813
  };
814
+ /** ActiveEventSchema */
815
+ ActiveEventSchema: {
816
+ /**
817
+ * Name
818
+ * @description Name of the event.
819
+ */
820
+ name: string;
821
+ /** @description Map of the event. */
822
+ map: components['schemas']['MapSchema'];
823
+ /**
824
+ * Previous Skin
825
+ * @description Previous map skin.
826
+ */
827
+ previous_skin: string;
828
+ /**
829
+ * Duration
830
+ * @description Duration in minutes.
831
+ */
832
+ duration: number;
833
+ /**
834
+ * Expiration
835
+ * Format: date-time
836
+ * @description Expiration datetime.
837
+ */
838
+ expiration: string;
839
+ /**
840
+ * Created At
841
+ * Format: date-time
842
+ * @description Start datetime.
843
+ */
844
+ created_at: string;
845
+ };
794
846
  /** AddAccountSchema */
795
847
  AddAccountSchema: {
796
848
  /**
@@ -906,7 +958,7 @@ export interface components {
906
958
  /** @description Cooldown details */
907
959
  cooldown: components['schemas']['CooldownSchema'];
908
960
  /** @description Destination details. */
909
- destination: components['schemas']['DestinationResponseSchema'];
961
+ destination: components['schemas']['MapSchema'];
910
962
  /** @description Character details. */
911
963
  character: components['schemas']['CharacterSchema'];
912
964
  };
@@ -1276,206 +1328,6 @@ export interface components {
1276
1328
  * @description List of inventory slots.
1277
1329
  */
1278
1330
  inventory?: components['schemas']['InventorySlot'][];
1279
- /**
1280
- * Inventory Slot1
1281
- * @description Deprecated** Inventory slot 1.
1282
- */
1283
- inventory_slot1: string;
1284
- /**
1285
- * Inventory Slot1 Quantity
1286
- * @description Deprecated** Inventory 1 quantity.
1287
- */
1288
- inventory_slot1_quantity: number;
1289
- /**
1290
- * Inventory Slot2
1291
- * @description Deprecated** Inventory slot 2.
1292
- */
1293
- inventory_slot2: string;
1294
- /**
1295
- * Inventory Slot2 Quantity
1296
- * @description Deprecated** Inventory 2 quantity.
1297
- */
1298
- inventory_slot2_quantity: number;
1299
- /**
1300
- * Inventory Slot3
1301
- * @description Deprecated** Inventory slot 3.
1302
- */
1303
- inventory_slot3: string;
1304
- /**
1305
- * Inventory Slot3 Quantity
1306
- * @description Deprecated** Inventory 3 quantity.
1307
- */
1308
- inventory_slot3_quantity: number;
1309
- /**
1310
- * Inventory Slot4
1311
- * @description Deprecated** Inventory slot 4.
1312
- */
1313
- inventory_slot4: string;
1314
- /**
1315
- * Inventory Slot4 Quantity
1316
- * @description Deprecated** Inventory 4 quantity.
1317
- */
1318
- inventory_slot4_quantity: number;
1319
- /**
1320
- * Inventory Slot5
1321
- * @description Deprecated** Inventory slot 5.
1322
- */
1323
- inventory_slot5: string;
1324
- /**
1325
- * Inventory Slot5 Quantity
1326
- * @description Deprecated** Inventory 5 quantity.
1327
- */
1328
- inventory_slot5_quantity: number;
1329
- /**
1330
- * Inventory Slot6
1331
- * @description Deprecated** Inventory slot 6.
1332
- */
1333
- inventory_slot6: string;
1334
- /**
1335
- * Inventory Slot6 Quantity
1336
- * @description Deprecated** Inventory 6 quantity.
1337
- */
1338
- inventory_slot6_quantity: number;
1339
- /**
1340
- * Inventory Slot7
1341
- * @description Deprecated** Inventory slot 7.
1342
- */
1343
- inventory_slot7: string;
1344
- /**
1345
- * Inventory Slot7 Quantity
1346
- * @description Deprecated** Inventory 7 quantity.
1347
- */
1348
- inventory_slot7_quantity: number;
1349
- /**
1350
- * Inventory Slot8
1351
- * @description Deprecated** Inventory slot 8.
1352
- */
1353
- inventory_slot8: string;
1354
- /**
1355
- * Inventory Slot8 Quantity
1356
- * @description Deprecated** Inventory 8 quantity.
1357
- */
1358
- inventory_slot8_quantity: number;
1359
- /**
1360
- * Inventory Slot9
1361
- * @description Deprecated** Inventory slot 9.
1362
- */
1363
- inventory_slot9: string;
1364
- /**
1365
- * Inventory Slot9 Quantity
1366
- * @description Deprecated** Inventory 9 quantity.
1367
- */
1368
- inventory_slot9_quantity: number;
1369
- /**
1370
- * Inventory Slot10
1371
- * @description Deprecated** Inventory slot 10.
1372
- */
1373
- inventory_slot10: string;
1374
- /**
1375
- * Inventory Slot10 Quantity
1376
- * @description Deprecated** Inventory 10 quantity.
1377
- */
1378
- inventory_slot10_quantity: number;
1379
- /**
1380
- * Inventory Slot11
1381
- * @description Deprecated** Inventory slot 11.
1382
- */
1383
- inventory_slot11: string;
1384
- /**
1385
- * Inventory Slot11 Quantity
1386
- * @description Deprecated** Inventory 11 quantity.
1387
- */
1388
- inventory_slot11_quantity: number;
1389
- /**
1390
- * Inventory Slot12
1391
- * @description Deprecated** nventory slot 12.
1392
- */
1393
- inventory_slot12: string;
1394
- /**
1395
- * Inventory Slot12 Quantity
1396
- * @description Deprecated** Inventory 12 quantity.
1397
- */
1398
- inventory_slot12_quantity: number;
1399
- /**
1400
- * Inventory Slot13
1401
- * @description Deprecated** Inventory slot 13.
1402
- */
1403
- inventory_slot13: string;
1404
- /**
1405
- * Inventory Slot13 Quantity
1406
- * @description Deprecated** Inventory 13 quantity.
1407
- */
1408
- inventory_slot13_quantity: number;
1409
- /**
1410
- * Inventory Slot14
1411
- * @description Deprecated** Inventory slot 14.
1412
- */
1413
- inventory_slot14: string;
1414
- /**
1415
- * Inventory Slot14 Quantity
1416
- * @description Deprecated** Inventory 14 quantity.
1417
- */
1418
- inventory_slot14_quantity: number;
1419
- /**
1420
- * Inventory Slot15
1421
- * @description Deprecated** Inventory slot 15.
1422
- */
1423
- inventory_slot15: string;
1424
- /**
1425
- * Inventory Slot15 Quantity
1426
- * @description Deprecated** Inventory 15 quantity.
1427
- */
1428
- inventory_slot15_quantity: number;
1429
- /**
1430
- * Inventory Slot16
1431
- * @description Deprecated** Inventory slot 16.
1432
- */
1433
- inventory_slot16: string;
1434
- /**
1435
- * Inventory Slot16 Quantity
1436
- * @description Deprecated** Inventory 16 quantity.
1437
- */
1438
- inventory_slot16_quantity: number;
1439
- /**
1440
- * Inventory Slot17
1441
- * @description Deprecated** Inventory slot 17.
1442
- */
1443
- inventory_slot17: string;
1444
- /**
1445
- * Inventory Slot17 Quantity
1446
- * @description Deprecated** Inventory 17 quantity.
1447
- */
1448
- inventory_slot17_quantity: number;
1449
- /**
1450
- * Inventory Slot18
1451
- * @description Deprecated** Inventory slot 18.
1452
- */
1453
- inventory_slot18: string;
1454
- /**
1455
- * Inventory Slot18 Quantity
1456
- * @description Deprecated** Inventory 18 quantity.
1457
- */
1458
- inventory_slot18_quantity: number;
1459
- /**
1460
- * Inventory Slot19
1461
- * @description Deprecated** Inventory slot 19.
1462
- */
1463
- inventory_slot19: string;
1464
- /**
1465
- * Inventory Slot19 Quantity
1466
- * @description Deprecated** Inventory 19 quantity.
1467
- */
1468
- inventory_slot19_quantity: number;
1469
- /**
1470
- * Inventory Slot20
1471
- * @description Deprecated** Inventory slot 20.
1472
- */
1473
- inventory_slot20: string;
1474
- /**
1475
- * Inventory Slot20 Quantity
1476
- * @description Deprecated** Inventory 20 quantity.
1477
- */
1478
- inventory_slot20_quantity: number;
1479
1331
  };
1480
1332
  /** CooldownSchema */
1481
1333
  CooldownSchema: {
@@ -1489,16 +1341,6 @@ export interface components {
1489
1341
  * @description The remaining seconds of the cooldown.
1490
1342
  */
1491
1343
  remaining_seconds: number;
1492
- /**
1493
- * Totalseconds
1494
- * @description Deprecated** The total seconds of the cooldown.
1495
- */
1496
- totalSeconds: number;
1497
- /**
1498
- * Remainingseconds
1499
- * @description Deprecated** The remaining seconds of the cooldown.
1500
- */
1501
- remainingSeconds: number;
1502
1344
  /**
1503
1345
  * Started At
1504
1346
  * Format: date-time
@@ -1555,10 +1397,10 @@ export interface components {
1555
1397
  */
1556
1398
  quantity: number;
1557
1399
  };
1558
- /** DataPage[CharacterSchema] */
1559
- DataPage_CharacterSchema_: {
1400
+ /** DataPage[ActiveEventSchema] */
1401
+ DataPage_ActiveEventSchema_: {
1560
1402
  /** Data */
1561
- data: components['schemas']['CharacterSchema'][];
1403
+ data: components['schemas']['ActiveEventSchema'][];
1562
1404
  /** Total */
1563
1405
  total: number | null;
1564
1406
  /** Page */
@@ -1568,10 +1410,10 @@ export interface components {
1568
1410
  /** Pages */
1569
1411
  pages?: number | null;
1570
1412
  };
1571
- /** DataPage[EventSchema] */
1572
- DataPage_EventSchema_: {
1413
+ /** DataPage[CharacterSchema] */
1414
+ DataPage_CharacterSchema_: {
1573
1415
  /** Data */
1574
- data: components['schemas']['EventSchema'][];
1416
+ data: components['schemas']['CharacterSchema'][];
1575
1417
  /** Total */
1576
1418
  total: number | null;
1577
1419
  /** Page */
@@ -1672,6 +1514,14 @@ export interface components {
1672
1514
  /** Pages */
1673
1515
  pages?: number | null;
1674
1516
  };
1517
+ /** DeleteCharacterSchema */
1518
+ DeleteCharacterSchema: {
1519
+ /**
1520
+ * Name
1521
+ * @description Character name.
1522
+ */
1523
+ name: string;
1524
+ };
1675
1525
  /** DeleteItemResponseSchema */
1676
1526
  DeleteItemResponseSchema: {
1677
1527
  data: components['schemas']['DeleteItemSchema'];
@@ -1693,29 +1543,6 @@ export interface components {
1693
1543
  */
1694
1544
  quantity: number;
1695
1545
  };
1696
- /** DestinationResponseSchema */
1697
- DestinationResponseSchema: {
1698
- /**
1699
- * Name
1700
- * @description The name of the destination.
1701
- */
1702
- name: string;
1703
- /**
1704
- * X
1705
- * @description The x coordinate of the destination.
1706
- */
1707
- x: number;
1708
- /**
1709
- * Y
1710
- * @description The y coordinate of the destination.
1711
- */
1712
- y: number;
1713
- /**
1714
- * Content
1715
- * @description Content of the destination.
1716
- */
1717
- content: unknown;
1718
- };
1719
1546
  /** DestinationSchema */
1720
1547
  DestinationSchema: {
1721
1548
  /**
@@ -1798,38 +1625,6 @@ export interface components {
1798
1625
  EquipmentResponseSchema: {
1799
1626
  data: components['schemas']['EquipRequestSchema'];
1800
1627
  };
1801
- /** EventSchema */
1802
- EventSchema: {
1803
- /**
1804
- * Name
1805
- * @description Name of the event.
1806
- */
1807
- name: string;
1808
- /** @description Map of the event. */
1809
- map: components['schemas']['MapSchema'];
1810
- /**
1811
- * Previous Skin
1812
- * @description Previous map skin.
1813
- */
1814
- previous_skin: string;
1815
- /**
1816
- * Duration
1817
- * @description Duration in minutes.
1818
- */
1819
- duration: number;
1820
- /**
1821
- * Expiration
1822
- * Format: date-time
1823
- * @description Expiration datetime.
1824
- */
1825
- expiration: string;
1826
- /**
1827
- * Created At
1828
- * Format: date-time
1829
- * @description Start datetime.
1830
- */
1831
- created_at: string;
1832
- };
1833
1628
  /** FightSchema */
1834
1629
  FightSchema: {
1835
1630
  /**
@@ -3855,11 +3650,42 @@ export interface operations {
3855
3650
  };
3856
3651
  };
3857
3652
  };
3653
+ delete_character_characters_delete_post: {
3654
+ parameters: {
3655
+ query?: never;
3656
+ header?: never;
3657
+ path?: never;
3658
+ cookie?: never;
3659
+ };
3660
+ requestBody: {
3661
+ content: {
3662
+ 'application/json': components['schemas']['DeleteCharacterSchema'];
3663
+ };
3664
+ };
3665
+ responses: {
3666
+ /** @description Successfully deleted character. */
3667
+ 200: {
3668
+ headers: {
3669
+ [name: string]: unknown;
3670
+ };
3671
+ content: {
3672
+ 'application/json': components['schemas']['CharacterResponseSchema'];
3673
+ };
3674
+ };
3675
+ /** @description Character not found. */
3676
+ 498: {
3677
+ headers: {
3678
+ [name: string]: unknown;
3679
+ };
3680
+ content?: never;
3681
+ };
3682
+ };
3683
+ };
3858
3684
  get_all_characters_characters__get: {
3859
3685
  parameters: {
3860
3686
  query?: {
3861
- /** @description Default sort by total XP. */
3862
- sort?: 'woodcutting' | 'mining' | 'fishing' | 'weaponcrafting' | 'gearcrafting' | 'jewelrycrafting' | 'cooking';
3687
+ /** @description Default sort by combat total XP. */
3688
+ sort?: 'woodcutting' | 'mining' | 'fishing' | 'weaponcrafting' | 'gearcrafting' | 'jewelrycrafting' | 'cooking' | 'gold';
3863
3689
  /** @description Page number */
3864
3690
  page?: number;
3865
3691
  /** @description Page size */
@@ -4231,7 +4057,7 @@ export interface operations {
4231
4057
  [name: string]: unknown;
4232
4058
  };
4233
4059
  content: {
4234
- 'application/json': components['schemas']['DataPage_EventSchema_'];
4060
+ 'application/json': components['schemas']['DataPage_ActiveEventSchema_'];
4235
4061
  };
4236
4062
  };
4237
4063
  /** @description Events not found. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artifacts-api-client",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "Api client for https://artifactsmmo.com",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://github.com/siranweb/artifacts-api-client.git",