@friggframework/api-module-pipedrive 2.1.0-next.5 → 2.1.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +5 -0
- package/dist/api.js +8 -0
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare class Api extends OAuth2Requester {
|
|
|
8
8
|
activityById: (activityId: string | number) => string;
|
|
9
9
|
getUser: string;
|
|
10
10
|
users: string;
|
|
11
|
+
usersFind: string;
|
|
11
12
|
deals: string;
|
|
12
13
|
persons: string;
|
|
13
14
|
personById: (personId: string | number) => string;
|
|
@@ -65,6 +66,10 @@ export declare class Api extends OAuth2Requester {
|
|
|
65
66
|
createActivity(params: ActivityParams): Promise<PipedriveResponse>;
|
|
66
67
|
getUser(): Promise<PipedriveUser>;
|
|
67
68
|
listUsers(): Promise<PipedriveResponse>;
|
|
69
|
+
findUsers(params: {
|
|
70
|
+
term: string;
|
|
71
|
+
search_by_email?: 0 | 1;
|
|
72
|
+
}): Promise<PipedriveResponse>;
|
|
68
73
|
/**
|
|
69
74
|
* List persons with v2 API support
|
|
70
75
|
* @param params - Query parameters for filtering and pagination
|
package/dist/api.js
CHANGED
|
@@ -13,6 +13,7 @@ class Api extends core_1.OAuth2Requester {
|
|
|
13
13
|
activityById: (activityId) => `/v2/activities/${activityId}`,
|
|
14
14
|
getUser: "/v1/users/me",
|
|
15
15
|
users: "/v1/users",
|
|
16
|
+
usersFind: "/v1/users/find",
|
|
16
17
|
deals: "/v2/deals",
|
|
17
18
|
persons: "/v2/persons",
|
|
18
19
|
personById: (personId) => `/v2/persons/${personId}`,
|
|
@@ -155,6 +156,13 @@ class Api extends core_1.OAuth2Requester {
|
|
|
155
156
|
};
|
|
156
157
|
return this._get(options);
|
|
157
158
|
}
|
|
159
|
+
async findUsers(params) {
|
|
160
|
+
const options = {
|
|
161
|
+
url: this.baseUrl + this.URLs.usersFind,
|
|
162
|
+
query: params,
|
|
163
|
+
};
|
|
164
|
+
return this._get(options);
|
|
165
|
+
}
|
|
158
166
|
// ************************** Persons **********************************
|
|
159
167
|
/**
|
|
160
168
|
* List persons with v2 API support
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/api-module-pipedrive",
|
|
3
|
-
"version": "2.1.0-next.
|
|
3
|
+
"version": "2.1.0-next.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "d07de0fa9919fe5101ed8706276262fa7e724bea"
|
|
34
34
|
}
|