Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gastromemories-api-client

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gastromemories-api-client - npm Package Compare versions

Comparing version 1.0.30 to 1.0.31

140

dist/index.d.ts

@@ -17,2 +17,14 @@ export declare class ImagesClient {

}
export declare class ImageTagSuggestionsClient {
private http;
private baseUrl;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
constructor(baseUrl?: string, http?: {
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
});
createImageTagSuggestion(command: CreateImageTagSuggestionCommand): Promise<string>;
protected processCreateImageTagSuggestion(response: Response): Promise<string>;
getImageTagSuggestion(id: string): Promise<ImageTagSuggestionDto>;
protected processGetImageTagSuggestion(response: Response): Promise<ImageTagSuggestionDto>;
}
export declare class MemoriesClient {

@@ -44,20 +56,2 @@ private http;

}
export declare class TodoItemsClient {
private http;
private baseUrl;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
constructor(baseUrl?: string, http?: {
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
});
getTodoItemsWithPagination(listId: number, pageNumber: number, pageSize: number): Promise<PaginatedListOfTodoItemBriefDto>;
protected processGetTodoItemsWithPagination(response: Response): Promise<PaginatedListOfTodoItemBriefDto>;
createTodoItem(command: CreateTodoItemCommand): Promise<string>;
protected processCreateTodoItem(response: Response): Promise<string>;
updateTodoItem(id: number, command: UpdateTodoItemCommand): Promise<void>;
protected processUpdateTodoItem(response: Response): Promise<void>;
deleteTodoItem(id: number): Promise<void>;
protected processDeleteTodoItem(response: Response): Promise<void>;
updateTodoItemDetail(id: number, command: UpdateTodoItemDetailCommand): Promise<void>;
protected processUpdateTodoItemDetail(response: Response): Promise<void>;
}
export declare class CreateImageCommand implements ICreateImageCommand {

@@ -109,2 +103,28 @@ type?: ImageTypeEnum;

}
export declare class CreateImageTagSuggestionCommand implements ICreateImageTagSuggestionCommand {
imageId?: string;
constructor(data?: ICreateImageTagSuggestionCommand);
init(_data?: any): void;
static fromJS(data: any): CreateImageTagSuggestionCommand;
toJSON(data?: any): any;
}
export interface ICreateImageTagSuggestionCommand {
imageId?: string;
}
export declare class ImageTagSuggestionDto implements IImageTagSuggestionDto {
id?: string;
ownerId?: string;
imageId?: string;
suggestedTags?: string[] | undefined;
constructor(data?: IImageTagSuggestionDto);
init(_data?: any): void;
static fromJS(data: any): ImageTagSuggestionDto;
toJSON(data?: any): any;
}
export interface IImageTagSuggestionDto {
id?: string;
ownerId?: string;
imageId?: string;
suggestedTags?: string[] | undefined;
}
export declare class CreateMemoryCommand implements ICreateMemoryCommand {

@@ -246,86 +266,2 @@ tags?: CreateOrUpdateMemoryTagDto[];

}
export declare class PaginatedListOfTodoItemBriefDto implements IPaginatedListOfTodoItemBriefDto {
items?: TodoItemBriefDto[];
pageNumber?: number;
totalPages?: number;
totalCount?: number;
hasPreviousPage?: boolean;
hasNextPage?: boolean;
constructor(data?: IPaginatedListOfTodoItemBriefDto);
init(_data?: any): void;
static fromJS(data: any): PaginatedListOfTodoItemBriefDto;
toJSON(data?: any): any;
}
export interface IPaginatedListOfTodoItemBriefDto {
items?: TodoItemBriefDto[];
pageNumber?: number;
totalPages?: number;
totalCount?: number;
hasPreviousPage?: boolean;
hasNextPage?: boolean;
}
export declare class TodoItemBriefDto implements ITodoItemBriefDto {
id?: number;
listId?: number;
title?: string | undefined;
done?: boolean;
constructor(data?: ITodoItemBriefDto);
init(_data?: any): void;
static fromJS(data: any): TodoItemBriefDto;
toJSON(data?: any): any;
}
export interface ITodoItemBriefDto {
id?: number;
listId?: number;
title?: string | undefined;
done?: boolean;
}
export declare class CreateTodoItemCommand implements ICreateTodoItemCommand {
listId?: number;
title?: string | undefined;
constructor(data?: ICreateTodoItemCommand);
init(_data?: any): void;
static fromJS(data: any): CreateTodoItemCommand;
toJSON(data?: any): any;
}
export interface ICreateTodoItemCommand {
listId?: number;
title?: string | undefined;
}
export declare class UpdateTodoItemCommand implements IUpdateTodoItemCommand {
id?: number;
title?: string | undefined;
done?: boolean;
constructor(data?: IUpdateTodoItemCommand);
init(_data?: any): void;
static fromJS(data: any): UpdateTodoItemCommand;
toJSON(data?: any): any;
}
export interface IUpdateTodoItemCommand {
id?: number;
title?: string | undefined;
done?: boolean;
}
export declare class UpdateTodoItemDetailCommand implements IUpdateTodoItemDetailCommand {
id?: number;
listId?: number;
priority?: PriorityLevel;
note?: string | undefined;
constructor(data?: IUpdateTodoItemDetailCommand);
init(_data?: any): void;
static fromJS(data: any): UpdateTodoItemDetailCommand;
toJSON(data?: any): any;
}
export interface IUpdateTodoItemDetailCommand {
id?: number;
listId?: number;
priority?: PriorityLevel;
note?: string | undefined;
}
export declare enum PriorityLevel {
None = 0,
Low = 1,
Medium = 2,
High = 3
}
export declare class ApiException extends Error {

@@ -332,0 +268,0 @@ message: string;

@@ -23,3 +23,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiException = exports.PriorityLevel = exports.UpdateTodoItemDetailCommand = exports.UpdateTodoItemCommand = exports.CreateTodoItemCommand = exports.TodoItemBriefDto = exports.PaginatedListOfTodoItemBriefDto = exports.PaginatedListOfMemoryTagDto = exports.MemoryTagDto = exports.MemoryDto = exports.PaginatedListOfMemoryDto = exports.UpdateMemoryCommand = exports.CreateOrUpdateMemoryTagDto = exports.CreateMemoryCommand = exports.ImageDto = exports.ImageUploadUrlDto = exports.ImageTypeEnum = exports.CreateImageCommand = exports.TodoItemsClient = exports.MemoryTagsClient = exports.MemoriesClient = exports.ImagesClient = void 0;
exports.ApiException = exports.PaginatedListOfMemoryTagDto = exports.MemoryTagDto = exports.MemoryDto = exports.PaginatedListOfMemoryDto = exports.UpdateMemoryCommand = exports.CreateOrUpdateMemoryTagDto = exports.CreateMemoryCommand = exports.ImageTagSuggestionDto = exports.CreateImageTagSuggestionCommand = exports.ImageDto = exports.ImageUploadUrlDto = exports.ImageTypeEnum = exports.CreateImageCommand = exports.MemoryTagsClient = exports.MemoriesClient = exports.ImageTagSuggestionsClient = exports.ImagesClient = void 0;
/* tslint:disable */

@@ -191,4 +191,4 @@ /* eslint-disable */

exports.ImagesClient = ImagesClient;
var MemoriesClient = /** @class */ (function () {
function MemoriesClient(baseUrl, http) {
var ImageTagSuggestionsClient = /** @class */ (function () {
function ImageTagSuggestionsClient(baseUrl, http) {
this.jsonParseReviver = undefined;

@@ -198,5 +198,5 @@ this.http = http ? http : window;

}
MemoriesClient.prototype.createMemory = function (command) {
ImageTagSuggestionsClient.prototype.createImageTagSuggestion = function (command) {
var _this = this;
var url_ = this.baseUrl + "/api/Memories";
var url_ = this.baseUrl + "/api/ImageTagSuggestions";
url_ = url_.replace(/[?&]$/, "");

@@ -213,6 +213,6 @@ var content_ = JSON.stringify(command);

return this.http.fetch(url_, options_).then(function (_response) {
return _this.processCreateMemory(_response);
return _this.processCreateImageTagSuggestion(_response);
});
};
MemoriesClient.prototype.processCreateMemory = function (response) {
ImageTagSuggestionsClient.prototype.processCreateImageTagSuggestion = function (response) {
var _this = this;

@@ -240,31 +240,8 @@ var status = response.status;

};
MemoriesClient.prototype.getMemoriesWithPagination = function (pageNumber, pageSize, tags, search, year, month, day, xMin, xMax, yMin, yMax) {
ImageTagSuggestionsClient.prototype.getImageTagSuggestion = function (id) {
var _this = this;
var url_ = this.baseUrl + "/api/Memories?";
if (pageNumber === undefined || pageNumber === null)
throw new Error("The parameter 'pageNumber' must be defined and cannot be null.");
else
url_ += "PageNumber=" + encodeURIComponent("" + pageNumber) + "&";
if (pageSize === undefined || pageSize === null)
throw new Error("The parameter 'pageSize' must be defined and cannot be null.");
else
url_ += "PageSize=" + encodeURIComponent("" + pageSize) + "&";
if (tags !== undefined && tags !== null)
tags && tags.forEach(function (item) { url_ += "Tags=" + encodeURIComponent("" + item) + "&"; });
if (search !== undefined && search !== null)
url_ += "Search=" + encodeURIComponent("" + search) + "&";
if (year !== undefined && year !== null)
url_ += "Year=" + encodeURIComponent("" + year) + "&";
if (month !== undefined && month !== null)
url_ += "Month=" + encodeURIComponent("" + month) + "&";
if (day !== undefined && day !== null)
url_ += "Day=" + encodeURIComponent("" + day) + "&";
if (xMin !== undefined && xMin !== null)
url_ += "XMin=" + encodeURIComponent("" + xMin) + "&";
if (xMax !== undefined && xMax !== null)
url_ += "XMax=" + encodeURIComponent("" + xMax) + "&";
if (yMin !== undefined && yMin !== null)
url_ += "YMin=" + encodeURIComponent("" + yMin) + "&";
if (yMax !== undefined && yMax !== null)
url_ += "YMax=" + encodeURIComponent("" + yMax) + "&";
var url_ = this.baseUrl + "/api/ImageTagSuggestions/{id}";
if (id === undefined || id === null)
throw new Error("The parameter 'id' must be defined.");
url_ = url_.replace("{id}", encodeURIComponent("" + id));
url_ = url_.replace(/[?&]$/, "");

@@ -278,6 +255,6 @@ var options_ = {

return this.http.fetch(url_, options_).then(function (_response) {
return _this.processGetMemoriesWithPagination(_response);
return _this.processGetImageTagSuggestion(_response);
});
};
MemoriesClient.prototype.processGetMemoriesWithPagination = function (response) {
ImageTagSuggestionsClient.prototype.processGetImageTagSuggestion = function (response) {
var _this = this;

@@ -294,3 +271,3 @@ var status = response.status;

var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
result200 = PaginatedListOfMemoryDto.fromJS(resultData200);
result200 = ImageTagSuggestionDto.fromJS(resultData200);
return result200;

@@ -306,79 +283,7 @@ });

};
MemoriesClient.prototype.updateMemory = function (id, command) {
var _this = this;
var url_ = this.baseUrl + "/api/Memories/${id}";
if (id === undefined || id === null)
throw new Error("The parameter 'id' must be defined.");
url_ = url_.replace("{id}", encodeURIComponent("" + id));
url_ = url_.replace(/[?&]$/, "");
var content_ = JSON.stringify(command);
var options_ = {
body: content_,
method: "PUT",
headers: {
"Content-Type": "application/json",
}
};
return this.http.fetch(url_, options_).then(function (_response) {
return _this.processUpdateMemory(_response);
});
};
MemoriesClient.prototype.processUpdateMemory = function (response) {
var status = response.status;
var _headers = {};
if (response.headers && response.headers.forEach) {
response.headers.forEach(function (v, k) { return _headers[k] = v; });
}
;
if (status === 200) {
return response.text().then(function (_responseText) {
return;
});
}
else if (status !== 200 && status !== 204) {
return response.text().then(function (_responseText) {
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
});
}
return Promise.resolve(null);
};
MemoriesClient.prototype.deleteMemory = function (id) {
var _this = this;
var url_ = this.baseUrl + "/api/Memories/{id}";
if (id === undefined || id === null)
throw new Error("The parameter 'id' must be defined.");
url_ = url_.replace("{id}", encodeURIComponent("" + id));
url_ = url_.replace(/[?&]$/, "");
var options_ = {
method: "DELETE",
headers: {}
};
return this.http.fetch(url_, options_).then(function (_response) {
return _this.processDeleteMemory(_response);
});
};
MemoriesClient.prototype.processDeleteMemory = function (response) {
var status = response.status;
var _headers = {};
if (response.headers && response.headers.forEach) {
response.headers.forEach(function (v, k) { return _headers[k] = v; });
}
;
if (status === 200) {
return response.text().then(function (_responseText) {
return;
});
}
else if (status !== 200 && status !== 204) {
return response.text().then(function (_responseText) {
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
});
}
return Promise.resolve(null);
};
return MemoriesClient;
return ImageTagSuggestionsClient;
}());
exports.MemoriesClient = MemoriesClient;
var MemoryTagsClient = /** @class */ (function () {
function MemoryTagsClient(baseUrl, http) {
exports.ImageTagSuggestionsClient = ImageTagSuggestionsClient;
var MemoriesClient = /** @class */ (function () {
function MemoriesClient(baseUrl, http) {
this.jsonParseReviver = undefined;

@@ -388,17 +293,12 @@ this.http = http ? http : window;

}
MemoryTagsClient.prototype.getMemoryTagsWithPagination = function (pageNumber, pageSize) {
MemoriesClient.prototype.createMemory = function (command) {
var _this = this;
var url_ = this.baseUrl + "/api/MemoryTags?";
if (pageNumber === undefined || pageNumber === null)
throw new Error("The parameter 'pageNumber' must be defined and cannot be null.");
else
url_ += "PageNumber=" + encodeURIComponent("" + pageNumber) + "&";
if (pageSize === undefined || pageSize === null)
throw new Error("The parameter 'pageSize' must be defined and cannot be null.");
else
url_ += "PageSize=" + encodeURIComponent("" + pageSize) + "&";
var url_ = this.baseUrl + "/api/Memories";
url_ = url_.replace(/[?&]$/, "");
var content_ = JSON.stringify(command);
var options_ = {
method: "GET",
body: content_,
method: "POST",
headers: {
"Content-Type": "application/json",
"Accept": "application/json"

@@ -408,6 +308,6 @@ }

return this.http.fetch(url_, options_).then(function (_response) {
return _this.processGetMemoryTagsWithPagination(_response);
return _this.processCreateMemory(_response);
});
};
MemoryTagsClient.prototype.processGetMemoryTagsWithPagination = function (response) {
MemoriesClient.prototype.processCreateMemory = function (response) {
var _this = this;

@@ -424,3 +324,3 @@ var status = response.status;

var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
result200 = PaginatedListOfMemoryTagDto.fromJS(resultData200);
result200 = resultData200 !== undefined ? resultData200 : null;
return result200;

@@ -436,18 +336,5 @@ });

};
return MemoryTagsClient;
}());
exports.MemoryTagsClient = MemoryTagsClient;
var TodoItemsClient = /** @class */ (function () {
function TodoItemsClient(baseUrl, http) {
this.jsonParseReviver = undefined;
this.http = http ? http : window;
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "http://localhost:5000";
}
TodoItemsClient.prototype.getTodoItemsWithPagination = function (listId, pageNumber, pageSize) {
MemoriesClient.prototype.getMemoriesWithPagination = function (pageNumber, pageSize, tags, search, year, month, day, xMin, xMax, yMin, yMax) {
var _this = this;
var url_ = this.baseUrl + "/api/TodoItems?";
if (listId === undefined || listId === null)
throw new Error("The parameter 'listId' must be defined and cannot be null.");
else
url_ += "ListId=" + encodeURIComponent("" + listId) + "&";
var url_ = this.baseUrl + "/api/Memories?";
if (pageNumber === undefined || pageNumber === null)

@@ -461,2 +348,20 @@ throw new Error("The parameter 'pageNumber' must be defined and cannot be null.");

url_ += "PageSize=" + encodeURIComponent("" + pageSize) + "&";
if (tags !== undefined && tags !== null)
tags && tags.forEach(function (item) { url_ += "Tags=" + encodeURIComponent("" + item) + "&"; });
if (search !== undefined && search !== null)
url_ += "Search=" + encodeURIComponent("" + search) + "&";
if (year !== undefined && year !== null)
url_ += "Year=" + encodeURIComponent("" + year) + "&";
if (month !== undefined && month !== null)
url_ += "Month=" + encodeURIComponent("" + month) + "&";
if (day !== undefined && day !== null)
url_ += "Day=" + encodeURIComponent("" + day) + "&";
if (xMin !== undefined && xMin !== null)
url_ += "XMin=" + encodeURIComponent("" + xMin) + "&";
if (xMax !== undefined && xMax !== null)
url_ += "XMax=" + encodeURIComponent("" + xMax) + "&";
if (yMin !== undefined && yMin !== null)
url_ += "YMin=" + encodeURIComponent("" + yMin) + "&";
if (yMax !== undefined && yMax !== null)
url_ += "YMax=" + encodeURIComponent("" + yMax) + "&";
url_ = url_.replace(/[?&]$/, "");

@@ -470,6 +375,6 @@ var options_ = {

return this.http.fetch(url_, options_).then(function (_response) {
return _this.processGetTodoItemsWithPagination(_response);
return _this.processGetMemoriesWithPagination(_response);
});
};
TodoItemsClient.prototype.processGetTodoItemsWithPagination = function (response) {
MemoriesClient.prototype.processGetMemoriesWithPagination = function (response) {
var _this = this;

@@ -486,3 +391,3 @@ var status = response.status;

var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
result200 = PaginatedListOfTodoItemBriefDto.fromJS(resultData200);
result200 = PaginatedListOfMemoryDto.fromJS(resultData200);
return result200;

@@ -498,45 +403,5 @@ });

};
TodoItemsClient.prototype.createTodoItem = function (command) {
MemoriesClient.prototype.updateMemory = function (id, command) {
var _this = this;
var url_ = this.baseUrl + "/api/TodoItems";
url_ = url_.replace(/[?&]$/, "");
var content_ = JSON.stringify(command);
var options_ = {
body: content_,
method: "POST",
headers: {
"Content-Type": "application/json",
"Accept": "application/json"
}
};
return this.http.fetch(url_, options_).then(function (_response) {
return _this.processCreateTodoItem(_response);
});
};
TodoItemsClient.prototype.processCreateTodoItem = function (response) {
var _this = this;
var status = response.status;
var _headers = {};
if (response.headers && response.headers.forEach) {
response.headers.forEach(function (v, k) { return _headers[k] = v; });
}
;
if (status === 200) {
return response.text().then(function (_responseText) {
var result200 = null;
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
result200 = resultData200 !== undefined ? resultData200 : null;
return result200;
});
}
else if (status !== 200 && status !== 204) {
return response.text().then(function (_responseText) {
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
});
}
return Promise.resolve(null);
};
TodoItemsClient.prototype.updateTodoItem = function (id, command) {
var _this = this;
var url_ = this.baseUrl + "/api/TodoItems/{id}";
var url_ = this.baseUrl + "/api/Memories/${id}";
if (id === undefined || id === null)

@@ -555,6 +420,6 @@ throw new Error("The parameter 'id' must be defined.");

return this.http.fetch(url_, options_).then(function (_response) {
return _this.processUpdateTodoItem(_response);
return _this.processUpdateMemory(_response);
});
};
TodoItemsClient.prototype.processUpdateTodoItem = function (response) {
MemoriesClient.prototype.processUpdateMemory = function (response) {
var status = response.status;

@@ -578,5 +443,5 @@ var _headers = {};

};
TodoItemsClient.prototype.deleteTodoItem = function (id) {
MemoriesClient.prototype.deleteMemory = function (id) {
var _this = this;
var url_ = this.baseUrl + "/api/TodoItems/{id}";
var url_ = this.baseUrl + "/api/Memories/{id}";
if (id === undefined || id === null)

@@ -591,6 +456,6 @@ throw new Error("The parameter 'id' must be defined.");

return this.http.fetch(url_, options_).then(function (_response) {
return _this.processDeleteTodoItem(_response);
return _this.processDeleteMemory(_response);
});
};
TodoItemsClient.prototype.processDeleteTodoItem = function (response) {
MemoriesClient.prototype.processDeleteMemory = function (response) {
var status = response.status;

@@ -614,22 +479,35 @@ var _headers = {};

};
TodoItemsClient.prototype.updateTodoItemDetail = function (id, command) {
return MemoriesClient;
}());
exports.MemoriesClient = MemoriesClient;
var MemoryTagsClient = /** @class */ (function () {
function MemoryTagsClient(baseUrl, http) {
this.jsonParseReviver = undefined;
this.http = http ? http : window;
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "http://localhost:5000";
}
MemoryTagsClient.prototype.getMemoryTagsWithPagination = function (pageNumber, pageSize) {
var _this = this;
var url_ = this.baseUrl + "/api/TodoItems/UpdateDetail/{id}";
if (id === undefined || id === null)
throw new Error("The parameter 'id' must be defined.");
url_ = url_.replace("{id}", encodeURIComponent("" + id));
var url_ = this.baseUrl + "/api/MemoryTags?";
if (pageNumber === undefined || pageNumber === null)
throw new Error("The parameter 'pageNumber' must be defined and cannot be null.");
else
url_ += "PageNumber=" + encodeURIComponent("" + pageNumber) + "&";
if (pageSize === undefined || pageSize === null)
throw new Error("The parameter 'pageSize' must be defined and cannot be null.");
else
url_ += "PageSize=" + encodeURIComponent("" + pageSize) + "&";
url_ = url_.replace(/[?&]$/, "");
var content_ = JSON.stringify(command);
var options_ = {
body: content_,
method: "PUT",
method: "GET",
headers: {
"Content-Type": "application/json",
"Accept": "application/json"
}
};
return this.http.fetch(url_, options_).then(function (_response) {
return _this.processUpdateTodoItemDetail(_response);
return _this.processGetMemoryTagsWithPagination(_response);
});
};
TodoItemsClient.prototype.processUpdateTodoItemDetail = function (response) {
MemoryTagsClient.prototype.processGetMemoryTagsWithPagination = function (response) {
var _this = this;
var status = response.status;

@@ -643,3 +521,6 @@ var _headers = {};

return response.text().then(function (_responseText) {
return;
var result200 = null;
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
result200 = PaginatedListOfMemoryTagDto.fromJS(resultData200);
return result200;
});

@@ -654,5 +535,5 @@ }

};
return TodoItemsClient;
return MemoryTagsClient;
}());
exports.TodoItemsClient = TodoItemsClient;
exports.MemoryTagsClient = MemoryTagsClient;
var CreateImageCommand = /** @class */ (function () {

@@ -771,2 +652,76 @@ function CreateImageCommand(data) {

exports.ImageDto = ImageDto;
var CreateImageTagSuggestionCommand = /** @class */ (function () {
function CreateImageTagSuggestionCommand(data) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
this[property] = data[property];
}
}
}
CreateImageTagSuggestionCommand.prototype.init = function (_data) {
if (_data) {
this.imageId = _data["imageId"];
}
};
CreateImageTagSuggestionCommand.fromJS = function (data) {
data = typeof data === 'object' ? data : {};
var result = new CreateImageTagSuggestionCommand();
result.init(data);
return result;
};
CreateImageTagSuggestionCommand.prototype.toJSON = function (data) {
data = typeof data === 'object' ? data : {};
data["imageId"] = this.imageId;
return data;
};
return CreateImageTagSuggestionCommand;
}());
exports.CreateImageTagSuggestionCommand = CreateImageTagSuggestionCommand;
var ImageTagSuggestionDto = /** @class */ (function () {
function ImageTagSuggestionDto(data) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
this[property] = data[property];
}
}
}
ImageTagSuggestionDto.prototype.init = function (_data) {
if (_data) {
this.id = _data["id"];
this.ownerId = _data["ownerId"];
this.imageId = _data["imageId"];
if (Array.isArray(_data["suggestedTags"])) {
this.suggestedTags = [];
for (var _i = 0, _a = _data["suggestedTags"]; _i < _a.length; _i++) {
var item = _a[_i];
this.suggestedTags.push(item);
}
}
}
};
ImageTagSuggestionDto.fromJS = function (data) {
data = typeof data === 'object' ? data : {};
var result = new ImageTagSuggestionDto();
result.init(data);
return result;
};
ImageTagSuggestionDto.prototype.toJSON = function (data) {
data = typeof data === 'object' ? data : {};
data["id"] = this.id;
data["ownerId"] = this.ownerId;
data["imageId"] = this.imageId;
if (Array.isArray(this.suggestedTags)) {
data["suggestedTags"] = [];
for (var _i = 0, _a = this.suggestedTags; _i < _a.length; _i++) {
var item = _a[_i];
data["suggestedTags"].push(item);
}
}
return data;
};
return ImageTagSuggestionDto;
}());
exports.ImageTagSuggestionDto = ImageTagSuggestionDto;
var CreateMemoryCommand = /** @class */ (function () {

@@ -1094,189 +1049,2 @@ function CreateMemoryCommand(data) {

exports.PaginatedListOfMemoryTagDto = PaginatedListOfMemoryTagDto;
var PaginatedListOfTodoItemBriefDto = /** @class */ (function () {
function PaginatedListOfTodoItemBriefDto(data) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
this[property] = data[property];
}
}
}
PaginatedListOfTodoItemBriefDto.prototype.init = function (_data) {
if (_data) {
if (Array.isArray(_data["items"])) {
this.items = [];
for (var _i = 0, _a = _data["items"]; _i < _a.length; _i++) {
var item = _a[_i];
this.items.push(TodoItemBriefDto.fromJS(item));
}
}
this.pageNumber = _data["pageNumber"];
this.totalPages = _data["totalPages"];
this.totalCount = _data["totalCount"];
this.hasPreviousPage = _data["hasPreviousPage"];
this.hasNextPage = _data["hasNextPage"];
}
};
PaginatedListOfTodoItemBriefDto.fromJS = function (data) {
data = typeof data === 'object' ? data : {};
var result = new PaginatedListOfTodoItemBriefDto();
result.init(data);
return result;
};
PaginatedListOfTodoItemBriefDto.prototype.toJSON = function (data) {
data = typeof data === 'object' ? data : {};
if (Array.isArray(this.items)) {
data["items"] = [];
for (var _i = 0, _a = this.items; _i < _a.length; _i++) {
var item = _a[_i];
data["items"].push(item.toJSON());
}
}
data["pageNumber"] = this.pageNumber;
data["totalPages"] = this.totalPages;
data["totalCount"] = this.totalCount;
data["hasPreviousPage"] = this.hasPreviousPage;
data["hasNextPage"] = this.hasNextPage;
return data;
};
return PaginatedListOfTodoItemBriefDto;
}());
exports.PaginatedListOfTodoItemBriefDto = PaginatedListOfTodoItemBriefDto;
var TodoItemBriefDto = /** @class */ (function () {
function TodoItemBriefDto(data) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
this[property] = data[property];
}
}
}
TodoItemBriefDto.prototype.init = function (_data) {
if (_data) {
this.id = _data["id"];
this.listId = _data["listId"];
this.title = _data["title"];
this.done = _data["done"];
}
};
TodoItemBriefDto.fromJS = function (data) {
data = typeof data === 'object' ? data : {};
var result = new TodoItemBriefDto();
result.init(data);
return result;
};
TodoItemBriefDto.prototype.toJSON = function (data) {
data = typeof data === 'object' ? data : {};
data["id"] = this.id;
data["listId"] = this.listId;
data["title"] = this.title;
data["done"] = this.done;
return data;
};
return TodoItemBriefDto;
}());
exports.TodoItemBriefDto = TodoItemBriefDto;
var CreateTodoItemCommand = /** @class */ (function () {
function CreateTodoItemCommand(data) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
this[property] = data[property];
}
}
}
CreateTodoItemCommand.prototype.init = function (_data) {
if (_data) {
this.listId = _data["listId"];
this.title = _data["title"];
}
};
CreateTodoItemCommand.fromJS = function (data) {
data = typeof data === 'object' ? data : {};
var result = new CreateTodoItemCommand();
result.init(data);
return result;
};
CreateTodoItemCommand.prototype.toJSON = function (data) {
data = typeof data === 'object' ? data : {};
data["listId"] = this.listId;
data["title"] = this.title;
return data;
};
return CreateTodoItemCommand;
}());
exports.CreateTodoItemCommand = CreateTodoItemCommand;
var UpdateTodoItemCommand = /** @class */ (function () {
function UpdateTodoItemCommand(data) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
this[property] = data[property];
}
}
}
UpdateTodoItemCommand.prototype.init = function (_data) {
if (_data) {
this.id = _data["id"];
this.title = _data["title"];
this.done = _data["done"];
}
};
UpdateTodoItemCommand.fromJS = function (data) {
data = typeof data === 'object' ? data : {};
var result = new UpdateTodoItemCommand();
result.init(data);
return result;
};
UpdateTodoItemCommand.prototype.toJSON = function (data) {
data = typeof data === 'object' ? data : {};
data["id"] = this.id;
data["title"] = this.title;
data["done"] = this.done;
return data;
};
return UpdateTodoItemCommand;
}());
exports.UpdateTodoItemCommand = UpdateTodoItemCommand;
var UpdateTodoItemDetailCommand = /** @class */ (function () {
function UpdateTodoItemDetailCommand(data) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
this[property] = data[property];
}
}
}
UpdateTodoItemDetailCommand.prototype.init = function (_data) {
if (_data) {
this.id = _data["id"];
this.listId = _data["listId"];
this.priority = _data["priority"];
this.note = _data["note"];
}
};
UpdateTodoItemDetailCommand.fromJS = function (data) {
data = typeof data === 'object' ? data : {};
var result = new UpdateTodoItemDetailCommand();
result.init(data);
return result;
};
UpdateTodoItemDetailCommand.prototype.toJSON = function (data) {
data = typeof data === 'object' ? data : {};
data["id"] = this.id;
data["listId"] = this.listId;
data["priority"] = this.priority;
data["note"] = this.note;
return data;
};
return UpdateTodoItemDetailCommand;
}());
exports.UpdateTodoItemDetailCommand = UpdateTodoItemDetailCommand;
var PriorityLevel;
(function (PriorityLevel) {
PriorityLevel[PriorityLevel["None"] = 0] = "None";
PriorityLevel[PriorityLevel["Low"] = 1] = "Low";
PriorityLevel[PriorityLevel["Medium"] = 2] = "Medium";
PriorityLevel[PriorityLevel["High"] = 3] = "High";
})(PriorityLevel || (exports.PriorityLevel = PriorityLevel = {}));
var ApiException = /** @class */ (function (_super) {

@@ -1283,0 +1051,0 @@ __extends(ApiException, _super);

@@ -168,2 +168,89 @@ //----------------------

export class ImageTagSuggestionsClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
this.baseUrl = baseUrl ?? "http://localhost:5000";
}
createImageTagSuggestion(command: CreateImageTagSuggestionCommand): Promise<string> {
let url_ = this.baseUrl + "/api/ImageTagSuggestions";
url_ = url_.replace(/[?&]$/, "");
const content_ = JSON.stringify(command);
let options_: RequestInit = {
body: content_,
method: "POST",
headers: {
"Content-Type": "application/json",
"Accept": "application/json"
}
};
return this.http.fetch(url_, options_).then((_response: Response) => {
return this.processCreateImageTagSuggestion(_response);
});
}
protected processCreateImageTagSuggestion(response: Response): Promise<string> {
const status = response.status;
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
if (status === 200) {
return response.text().then((_responseText) => {
let result200: any = null;
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
result200 = resultData200 !== undefined ? resultData200 : <any>null;
return result200;
});
} else if (status !== 200 && status !== 204) {
return response.text().then((_responseText) => {
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
});
}
return Promise.resolve<string>(null as any);
}
getImageTagSuggestion(id: string): Promise<ImageTagSuggestionDto> {
let url_ = this.baseUrl + "/api/ImageTagSuggestions/{id}";
if (id === undefined || id === null)
throw new Error("The parameter 'id' must be defined.");
url_ = url_.replace("{id}", encodeURIComponent("" + id));
url_ = url_.replace(/[?&]$/, "");
let options_: RequestInit = {
method: "GET",
headers: {
"Accept": "application/json"
}
};
return this.http.fetch(url_, options_).then((_response: Response) => {
return this.processGetImageTagSuggestion(_response);
});
}
protected processGetImageTagSuggestion(response: Response): Promise<ImageTagSuggestionDto> {
const status = response.status;
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
if (status === 200) {
return response.text().then((_responseText) => {
let result200: any = null;
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
result200 = ImageTagSuggestionDto.fromJS(resultData200);
return result200;
});
} else if (status !== 200 && status !== 204) {
return response.text().then((_responseText) => {
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
});
}
return Promise.resolve<ImageTagSuggestionDto>(null as any);
}
}
export class MemoriesClient {

@@ -402,205 +489,2 @@ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };

export class TodoItemsClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
this.baseUrl = baseUrl ?? "http://localhost:5000";
}
getTodoItemsWithPagination(listId: number, pageNumber: number, pageSize: number): Promise<PaginatedListOfTodoItemBriefDto> {
let url_ = this.baseUrl + "/api/TodoItems?";
if (listId === undefined || listId === null)
throw new Error("The parameter 'listId' must be defined and cannot be null.");
else
url_ += "ListId=" + encodeURIComponent("" + listId) + "&";
if (pageNumber === undefined || pageNumber === null)
throw new Error("The parameter 'pageNumber' must be defined and cannot be null.");
else
url_ += "PageNumber=" + encodeURIComponent("" + pageNumber) + "&";
if (pageSize === undefined || pageSize === null)
throw new Error("The parameter 'pageSize' must be defined and cannot be null.");
else
url_ += "PageSize=" + encodeURIComponent("" + pageSize) + "&";
url_ = url_.replace(/[?&]$/, "");
let options_: RequestInit = {
method: "GET",
headers: {
"Accept": "application/json"
}
};
return this.http.fetch(url_, options_).then((_response: Response) => {
return this.processGetTodoItemsWithPagination(_response);
});
}
protected processGetTodoItemsWithPagination(response: Response): Promise<PaginatedListOfTodoItemBriefDto> {
const status = response.status;
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
if (status === 200) {
return response.text().then((_responseText) => {
let result200: any = null;
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
result200 = PaginatedListOfTodoItemBriefDto.fromJS(resultData200);
return result200;
});
} else if (status !== 200 && status !== 204) {
return response.text().then((_responseText) => {
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
});
}
return Promise.resolve<PaginatedListOfTodoItemBriefDto>(null as any);
}
createTodoItem(command: CreateTodoItemCommand): Promise<string> {
let url_ = this.baseUrl + "/api/TodoItems";
url_ = url_.replace(/[?&]$/, "");
const content_ = JSON.stringify(command);
let options_: RequestInit = {
body: content_,
method: "POST",
headers: {
"Content-Type": "application/json",
"Accept": "application/json"
}
};
return this.http.fetch(url_, options_).then((_response: Response) => {
return this.processCreateTodoItem(_response);
});
}
protected processCreateTodoItem(response: Response): Promise<string> {
const status = response.status;
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
if (status === 200) {
return response.text().then((_responseText) => {
let result200: any = null;
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
result200 = resultData200 !== undefined ? resultData200 : <any>null;
return result200;
});
} else if (status !== 200 && status !== 204) {
return response.text().then((_responseText) => {
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
});
}
return Promise.resolve<string>(null as any);
}
updateTodoItem(id: number, command: UpdateTodoItemCommand): Promise<void> {
let url_ = this.baseUrl + "/api/TodoItems/{id}";
if (id === undefined || id === null)
throw new Error("The parameter 'id' must be defined.");
url_ = url_.replace("{id}", encodeURIComponent("" + id));
url_ = url_.replace(/[?&]$/, "");
const content_ = JSON.stringify(command);
let options_: RequestInit = {
body: content_,
method: "PUT",
headers: {
"Content-Type": "application/json",
}
};
return this.http.fetch(url_, options_).then((_response: Response) => {
return this.processUpdateTodoItem(_response);
});
}
protected processUpdateTodoItem(response: Response): Promise<void> {
const status = response.status;
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
if (status === 200) {
return response.text().then((_responseText) => {
return;
});
} else if (status !== 200 && status !== 204) {
return response.text().then((_responseText) => {
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
});
}
return Promise.resolve<void>(null as any);
}
deleteTodoItem(id: number): Promise<void> {
let url_ = this.baseUrl + "/api/TodoItems/{id}";
if (id === undefined || id === null)
throw new Error("The parameter 'id' must be defined.");
url_ = url_.replace("{id}", encodeURIComponent("" + id));
url_ = url_.replace(/[?&]$/, "");
let options_: RequestInit = {
method: "DELETE",
headers: {
}
};
return this.http.fetch(url_, options_).then((_response: Response) => {
return this.processDeleteTodoItem(_response);
});
}
protected processDeleteTodoItem(response: Response): Promise<void> {
const status = response.status;
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
if (status === 200) {
return response.text().then((_responseText) => {
return;
});
} else if (status !== 200 && status !== 204) {
return response.text().then((_responseText) => {
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
});
}
return Promise.resolve<void>(null as any);
}
updateTodoItemDetail(id: number, command: UpdateTodoItemDetailCommand): Promise<void> {
let url_ = this.baseUrl + "/api/TodoItems/UpdateDetail/{id}";
if (id === undefined || id === null)
throw new Error("The parameter 'id' must be defined.");
url_ = url_.replace("{id}", encodeURIComponent("" + id));
url_ = url_.replace(/[?&]$/, "");
const content_ = JSON.stringify(command);
let options_: RequestInit = {
body: content_,
method: "PUT",
headers: {
"Content-Type": "application/json",
}
};
return this.http.fetch(url_, options_).then((_response: Response) => {
return this.processUpdateTodoItemDetail(_response);
});
}
protected processUpdateTodoItemDetail(response: Response): Promise<void> {
const status = response.status;
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
if (status === 200) {
return response.text().then((_responseText) => {
return;
});
} else if (status !== 200 && status !== 204) {
return response.text().then((_responseText) => {
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
});
}
return Promise.resolve<void>(null as any);
}
}
export class CreateImageCommand implements ICreateImageCommand {

@@ -751,2 +635,94 @@ type?: ImageTypeEnum;

export class CreateImageTagSuggestionCommand implements ICreateImageTagSuggestionCommand {
imageId?: string;
constructor(data?: ICreateImageTagSuggestionCommand) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
(<any>this)[property] = (<any>data)[property];
}
}
}
init(_data?: any) {
if (_data) {
this.imageId = _data["imageId"];
}
}
static fromJS(data: any): CreateImageTagSuggestionCommand {
data = typeof data === 'object' ? data : {};
let result = new CreateImageTagSuggestionCommand();
result.init(data);
return result;
}
toJSON(data?: any) {
data = typeof data === 'object' ? data : {};
data["imageId"] = this.imageId;
return data;
}
}
export interface ICreateImageTagSuggestionCommand {
imageId?: string;
}
export class ImageTagSuggestionDto implements IImageTagSuggestionDto {
id?: string;
ownerId?: string;
imageId?: string;
suggestedTags?: string[] | undefined;
constructor(data?: IImageTagSuggestionDto) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
(<any>this)[property] = (<any>data)[property];
}
}
}
init(_data?: any) {
if (_data) {
this.id = _data["id"];
this.ownerId = _data["ownerId"];
this.imageId = _data["imageId"];
if (Array.isArray(_data["suggestedTags"])) {
this.suggestedTags = [] as any;
for (let item of _data["suggestedTags"])
this.suggestedTags!.push(item);
}
}
}
static fromJS(data: any): ImageTagSuggestionDto {
data = typeof data === 'object' ? data : {};
let result = new ImageTagSuggestionDto();
result.init(data);
return result;
}
toJSON(data?: any) {
data = typeof data === 'object' ? data : {};
data["id"] = this.id;
data["ownerId"] = this.ownerId;
data["imageId"] = this.imageId;
if (Array.isArray(this.suggestedTags)) {
data["suggestedTags"] = [];
for (let item of this.suggestedTags)
data["suggestedTags"].push(item);
}
return data;
}
}
export interface IImageTagSuggestionDto {
id?: string;
ownerId?: string;
imageId?: string;
suggestedTags?: string[] | undefined;
}
export class CreateMemoryCommand implements ICreateMemoryCommand {

@@ -1176,253 +1152,2 @@ tags?: CreateOrUpdateMemoryTagDto[];

export class PaginatedListOfTodoItemBriefDto implements IPaginatedListOfTodoItemBriefDto {
items?: TodoItemBriefDto[];
pageNumber?: number;
totalPages?: number;
totalCount?: number;
hasPreviousPage?: boolean;
hasNextPage?: boolean;
constructor(data?: IPaginatedListOfTodoItemBriefDto) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
(<any>this)[property] = (<any>data)[property];
}
}
}
init(_data?: any) {
if (_data) {
if (Array.isArray(_data["items"])) {
this.items = [] as any;
for (let item of _data["items"])
this.items!.push(TodoItemBriefDto.fromJS(item));
}
this.pageNumber = _data["pageNumber"];
this.totalPages = _data["totalPages"];
this.totalCount = _data["totalCount"];
this.hasPreviousPage = _data["hasPreviousPage"];
this.hasNextPage = _data["hasNextPage"];
}
}
static fromJS(data: any): PaginatedListOfTodoItemBriefDto {
data = typeof data === 'object' ? data : {};
let result = new PaginatedListOfTodoItemBriefDto();
result.init(data);
return result;
}
toJSON(data?: any) {
data = typeof data === 'object' ? data : {};
if (Array.isArray(this.items)) {
data["items"] = [];
for (let item of this.items)
data["items"].push(item.toJSON());
}
data["pageNumber"] = this.pageNumber;
data["totalPages"] = this.totalPages;
data["totalCount"] = this.totalCount;
data["hasPreviousPage"] = this.hasPreviousPage;
data["hasNextPage"] = this.hasNextPage;
return data;
}
}
export interface IPaginatedListOfTodoItemBriefDto {
items?: TodoItemBriefDto[];
pageNumber?: number;
totalPages?: number;
totalCount?: number;
hasPreviousPage?: boolean;
hasNextPage?: boolean;
}
export class TodoItemBriefDto implements ITodoItemBriefDto {
id?: number;
listId?: number;
title?: string | undefined;
done?: boolean;
constructor(data?: ITodoItemBriefDto) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
(<any>this)[property] = (<any>data)[property];
}
}
}
init(_data?: any) {
if (_data) {
this.id = _data["id"];
this.listId = _data["listId"];
this.title = _data["title"];
this.done = _data["done"];
}
}
static fromJS(data: any): TodoItemBriefDto {
data = typeof data === 'object' ? data : {};
let result = new TodoItemBriefDto();
result.init(data);
return result;
}
toJSON(data?: any) {
data = typeof data === 'object' ? data : {};
data["id"] = this.id;
data["listId"] = this.listId;
data["title"] = this.title;
data["done"] = this.done;
return data;
}
}
export interface ITodoItemBriefDto {
id?: number;
listId?: number;
title?: string | undefined;
done?: boolean;
}
export class CreateTodoItemCommand implements ICreateTodoItemCommand {
listId?: number;
title?: string | undefined;
constructor(data?: ICreateTodoItemCommand) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
(<any>this)[property] = (<any>data)[property];
}
}
}
init(_data?: any) {
if (_data) {
this.listId = _data["listId"];
this.title = _data["title"];
}
}
static fromJS(data: any): CreateTodoItemCommand {
data = typeof data === 'object' ? data : {};
let result = new CreateTodoItemCommand();
result.init(data);
return result;
}
toJSON(data?: any) {
data = typeof data === 'object' ? data : {};
data["listId"] = this.listId;
data["title"] = this.title;
return data;
}
}
export interface ICreateTodoItemCommand {
listId?: number;
title?: string | undefined;
}
export class UpdateTodoItemCommand implements IUpdateTodoItemCommand {
id?: number;
title?: string | undefined;
done?: boolean;
constructor(data?: IUpdateTodoItemCommand) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
(<any>this)[property] = (<any>data)[property];
}
}
}
init(_data?: any) {
if (_data) {
this.id = _data["id"];
this.title = _data["title"];
this.done = _data["done"];
}
}
static fromJS(data: any): UpdateTodoItemCommand {
data = typeof data === 'object' ? data : {};
let result = new UpdateTodoItemCommand();
result.init(data);
return result;
}
toJSON(data?: any) {
data = typeof data === 'object' ? data : {};
data["id"] = this.id;
data["title"] = this.title;
data["done"] = this.done;
return data;
}
}
export interface IUpdateTodoItemCommand {
id?: number;
title?: string | undefined;
done?: boolean;
}
export class UpdateTodoItemDetailCommand implements IUpdateTodoItemDetailCommand {
id?: number;
listId?: number;
priority?: PriorityLevel;
note?: string | undefined;
constructor(data?: IUpdateTodoItemDetailCommand) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
(<any>this)[property] = (<any>data)[property];
}
}
}
init(_data?: any) {
if (_data) {
this.id = _data["id"];
this.listId = _data["listId"];
this.priority = _data["priority"];
this.note = _data["note"];
}
}
static fromJS(data: any): UpdateTodoItemDetailCommand {
data = typeof data === 'object' ? data : {};
let result = new UpdateTodoItemDetailCommand();
result.init(data);
return result;
}
toJSON(data?: any) {
data = typeof data === 'object' ? data : {};
data["id"] = this.id;
data["listId"] = this.listId;
data["priority"] = this.priority;
data["note"] = this.note;
return data;
}
}
export interface IUpdateTodoItemDetailCommand {
id?: number;
listId?: number;
priority?: PriorityLevel;
note?: string | undefined;
}
export enum PriorityLevel {
None = 0,
Low = 1,
Medium = 2,
High = 3,
}
export class ApiException extends Error {

@@ -1429,0 +1154,0 @@ message: string;

{
"name": "gastromemories-api-client",
"version": "1.0.30",
"version": "1.0.31",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc