@friggframework/api-module-pipedrive 0.11.2 → 1.0.1-canary.36.7e495fb.0
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/.eslintrc.json +1 -1
- package/CHANGELOG.md +32 -30
- package/LICENSE.md +10 -3
- package/README.md +3 -2
- package/api.js +422 -87
- package/defaultConfig.json +9 -7
- package/definition.js +54 -0
- package/index.js +3 -3
- package/jest-setup.js +1 -1
- package/jest-teardown.js +1 -1
- package/manager.js +13 -10
- package/mocks/apiMock.js +3 -1
- package/models/credential.js +3 -3
- package/models/entity.js +2 -2
- package/package.json +25 -24
- package/specs/openAPI.yaml +11129 -0
- package/test/Api.test.js +7 -7
- package/test/Manager.test.js +2 -2
package/mocks/apiMock.js
CHANGED
package/models/credential.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
const {Credential: Parent} = require('@friggframework/core');
|
|
1
2
|
const mongoose = require('mongoose');
|
|
2
|
-
const { Credential: Parent } = require('@friggframework/module-plugin');
|
|
3
3
|
|
|
4
4
|
const schema = new mongoose.Schema({
|
|
5
5
|
accessToken: {
|
|
@@ -12,10 +12,10 @@ const schema = new mongoose.Schema({
|
|
|
12
12
|
trim: true,
|
|
13
13
|
lhEncrypt: true,
|
|
14
14
|
},
|
|
15
|
-
companyDomain: {
|
|
15
|
+
companyDomain: {type: String},
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
const name = 'PipedriveCredential';
|
|
19
19
|
const Credential =
|
|
20
20
|
Parent.discriminators?.[name] || Parent.discriminator(name, schema);
|
|
21
|
-
module.exports = {
|
|
21
|
+
module.exports = {Credential};
|
package/models/entity.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
const {Entity: Parent} = require('@friggframework/core');
|
|
1
2
|
'use strict';
|
|
2
3
|
const mongoose = require('mongoose');
|
|
3
|
-
const { Entity: Parent } = require('@friggframework/module-plugin');
|
|
4
4
|
|
|
5
5
|
const schema = new mongoose.Schema({});
|
|
6
6
|
const name = 'PipedriveEntity';
|
|
7
7
|
const Entity =
|
|
8
8
|
Parent.discriminators?.[name] || Parent.discriminator(name, schema);
|
|
9
|
-
module.exports = {
|
|
9
|
+
module.exports = {Entity};
|
package/package.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
"name": "@friggframework/api-module-pipedrive",
|
|
3
|
+
"version": "1.0.1-canary.36.7e495fb.0",
|
|
4
|
+
"description": "Pipedrive CRM API module for Frigg Framework",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "jest --passWithNoTests"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"frigg",
|
|
11
|
+
"api",
|
|
12
|
+
"pipedrive",
|
|
13
|
+
"crm",
|
|
14
|
+
"sales"
|
|
15
|
+
],
|
|
16
|
+
"author": "Frigg Framework Team",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@friggframework/core": "^2.0.0-next.24",
|
|
20
|
+
"@friggframework/devtools": "^2.0.0-next.24",
|
|
21
|
+
"dotenv": "^16.0.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"jest": "^29.0.0"
|
|
25
|
+
},
|
|
26
|
+
"gitHead": "7e495fbd0a1c9cd0836b2b0ec174ee36c1f59207"
|
|
26
27
|
}
|