@arrowsphere/api-client 3.10.0 → 3.11.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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.11.0] - 2022-08-02
7
+
8
+ ### Changed
9
+
10
+ - add new endpoint campaign details
11
+
6
12
  ## [3.10.0] - 2022-07-28
7
13
 
8
14
  ### Changed
@@ -9,4 +9,5 @@ export declare class CampaignClient extends AbstractClient {
9
9
  protected basePath: string;
10
10
  getActiveCampaign(parameters?: Parameters): Promise<GetResult<Campaign>>;
11
11
  getCampaignAssets(campaignReference: string, parameters?: Parameters): Promise<GetResult<CampaignAssets>>;
12
+ getCampaignDetails(campaignReference: string, parameters?: Parameters): Promise<GetResult<Campaign>>;
12
13
  }
@@ -21,6 +21,10 @@ class CampaignClient extends abstractClient_1.AbstractClient {
21
21
  this.path = `/${campaignReference}/assets`;
22
22
  return new getResult_1.GetResult(campaignAssets_1.CampaignAssets, await this.get(parameters));
23
23
  }
24
+ async getCampaignDetails(campaignReference, parameters = {}) {
25
+ this.path = `/${campaignReference}`;
26
+ return new getResult_1.GetResult(campaign_1.Campaign, await this.get(parameters));
27
+ }
24
28
  }
25
29
  exports.CampaignClient = CampaignClient;
26
30
  //# sourceMappingURL=campaignClient.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.10.0",
7
+ "version": "3.11.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",