Resolved problem code so it will transpile.
This commit is contained in:
parent
2464f792f3
commit
ca90c9f511
|
|
@ -31,24 +31,6 @@
|
|||
|
||||
const PRODUCT_ADVERTISING_API = 'ProductAdvertisingAPI';
|
||||
|
||||
//wtf:
|
||||
// (function(root, factory) {
|
||||
// if (typeof define === 'function' && define.amd) {
|
||||
// // AMD. Register as an anonymous module.
|
||||
// define(['superagent', 'querystring'], factory);
|
||||
// } else if (typeof module === 'object' && module.exports) {
|
||||
// // CommonJS-like environments that support module.exports, like Node.
|
||||
// module.exports = factory(require('superagent'), require('querystring'));
|
||||
// } else {
|
||||
// // Browser globals (root is window)
|
||||
// if (!root.ProductAdvertisingAPIv1) {
|
||||
// root.ProductAdvertisingAPIv1 = {};
|
||||
// }
|
||||
// root.ProductAdvertisingAPIv1.ApiClient = factory(root.superagent, root.querystring);
|
||||
// }
|
||||
// }(this, function(superagent, querystring) {
|
||||
// 'use strict';
|
||||
|
||||
/**
|
||||
* @module ApiClient
|
||||
* @version 1.0.0
|
||||
|
|
@ -583,6 +565,5 @@
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -23,6 +23,13 @@
|
|||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
import { GetBrowseNodesRequest } from "../model/GetBrowseNodesRequest";
|
||||
import { GetBrowseNodesResponse } from "../model/GetBrowseNodesResponse";
|
||||
import { GetItemsRequest } from "../model/GetItemsRequest";
|
||||
import { GetItemsResponse } from "../model/GetItemsResponse";
|
||||
import { GetVariationsRequest } from "../model/GetVariationsRequest";
|
||||
import { GetVariationsResponse } from "../model/GetVariationsResponse";
|
||||
import { SearchItemsRequest } from "../model/SearchItemsRequest";
|
||||
import { SearchItemsResponse } from "../model/SearchItemsResponse";
|
||||
|
||||
/**
|
||||
* Default service.
|
||||
|
|
@ -86,7 +93,7 @@
|
|||
*/
|
||||
public getBrowseNodes(getBrowseNodesRequest: GetBrowseNodesRequest) {
|
||||
return this.getBrowseNodesWithHttpInfo(getBrowseNodesRequest)
|
||||
.then(function(response_and_data) {
|
||||
.then(function(response_and_data: any) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
}
|
||||
|
|
@ -134,7 +141,7 @@
|
|||
*/
|
||||
public getItems(getItemsRequest: GetItemsRequest) {
|
||||
return this.getItemsWithHttpInfo(getItemsRequest)
|
||||
.then(function(response_and_data) {
|
||||
.then(function(response_and_data: any) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
}
|
||||
|
|
@ -182,7 +189,7 @@
|
|||
*/
|
||||
public getVariations(getVariationsRequest: GetVariationsRequest) {
|
||||
return this.getVariationsWithHttpInfo(getVariationsRequest)
|
||||
.then(function(response_and_data) {
|
||||
.then(function(response_and_data: any) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
}
|
||||
|
|
@ -230,7 +237,7 @@
|
|||
*/
|
||||
public searchItems(searchItemsRequest: SearchItemsRequest) {
|
||||
return this.searchItemsWithHttpInfo(searchItemsRequest)
|
||||
.then(function(response_and_data) {
|
||||
.then(function(response_and_data: any) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user