diff --git a/docs/TransactionalMessagingApi.md b/docs/TransactionalMessagingApi.md index ffef7a9..c0b36c2 100644 --- a/docs/TransactionalMessagingApi.md +++ b/docs/TransactionalMessagingApi.md @@ -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. @@ -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] @@ -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. @@ -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] diff --git a/src/Api/TransactionalMessagingApi.js b/src/Api/TransactionalMessagingApi.js index a75f311..d69035d 100644 --- a/src/Api/TransactionalMessagingApi.js +++ b/src/Api/TransactionalMessagingApi.js @@ -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. @@ -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 = { }; @@ -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. @@ -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. @@ -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 = { }; @@ -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. diff --git a/test/integration/api/AssetApi.spec.js b/test/integration/api/AssetApi.spec.js index 6da584f..922050e 100644 --- a/test/integration/api/AssetApi.spec.js +++ b/test/integration/api/AssetApi.spec.js @@ -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'; diff --git a/test/integration/api/CampaignApi.spec.js b/test/integration/api/CampaignApi.spec.js index 1095522..2a24ddb 100644 --- a/test/integration/api/CampaignApi.spec.js +++ b/test/integration/api/CampaignApi.spec.js @@ -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'; diff --git a/test/integration/api/TransactionalMessagingApi.spec.js b/test/integration/api/TransactionalMessagingApi.spec.js index 22ba05b..6292415 100644 --- a/test/integration/api/TransactionalMessagingApi.spec.js +++ b/test/integration/api/TransactionalMessagingApi.spec.js @@ -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';