artifacts-api-client 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -68,5 +68,9 @@ try {
68
68
  ```
69
69
 
70
70
  ## Changelog
71
+
72
+ ### v1.0.1
73
+ * Fixed `myCharacters.crafting()` method. Missing body added
74
+
71
75
  ### v1.0.0
72
76
  * Supported API version: 1.3
@@ -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. */
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artifacts-api-client",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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",