@friggframework/api-module-hubspot 1.1.6-canary.c3fd6fe.0 → 1.1.7-canary.eaa7127.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/api.js +2 -58
  3. package/package.json +2 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ # v1.1.6 (Thu Aug 01 2024)
2
+
3
+ :tada: This release contains work from new contributors! :tada:
4
+
5
+ Thanks for all your work!
6
+
7
+ :heart: Igor Schechtel ([@igorschechtel](https://github.com/igorschechtel))
8
+
9
+ :heart: Armando Alvarado ([@aaj](https://github.com/aaj))
10
+
11
+ #### 🐛 Bug Fix
12
+
13
+ - Salesforce V1 and some HubSpot API methods [#11](https://github.com/friggframework/api-module-library/pull/11) ([@MichaelRyanWebber](https://github.com/MichaelRyanWebber))
14
+ - Add API module for Asana [#2](https://github.com/friggframework/api-module-library/pull/2) ([@igorschechtel](https://github.com/igorschechtel))
15
+ - update module to pass current manager tests ([@MichaelRyanWebber](https://github.com/MichaelRyanWebber))
16
+ - Added Zoho CRM API module [#4](https://github.com/friggframework/api-module-library/pull/4) ([@aaj](https://github.com/aaj))
17
+ - Bump independent versions \[skip ci\] ([@seanspeaks](https://github.com/seanspeaks))
18
+ - Merge branch 'friggframework:main' into main ([@igorschechtel](https://github.com/igorschechtel))
19
+
20
+ #### Authors: 4
21
+
22
+ - [@MichaelRyanWebber](https://github.com/MichaelRyanWebber)
23
+ - Armando Alvarado ([@aaj](https://github.com/aaj))
24
+ - Igor Schechtel ([@igorschechtel](https://github.com/igorschechtel))
25
+ - Sean Matthews ([@seanspeaks](https://github.com/seanspeaks))
26
+
27
+ ---
28
+
1
29
  # v1.1.5 (Mon May 06 2024)
2
30
 
3
31
  :tada: This release contains work from a new contributor! :tada:
package/api.js CHANGED
@@ -426,9 +426,7 @@ class Api extends OAuth2Requester {
426
426
  url: this.baseUrl + this.URLs.customObjectSchemas,
427
427
  body,
428
428
  };
429
- if (this.api_key) {
430
- options.query = {hapikey: this.api_key};
431
- }
429
+
432
430
 
433
431
  return this._post(options);
434
432
  }
@@ -453,17 +451,12 @@ class Api extends OAuth2Requester {
453
451
  return this._delete(options);
454
452
  }
455
453
 
456
- async getCustomObjectSchema(objectType) {
454
+ async getCustomObjectSchema(objectType, query) {
457
455
  const options = {
458
456
  url:
459
457
  this.baseUrl +
460
458
  this.URLs.customObjectSchemaByObjectType(objectType),
461
459
  };
462
-
463
- if (this.api_key) {
464
- options.query = {hapikey: this.api_key};
465
- }
466
-
467
460
  return this._get(options);
468
461
  }
469
462
 
@@ -471,11 +464,6 @@ class Api extends OAuth2Requester {
471
464
  const options = {
472
465
  url: this.baseUrl + this.URLs.customObjectSchemas,
473
466
  };
474
-
475
- if (this.api_key) {
476
- options.query = {hapikey: this.api_key};
477
- }
478
-
479
467
  return this._get(options);
480
468
  }
481
469
 
@@ -486,11 +474,6 @@ class Api extends OAuth2Requester {
486
474
  this.URLs.customObjectSchemaByObjectType(objectType),
487
475
  body,
488
476
  };
489
-
490
- if (this.api_key) {
491
- options.query = {hapikey: this.api_key};
492
- }
493
-
494
477
  return this._patch(options);
495
478
  }
496
479
 
@@ -501,10 +484,6 @@ class Api extends OAuth2Requester {
501
484
  url: this.baseUrl + this.URLs.customObjects(objectType),
502
485
  body,
503
486
  };
504
- if (this.api_key) {
505
- options.query = {hapikey: this.api_key};
506
- }
507
-
508
487
  return this._post(options);
509
488
  }
510
489
 
@@ -513,10 +492,6 @@ class Api extends OAuth2Requester {
513
492
  url: this.baseUrl + this.URLs.bulkCreateCustomObjects(objectType),
514
493
  body,
515
494
  };
516
- if (this.api_key) {
517
- options.query = {hapikey: this.api_key};
518
- }
519
-
520
495
  return this._post(options);
521
496
  }
522
497
 
@@ -525,11 +500,6 @@ class Api extends OAuth2Requester {
525
500
  url: this.baseUrl + this.URLs.customObjectById(objectType, objId),
526
501
  query: {},
527
502
  };
528
-
529
- if (this.api_key) {
530
- options.query.hapikey = this.api_key;
531
- }
532
-
533
503
  return this._delete(options);
534
504
  }
535
505
 
@@ -554,11 +524,6 @@ class Api extends OAuth2Requester {
554
524
  const options = {
555
525
  url: this.baseUrl + this.URLs.customObjectById(objectType, objId),
556
526
  };
557
-
558
- if (this.api_key) {
559
- options.query = {hapikey: this.api_key};
560
- }
561
-
562
527
  return this._get(options);
563
528
  }
564
529
 
@@ -567,10 +532,6 @@ class Api extends OAuth2Requester {
567
532
  url: this.baseUrl + this.URLs.bulkReadCustomObjects(objectType),
568
533
  body,
569
534
  };
570
- if (this.api_key) {
571
- options.query = {hapikey: this.api_key};
572
- }
573
-
574
535
  return this._post(options);
575
536
  }
576
537
 
@@ -579,11 +540,6 @@ class Api extends OAuth2Requester {
579
540
  url: this.baseUrl + this.URLs.customObjects(objectType),
580
541
  query,
581
542
  };
582
-
583
- if (this.api_key) {
584
- options.query.hapikey = this.api_key;
585
- }
586
-
587
543
  return this._get(options);
588
544
  }
589
545
 
@@ -592,10 +548,6 @@ class Api extends OAuth2Requester {
592
548
  url: this.baseUrl + this.URLs.customObjectsSearch(objectType),
593
549
  body,
594
550
  };
595
- if (this.api_key) {
596
- options.query = {hapikey: this.api_key};
597
- }
598
-
599
551
  return this._post(options);
600
552
  }
601
553
 
@@ -604,11 +556,6 @@ class Api extends OAuth2Requester {
604
556
  url: this.baseUrl + this.URLs.customObjectById(objectType, objId),
605
557
  body,
606
558
  };
607
-
608
- if (this.api_key) {
609
- options.query = {hapikey: this.api_key};
610
- }
611
-
612
559
  return this._patch(options);
613
560
  }
614
561
 
@@ -617,9 +564,6 @@ class Api extends OAuth2Requester {
617
564
  url: this.baseUrl + this.URLs.bulkUpdateCustomObjects(objectType),
618
565
  body,
619
566
  };
620
- if (this.api_key) {
621
- options.query = {hapikey: this.api_key};
622
- }
623
567
  return this._post(options);
624
568
  }
625
569
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friggframework/api-module-hubspot",
3
- "version": "1.1.6-canary.c3fd6fe.0",
3
+ "version": "1.1.7-canary.eaa7127.0",
4
4
  "prettier": "@friggframework/prettier-config",
5
5
  "description": "HubSpot API module that lets the Frigg Framework interact with HubSpot",
6
6
  "main": "index.js",
@@ -17,11 +17,10 @@
17
17
  "eslint": "^8.22.0",
18
18
  "jest": "^28.1.3",
19
19
  "jest-environment-jsdom": "^28.1.3",
20
- "open": "^10.1.0",
21
20
  "prettier": "^2.7.1"
22
21
  },
23
22
  "dependencies": {
24
23
  "@friggframework/core": "^1.1.2"
25
24
  },
26
- "gitHead": "c3fd6fed4e780d492e18d81d9b62782eb7165a49"
25
+ "gitHead": "eaa7127b8c0d4843846b547209f2fa785cf4ed5d"
27
26
  }