artifacts-api-client 1.0.0 → 1.1.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.
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ export declare class ArtifactsMyCharactersApi {
|
|
|
14
14
|
/** Harvest a resource on the character's map. */
|
|
15
15
|
gathering(name: string): Promise<components['schemas']['SkillResponseSchema']>;
|
|
16
16
|
/** Crafting an item. The character must be on a map with a workshop. */
|
|
17
|
-
crafting(name: string): Promise<components['schemas']['SkillResponseSchema']>;
|
|
17
|
+
crafting(name: string, body: components['schemas']['CraftingSchema']): Promise<components['schemas']['SkillResponseSchema']>;
|
|
18
18
|
/** Deposit an item in a bank on the character's map. */
|
|
19
19
|
depositBank(name: string, body: components['schemas']['SimpleItemSchema']): Promise<components['schemas']['ActionItemBankResponseSchema']>;
|
|
20
20
|
/** Deposit golds in a bank on the character's map. */
|
|
@@ -37,8 +37,6 @@ export declare class ArtifactsMyCharactersApi {
|
|
|
37
37
|
exchangeTask(name: string): Promise<components['schemas']['TaskRewardResponseSchema']>;
|
|
38
38
|
/** Delete an item from your character's inventory. */
|
|
39
39
|
deleteItem(name: string, body: components['schemas']['SimpleItemSchema']): Promise<components['schemas']['DeleteItemResponseSchema']>;
|
|
40
|
-
/** History of your character's last 100 actions. */
|
|
41
|
-
getCharacterLogs(name: string, params?: operations['get_character_logs_my__name__logs_get']['parameters']['query']): Promise<components['schemas']['DataPage_LogSchema_']>;
|
|
42
40
|
/** History of the last 100 actions of all your characters. */
|
|
43
41
|
getLogs(params?: operations['get_all_characters_logs_my_logs_get']['parameters']['query']): Promise<components['schemas']['DataPage_LogSchema_']>;
|
|
44
42
|
/** List of your characters. */
|
|
@@ -27,8 +27,8 @@ class ArtifactsMyCharactersApi {
|
|
|
27
27
|
return this.httpClient.post(`/my/${name}/action/gathering`, { isSecure: true });
|
|
28
28
|
}
|
|
29
29
|
/** Crafting an item. The character must be on a map with a workshop. */
|
|
30
|
-
crafting(name) {
|
|
31
|
-
return this.httpClient.post(`/my/${name}/action/crafting`, { isSecure: true });
|
|
30
|
+
crafting(name, body) {
|
|
31
|
+
return this.httpClient.post(`/my/${name}/action/crafting`, { body, isSecure: true });
|
|
32
32
|
}
|
|
33
33
|
/** Deposit an item in a bank on the character's map. */
|
|
34
34
|
depositBank(name, body) {
|
|
@@ -74,13 +74,6 @@ class ArtifactsMyCharactersApi {
|
|
|
74
74
|
deleteItem(name, body) {
|
|
75
75
|
return this.httpClient.post(`/my/${name}/action/delete`, { body, isSecure: true });
|
|
76
76
|
}
|
|
77
|
-
/** History of your character's last 100 actions. */
|
|
78
|
-
getCharacterLogs(name, params = {}) {
|
|
79
|
-
return this.httpClient.get(`/my/${name}/logs`, {
|
|
80
|
-
query: params,
|
|
81
|
-
isSecure: true,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
77
|
/** History of the last 100 actions of all your characters. */
|
|
85
78
|
getLogs(params = {}) {
|
|
86
79
|
return this.httpClient.get(`/my/logs`, {
|
|
@@ -343,26 +343,6 @@ export interface paths {
|
|
|
343
343
|
patch?: never;
|
|
344
344
|
trace?: never;
|
|
345
345
|
};
|
|
346
|
-
'/my/{name}/logs': {
|
|
347
|
-
parameters: {
|
|
348
|
-
query?: never;
|
|
349
|
-
header?: never;
|
|
350
|
-
path?: never;
|
|
351
|
-
cookie?: never;
|
|
352
|
-
};
|
|
353
|
-
/**
|
|
354
|
-
* Get Character Logs
|
|
355
|
-
* @description History of your character's last 100 actions.
|
|
356
|
-
*/
|
|
357
|
-
get: operations['get_character_logs_my__name__logs_get'];
|
|
358
|
-
put?: never;
|
|
359
|
-
post?: never;
|
|
360
|
-
delete?: never;
|
|
361
|
-
options?: never;
|
|
362
|
-
head?: never;
|
|
363
|
-
patch?: never;
|
|
364
|
-
trace?: never;
|
|
365
|
-
};
|
|
366
346
|
'/my/logs': {
|
|
367
347
|
parameters: {
|
|
368
348
|
query?: never;
|
|
@@ -671,10 +651,10 @@ export interface paths {
|
|
|
671
651
|
cookie?: never;
|
|
672
652
|
};
|
|
673
653
|
/**
|
|
674
|
-
* Get
|
|
654
|
+
* Get Resource
|
|
675
655
|
* @description Retrieve the details of a resource.
|
|
676
656
|
*/
|
|
677
|
-
get: operations['
|
|
657
|
+
get: operations['get_resource_resources__code__get'];
|
|
678
658
|
put?: never;
|
|
679
659
|
post?: never;
|
|
680
660
|
delete?: never;
|
|
@@ -1519,6 +1499,12 @@ export interface components {
|
|
|
1519
1499
|
* @description Deprecated** The remaining seconds of the cooldown.
|
|
1520
1500
|
*/
|
|
1521
1501
|
remainingSeconds: number;
|
|
1502
|
+
/**
|
|
1503
|
+
* Started At
|
|
1504
|
+
* Format: date-time
|
|
1505
|
+
* @description The start of the cooldown.
|
|
1506
|
+
*/
|
|
1507
|
+
started_at: string;
|
|
1522
1508
|
/**
|
|
1523
1509
|
* Expiration
|
|
1524
1510
|
* Format: date-time
|
|
@@ -3680,7 +3666,7 @@ export interface operations {
|
|
|
3680
3666
|
};
|
|
3681
3667
|
};
|
|
3682
3668
|
};
|
|
3683
|
-
|
|
3669
|
+
get_all_characters_logs_my_logs_get: {
|
|
3684
3670
|
parameters: {
|
|
3685
3671
|
query?: {
|
|
3686
3672
|
/** @description Page number */
|
|
@@ -3689,10 +3675,7 @@ export interface operations {
|
|
|
3689
3675
|
size?: number;
|
|
3690
3676
|
};
|
|
3691
3677
|
header?: never;
|
|
3692
|
-
path
|
|
3693
|
-
/** @description Name of your character. */
|
|
3694
|
-
name: string;
|
|
3695
|
-
};
|
|
3678
|
+
path?: never;
|
|
3696
3679
|
cookie?: never;
|
|
3697
3680
|
};
|
|
3698
3681
|
requestBody?: never;
|
|
@@ -3722,38 +3705,6 @@ export interface operations {
|
|
|
3722
3705
|
};
|
|
3723
3706
|
};
|
|
3724
3707
|
};
|
|
3725
|
-
get_all_characters_logs_my_logs_get: {
|
|
3726
|
-
parameters: {
|
|
3727
|
-
query?: {
|
|
3728
|
-
/** @description Page number */
|
|
3729
|
-
page?: number;
|
|
3730
|
-
/** @description Page size */
|
|
3731
|
-
size?: number;
|
|
3732
|
-
};
|
|
3733
|
-
header?: never;
|
|
3734
|
-
path?: never;
|
|
3735
|
-
cookie?: never;
|
|
3736
|
-
};
|
|
3737
|
-
requestBody?: never;
|
|
3738
|
-
responses: {
|
|
3739
|
-
/** @description Successfully fetched logs. */
|
|
3740
|
-
200: {
|
|
3741
|
-
headers: {
|
|
3742
|
-
[name: string]: unknown;
|
|
3743
|
-
};
|
|
3744
|
-
content: {
|
|
3745
|
-
'application/json': components['schemas']['DataPage_LogSchema_'];
|
|
3746
|
-
};
|
|
3747
|
-
};
|
|
3748
|
-
/** @description Logs not found. */
|
|
3749
|
-
404: {
|
|
3750
|
-
headers: {
|
|
3751
|
-
[name: string]: unknown;
|
|
3752
|
-
};
|
|
3753
|
-
content?: never;
|
|
3754
|
-
};
|
|
3755
|
-
};
|
|
3756
|
-
};
|
|
3757
3708
|
get_my_characters_my_characters_get: {
|
|
3758
3709
|
parameters: {
|
|
3759
3710
|
query?: never;
|
|
@@ -4227,7 +4178,7 @@ export interface operations {
|
|
|
4227
4178
|
};
|
|
4228
4179
|
};
|
|
4229
4180
|
};
|
|
4230
|
-
|
|
4181
|
+
get_resource_resources__code__get: {
|
|
4231
4182
|
parameters: {
|
|
4232
4183
|
query?: never;
|
|
4233
4184
|
header?: never;
|