@swishapp/api-client 0.4.0 → 0.5.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/dist/index.d.ts CHANGED
@@ -34,8 +34,8 @@ export declare class SwishClient {
34
34
  data?: import("./client").List;
35
35
  }) | undefined>;
36
36
  };
37
- readonly profile: {
38
- createToken: (body: CreateProfileTokenInput) => Promise<(import("./client").Response & {
37
+ readonly profiles: {
38
+ createToken: (body?: CreateProfileTokenInput) => Promise<(import("./client").Response & {
39
39
  data?: import("./client").CreateProfileTokenResponse;
40
40
  }) | undefined>;
41
41
  identifyProfile: (body: IdentifyProfileInput) => Promise<(import("./client").Response & {
package/dist/index.js CHANGED
@@ -18,8 +18,8 @@ export class SwishClient {
18
18
  deleteById: (listId) => this.handleRequest(listControllerDeleteById(this.addHeaders({ path: { listId } }))),
19
19
  updateById: (listId, body) => this.handleRequest(listControllerUpdateById(this.addHeaders({ body, path: { listId } }))),
20
20
  };
21
- this.profile = {
22
- createToken: (body) => this.handleRequest(profileControllerCreateToken(this.addHeaders({ body }))),
21
+ this.profiles = {
22
+ createToken: (body = {}) => this.handleRequest(profileControllerCreateToken(this.addHeaders({ body }))),
23
23
  identifyProfile: (body) => this.handleRequest(profileControllerIdentifyProfile(this.addHeaders({ body }))),
24
24
  };
25
25
  this.addHeaders = (options) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swishapp/api-client",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "API client for the Swish API",
5
5
  "website": "https://swish.app",
6
6
  "type": "module",