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.20 to 1.0.21

8

dist/index.d.ts

@@ -28,4 +28,4 @@ export declare class ImagesClient {

protected processGetMemoriesWithPagination(response: Response): Promise<PaginatedListOfMemoryDto>;
updateMemory(command: UpdateMemoryCommand): Promise<string>;
protected processUpdateMemory(response: Response): Promise<string>;
updateMemory(id: string, command: UpdateMemoryCommand): Promise<void>;
protected processUpdateMemory(response: Response): Promise<void>;
deleteMemory(id: string): Promise<void>;

@@ -121,3 +121,3 @@ protected processDeleteMemory(response: Response): Promise<void>;

export declare class UpdateMemoryCommand implements IUpdateMemoryCommand {
id?: number;
id?: string;
tags?: string[];

@@ -136,3 +136,3 @@ title?: string;

export interface IUpdateMemoryCommand {
id?: number;
id?: string;
tags?: string[];

@@ -139,0 +139,0 @@ title?: string;

@@ -297,5 +297,8 @@ "use strict";

};
MemoriesClient.prototype.updateMemory = function (command) {
MemoriesClient.prototype.updateMemory = function (id, command) {
var _this = this;
var url_ = this.baseUrl + "/api/Memories/$";
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(/[?&]$/, "");

@@ -308,3 +311,2 @@ var content_ = JSON.stringify(command);

"Content-Type": "application/json",
"Accept": "application/json"
}

@@ -317,3 +319,2 @@ };

MemoriesClient.prototype.processUpdateMemory = function (response) {
var _this = this;
var status = response.status;

@@ -327,6 +328,3 @@ var _headers = {};

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;
return;
});

@@ -333,0 +331,0 @@ }

@@ -275,4 +275,7 @@ //----------------------

updateMemory(command: UpdateMemoryCommand): Promise<string> {
let url_ = this.baseUrl + "/api/Memories/$";
updateMemory(id: string, command: UpdateMemoryCommand): Promise<void> {
let 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(/[?&]$/, "");

@@ -287,3 +290,2 @@

"Content-Type": "application/json",
"Accept": "application/json"
}

@@ -297,3 +299,3 @@ };

protected processUpdateMemory(response: Response): Promise<string> {
protected processUpdateMemory(response: Response): Promise<void> {
const status = response.status;

@@ -303,7 +305,3 @@ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };

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;
return;
});

@@ -315,3 +313,3 @@ } else if (status !== 200 && status !== 204) {

}
return Promise.resolve<string>(null as any);
return Promise.resolve<void>(null as any);
}

@@ -836,3 +834,3 @@

export class UpdateMemoryCommand implements IUpdateMemoryCommand {
id?: number;
id?: string;
tags?: string[];

@@ -898,3 +896,3 @@ title?: string;

export interface IUpdateMemoryCommand {
id?: number;
id?: string;
tags?: string[];

@@ -901,0 +899,0 @@ title?: string;

{
"name": "gastromemories-api-client",
"version": "1.0.20",
"version": "1.0.21",
"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