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

tigerbay

Package Overview
Dependencies
Maintainers
0
Versions
66
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 1.1.0-beta.1 to 1.1.0-beta.2

20

lib/models/passengers.d.ts

@@ -10,2 +10,7 @@ import { AxiosInstance } from "axios";

contacts(): Promise<CustomerContact[]>;
addContact(contact: Omit<CustomerContact, 'Id'>): Promise<CustomerContact>;
updateContact(id: number, contact: Omit<CustomerContact, 'Id'>): Promise<CustomerContact>;
insurances(): Promise<Insurance[]>;
addInsurance(insurance: Omit<Insurance, 'Id'>): Promise<Insurance>;
updateInsurance(id: number, insurance: Omit<Insurance, 'Id'>): Promise<Insurance>;
/**

@@ -33,1 +38,16 @@ * Update the passenger APIS details.

}
export interface Insurance {
Id: number;
CompanyName: string;
CompanyNumber: string;
NextOfKin: string;
NextOfKinRelationship: string;
EmergencyNumber: string;
PolicyNumber: string;
Description: string;
StartDate: string | Date;
EndDate: string | Date;
CreatedDate: string | Date;
TermsAccepted: boolean;
IsArchived: boolean;
}

27

lib/models/passengers.js

@@ -27,5 +27,30 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
return (yield this.axios.get(`${this.path}/Contacts`));
return (yield this.axios.get(`${this.path}/Contacts`)).data;
});
}
addContact(contact) {
return __awaiter(this, void 0, void 0, function* () {
return (yield this.axios.post(`${this.path}/contacts`, contact)).data;
});
}
updateContact(id, contact) {
return __awaiter(this, void 0, void 0, function* () {
return (yield this.axios.put(`${this.path}/contacts/${id}`, contact)).data;
});
}
insurances() {
return __awaiter(this, void 0, void 0, function* () {
return (yield this.axios.get(`${this.path}/insurances`)).data;
});
}
addInsurance(insurance) {
return __awaiter(this, void 0, void 0, function* () {
return (yield this.axios.post(`${this.path}/insurances`, insurance)).data;
});
}
updateInsurance(id, insurance) {
return __awaiter(this, void 0, void 0, function* () {
return (yield this.axios.put(`${this.path}/insurances/${id}`, insurance)).data;
});
}
/**

@@ -32,0 +57,0 @@ * Update the passenger APIS details.

2

package.json
{
"name": "tigerbay",
"version": "1.1.0-beta.1",
"version": "1.1.0-beta.2",
"description": "API Client library for TigerBay",

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

Sorry, the diff of this file is not supported yet

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