@friggframework/api-module-pipedrive 0.10.0 → 0.11.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/CHANGELOG.md CHANGED
@@ -1,26 +1,17 @@
1
- # v0.10.0 (Wed Mar 20 2024)
2
-
3
- :tada: This release contains work from new contributors! :tada:
4
-
5
- Thanks for all your work!
6
-
7
- :heart: Nicolas Leal ([@nicolasmelo1](https://github.com/nicolasmelo1))
8
-
9
- :heart: nmilcoff ([@nmilcoff](https://github.com/nmilcoff))
1
+ # v0.11.0 (Wed Mar 20 2024)
10
2
 
11
3
  #### 🚀 Enhancement
12
4
 
5
+ - bump minor version [#279](https://github.com/friggframework/frigg/pull/279) ([@MichaelRyanWebber](https://github.com/MichaelRyanWebber))
13
6
 
14
7
  #### 🐛 Bug Fix
15
8
 
16
- - correct some bad automated edits, though they are not in relevant files ([@MichaelRyanWebber](https://github.com/MichaelRyanWebber))
9
+ - bump minor version ([@MichaelRyanWebber](https://github.com/MichaelRyanWebber))
17
10
  - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
18
11
 
19
- #### Authors: 4
12
+ #### Authors: 2
20
13
 
21
14
  - [@MichaelRyanWebber](https://github.com/MichaelRyanWebber)
22
- - Nicolas Leal ([@nicolasmelo1](https://github.com/nicolasmelo1))
23
- - nmilcoff ([@nmilcoff](https://github.com/nmilcoff))
24
15
  - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
25
16
 
26
17
  ---
package/api.js CHANGED
@@ -1,4 +1,5 @@
1
- const { get, OAuth2Requester } = require('@friggframework/core');
1
+ const { OAuth2Requester } = require('@friggframework/module-plugin');
2
+ const { get } = require('@friggframework/assertions');
2
3
 
3
4
  class Api extends OAuth2Requester {
4
5
  constructor(params) {
package/jest-setup.js CHANGED
@@ -1,2 +1,2 @@
1
- const { globalSetup } = require('@friggframework/devtools');
1
+ const { globalSetup } = require('@friggframework/test-environment');
2
2
  module.exports = globalSetup;
package/jest-teardown.js CHANGED
@@ -1,2 +1,2 @@
1
- const { globalTeardown } = require('@friggframework/devtools');
1
+ const { globalTeardown } = require('@friggframework/test-environment');
2
2
  module.exports = globalTeardown;
package/manager.js CHANGED
@@ -1,20 +1,18 @@
1
+ const _ = require('lodash');
2
+ const { Api } = require('./api.js');
3
+ const { Entity } = require('./models/entity');
4
+ const { Credential } = require('./models/credential');
1
5
  const {
2
6
  ModuleManager,
3
7
  ModuleConstants,
4
- flushDebugLog,
5
- debug
6
- } = require('@friggframework/core');
7
- const {Api} = require('./api.js');
8
- const {Entity} = require('./models/entity');
9
- const {Credential} = require('./models/credential');
8
+ } = require('@friggframework/module-plugin');
9
+ const { flushDebugLog, debug } = require('@friggframework/logs');
10
10
  const Config = require('./defaultConfig.json');
11
11
 
12
12
  class Manager extends ModuleManager {
13
- static
14
- Entity = Entity;
13
+ static Entity = Entity;
15
14
 
16
- static
17
- Credential = Credential;
15
+ static Credential = Credential;
18
16
 
19
17
  constructor(params) {
20
18
  super(params);
@@ -24,11 +22,10 @@ class Manager extends ModuleManager {
24
22
  return Config.name;
25
23
  }
26
24
 
27
- static
28
- async getInstance(params) {
25
+ static async getInstance(params) {
29
26
  const instance = new this(params);
30
27
 
31
- const apiParams = {delegate: instance};
28
+ const apiParams = { delegate: instance };
32
29
  if (params.entityId) {
33
30
  instance.entity = await instance.entityMO.get(params.entityId);
34
31
  instance.credential = await instance.credentialMO.get(
@@ -1,5 +1,5 @@
1
- const { Credential: Parent } = require('@friggframework/core');
2
1
  const mongoose = require('mongoose');
2
+ const { Credential: Parent } = require('@friggframework/module-plugin');
3
3
 
4
4
  const schema = new mongoose.Schema({
5
5
  accessToken: {
package/models/entity.js CHANGED
@@ -1,6 +1,6 @@
1
- const { Entity: Parent } = require('@friggframework/core');
2
1
  'use strict';
3
2
  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';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.10.0",
2
+ "version": "0.11.0",
3
3
  "name": "@friggframework/api-module-pipedrive",
4
4
  "prettier": "@friggframework/prettier-config",
5
5
  "description": "",
@@ -11,13 +11,16 @@
11
11
  "author": "",
12
12
  "license": "MIT",
13
13
  "devDependencies": {
14
+ "@friggframework/eslint-config": "^1.0.8",
15
+ "@friggframework/test-environment": "^1.1.6",
14
16
  "eslint": "^8.22.0",
15
17
  "jest": "^28.1.3",
16
18
  "prettier": "^2.7.1",
17
19
  "sinon": "^14.0.0"
18
20
  },
19
21
  "dependencies": {
20
- "@friggframework/core": "^1.1.0"
22
+ "@friggframework/assertions": "^1.0.8",
23
+ "@friggframework/module-plugin": "^1.1.2"
21
24
  },
22
- "gitHead": "9b3427438a223c62d551ce3fd3330c2b8dac00d8"
25
+ "gitHead": "2753288dc139a94f5b80f84702aa23494e8687eb"
23
26
  }