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

gastromemories-api-client

Package Overview
Dependencies
Maintainers
1
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.28 to 1.0.29

14

dist/index.d.ts

@@ -34,4 +34,2 @@ export declare class ImagesClient {

protected processGetMemory(response: Response): Promise<MemoryDto>;
getMemoryImageUploadUrl(id: string): Promise<MemoryImageUploadUrlDto>;
protected processGetMemoryImageUploadUrl(response: Response): Promise<MemoryImageUploadUrlDto>;
}

@@ -94,2 +92,3 @@ export declare class MemoryTagsClient {

url?: string;
transcodedUrl?: string | undefined;
type?: ImageTypeEnum;

@@ -106,2 +105,3 @@ suggestedTags?: string[] | undefined;

url?: string;
transcodedUrl?: string | undefined;
type?: ImageTypeEnum;

@@ -168,12 +168,2 @@ suggestedTags?: string[] | undefined;

}
export declare class MemoryImageUploadUrlDto implements IMemoryImageUploadUrlDto {
imageUploadUrl?: string;
constructor(data?: IMemoryImageUploadUrlDto);
init(_data?: any): void;
static fromJS(data: any): MemoryImageUploadUrlDto;
toJSON(data?: any): any;
}
export interface IMemoryImageUploadUrlDto {
imageUploadUrl?: string;
}
export declare class MemoryDto implements IMemoryDto {

@@ -180,0 +170,0 @@ id?: 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.PaginatedListOfMemoryDto = exports.MemoryTagDto = exports.MemoryDto = exports.MemoryImageUploadUrlDto = 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.PriorityLevel = exports.UpdateTodoItemDetailCommand = exports.UpdateTodoItemCommand = exports.CreateTodoItemCommand = exports.TodoItemBriefDto = exports.PaginatedListOfTodoItemBriefDto = exports.PaginatedListOfMemoryTagDto = exports.PaginatedListOfMemoryDto = exports.MemoryTagDto = exports.MemoryDto = exports.UpdateMemoryCommand = exports.CreateOrUpdateMemoryTagDto = exports.CreateMemoryCommand = exports.ImageDto = exports.ImageUploadUrlDto = exports.ImageTypeEnum = exports.CreateImageCommand = exports.TodoItemsClient = exports.MemoryTagsClient = exports.MemoriesClient = exports.ImagesClient = void 0;
/* tslint:disable */

@@ -412,42 +412,2 @@ /* eslint-disable */

};
MemoriesClient.prototype.getMemoryImageUploadUrl = function (id) {
var _this = this;
var url_ = this.baseUrl + "/api/Memories/{id}/image-upload-url";
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: "POST",
headers: {
"Accept": "application/json"
}
};
return this.http.fetch(url_, options_).then(function (_response) {
return _this.processGetMemoryImageUploadUrl(_response);
});
};
MemoriesClient.prototype.processGetMemoryImageUploadUrl = 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 = MemoryImageUploadUrlDto.fromJS(resultData200);
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);
};
return MemoriesClient;

@@ -793,2 +753,3 @@ }());

this.url = _data["url"];
this.transcodedUrl = _data["transcodedUrl"];
this.type = _data["type"];

@@ -815,2 +776,3 @@ if (Array.isArray(_data["suggestedTags"])) {

data["url"] = this.url;
data["transcodedUrl"] = this.transcodedUrl;
data["type"] = this.type;

@@ -965,30 +927,2 @@ if (Array.isArray(this.suggestedTags)) {

exports.UpdateMemoryCommand = UpdateMemoryCommand;
var MemoryImageUploadUrlDto = /** @class */ (function () {
function MemoryImageUploadUrlDto(data) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
this[property] = data[property];
}
}
}
MemoryImageUploadUrlDto.prototype.init = function (_data) {
if (_data) {
this.imageUploadUrl = _data["imageUploadUrl"];
}
};
MemoryImageUploadUrlDto.fromJS = function (data) {
data = typeof data === 'object' ? data : {};
var result = new MemoryImageUploadUrlDto();
result.init(data);
return result;
};
MemoryImageUploadUrlDto.prototype.toJSON = function (data) {
data = typeof data === 'object' ? data : {};
data["imageUploadUrl"] = this.imageUploadUrl;
return data;
};
return MemoryImageUploadUrlDto;
}());
exports.MemoryImageUploadUrlDto = MemoryImageUploadUrlDto;
var MemoryDto = /** @class */ (function () {

@@ -995,0 +929,0 @@ function MemoryDto(data) {

@@ -383,39 +383,2 @@ //----------------------

}
getMemoryImageUploadUrl(id: string): Promise<MemoryImageUploadUrlDto> {
let url_ = this.baseUrl + "/api/Memories/{id}/image-upload-url";
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: "POST",
headers: {
"Accept": "application/json"
}
};
return this.http.fetch(url_, options_).then((_response: Response) => {
return this.processGetMemoryImageUploadUrl(_response);
});
}
protected processGetMemoryImageUploadUrl(response: Response): Promise<MemoryImageUploadUrlDto> {
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 = MemoryImageUploadUrlDto.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<MemoryImageUploadUrlDto>(null as any);
}
}

@@ -760,2 +723,3 @@

url?: string;
transcodedUrl?: string | undefined;
type?: ImageTypeEnum;

@@ -778,2 +742,3 @@ suggestedTags?: string[] | undefined;

this.url = _data["url"];
this.transcodedUrl = _data["transcodedUrl"];
this.type = _data["type"];

@@ -800,2 +765,3 @@ if (Array.isArray(_data["suggestedTags"])) {

data["url"] = this.url;
data["transcodedUrl"] = this.transcodedUrl;
data["type"] = this.type;

@@ -815,2 +781,3 @@ if (Array.isArray(this.suggestedTags)) {

url?: string;
transcodedUrl?: string | undefined;
type?: ImageTypeEnum;

@@ -1000,38 +967,2 @@ suggestedTags?: string[] | undefined;

export class MemoryImageUploadUrlDto implements IMemoryImageUploadUrlDto {
imageUploadUrl?: string;
constructor(data?: IMemoryImageUploadUrlDto) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
(<any>this)[property] = (<any>data)[property];
}
}
}
init(_data?: any) {
if (_data) {
this.imageUploadUrl = _data["imageUploadUrl"];
}
}
static fromJS(data: any): MemoryImageUploadUrlDto {
data = typeof data === 'object' ? data : {};
let result = new MemoryImageUploadUrlDto();
result.init(data);
return result;
}
toJSON(data?: any) {
data = typeof data === 'object' ? data : {};
data["imageUploadUrl"] = this.imageUploadUrl;
return data;
}
}
export interface IMemoryImageUploadUrlDto {
imageUploadUrl?: string;
}
export class MemoryDto implements IMemoryDto {

@@ -1038,0 +969,0 @@ id?: string;

2

package.json
{
"name": "gastromemories-api-client",
"version": "1.0.28",
"version": "1.0.29",
"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