🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

tigerbay

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tigerbay - npm Package Compare versions

Comparing version

to
0.8.0

18

lib/models/common.d.ts

@@ -31,3 +31,21 @@ import { AxiosInstance } from "axios";

}
export declare type PatchOperation = 'replace';
/**
* Descriptor of an update operation to be made against a reservation
*/
export interface PatchPayload {
/**
* Value to set/add
*/
value: any;
/**
* Path to the target field
*/
path: string;
/**
* Operation to perform
*/
op: PatchOperation;
}
/**
* Represents a group of actions in the API

@@ -34,0 +52,0 @@ */

9

lib/models/customers.d.ts

@@ -1,2 +0,2 @@

import { APIGroup, LinkedObject } from "./common";
import { APIGroup, LinkedObject, PatchPayload } from "./common";
export interface CustomerSearchRequest {

@@ -81,2 +81,9 @@ username?: string;

/**
* Perform arbitrary update operations to a customer
*
* @param customerId
* @param updates
*/
update(customerId: number, updates: PatchPayload[]): Promise<void>;
/**
* List contact addresses for a customer

@@ -83,0 +90,0 @@ * @param customerId

@@ -46,2 +46,18 @@ "use strict";

/**
* Perform arbitrary update operations to a customer
*
* @param customerId
* @param updates
*/
update(customerId, updates) {
return __awaiter(this, void 0, void 0, function* () {
yield this.axios.patch(`/sales/customers/${customerId}`, updates, {
headers: {
"Content-Type": "application/json-patch+json"
}
});
return;
});
}
/**
* List contact addresses for a customer

@@ -48,0 +64,0 @@ * @param customerId

23

lib/models/reservations.d.ts
import { Tasks } from "../models";
import { APIGroup, LinkedObject, PassengerAssignment } from "./common";
import { APIGroup, LinkedObject, PassengerAssignment, PatchPayload } from "./common";
import { Note, NoteType } from "./notes";

@@ -221,19 +221,2 @@ import { Payment } from "./payments";

}
/**
* Descriptor of an update operation to be made against a reservation
*/
export interface ReservationUpdateOperation {
/**
* Value to set/add
*/
value: any;
/**
* Path to the target field
*/
path: string;
/**
* Operation to perform
*/
op: "replace";
}
export interface BookingComponentListEntry extends LinkedObject {

@@ -353,3 +336,3 @@ Id: number;

*/
update(id: string, updates: Array<ReservationUpdateOperation>): Promise<void>;
update(id: string, updates: PatchPayload[]): Promise<void>;
/**

@@ -361,3 +344,3 @@ * Perform arbitrary updates to a booking passenger.

*/
updatePassenger(id: number, passengerId: number, updates: ReservationUpdateOperation[]): Promise<void>;
updatePassenger(id: number, passengerId: number, updates: PatchPayload[]): Promise<void>;
/**

@@ -364,0 +347,0 @@ * Get the tasks attached to a reservation

{
"name": "tigerbay",
"version": "0.7.3",
"version": "0.8.0",
"description": "API Client library for TigerBay",

@@ -5,0 +5,0 @@ "main": "lib/client.js",

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