Socket
Socket
Sign inDemoInstall

sib-api-v3-sdk

Package Overview
Dependencies
38
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.1.2 to 7.1.3

docs/AddChildDomain.md

287

docs/ResellerApi.md

@@ -9,8 +9,13 @@ # SibApiV3Sdk.ResellerApi

[**associateIpToChild**](ResellerApi.md#associateIpToChild) | **POST** /reseller/children/{childAuthKey}/ips/associate | Associate a dedicated IP to the child
[**createChildDomain**](ResellerApi.md#createChildDomain) | **POST** /reseller/children/{childAuthKey}/domains | Creates a domain for a child account
[**createResellerChild**](ResellerApi.md#createResellerChild) | **POST** /reseller/children | Creates a reseller child
[**deleteChildDomain**](ResellerApi.md#deleteChildDomain) | **DELETE** /reseller/children/{childAuthKey}/domains/{domainName} | Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed
[**deleteResellerChild**](ResellerApi.md#deleteResellerChild) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied
[**dissociateIpFromChild**](ResellerApi.md#dissociateIpFromChild) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child
[**getChildDomains**](ResellerApi.md#getChildDomains) | **GET** /reseller/children/{childAuthKey}/domains | Gets all the sender domains of a specific child account
[**getChildInfo**](ResellerApi.md#getChildInfo) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
[**getResellerChilds**](ResellerApi.md#getResellerChilds) | **GET** /reseller/children | Gets the list of all reseller's children accounts
[**getSsoToken**](ResellerApi.md#getSsoToken) | **GET** /reseller/children/{childAuthKey}/auth | Generates a session token which will remain valid for a short period of time only.
[**removeCredits**](ResellerApi.md#removeCredits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account
[**updateChildDomain**](ResellerApi.md#updateChildDomain) | **PUT** /reseller/children/{childAuthKey}/domains/{domainName} | Updates the sender domain of reseller's child based on the childAuthKey and domainName passed
[**updateResellerChild**](ResellerApi.md#updateResellerChild) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied

@@ -133,2 +138,59 @@

<a name="createChildDomain"></a>
# **createChildDomain**
> createChildDomain(childAuthKey, addChildDomain)
Creates a domain for a child account
### Example
```javascript
var SibApiV3Sdk = require('sib-api-v3-sdk');
var defaultClient = SibApiV3Sdk.ApiClient.instance;
// Configure API key authorization: api-key
var apiKey = defaultClient.authentications['api-key'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
// Configure API key authorization: partner-key
var partnerKey = defaultClient.authentications['partner-key'];
partnerKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.apiKeyPrefix = 'Token';
var apiInstance = new SibApiV3Sdk.ResellerApi();
var childAuthKey = "childAuthKey_example"; // String | auth key of reseller's child
var addChildDomain = new SibApiV3Sdk.AddChildDomain(); // AddChildDomain | Sender domain to add for a specific child account
apiInstance.createChildDomain(childAuthKey, addChildDomain).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**childAuthKey** | **String**| auth key of reseller&#39;s child |
**addChildDomain** | [**AddChildDomain**](AddChildDomain.md)| Sender domain to add for a specific child account |
### Return type
null (empty response body)
### Authorization
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
<a name="createResellerChild"></a>

@@ -189,2 +251,59 @@ # **createResellerChild**

<a name="deleteChildDomain"></a>
# **deleteChildDomain**
> deleteChildDomain(childAuthKey, domainName)
Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed
### Example
```javascript
var SibApiV3Sdk = require('sib-api-v3-sdk');
var defaultClient = SibApiV3Sdk.ApiClient.instance;
// Configure API key authorization: api-key
var apiKey = defaultClient.authentications['api-key'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
// Configure API key authorization: partner-key
var partnerKey = defaultClient.authentications['partner-key'];
partnerKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.apiKeyPrefix = 'Token';
var apiInstance = new SibApiV3Sdk.ResellerApi();
var childAuthKey = "childAuthKey_example"; // String | auth key of reseller's child
var domainName = "domainName_example"; // String | Pass the existing domain that needs to be deleted
apiInstance.deleteChildDomain(childAuthKey, domainName).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**childAuthKey** | **String**| auth key of reseller&#39;s child |
**domainName** | **String**| Pass the existing domain that needs to be deleted |
### Return type
null (empty response body)
### Authorization
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
<a name="deleteResellerChild"></a>

@@ -301,2 +420,56 @@ # **deleteResellerChild**

<a name="getChildDomains"></a>
# **getChildDomains**
> GetChildDomains getChildDomains(childAuthKey)
Gets all the sender domains of a specific child account
### Example
```javascript
var SibApiV3Sdk = require('sib-api-v3-sdk');
var defaultClient = SibApiV3Sdk.ApiClient.instance;
// Configure API key authorization: api-key
var apiKey = defaultClient.authentications['api-key'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
// Configure API key authorization: partner-key
var partnerKey = defaultClient.authentications['partner-key'];
partnerKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.apiKeyPrefix = 'Token';
var apiInstance = new SibApiV3Sdk.ResellerApi();
var childAuthKey = "childAuthKey_example"; // String | auth key of reseller's child
apiInstance.getChildDomains(childAuthKey).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**childAuthKey** | **String**| auth key of reseller&#39;s child |
### Return type
[**GetChildDomains**](GetChildDomains.md)
### Authorization
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
<a name="getChildInfo"></a>

@@ -404,2 +577,56 @@ # **getChildInfo**

<a name="getSsoToken"></a>
# **getSsoToken**
> GetSsoToken getSsoToken(childAuthKey)
Generates a session token which will remain valid for a short period of time only.
### Example
```javascript
var SibApiV3Sdk = require('sib-api-v3-sdk');
var defaultClient = SibApiV3Sdk.ApiClient.instance;
// Configure API key authorization: api-key
var apiKey = defaultClient.authentications['api-key'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
// Configure API key authorization: partner-key
var partnerKey = defaultClient.authentications['partner-key'];
partnerKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.apiKeyPrefix = 'Token';
var apiInstance = new SibApiV3Sdk.ResellerApi();
var childAuthKey = "childAuthKey_example"; // String | auth key of reseller's child
apiInstance.getSsoToken(childAuthKey).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**childAuthKey** | **String**| auth key of reseller&#39;s child |
### Return type
[**GetSsoToken**](GetSsoToken.md)
### Authorization
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
<a name="removeCredits"></a>

@@ -462,2 +689,62 @@ # **removeCredits**

<a name="updateChildDomain"></a>
# **updateChildDomain**
> updateChildDomain(childAuthKey, domainName, updateChildDomain)
Updates the sender domain of reseller&#39;s child based on the childAuthKey and domainName passed
### Example
```javascript
var SibApiV3Sdk = require('sib-api-v3-sdk');
var defaultClient = SibApiV3Sdk.ApiClient.instance;
// Configure API key authorization: api-key
var apiKey = defaultClient.authentications['api-key'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
// Configure API key authorization: partner-key
var partnerKey = defaultClient.authentications['partner-key'];
partnerKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.apiKeyPrefix = 'Token';
var apiInstance = new SibApiV3Sdk.ResellerApi();
var childAuthKey = "childAuthKey_example"; // String | auth key of reseller's child
var domainName = "domainName_example"; // String | Pass the existing domain that needs to be updated
var updateChildDomain = new SibApiV3Sdk.UpdateChildDomain(); // UpdateChildDomain | value to update for sender domain
apiInstance.updateChildDomain(childAuthKey, domainName, updateChildDomain).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**childAuthKey** | **String**| auth key of reseller&#39;s child |
**domainName** | **String**| Pass the existing domain that needs to be updated |
**updateChildDomain** | [**UpdateChildDomain**](UpdateChildDomain.md)| value to update for sender domain |
### Return type
null (empty response body)
### Authorization
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
<a name="updateResellerChild"></a>

@@ -464,0 +751,0 @@ # **updateResellerChild**

2

package.json
{
"name": "sib-api-v3-sdk",
"version": "7.1.2",
"version": "7.1.3",
"description": "Official SendinBlue provided RESTFul API V3 nodejs library",

@@ -5,0 +5,0 @@ "license": "ISC",

@@ -178,8 +178,13 @@ # SendinBlue's API v3 Node.js Library

*SibApiV3Sdk.ResellerApi* | [**associateIpToChild**](docs/ResellerApi.md#associateIpToChild) | **POST** /reseller/children/{childAuthKey}/ips/associate | Associate a dedicated IP to the child
*SibApiV3Sdk.ResellerApi* | [**createChildDomain**](docs/ResellerApi.md#createChildDomain) | **POST** /reseller/children/{childAuthKey}/domains | Creates a domain for a child account
*SibApiV3Sdk.ResellerApi* | [**createResellerChild**](docs/ResellerApi.md#createResellerChild) | **POST** /reseller/children | Creates a reseller child
*SibApiV3Sdk.ResellerApi* | [**deleteChildDomain**](docs/ResellerApi.md#deleteChildDomain) | **DELETE** /reseller/children/{childAuthKey}/domains/{domainName} | Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed
*SibApiV3Sdk.ResellerApi* | [**deleteResellerChild**](docs/ResellerApi.md#deleteResellerChild) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied
*SibApiV3Sdk.ResellerApi* | [**dissociateIpFromChild**](docs/ResellerApi.md#dissociateIpFromChild) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child
*SibApiV3Sdk.ResellerApi* | [**getChildDomains**](docs/ResellerApi.md#getChildDomains) | **GET** /reseller/children/{childAuthKey}/domains | Gets all the sender domains of a specific child account
*SibApiV3Sdk.ResellerApi* | [**getChildInfo**](docs/ResellerApi.md#getChildInfo) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
*SibApiV3Sdk.ResellerApi* | [**getResellerChilds**](docs/ResellerApi.md#getResellerChilds) | **GET** /reseller/children | Gets the list of all reseller&#39;s children accounts
*SibApiV3Sdk.ResellerApi* | [**getSsoToken**](docs/ResellerApi.md#getSsoToken) | **GET** /reseller/children/{childAuthKey}/auth | Generates a session token which will remain valid for a short period of time only.
*SibApiV3Sdk.ResellerApi* | [**removeCredits**](docs/ResellerApi.md#removeCredits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account
*SibApiV3Sdk.ResellerApi* | [**updateChildDomain**](docs/ResellerApi.md#updateChildDomain) | **PUT** /reseller/children/{childAuthKey}/domains/{domainName} | Updates the sender domain of reseller&#39;s child based on the childAuthKey and domainName passed
*SibApiV3Sdk.ResellerApi* | [**updateResellerChild**](docs/ResellerApi.md#updateResellerChild) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller&#39;s child based on the childAuthKey supplied

@@ -227,2 +232,3 @@ *SibApiV3Sdk.SMSCampaignsApi* | [**createSmsCampaign**](docs/SMSCampaignsApi.md#createSmsCampaign) | **POST** /smsCampaigns | Creates an SMS campaign

- [SibApiV3Sdk.AddChildDomain](docs/AddChildDomain.md)
- [SibApiV3Sdk.AddContactToList](docs/AddContactToList.md)

@@ -266,2 +272,4 @@ - [SibApiV3Sdk.AddCredits](docs/AddCredits.md)

- [SibApiV3Sdk.GetCampaignStats](docs/GetCampaignStats.md)
- [SibApiV3Sdk.GetChildDomain](docs/GetChildDomain.md)
- [SibApiV3Sdk.GetChildDomains](docs/GetChildDomains.md)
- [SibApiV3Sdk.GetChildInfoApiKeys](docs/GetChildInfoApiKeys.md)

@@ -320,2 +328,3 @@ - [SibApiV3Sdk.GetChildInfoApiKeysV2](docs/GetChildInfoApiKeysV2.md)

- [SibApiV3Sdk.GetSmtpTemplates](docs/GetSmtpTemplates.md)
- [SibApiV3Sdk.GetSsoToken](docs/GetSsoToken.md)
- [SibApiV3Sdk.GetStatsByDomain](docs/GetStatsByDomain.md)

@@ -361,2 +370,3 @@ - [SibApiV3Sdk.GetTransacAggregatedSmsReport](docs/GetTransacAggregatedSmsReport.md)

- [SibApiV3Sdk.UpdateChild](docs/UpdateChild.md)
- [SibApiV3Sdk.UpdateChildDomain](docs/UpdateChildDomain.md)
- [SibApiV3Sdk.UpdateContact](docs/UpdateContact.md)

@@ -363,0 +373,0 @@ - [SibApiV3Sdk.UpdateEmailCampaign](docs/UpdateEmailCampaign.md)

@@ -20,6 +20,6 @@ /**

// AMD. Register as an anonymous module.
define(['ApiClient', 'model/AddCredits', 'model/CreateChild', 'model/CreateReseller', 'model/ErrorModel', 'model/GetChildInfo', 'model/GetChildrenList', 'model/ManageIp', 'model/RemainingCreditModel', 'model/RemoveCredits', 'model/UpdateChild'], factory);
define(['ApiClient', 'model/AddChildDomain', 'model/AddCredits', 'model/CreateChild', 'model/CreateReseller', 'model/ErrorModel', 'model/GetChildDomains', 'model/GetChildInfo', 'model/GetChildrenList', 'model/GetSsoToken', 'model/ManageIp', 'model/RemainingCreditModel', 'model/RemoveCredits', 'model/UpdateChild', 'model/UpdateChildDomain'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('../model/AddCredits'), require('../model/CreateChild'), require('../model/CreateReseller'), require('../model/ErrorModel'), require('../model/GetChildInfo'), require('../model/GetChildrenList'), require('../model/ManageIp'), require('../model/RemainingCreditModel'), require('../model/RemoveCredits'), require('../model/UpdateChild'));
module.exports = factory(require('../ApiClient'), require('../model/AddChildDomain'), require('../model/AddCredits'), require('../model/CreateChild'), require('../model/CreateReseller'), require('../model/ErrorModel'), require('../model/GetChildDomains'), require('../model/GetChildInfo'), require('../model/GetChildrenList'), require('../model/GetSsoToken'), require('../model/ManageIp'), require('../model/RemainingCreditModel'), require('../model/RemoveCredits'), require('../model/UpdateChild'), require('../model/UpdateChildDomain'));
} else {

@@ -30,5 +30,5 @@ // Browser globals (root is window)

}
root.SibApiV3Sdk.ResellerApi = factory(root.SibApiV3Sdk.ApiClient, root.SibApiV3Sdk.AddCredits, root.SibApiV3Sdk.CreateChild, root.SibApiV3Sdk.CreateReseller, root.SibApiV3Sdk.ErrorModel, root.SibApiV3Sdk.GetChildInfo, root.SibApiV3Sdk.GetChildrenList, root.SibApiV3Sdk.ManageIp, root.SibApiV3Sdk.RemainingCreditModel, root.SibApiV3Sdk.RemoveCredits, root.SibApiV3Sdk.UpdateChild);
root.SibApiV3Sdk.ResellerApi = factory(root.SibApiV3Sdk.ApiClient, root.SibApiV3Sdk.AddChildDomain, root.SibApiV3Sdk.AddCredits, root.SibApiV3Sdk.CreateChild, root.SibApiV3Sdk.CreateReseller, root.SibApiV3Sdk.ErrorModel, root.SibApiV3Sdk.GetChildDomains, root.SibApiV3Sdk.GetChildInfo, root.SibApiV3Sdk.GetChildrenList, root.SibApiV3Sdk.GetSsoToken, root.SibApiV3Sdk.ManageIp, root.SibApiV3Sdk.RemainingCreditModel, root.SibApiV3Sdk.RemoveCredits, root.SibApiV3Sdk.UpdateChild, root.SibApiV3Sdk.UpdateChildDomain);
}
}(this, function(ApiClient, AddCredits, CreateChild, CreateReseller, ErrorModel, GetChildInfo, GetChildrenList, ManageIp, RemainingCreditModel, RemoveCredits, UpdateChild) {
}(this, function(ApiClient, AddChildDomain, AddCredits, CreateChild, CreateReseller, ErrorModel, GetChildDomains, GetChildInfo, GetChildrenList, GetSsoToken, ManageIp, RemainingCreditModel, RemoveCredits, UpdateChild, UpdateChildDomain) {
'use strict';

@@ -171,2 +171,60 @@

/**
* Creates a domain for a child account
* @param {String} childAuthKey auth key of reseller&#39;s child
* @param {module:model/AddChildDomain} addChildDomain Sender domain to add for a specific child account
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
this.createChildDomainWithHttpInfo = function(childAuthKey, addChildDomain) {
var postBody = addChildDomain;
// verify the required parameter 'childAuthKey' is set
if (childAuthKey === undefined || childAuthKey === null) {
throw new Error("Missing the required parameter 'childAuthKey' when calling createChildDomain");
}
// verify the required parameter 'addChildDomain' is set
if (addChildDomain === undefined || addChildDomain === null) {
throw new Error("Missing the required parameter 'addChildDomain' when calling createChildDomain");
}
var pathParams = {
'childAuthKey': childAuthKey
};
var queryParams = {
};
var collectionQueryParams = {
};
var headerParams = {
};
var formParams = {
};
var authNames = ['api-key', 'partner-key'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = null;
return this.apiClient.callApi(
'/reseller/children/{childAuthKey}/domains', 'POST',
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType
);
}
/**
* Creates a domain for a child account
* @param {String} childAuthKey auth key of reseller&#39;s child
* @param {module:model/AddChildDomain} addChildDomain Sender domain to add for a specific child account
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
this.createChildDomain = function(childAuthKey, addChildDomain) {
return this.createChildDomainWithHttpInfo(childAuthKey, addChildDomain)
.then(function(response_and_data) {
return response_and_data.data;
});
}
/**
* Creates a reseller child

@@ -220,2 +278,61 @@ * @param {Object} opts Optional parameters

/**
* Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed
* @param {String} childAuthKey auth key of reseller&#39;s child
* @param {String} domainName Pass the existing domain that needs to be deleted
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
this.deleteChildDomainWithHttpInfo = function(childAuthKey, domainName) {
var postBody = null;
// verify the required parameter 'childAuthKey' is set
if (childAuthKey === undefined || childAuthKey === null) {
throw new Error("Missing the required parameter 'childAuthKey' when calling deleteChildDomain");
}
// verify the required parameter 'domainName' is set
if (domainName === undefined || domainName === null) {
throw new Error("Missing the required parameter 'domainName' when calling deleteChildDomain");
}
var pathParams = {
'childAuthKey': childAuthKey,
'domainName': domainName
};
var queryParams = {
};
var collectionQueryParams = {
};
var headerParams = {
};
var formParams = {
};
var authNames = ['api-key', 'partner-key'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = null;
return this.apiClient.callApi(
'/reseller/children/{childAuthKey}/domains/{domainName}', 'DELETE',
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType
);
}
/**
* Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed
* @param {String} childAuthKey auth key of reseller&#39;s child
* @param {String} domainName Pass the existing domain that needs to be deleted
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
this.deleteChildDomain = function(childAuthKey, domainName) {
return this.deleteChildDomainWithHttpInfo(childAuthKey, domainName)
.then(function(response_and_data) {
return response_and_data.data;
});
}
/**
* Deletes a single reseller child based on the childAuthKey supplied

@@ -330,2 +447,53 @@ * @param {String} childAuthKey auth key of reseller&#39;s child

/**
* Gets all the sender domains of a specific child account
* @param {String} childAuthKey auth key of reseller&#39;s child
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetChildDomains} and HTTP response
*/
this.getChildDomainsWithHttpInfo = function(childAuthKey) {
var postBody = null;
// verify the required parameter 'childAuthKey' is set
if (childAuthKey === undefined || childAuthKey === null) {
throw new Error("Missing the required parameter 'childAuthKey' when calling getChildDomains");
}
var pathParams = {
'childAuthKey': childAuthKey
};
var queryParams = {
};
var collectionQueryParams = {
};
var headerParams = {
};
var formParams = {
};
var authNames = ['api-key', 'partner-key'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = GetChildDomains;
return this.apiClient.callApi(
'/reseller/children/{childAuthKey}/domains', 'GET',
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType
);
}
/**
* Gets all the sender domains of a specific child account
* @param {String} childAuthKey auth key of reseller&#39;s child
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetChildDomains}
*/
this.getChildDomains = function(childAuthKey) {
return this.getChildDomainsWithHttpInfo(childAuthKey)
.then(function(response_and_data) {
return response_and_data.data;
});
}
/**
* Gets the info about a specific child account

@@ -425,2 +593,53 @@ * @param {String} childAuthKey auth key of reseller&#39;s child

/**
* Generates a session token which will remain valid for a short period of time only.
* @param {String} childAuthKey auth key of reseller&#39;s child
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSsoToken} and HTTP response
*/
this.getSsoTokenWithHttpInfo = function(childAuthKey) {
var postBody = null;
// verify the required parameter 'childAuthKey' is set
if (childAuthKey === undefined || childAuthKey === null) {
throw new Error("Missing the required parameter 'childAuthKey' when calling getSsoToken");
}
var pathParams = {
'childAuthKey': childAuthKey
};
var queryParams = {
};
var collectionQueryParams = {
};
var headerParams = {
};
var formParams = {
};
var authNames = ['api-key', 'partner-key'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = GetSsoToken;
return this.apiClient.callApi(
'/reseller/children/{childAuthKey}/auth', 'GET',
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType
);
}
/**
* Generates a session token which will remain valid for a short period of time only.
* @param {String} childAuthKey auth key of reseller&#39;s child
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSsoToken}
*/
this.getSsoToken = function(childAuthKey) {
return this.getSsoTokenWithHttpInfo(childAuthKey)
.then(function(response_and_data) {
return response_and_data.data;
});
}
/**
* Remove Email and/or SMS credits from a specific child account

@@ -484,2 +703,68 @@ * @param {String} childAuthKey auth key of reseller&#39;s child

/**
* Updates the sender domain of reseller&#39;s child based on the childAuthKey and domainName passed
* @param {String} childAuthKey auth key of reseller&#39;s child
* @param {String} domainName Pass the existing domain that needs to be updated
* @param {module:model/UpdateChildDomain} updateChildDomain value to update for sender domain
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
this.updateChildDomainWithHttpInfo = function(childAuthKey, domainName, updateChildDomain) {
var postBody = updateChildDomain;
// verify the required parameter 'childAuthKey' is set
if (childAuthKey === undefined || childAuthKey === null) {
throw new Error("Missing the required parameter 'childAuthKey' when calling updateChildDomain");
}
// verify the required parameter 'domainName' is set
if (domainName === undefined || domainName === null) {
throw new Error("Missing the required parameter 'domainName' when calling updateChildDomain");
}
// verify the required parameter 'updateChildDomain' is set
if (updateChildDomain === undefined || updateChildDomain === null) {
throw new Error("Missing the required parameter 'updateChildDomain' when calling updateChildDomain");
}
var pathParams = {
'childAuthKey': childAuthKey,
'domainName': domainName
};
var queryParams = {
};
var collectionQueryParams = {
};
var headerParams = {
};
var formParams = {
};
var authNames = ['api-key', 'partner-key'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = null;
return this.apiClient.callApi(
'/reseller/children/{childAuthKey}/domains/{domainName}', 'PUT',
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType
);
}
/**
* Updates the sender domain of reseller&#39;s child based on the childAuthKey and domainName passed
* @param {String} childAuthKey auth key of reseller&#39;s child
* @param {String} domainName Pass the existing domain that needs to be updated
* @param {module:model/UpdateChildDomain} updateChildDomain value to update for sender domain
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
this.updateChildDomain = function(childAuthKey, domainName, updateChildDomain) {
return this.updateChildDomainWithHttpInfo(childAuthKey, domainName, updateChildDomain)
.then(function(response_and_data) {
return response_and_data.data;
});
}
/**
* Updates infos of reseller&#39;s child based on the childAuthKey supplied

@@ -486,0 +771,0 @@ * @param {String} childAuthKey auth key of reseller&#39;s child

@@ -20,8 +20,8 @@ /**

// AMD. Register as an anonymous module.
define(['ApiClient', 'model/AddContactToList', 'model/AddCredits', 'model/CreateAttribute', 'model/CreateAttributeEnumeration', 'model/CreateChild', 'model/CreateContact', 'model/CreateEmailCampaign', 'model/CreateEmailCampaignRecipients', 'model/CreateEmailCampaignSender', 'model/CreateList', 'model/CreateModel', 'model/CreateReseller', 'model/CreateSender', 'model/CreateSenderIps', 'model/CreateSenderModel', 'model/CreateSmsCampaign', 'model/CreateSmsCampaignRecipients', 'model/CreateSmtpEmail', 'model/CreateSmtpTemplate', 'model/CreateSmtpTemplateSender', 'model/CreateUpdateContactModel', 'model/CreateUpdateFolder', 'model/CreateWebhook', 'model/CreatedProcessId', 'model/DeleteHardbounces', 'model/EmailExportRecipients', 'model/ErrorModel', 'model/GetAccountMarketingAutomation', 'model/GetAccountPlan', 'model/GetAccountRelay', 'model/GetAccountRelayData', 'model/GetAggregatedReport', 'model/GetAttributes', 'model/GetAttributesAttributes', 'model/GetAttributesEnumeration', 'model/GetCampaignOverview', 'model/GetCampaignRecipients', 'model/GetCampaignStats', 'model/GetChildInfoApiKeys', 'model/GetChildInfoApiKeysV2', 'model/GetChildInfoApiKeysV3', 'model/GetChildInfoCredits', 'model/GetChildInfoStatistics', 'model/GetChildrenList', 'model/GetClient', 'model/GetContactCampaignStats', 'model/GetContactCampaignStatsClicked', 'model/GetContactCampaignStatsOpened', 'model/GetContactCampaignStatsTransacAttributes', 'model/GetContactCampaignStatsUnsubscriptions', 'model/GetContactDetails', 'model/GetContacts', 'model/GetEmailCampaigns', 'model/GetEmailEventReport', 'model/GetEmailEventReportEvents', 'model/GetExtendedCampaignOverviewSender', 'model/GetExtendedCampaignStats', 'model/GetExtendedClientAddress', 'model/GetExtendedContactDetailsStatistics', 'model/GetExtendedContactDetailsStatisticsClicked', 'model/GetExtendedContactDetailsStatisticsLinks', 'model/GetExtendedContactDetailsStatisticsMessagesSent', 'model/GetExtendedContactDetailsStatisticsOpened', 'model/GetExtendedContactDetailsStatisticsUnsubscriptions', 'model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription', 'model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription', 'model/GetExtendedListCampaignStats', 'model/GetFolder', 'model/GetFolderLists', 'model/GetFolders', 'model/GetIp', 'model/GetIpFromSender', 'model/GetIps', 'model/GetIpsFromSender', 'model/GetList', 'model/GetLists', 'model/GetProcess', 'model/GetProcesses', 'model/GetReports', 'model/GetReportsReports', 'model/GetSendersList', 'model/GetSendersListIps', 'model/GetSendersListSenders', 'model/GetSmsCampaignOverview', 'model/GetSmsCampaignStats', 'model/GetSmsCampaigns', 'model/GetSmsEventReport', 'model/GetSmsEventReportEvents', 'model/GetSmtpTemplateOverview', 'model/GetSmtpTemplateOverviewSender', 'model/GetSmtpTemplates', 'model/GetStatsByDomain', 'model/GetTransacAggregatedSmsReport', 'model/GetTransacSmsReport', 'model/GetTransacSmsReportReports', 'model/GetWebhook', 'model/GetWebhooks', 'model/ManageIp', 'model/PostContactInfo', 'model/PostContactInfoContacts', 'model/PostSendFailed', 'model/PostSendSmsTestFailed', 'model/RemainingCreditModel', 'model/RemainingCreditModelChild', 'model/RemainingCreditModelReseller', 'model/RemoveContactFromList', 'model/RemoveCredits', 'model/RequestContactExport', 'model/RequestContactImport', 'model/RequestContactImportNewList', 'model/RequestSmsRecipientExport', 'model/SendEmail', 'model/SendEmailAttachment', 'model/SendReport', 'model/SendReportEmail', 'model/SendSms', 'model/SendSmtpEmail', 'model/SendSmtpEmailAttachment', 'model/SendSmtpEmailBcc', 'model/SendSmtpEmailCc', 'model/SendSmtpEmailReplyTo', 'model/SendSmtpEmailSender', 'model/SendSmtpEmailTo', 'model/SendTemplateEmail', 'model/SendTestEmail', 'model/SendTestSms', 'model/SendTransacSms', 'model/UpdateAttribute', 'model/UpdateAttributeEnumeration', 'model/UpdateCampaignStatus', 'model/UpdateChild', 'model/UpdateContact', 'model/UpdateEmailCampaign', 'model/UpdateEmailCampaignRecipients', 'model/UpdateEmailCampaignSender', 'model/UpdateList', 'model/UpdateSender', 'model/UpdateSmsCampaign', 'model/UpdateSmtpTemplate', 'model/UpdateSmtpTemplateSender', 'model/UpdateWebhook', 'model/GetChildInfo', 'model/GetExtendedCampaignOverview', 'model/GetExtendedClient', 'model/GetExtendedContactDetails', 'model/GetExtendedList', 'model/GetSmsCampaign', 'model/GetAccount', 'model/GetEmailCampaign', 'api/AccountApi', 'api/AttributesApi', 'api/ContactsApi', 'api/EmailCampaignsApi', 'api/FoldersApi', 'api/ListsApi', 'api/ProcessApi', 'api/ResellerApi', 'api/SMSCampaignsApi', 'api/SMTPApi', 'api/SendersApi', 'api/TransactionalSMSApi', 'api/WebhooksApi'], factory);
define(['ApiClient', 'model/AddChildDomain', 'model/AddContactToList', 'model/AddCredits', 'model/CreateAttribute', 'model/CreateAttributeEnumeration', 'model/CreateChild', 'model/CreateContact', 'model/CreateEmailCampaign', 'model/CreateEmailCampaignRecipients', 'model/CreateEmailCampaignSender', 'model/CreateList', 'model/CreateModel', 'model/CreateReseller', 'model/CreateSender', 'model/CreateSenderIps', 'model/CreateSenderModel', 'model/CreateSmsCampaign', 'model/CreateSmsCampaignRecipients', 'model/CreateSmtpEmail', 'model/CreateSmtpTemplate', 'model/CreateSmtpTemplateSender', 'model/CreateUpdateContactModel', 'model/CreateUpdateFolder', 'model/CreateWebhook', 'model/CreatedProcessId', 'model/DeleteHardbounces', 'model/EmailExportRecipients', 'model/ErrorModel', 'model/GetAccountMarketingAutomation', 'model/GetAccountPlan', 'model/GetAccountRelay', 'model/GetAccountRelayData', 'model/GetAggregatedReport', 'model/GetAttributes', 'model/GetAttributesAttributes', 'model/GetAttributesEnumeration', 'model/GetCampaignOverview', 'model/GetCampaignRecipients', 'model/GetCampaignStats', 'model/GetChildDomain', 'model/GetChildDomains', 'model/GetChildInfoApiKeys', 'model/GetChildInfoApiKeysV2', 'model/GetChildInfoApiKeysV3', 'model/GetChildInfoCredits', 'model/GetChildInfoStatistics', 'model/GetChildrenList', 'model/GetClient', 'model/GetContactCampaignStats', 'model/GetContactCampaignStatsClicked', 'model/GetContactCampaignStatsOpened', 'model/GetContactCampaignStatsTransacAttributes', 'model/GetContactCampaignStatsUnsubscriptions', 'model/GetContactDetails', 'model/GetContacts', 'model/GetEmailCampaigns', 'model/GetEmailEventReport', 'model/GetEmailEventReportEvents', 'model/GetExtendedCampaignOverviewSender', 'model/GetExtendedCampaignStats', 'model/GetExtendedClientAddress', 'model/GetExtendedContactDetailsStatistics', 'model/GetExtendedContactDetailsStatisticsClicked', 'model/GetExtendedContactDetailsStatisticsLinks', 'model/GetExtendedContactDetailsStatisticsMessagesSent', 'model/GetExtendedContactDetailsStatisticsOpened', 'model/GetExtendedContactDetailsStatisticsUnsubscriptions', 'model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription', 'model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription', 'model/GetExtendedListCampaignStats', 'model/GetFolder', 'model/GetFolderLists', 'model/GetFolders', 'model/GetIp', 'model/GetIpFromSender', 'model/GetIps', 'model/GetIpsFromSender', 'model/GetList', 'model/GetLists', 'model/GetProcess', 'model/GetProcesses', 'model/GetReports', 'model/GetReportsReports', 'model/GetSendersList', 'model/GetSendersListIps', 'model/GetSendersListSenders', 'model/GetSmsCampaignOverview', 'model/GetSmsCampaignStats', 'model/GetSmsCampaigns', 'model/GetSmsEventReport', 'model/GetSmsEventReportEvents', 'model/GetSmtpTemplateOverview', 'model/GetSmtpTemplateOverviewSender', 'model/GetSmtpTemplates', 'model/GetSsoToken', 'model/GetStatsByDomain', 'model/GetTransacAggregatedSmsReport', 'model/GetTransacSmsReport', 'model/GetTransacSmsReportReports', 'model/GetWebhook', 'model/GetWebhooks', 'model/ManageIp', 'model/PostContactInfo', 'model/PostContactInfoContacts', 'model/PostSendFailed', 'model/PostSendSmsTestFailed', 'model/RemainingCreditModel', 'model/RemainingCreditModelChild', 'model/RemainingCreditModelReseller', 'model/RemoveContactFromList', 'model/RemoveCredits', 'model/RequestContactExport', 'model/RequestContactImport', 'model/RequestContactImportNewList', 'model/RequestSmsRecipientExport', 'model/SendEmail', 'model/SendEmailAttachment', 'model/SendReport', 'model/SendReportEmail', 'model/SendSms', 'model/SendSmtpEmail', 'model/SendSmtpEmailAttachment', 'model/SendSmtpEmailBcc', 'model/SendSmtpEmailCc', 'model/SendSmtpEmailReplyTo', 'model/SendSmtpEmailSender', 'model/SendSmtpEmailTo', 'model/SendTemplateEmail', 'model/SendTestEmail', 'model/SendTestSms', 'model/SendTransacSms', 'model/UpdateAttribute', 'model/UpdateAttributeEnumeration', 'model/UpdateCampaignStatus', 'model/UpdateChild', 'model/UpdateChildDomain', 'model/UpdateContact', 'model/UpdateEmailCampaign', 'model/UpdateEmailCampaignRecipients', 'model/UpdateEmailCampaignSender', 'model/UpdateList', 'model/UpdateSender', 'model/UpdateSmsCampaign', 'model/UpdateSmtpTemplate', 'model/UpdateSmtpTemplateSender', 'model/UpdateWebhook', 'model/GetChildInfo', 'model/GetExtendedCampaignOverview', 'model/GetExtendedClient', 'model/GetExtendedContactDetails', 'model/GetExtendedList', 'model/GetSmsCampaign', 'model/GetAccount', 'model/GetEmailCampaign', 'api/AccountApi', 'api/AttributesApi', 'api/ContactsApi', 'api/EmailCampaignsApi', 'api/FoldersApi', 'api/ListsApi', 'api/ProcessApi', 'api/ResellerApi', 'api/SMSCampaignsApi', 'api/SMTPApi', 'api/SendersApi', 'api/TransactionalSMSApi', 'api/WebhooksApi'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('./ApiClient'), require('./model/AddContactToList'), require('./model/AddCredits'), require('./model/CreateAttribute'), require('./model/CreateAttributeEnumeration'), require('./model/CreateChild'), require('./model/CreateContact'), require('./model/CreateEmailCampaign'), require('./model/CreateEmailCampaignRecipients'), require('./model/CreateEmailCampaignSender'), require('./model/CreateList'), require('./model/CreateModel'), require('./model/CreateReseller'), require('./model/CreateSender'), require('./model/CreateSenderIps'), require('./model/CreateSenderModel'), require('./model/CreateSmsCampaign'), require('./model/CreateSmsCampaignRecipients'), require('./model/CreateSmtpEmail'), require('./model/CreateSmtpTemplate'), require('./model/CreateSmtpTemplateSender'), require('./model/CreateUpdateContactModel'), require('./model/CreateUpdateFolder'), require('./model/CreateWebhook'), require('./model/CreatedProcessId'), require('./model/DeleteHardbounces'), require('./model/EmailExportRecipients'), require('./model/ErrorModel'), require('./model/GetAccountMarketingAutomation'), require('./model/GetAccountPlan'), require('./model/GetAccountRelay'), require('./model/GetAccountRelayData'), require('./model/GetAggregatedReport'), require('./model/GetAttributes'), require('./model/GetAttributesAttributes'), require('./model/GetAttributesEnumeration'), require('./model/GetCampaignOverview'), require('./model/GetCampaignRecipients'), require('./model/GetCampaignStats'), require('./model/GetChildInfoApiKeys'), require('./model/GetChildInfoApiKeysV2'), require('./model/GetChildInfoApiKeysV3'), require('./model/GetChildInfoCredits'), require('./model/GetChildInfoStatistics'), require('./model/GetChildrenList'), require('./model/GetClient'), require('./model/GetContactCampaignStats'), require('./model/GetContactCampaignStatsClicked'), require('./model/GetContactCampaignStatsOpened'), require('./model/GetContactCampaignStatsTransacAttributes'), require('./model/GetContactCampaignStatsUnsubscriptions'), require('./model/GetContactDetails'), require('./model/GetContacts'), require('./model/GetEmailCampaigns'), require('./model/GetEmailEventReport'), require('./model/GetEmailEventReportEvents'), require('./model/GetExtendedCampaignOverviewSender'), require('./model/GetExtendedCampaignStats'), require('./model/GetExtendedClientAddress'), require('./model/GetExtendedContactDetailsStatistics'), require('./model/GetExtendedContactDetailsStatisticsClicked'), require('./model/GetExtendedContactDetailsStatisticsLinks'), require('./model/GetExtendedContactDetailsStatisticsMessagesSent'), require('./model/GetExtendedContactDetailsStatisticsOpened'), require('./model/GetExtendedContactDetailsStatisticsUnsubscriptions'), require('./model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription'), require('./model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription'), require('./model/GetExtendedListCampaignStats'), require('./model/GetFolder'), require('./model/GetFolderLists'), require('./model/GetFolders'), require('./model/GetIp'), require('./model/GetIpFromSender'), require('./model/GetIps'), require('./model/GetIpsFromSender'), require('./model/GetList'), require('./model/GetLists'), require('./model/GetProcess'), require('./model/GetProcesses'), require('./model/GetReports'), require('./model/GetReportsReports'), require('./model/GetSendersList'), require('./model/GetSendersListIps'), require('./model/GetSendersListSenders'), require('./model/GetSmsCampaignOverview'), require('./model/GetSmsCampaignStats'), require('./model/GetSmsCampaigns'), require('./model/GetSmsEventReport'), require('./model/GetSmsEventReportEvents'), require('./model/GetSmtpTemplateOverview'), require('./model/GetSmtpTemplateOverviewSender'), require('./model/GetSmtpTemplates'), require('./model/GetStatsByDomain'), require('./model/GetTransacAggregatedSmsReport'), require('./model/GetTransacSmsReport'), require('./model/GetTransacSmsReportReports'), require('./model/GetWebhook'), require('./model/GetWebhooks'), require('./model/ManageIp'), require('./model/PostContactInfo'), require('./model/PostContactInfoContacts'), require('./model/PostSendFailed'), require('./model/PostSendSmsTestFailed'), require('./model/RemainingCreditModel'), require('./model/RemainingCreditModelChild'), require('./model/RemainingCreditModelReseller'), require('./model/RemoveContactFromList'), require('./model/RemoveCredits'), require('./model/RequestContactExport'), require('./model/RequestContactImport'), require('./model/RequestContactImportNewList'), require('./model/RequestSmsRecipientExport'), require('./model/SendEmail'), require('./model/SendEmailAttachment'), require('./model/SendReport'), require('./model/SendReportEmail'), require('./model/SendSms'), require('./model/SendSmtpEmail'), require('./model/SendSmtpEmailAttachment'), require('./model/SendSmtpEmailBcc'), require('./model/SendSmtpEmailCc'), require('./model/SendSmtpEmailReplyTo'), require('./model/SendSmtpEmailSender'), require('./model/SendSmtpEmailTo'), require('./model/SendTemplateEmail'), require('./model/SendTestEmail'), require('./model/SendTestSms'), require('./model/SendTransacSms'), require('./model/UpdateAttribute'), require('./model/UpdateAttributeEnumeration'), require('./model/UpdateCampaignStatus'), require('./model/UpdateChild'), require('./model/UpdateContact'), require('./model/UpdateEmailCampaign'), require('./model/UpdateEmailCampaignRecipients'), require('./model/UpdateEmailCampaignSender'), require('./model/UpdateList'), require('./model/UpdateSender'), require('./model/UpdateSmsCampaign'), require('./model/UpdateSmtpTemplate'), require('./model/UpdateSmtpTemplateSender'), require('./model/UpdateWebhook'), require('./model/GetChildInfo'), require('./model/GetExtendedCampaignOverview'), require('./model/GetExtendedClient'), require('./model/GetExtendedContactDetails'), require('./model/GetExtendedList'), require('./model/GetSmsCampaign'), require('./model/GetAccount'), require('./model/GetEmailCampaign'), require('./api/AccountApi'), require('./api/AttributesApi'), require('./api/ContactsApi'), require('./api/EmailCampaignsApi'), require('./api/FoldersApi'), require('./api/ListsApi'), require('./api/ProcessApi'), require('./api/ResellerApi'), require('./api/SMSCampaignsApi'), require('./api/SMTPApi'), require('./api/SendersApi'), require('./api/TransactionalSMSApi'), require('./api/WebhooksApi'));
module.exports = factory(require('./ApiClient'), require('./model/AddChildDomain'), require('./model/AddContactToList'), require('./model/AddCredits'), require('./model/CreateAttribute'), require('./model/CreateAttributeEnumeration'), require('./model/CreateChild'), require('./model/CreateContact'), require('./model/CreateEmailCampaign'), require('./model/CreateEmailCampaignRecipients'), require('./model/CreateEmailCampaignSender'), require('./model/CreateList'), require('./model/CreateModel'), require('./model/CreateReseller'), require('./model/CreateSender'), require('./model/CreateSenderIps'), require('./model/CreateSenderModel'), require('./model/CreateSmsCampaign'), require('./model/CreateSmsCampaignRecipients'), require('./model/CreateSmtpEmail'), require('./model/CreateSmtpTemplate'), require('./model/CreateSmtpTemplateSender'), require('./model/CreateUpdateContactModel'), require('./model/CreateUpdateFolder'), require('./model/CreateWebhook'), require('./model/CreatedProcessId'), require('./model/DeleteHardbounces'), require('./model/EmailExportRecipients'), require('./model/ErrorModel'), require('./model/GetAccountMarketingAutomation'), require('./model/GetAccountPlan'), require('./model/GetAccountRelay'), require('./model/GetAccountRelayData'), require('./model/GetAggregatedReport'), require('./model/GetAttributes'), require('./model/GetAttributesAttributes'), require('./model/GetAttributesEnumeration'), require('./model/GetCampaignOverview'), require('./model/GetCampaignRecipients'), require('./model/GetCampaignStats'), require('./model/GetChildDomain'), require('./model/GetChildDomains'), require('./model/GetChildInfoApiKeys'), require('./model/GetChildInfoApiKeysV2'), require('./model/GetChildInfoApiKeysV3'), require('./model/GetChildInfoCredits'), require('./model/GetChildInfoStatistics'), require('./model/GetChildrenList'), require('./model/GetClient'), require('./model/GetContactCampaignStats'), require('./model/GetContactCampaignStatsClicked'), require('./model/GetContactCampaignStatsOpened'), require('./model/GetContactCampaignStatsTransacAttributes'), require('./model/GetContactCampaignStatsUnsubscriptions'), require('./model/GetContactDetails'), require('./model/GetContacts'), require('./model/GetEmailCampaigns'), require('./model/GetEmailEventReport'), require('./model/GetEmailEventReportEvents'), require('./model/GetExtendedCampaignOverviewSender'), require('./model/GetExtendedCampaignStats'), require('./model/GetExtendedClientAddress'), require('./model/GetExtendedContactDetailsStatistics'), require('./model/GetExtendedContactDetailsStatisticsClicked'), require('./model/GetExtendedContactDetailsStatisticsLinks'), require('./model/GetExtendedContactDetailsStatisticsMessagesSent'), require('./model/GetExtendedContactDetailsStatisticsOpened'), require('./model/GetExtendedContactDetailsStatisticsUnsubscriptions'), require('./model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription'), require('./model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription'), require('./model/GetExtendedListCampaignStats'), require('./model/GetFolder'), require('./model/GetFolderLists'), require('./model/GetFolders'), require('./model/GetIp'), require('./model/GetIpFromSender'), require('./model/GetIps'), require('./model/GetIpsFromSender'), require('./model/GetList'), require('./model/GetLists'), require('./model/GetProcess'), require('./model/GetProcesses'), require('./model/GetReports'), require('./model/GetReportsReports'), require('./model/GetSendersList'), require('./model/GetSendersListIps'), require('./model/GetSendersListSenders'), require('./model/GetSmsCampaignOverview'), require('./model/GetSmsCampaignStats'), require('./model/GetSmsCampaigns'), require('./model/GetSmsEventReport'), require('./model/GetSmsEventReportEvents'), require('./model/GetSmtpTemplateOverview'), require('./model/GetSmtpTemplateOverviewSender'), require('./model/GetSmtpTemplates'), require('./model/GetSsoToken'), require('./model/GetStatsByDomain'), require('./model/GetTransacAggregatedSmsReport'), require('./model/GetTransacSmsReport'), require('./model/GetTransacSmsReportReports'), require('./model/GetWebhook'), require('./model/GetWebhooks'), require('./model/ManageIp'), require('./model/PostContactInfo'), require('./model/PostContactInfoContacts'), require('./model/PostSendFailed'), require('./model/PostSendSmsTestFailed'), require('./model/RemainingCreditModel'), require('./model/RemainingCreditModelChild'), require('./model/RemainingCreditModelReseller'), require('./model/RemoveContactFromList'), require('./model/RemoveCredits'), require('./model/RequestContactExport'), require('./model/RequestContactImport'), require('./model/RequestContactImportNewList'), require('./model/RequestSmsRecipientExport'), require('./model/SendEmail'), require('./model/SendEmailAttachment'), require('./model/SendReport'), require('./model/SendReportEmail'), require('./model/SendSms'), require('./model/SendSmtpEmail'), require('./model/SendSmtpEmailAttachment'), require('./model/SendSmtpEmailBcc'), require('./model/SendSmtpEmailCc'), require('./model/SendSmtpEmailReplyTo'), require('./model/SendSmtpEmailSender'), require('./model/SendSmtpEmailTo'), require('./model/SendTemplateEmail'), require('./model/SendTestEmail'), require('./model/SendTestSms'), require('./model/SendTransacSms'), require('./model/UpdateAttribute'), require('./model/UpdateAttributeEnumeration'), require('./model/UpdateCampaignStatus'), require('./model/UpdateChild'), require('./model/UpdateChildDomain'), require('./model/UpdateContact'), require('./model/UpdateEmailCampaign'), require('./model/UpdateEmailCampaignRecipients'), require('./model/UpdateEmailCampaignSender'), require('./model/UpdateList'), require('./model/UpdateSender'), require('./model/UpdateSmsCampaign'), require('./model/UpdateSmtpTemplate'), require('./model/UpdateSmtpTemplateSender'), require('./model/UpdateWebhook'), require('./model/GetChildInfo'), require('./model/GetExtendedCampaignOverview'), require('./model/GetExtendedClient'), require('./model/GetExtendedContactDetails'), require('./model/GetExtendedList'), require('./model/GetSmsCampaign'), require('./model/GetAccount'), require('./model/GetEmailCampaign'), require('./api/AccountApi'), require('./api/AttributesApi'), require('./api/ContactsApi'), require('./api/EmailCampaignsApi'), require('./api/FoldersApi'), require('./api/ListsApi'), require('./api/ProcessApi'), require('./api/ResellerApi'), require('./api/SMSCampaignsApi'), require('./api/SMTPApi'), require('./api/SendersApi'), require('./api/TransactionalSMSApi'), require('./api/WebhooksApi'));
}
}(function(ApiClient, AddContactToList, AddCredits, CreateAttribute, CreateAttributeEnumeration, CreateChild, CreateContact, CreateEmailCampaign, CreateEmailCampaignRecipients, CreateEmailCampaignSender, CreateList, CreateModel, CreateReseller, CreateSender, CreateSenderIps, CreateSenderModel, CreateSmsCampaign, CreateSmsCampaignRecipients, CreateSmtpEmail, CreateSmtpTemplate, CreateSmtpTemplateSender, CreateUpdateContactModel, CreateUpdateFolder, CreateWebhook, CreatedProcessId, DeleteHardbounces, EmailExportRecipients, ErrorModel, GetAccountMarketingAutomation, GetAccountPlan, GetAccountRelay, GetAccountRelayData, GetAggregatedReport, GetAttributes, GetAttributesAttributes, GetAttributesEnumeration, GetCampaignOverview, GetCampaignRecipients, GetCampaignStats, GetChildInfoApiKeys, GetChildInfoApiKeysV2, GetChildInfoApiKeysV3, GetChildInfoCredits, GetChildInfoStatistics, GetChildrenList, GetClient, GetContactCampaignStats, GetContactCampaignStatsClicked, GetContactCampaignStatsOpened, GetContactCampaignStatsTransacAttributes, GetContactCampaignStatsUnsubscriptions, GetContactDetails, GetContacts, GetEmailCampaigns, GetEmailEventReport, GetEmailEventReportEvents, GetExtendedCampaignOverviewSender, GetExtendedCampaignStats, GetExtendedClientAddress, GetExtendedContactDetailsStatistics, GetExtendedContactDetailsStatisticsClicked, GetExtendedContactDetailsStatisticsLinks, GetExtendedContactDetailsStatisticsMessagesSent, GetExtendedContactDetailsStatisticsOpened, GetExtendedContactDetailsStatisticsUnsubscriptions, GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription, GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription, GetExtendedListCampaignStats, GetFolder, GetFolderLists, GetFolders, GetIp, GetIpFromSender, GetIps, GetIpsFromSender, GetList, GetLists, GetProcess, GetProcesses, GetReports, GetReportsReports, GetSendersList, GetSendersListIps, GetSendersListSenders, GetSmsCampaignOverview, GetSmsCampaignStats, GetSmsCampaigns, GetSmsEventReport, GetSmsEventReportEvents, GetSmtpTemplateOverview, GetSmtpTemplateOverviewSender, GetSmtpTemplates, GetStatsByDomain, GetTransacAggregatedSmsReport, GetTransacSmsReport, GetTransacSmsReportReports, GetWebhook, GetWebhooks, ManageIp, PostContactInfo, PostContactInfoContacts, PostSendFailed, PostSendSmsTestFailed, RemainingCreditModel, RemainingCreditModelChild, RemainingCreditModelReseller, RemoveContactFromList, RemoveCredits, RequestContactExport, RequestContactImport, RequestContactImportNewList, RequestSmsRecipientExport, SendEmail, SendEmailAttachment, SendReport, SendReportEmail, SendSms, SendSmtpEmail, SendSmtpEmailAttachment, SendSmtpEmailBcc, SendSmtpEmailCc, SendSmtpEmailReplyTo, SendSmtpEmailSender, SendSmtpEmailTo, SendTemplateEmail, SendTestEmail, SendTestSms, SendTransacSms, UpdateAttribute, UpdateAttributeEnumeration, UpdateCampaignStatus, UpdateChild, UpdateContact, UpdateEmailCampaign, UpdateEmailCampaignRecipients, UpdateEmailCampaignSender, UpdateList, UpdateSender, UpdateSmsCampaign, UpdateSmtpTemplate, UpdateSmtpTemplateSender, UpdateWebhook, GetChildInfo, GetExtendedCampaignOverview, GetExtendedClient, GetExtendedContactDetails, GetExtendedList, GetSmsCampaign, GetAccount, GetEmailCampaign, AccountApi, AttributesApi, ContactsApi, EmailCampaignsApi, FoldersApi, ListsApi, ProcessApi, ResellerApi, SMSCampaignsApi, SMTPApi, SendersApi, TransactionalSMSApi, WebhooksApi) {
}(function(ApiClient, AddChildDomain, AddContactToList, AddCredits, CreateAttribute, CreateAttributeEnumeration, CreateChild, CreateContact, CreateEmailCampaign, CreateEmailCampaignRecipients, CreateEmailCampaignSender, CreateList, CreateModel, CreateReseller, CreateSender, CreateSenderIps, CreateSenderModel, CreateSmsCampaign, CreateSmsCampaignRecipients, CreateSmtpEmail, CreateSmtpTemplate, CreateSmtpTemplateSender, CreateUpdateContactModel, CreateUpdateFolder, CreateWebhook, CreatedProcessId, DeleteHardbounces, EmailExportRecipients, ErrorModel, GetAccountMarketingAutomation, GetAccountPlan, GetAccountRelay, GetAccountRelayData, GetAggregatedReport, GetAttributes, GetAttributesAttributes, GetAttributesEnumeration, GetCampaignOverview, GetCampaignRecipients, GetCampaignStats, GetChildDomain, GetChildDomains, GetChildInfoApiKeys, GetChildInfoApiKeysV2, GetChildInfoApiKeysV3, GetChildInfoCredits, GetChildInfoStatistics, GetChildrenList, GetClient, GetContactCampaignStats, GetContactCampaignStatsClicked, GetContactCampaignStatsOpened, GetContactCampaignStatsTransacAttributes, GetContactCampaignStatsUnsubscriptions, GetContactDetails, GetContacts, GetEmailCampaigns, GetEmailEventReport, GetEmailEventReportEvents, GetExtendedCampaignOverviewSender, GetExtendedCampaignStats, GetExtendedClientAddress, GetExtendedContactDetailsStatistics, GetExtendedContactDetailsStatisticsClicked, GetExtendedContactDetailsStatisticsLinks, GetExtendedContactDetailsStatisticsMessagesSent, GetExtendedContactDetailsStatisticsOpened, GetExtendedContactDetailsStatisticsUnsubscriptions, GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription, GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription, GetExtendedListCampaignStats, GetFolder, GetFolderLists, GetFolders, GetIp, GetIpFromSender, GetIps, GetIpsFromSender, GetList, GetLists, GetProcess, GetProcesses, GetReports, GetReportsReports, GetSendersList, GetSendersListIps, GetSendersListSenders, GetSmsCampaignOverview, GetSmsCampaignStats, GetSmsCampaigns, GetSmsEventReport, GetSmsEventReportEvents, GetSmtpTemplateOverview, GetSmtpTemplateOverviewSender, GetSmtpTemplates, GetSsoToken, GetStatsByDomain, GetTransacAggregatedSmsReport, GetTransacSmsReport, GetTransacSmsReportReports, GetWebhook, GetWebhooks, ManageIp, PostContactInfo, PostContactInfoContacts, PostSendFailed, PostSendSmsTestFailed, RemainingCreditModel, RemainingCreditModelChild, RemainingCreditModelReseller, RemoveContactFromList, RemoveCredits, RequestContactExport, RequestContactImport, RequestContactImportNewList, RequestSmsRecipientExport, SendEmail, SendEmailAttachment, SendReport, SendReportEmail, SendSms, SendSmtpEmail, SendSmtpEmailAttachment, SendSmtpEmailBcc, SendSmtpEmailCc, SendSmtpEmailReplyTo, SendSmtpEmailSender, SendSmtpEmailTo, SendTemplateEmail, SendTestEmail, SendTestSms, SendTransacSms, UpdateAttribute, UpdateAttributeEnumeration, UpdateCampaignStatus, UpdateChild, UpdateChildDomain, UpdateContact, UpdateEmailCampaign, UpdateEmailCampaignRecipients, UpdateEmailCampaignSender, UpdateList, UpdateSender, UpdateSmsCampaign, UpdateSmtpTemplate, UpdateSmtpTemplateSender, UpdateWebhook, GetChildInfo, GetExtendedCampaignOverview, GetExtendedClient, GetExtendedContactDetails, GetExtendedList, GetSmsCampaign, GetAccount, GetEmailCampaign, AccountApi, AttributesApi, ContactsApi, EmailCampaignsApi, FoldersApi, ListsApi, ProcessApi, ResellerApi, SMSCampaignsApi, SMTPApi, SendersApi, TransactionalSMSApi, WebhooksApi) {
'use strict';

@@ -67,2 +67,7 @@

/**
* The AddChildDomain model constructor.
* @property {module:model/AddChildDomain}
*/
AddChildDomain: AddChildDomain,
/**
* The AddContactToList model constructor.

@@ -258,2 +263,12 @@ * @property {module:model/AddContactToList}

/**
* The GetChildDomain model constructor.
* @property {module:model/GetChildDomain}
*/
GetChildDomain: GetChildDomain,
/**
* The GetChildDomains model constructor.
* @property {module:model/GetChildDomains}
*/
GetChildDomains: GetChildDomains,
/**
* The GetChildInfoApiKeys model constructor.

@@ -524,2 +539,7 @@ * @property {module:model/GetChildInfoApiKeys}

/**
* The GetSsoToken model constructor.
* @property {module:model/GetSsoToken}
*/
GetSsoToken: GetSsoToken,
/**
* The GetStatsByDomain model constructor.

@@ -725,2 +745,7 @@ * @property {module:model/GetStatsByDomain}

/**
* The UpdateChildDomain model constructor.
* @property {module:model/UpdateChildDomain}
*/
UpdateChildDomain: UpdateChildDomain,
/**
* The UpdateContact model constructor.

@@ -727,0 +752,0 @@ * @property {module:model/UpdateContact}

@@ -74,2 +74,12 @@ /**

});
describe('createChildDomain', function() {
it('should call createChildDomain successfully', function(done) {
//uncomment below and update the code to test createChildDomain
//instance.createChildDomain(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('createResellerChild', function() {

@@ -85,2 +95,12 @@ it('should call createResellerChild successfully', function(done) {

});
describe('deleteChildDomain', function() {
it('should call deleteChildDomain successfully', function(done) {
//uncomment below and update the code to test deleteChildDomain
//instance.deleteChildDomain(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('deleteResellerChild', function() {

@@ -106,2 +126,12 @@ it('should call deleteResellerChild successfully', function(done) {

});
describe('getChildDomains', function() {
it('should call getChildDomains successfully', function(done) {
//uncomment below and update the code to test getChildDomains
//instance.getChildDomains(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('getChildInfo', function() {

@@ -127,2 +157,12 @@ it('should call getChildInfo successfully', function(done) {

});
describe('getSsoToken', function() {
it('should call getSsoToken successfully', function(done) {
//uncomment below and update the code to test getSsoToken
//instance.getSsoToken(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('removeCredits', function() {

@@ -138,2 +178,12 @@ it('should call removeCredits successfully', function(done) {

});
describe('updateChildDomain', function() {
it('should call updateChildDomain successfully', function(done) {
//uncomment below and update the code to test updateChildDomain
//instance.updateChildDomain(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('updateResellerChild', function() {

@@ -140,0 +190,0 @@ it('should call updateResellerChild successfully', function(done) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc