@arrowsphere/api-client 3.13.0-rc.1 → 3.13.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/CHANGELOG.md CHANGED
@@ -3,11 +3,11 @@
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.13.0] - 2022-08-25
6
+ ## [3.13.0] - 2022-08-26
7
7
 
8
8
  ### Changed
9
9
 
10
- - add endpoint campaign email for landing page campaign
10
+ - add endpoint campaign email for campaign landing page
11
11
 
12
12
  ## [3.12.0] - 2022-08-22
13
13
 
@@ -2,11 +2,16 @@ import { AbstractClient, Parameters } from '../abstractClient';
2
2
  import { GetResult } from '../getResult';
3
3
  import { Campaign } from './entities/campaign/campaign';
4
4
  import { CampaignAssets } from './entities/campaignAssets/campaignAssets';
5
- export declare type POST_EMAIL_CAMPAIGN = {
6
- application: string;
7
- metadata: {
8
- [keys in string]: string;
9
- };
5
+ export declare enum PostEmailCampaignFields {
6
+ COLUMN_APPLICATION = "application",
7
+ COLUMN_METADATA = "metadata"
8
+ }
9
+ export declare type PostEmailCampaignType = {
10
+ [PostEmailCampaignFields.COLUMN_APPLICATION]: string;
11
+ [PostEmailCampaignFields.COLUMN_METADATA]: PostEmailCampaignMetadataType;
12
+ };
13
+ export declare type PostEmailCampaignMetadataType = {
14
+ [keys in string]: string;
10
15
  };
11
16
  export declare class CampaignClient extends AbstractClient {
12
17
  /**
@@ -16,5 +21,5 @@ export declare class CampaignClient extends AbstractClient {
16
21
  getActiveCampaign(parameters?: Parameters): Promise<GetResult<Campaign>>;
17
22
  getCampaignAssets(campaignReference: string, parameters?: Parameters): Promise<GetResult<CampaignAssets>>;
18
23
  getCampaignDetails(campaignReference: string, parameters?: Parameters): Promise<GetResult<Campaign>>;
19
- postCampaignEmail(campaignReference: string, postData: POST_EMAIL_CAMPAIGN, parameters?: Parameters): Promise<void>;
24
+ postCampaignEmail(campaignReference: string, postData: PostEmailCampaignType, parameters?: Parameters): Promise<void>;
20
25
  }
@@ -1,10 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CampaignClient = void 0;
3
+ exports.CampaignClient = exports.PostEmailCampaignFields = void 0;
4
4
  const abstractClient_1 = require("../abstractClient");
5
5
  const getResult_1 = require("../getResult");
6
6
  const campaign_1 = require("./entities/campaign/campaign");
7
7
  const campaignAssets_1 = require("./entities/campaignAssets/campaignAssets");
8
+ var PostEmailCampaignFields;
9
+ (function (PostEmailCampaignFields) {
10
+ PostEmailCampaignFields["COLUMN_APPLICATION"] = "application";
11
+ PostEmailCampaignFields["COLUMN_METADATA"] = "metadata";
12
+ })(PostEmailCampaignFields = exports.PostEmailCampaignFields || (exports.PostEmailCampaignFields = {}));
8
13
  class CampaignClient extends abstractClient_1.AbstractClient {
9
14
  constructor() {
10
15
  super(...arguments);
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.13.0-rc.1",
7
+ "version": "3.13.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "dependencies": {
81
81
  "@types/validatorjs": "3.15.0",
82
- "axios": "0.21.1",
82
+ "axios": "0.21.2",
83
83
  "graphql": "^16.3.0",
84
84
  "graphql-request": "4.2.0",
85
85
  "validatorjs": "3.22.1"