Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Merge branch '1.0' of github.com:salesforce-marketingcloud/mcsdk-auto…
Browse files Browse the repository at this point in the history
…mation-node into 1.0
  • Loading branch information
sfcbetiuc committed Nov 20, 2019
2 parents 4314822 + 37ea781 commit 5024d05
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 46 deletions.
8 changes: 4 additions & 4 deletions docs/TransactionalMessagingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ const SalesforceMarketingCloud = require ('SalesforceMarketingCloud');
let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi();

let opts = {
'status': "status_example", // String | Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
'filter': "filter_example", // String | Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
'pageSize': 8.14, // Number | Number of definitions, which are array elements, to return per paged response.
'page': 8.14, // Number | Page number to return.
'orderBy': "orderBy_example" // String | Sort by a dimension. You can sort by only one dimension. Accepted values are definitionKey, name, createdDate, modifiedDate, and status.
Expand All @@ -361,7 +361,7 @@ apiInstance.getEmailDefinitions(opts).then((data) => {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**status** | **String**| Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq. | [optional]
**filter** | **String**| Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq. | [optional]
**pageSize** | **Number**| Number of definitions, which are array elements, to return per paged response. | [optional]
**page** | **Number**| Page number to return. | [optional]
**orderBy** | **String**| Sort by a dimension. You can sort by only one dimension. Accepted values are definitionKey, name, createdDate, modifiedDate, and status. | [optional]
Expand Down Expand Up @@ -664,7 +664,7 @@ const SalesforceMarketingCloud = require ('SalesforceMarketingCloud');
let apiInstance = new SalesforceMarketingCloud.TransactionalMessagingApi();

let opts = {
'status': "status_example", // String | Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
'filter': "filter_example", // String | Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
'pageSize': 8.14, // Number | Number of definitions, which are array elements, to return per paged response.
'page': 8.14, // Number | Page number to return.
'orderBy': "orderBy_example" // String | Sort by a dimension. You can sort by only one dimension. Accepted values are definitionKey, name, createdDate, modifiedDate, and status.
Expand All @@ -681,7 +681,7 @@ apiInstance.getSmsDefinitions(opts).then((data) => {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**status** | **String**| Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq. | [optional]
**filter** | **String**| Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq. | [optional]
**pageSize** | **Number**| Number of definitions, which are array elements, to return per paged response. | [optional]
**page** | **Number**| Page number to return. | [optional]
**orderBy** | **String**| Sort by a dimension. You can sort by only one dimension. Accepted values are definitionKey, name, createdDate, modifiedDate, and status. | [optional]
Expand Down
24 changes: 12 additions & 12 deletions src/Api/TransactionalMessagingApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ module.exports = class TransactionalMessagingApi extends BaseApi {
* getEmailDefinitions
* Gets a list of email definitions.
* @param {Object} opts Optional parameters
* @param {module:Model/String} opts.status Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
* @param {module:Model/String} opts.filter Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
* @param {Number} opts.pageSize Number of definitions, which are array elements, to return per paged response.
* @param {Number} opts.page Page number to return.
* @param {module:Model/String} opts.orderBy Sort by a dimension. You can sort by only one dimension. Accepted values are definitionKey, name, createdDate, modifiedDate, and status.
Expand All @@ -425,10 +425,10 @@ module.exports = class TransactionalMessagingApi extends BaseApi {
let pathParams = {
};
let queryParams = {
'status': opts['status'],
'pageSize': opts['pageSize'],
'page': opts['page'],
'orderBy': opts['orderBy']
'$filter': opts['filter'],
'$pageSize': opts['pageSize'],
'$page': opts['page'],
'$orderBy': opts['orderBy']
};
let headerParams = {
};
Expand All @@ -451,7 +451,7 @@ module.exports = class TransactionalMessagingApi extends BaseApi {
* getEmailDefinitions
* Gets a list of email definitions.
* @param {Object} opts Optional parameters
* @param {module:Model/String} opts.status Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
* @param {module:Model/String} opts.filter Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
* @param {Number} opts.pageSize Number of definitions, which are array elements, to return per paged response.
* @param {Number} opts.page Page number to return.
* @param {module:Model/String} opts.orderBy Sort by a dimension. You can sort by only one dimension. Accepted values are definitionKey, name, createdDate, modifiedDate, and status.
Expand Down Expand Up @@ -793,7 +793,7 @@ module.exports = class TransactionalMessagingApi extends BaseApi {
* getSmsDefinitions
* Gets a list of SMS definitions.
* @param {Object} opts Optional parameters
* @param {module:Model/String} opts.status Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
* @param {module:Model/String} opts.filter Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
* @param {Number} opts.pageSize Number of definitions, which are array elements, to return per paged response.
* @param {Number} opts.page Page number to return.
* @param {module:Model/String} opts.orderBy Sort by a dimension. You can sort by only one dimension. Accepted values are definitionKey, name, createdDate, modifiedDate, and status.
Expand All @@ -807,10 +807,10 @@ module.exports = class TransactionalMessagingApi extends BaseApi {
let pathParams = {
};
let queryParams = {
'status': opts['status'],
'pageSize': opts['pageSize'],
'page': opts['page'],
'orderBy': opts['orderBy']
'$filter': opts['filter'],
'$pageSize': opts['pageSize'],
'$page': opts['page'],
'$orderBy': opts['orderBy']
};
let headerParams = {
};
Expand All @@ -833,7 +833,7 @@ module.exports = class TransactionalMessagingApi extends BaseApi {
* getSmsDefinitions
* Gets a list of SMS definitions.
* @param {Object} opts Optional parameters
* @param {module:Model/String} opts.status Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
* @param {module:Model/String} opts.filter Filter by status type. Accepted values are active, inactive, or deleted. Valid operations are eq and neq.
* @param {Number} opts.pageSize Number of definitions, which are array elements, to return per paged response.
* @param {Number} opts.page Page number to return.
* @param {module:Model/String} opts.orderBy Sort by a dimension. You can sort by only one dimension. Accepted values are definitionKey, name, createdDate, modifiedDate, and status.
Expand Down
11 changes: 1 addition & 10 deletions test/integration/api/AssetApi.spec.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
const ApiSutFactory = require('./ApiSutFactory');

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', '../../../src'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require('../../../src'));
} else {
// Browser globals (root is window)
factory(root.expect, root.SalesforceMarketingCloud);
}
factory(require('expect.js'), require('../../../src'));
}(this, function(expect, SalesforceMarketingCloud) {
'use strict';

Expand Down
11 changes: 1 addition & 10 deletions test/integration/api/CampaignApi.spec.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
const ApiSutFactory = require('./ApiSutFactory');

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', '../../../src'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require('../../../src'));
} else {
// Browser globals (root is window)
factory(root.expect, root.SalesforceMarketingCloud);
}
factory(require('expect.js'), require('../../../src'));
}(this, function(expect, SalesforceMarketingCloud) {
'use strict';

Expand Down
11 changes: 1 addition & 10 deletions test/integration/api/TransactionalMessagingApi.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@ const ApiSutFactory = require('./ApiSutFactory');
const EnvironmentConfigProvider = require('../../../src/EnvironmentConfigProvider');

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', '../../../src'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require('../../../src'));
} else {
// Browser globals (root is window)
factory(root.expect, root.SalesforceMarketingCloud);
}
factory(require('expect.js'), require('../../../src'));
}(this, function(expect, SalesforceMarketingCloud) {
'use strict';

Expand Down

0 comments on commit 5024d05

Please sign in to comment.