@n3oltd/umbraco-data-imports-client
Advanced tools
Comparing version 10.0.10 to 10.0.11
@@ -14,3 +14,3 @@ export declare class ImportsClient { | ||
protected processGetTemplate(response: Response): Promise<void>; | ||
queue(contentId: string, contentType: string, req: QueueImportsReq): Promise<QueueImportsRes>; | ||
queue(containerId: string, contentType: string, req: QueueImportsReq): Promise<QueueImportsRes>; | ||
protected processQueue(response: Response): Promise<QueueImportsRes>; | ||
@@ -17,0 +17,0 @@ } |
@@ -188,8 +188,8 @@ //---------------------- | ||
}; | ||
ImportsClient.prototype.queue = function (contentId, contentType, req) { | ||
ImportsClient.prototype.queue = function (containerId, contentType, req) { | ||
var _this = this; | ||
var url_ = this.baseUrl + "/umbraco/backoffice/api/Imports/queue/{contentId}/{contentType}"; | ||
if (contentId === undefined || contentId === null) | ||
throw new Error("The parameter 'contentId' must be defined."); | ||
url_ = url_.replace("{contentId}", encodeURIComponent("" + contentId)); | ||
var url_ = this.baseUrl + "/umbraco/backoffice/api/Imports/queue/{containerId}/{contentType}"; | ||
if (containerId === undefined || containerId === null) | ||
throw new Error("The parameter 'containerId' must be defined."); | ||
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId)); | ||
if (contentType === undefined || contentType === null) | ||
@@ -196,0 +196,0 @@ throw new Error("The parameter 'contentType' must be defined."); |
@@ -14,3 +14,3 @@ export declare class ImportsClient { | ||
protected processGetTemplate(response: Response): Promise<void>; | ||
queue(contentId: string, contentType: string, req: QueueImportsReq): Promise<QueueImportsRes>; | ||
queue(containerId: string, contentType: string, req: QueueImportsReq): Promise<QueueImportsRes>; | ||
protected processQueue(response: Response): Promise<QueueImportsRes>; | ||
@@ -17,0 +17,0 @@ } |
@@ -188,8 +188,8 @@ //---------------------- | ||
}; | ||
ImportsClient.prototype.queue = function (contentId, contentType, req) { | ||
ImportsClient.prototype.queue = function (containerId, contentType, req) { | ||
var _this = this; | ||
var url_ = this.baseUrl + "/umbraco/backoffice/api/Imports/queue/{contentId}/{contentType}"; | ||
if (contentId === undefined || contentId === null) | ||
throw new Error("The parameter 'contentId' must be defined."); | ||
url_ = url_.replace("{contentId}", encodeURIComponent("" + contentId)); | ||
var url_ = this.baseUrl + "/umbraco/backoffice/api/Imports/queue/{containerId}/{contentType}"; | ||
if (containerId === undefined || containerId === null) | ||
throw new Error("The parameter 'containerId' must be defined."); | ||
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId)); | ||
if (contentType === undefined || contentType === null) | ||
@@ -196,0 +196,0 @@ throw new Error("The parameter 'contentType' must be defined."); |
@@ -5,3 +5,3 @@ { | ||
"description": "TODO", | ||
"version": "10.0.10", | ||
"version": "10.0.11", | ||
"dependencies": {}, | ||
@@ -8,0 +8,0 @@ "license": "UNLICENSED", |
@@ -166,7 +166,7 @@ //---------------------- | ||
queue(contentId: string, contentType: string, req: QueueImportsReq): Promise<QueueImportsRes> { | ||
let url_ = this.baseUrl + "/umbraco/backoffice/api/Imports/queue/{contentId}/{contentType}"; | ||
if (contentId === undefined || contentId === null) | ||
throw new Error("The parameter 'contentId' must be defined."); | ||
url_ = url_.replace("{contentId}", encodeURIComponent("" + contentId)); | ||
queue(containerId: string, contentType: string, req: QueueImportsReq): Promise<QueueImportsRes> { | ||
let url_ = this.baseUrl + "/umbraco/backoffice/api/Imports/queue/{containerId}/{contentType}"; | ||
if (containerId === undefined || containerId === null) | ||
throw new Error("The parameter 'containerId' must be defined."); | ||
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId)); | ||
if (contentType === undefined || contentType === null) | ||
@@ -173,0 +173,0 @@ throw new Error("The parameter 'contentType' must be defined."); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
104005