Comparing version 1.1.0-beta.1 to 1.1.0-beta.2
@@ -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,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. |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99470
2440