@or-sdk/contacts
Advanced tools
Comparing version 4.5.10 to 4.5.11-beta.2832.0
@@ -110,2 +110,10 @@ "use strict"; | ||
}; | ||
ContactApi.prototype.listContacts = function (params) { | ||
if (params === void 0) { params = {}; } | ||
return this.apiCall({ | ||
method: 'POST', | ||
route: "".concat(this.apiBasePath, "/list"), | ||
data: params, | ||
}); | ||
}; | ||
ContactApi.prototype.findContacts = function (params) { | ||
@@ -112,0 +120,0 @@ if (params === void 0) { params = {}; } |
@@ -46,2 +46,10 @@ "use strict"; | ||
}; | ||
ContactBookApi.prototype.listContactBooks = function (params) { | ||
if (params === void 0) { params = {}; } | ||
return this.apiCall({ | ||
method: 'GET', | ||
route: "".concat(this.apiBasePath), | ||
params: __assign({}, (0, utils_1.adaptListParams)(params)), | ||
}); | ||
}; | ||
ContactBookApi.prototype.getContactBook = function (id) { | ||
@@ -48,0 +56,0 @@ return this.apiCall({ |
@@ -48,2 +48,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
listContacts(params = {}) { | ||
return this.apiCall({ | ||
method: 'POST', | ||
route: `${this.apiBasePath}/list`, | ||
data: params, | ||
}); | ||
} | ||
findContacts(params = {}) { | ||
@@ -50,0 +57,0 @@ return this.apiCall({ |
@@ -15,2 +15,9 @@ import { BaseApi } from './baseApi'; | ||
} | ||
listContactBooks(params = {}) { | ||
return this.apiCall({ | ||
method: 'GET', | ||
route: `${this.apiBasePath}`, | ||
params: Object.assign({}, adaptListParams(params)), | ||
}); | ||
} | ||
getContactBook(id) { | ||
@@ -17,0 +24,0 @@ return this.apiCall({ |
@@ -15,2 +15,3 @@ import { ContactParamsDto, ContactResponseDto, CreateContactDto, DeleteContactParamsDto, FindAllParamsDto, FindContactByValueDto, LinkContactMultiParamsDto, LinkContactParamsDto, MergeContactParamsDto, UnlinkContactMultiParamsDto, UnlinkContactParamsDto, UpdateContactDto } from '@onereach/types-contacts-api'; | ||
listContact(params?: FindAllParamsDto): Promise<List<ContactResponseDto>>; | ||
listContacts(params?: FindAllParamsDto): Promise<List<ContactResponseDto>>; | ||
findContacts(params?: FindAllParamsDto): Promise<ContactResponseDto[]>; | ||
@@ -17,0 +18,0 @@ countContacts(params?: FindAllParamsDto): Promise<number>; |
@@ -8,2 +8,3 @@ import { ContactBookResponseDto, CreateContactBookDto, UpdateContactBookDto, SharedBookResponseDto, ShareContactBookParamsDto, ContactBookDeleteParamsDto } from '@onereach/types-contacts-api'; | ||
listContactBook(params?: ContactBookParams): Promise<List<ContactBookResponseDto>>; | ||
listContactBooks(params?: ContactBookParams): Promise<List<ContactBookResponseDto>>; | ||
getContactBook(id: string): Promise<ContactBookResponseDto>; | ||
@@ -10,0 +11,0 @@ updateContactBook(id: string, data: UpdateContactBookDto): Promise<ContactBookResponseDto>; |
{ | ||
"name": "@or-sdk/contacts", | ||
"version": "4.5.10", | ||
"version": "4.5.11-beta.2832.0", | ||
"license": "Apache-2.0", | ||
@@ -23,3 +23,3 @@ "main": "dist/cjs/index.js", | ||
"dependencies": { | ||
"@onereach/types-contacts-api": "5.30.1-beta.3477.0", | ||
"@onereach/types-contacts-api": "5.33.2-beta.3534.0", | ||
"@or-sdk/base": "^0.38.1", | ||
@@ -40,4 +40,3 @@ "agentkeepalive": "^4.5.0", | ||
"access": "public" | ||
}, | ||
"gitHead": "e544a5fbeb7929b008e3ca5c55d85776c523e694" | ||
} | ||
} |
@@ -55,2 +55,3 @@ import { v4 } from 'uuid'; | ||
* @param params | ||
* @deprecated Use listContacts instead | ||
*/ | ||
@@ -66,2 +67,13 @@ listContact(params: FindAllParamsDto = {}): Promise<List<ContactResponseDto>> { | ||
/** | ||
* @description Get contacts matching the specified in <code>params</code> criteria, and their count. | ||
* @param params | ||
*/ | ||
listContacts(params: FindAllParamsDto = {}): Promise<List<ContactResponseDto>> { | ||
return this.apiCall({ | ||
method: 'POST', | ||
route: `${this.apiBasePath}/list`, | ||
data: params, | ||
}); | ||
} | ||
/** | ||
* @description Get contacts matching the specified in <code>params</code> criteria. | ||
@@ -68,0 +80,0 @@ * @param params |
@@ -19,2 +19,3 @@ import { | ||
* @description Get list for ContactsBooks | ||
* @deprecated Use listContactBooks instead | ||
*/ | ||
@@ -32,2 +33,15 @@ listContactBook(params: ContactBookParams = {}): Promise<List<ContactBookResponseDto>> { | ||
/** | ||
* @description Get list for ContactsBooks | ||
*/ | ||
listContactBooks(params: ContactBookParams = {}): Promise<List<ContactBookResponseDto>> { | ||
return this.apiCall({ | ||
method: 'GET', | ||
route: `${this.apiBasePath}`, | ||
params: { | ||
...adaptListParams(params), | ||
}, | ||
}); | ||
} | ||
/** | ||
* @description Get specific ContactsBook | ||
@@ -34,0 +48,0 @@ * @param id |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
415341
6387
2
+ Added@onereach/types-contacts-api@5.33.2-beta.3534.0(transitive)
- Removed@onereach/types-contacts-api@5.30.1-beta.3477.0(transitive)