@pageproof/sdk-pr 265.0.1597715442876 → 267.0.1597870400380

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.
@@ -38,6 +38,13 @@ declare class Team extends API {
38
38
  * @type {TeamSCIM}
39
39
  */
40
40
  scim: TeamSCIM;
41
+ /**
42
+ * The Admin Team Integrations API.
43
+ *
44
+ * @type {TeamSCIM}
45
+ */
46
+ teamIntegrations: TeamSCIM;
47
+ integrations: TeamIntegrations;
41
48
  }
42
49
  import API from "../API";
43
50
  import TeamUsers from "./TeamUsers";
@@ -46,3 +53,4 @@ import TeamFeatures from "./TeamFeatures";
46
53
  import TeamPreferences from "./TeamPreferences";
47
54
  import TeamCustomWebhooks from "./TeamCustomWebhooks";
48
55
  import TeamSCIM from "./TeamSCIM";
56
+ import TeamIntegrations from "./TeamIntegrations";
@@ -30,6 +30,10 @@ var _TeamSCIM = require('./TeamSCIM');
30
30
 
31
31
  var _TeamSCIM2 = _interopRequireDefault(_TeamSCIM);
32
32
 
33
+ var _TeamIntegrations = require('./TeamIntegrations');
34
+
35
+ var _TeamIntegrations2 = _interopRequireDefault(_TeamIntegrations);
36
+
33
37
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
34
38
 
35
39
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -49,22 +53,23 @@ var Team = function (_API) {
49
53
 
50
54
 
51
55
  /**
52
- * The Admin Custom Webhooks API.
56
+ * The Admin Team SCIM API.
53
57
  *
54
- * @type {TeamCustomWebhooks}
58
+ * @type {TeamSCIM}
55
59
  */
56
60
 
57
61
 
58
62
  /**
59
- * The Admin Team Features API.
63
+ * The Admin Team Preferences API.
60
64
  *
61
- * @type {TeamFeatures}
65
+ * @type {TeamPreferences}
62
66
  */
63
67
 
68
+
64
69
  /**
65
- * The Admin Team Users API.
70
+ * The Admin Team Dashboard API.
66
71
  *
67
- * @type {TeamUsers}
72
+ * @type {TeamDashboard}
68
73
  */
69
74
  function Team(client) {
70
75
  _classCallCheck(this, Team);
@@ -78,27 +83,34 @@ var Team = function (_API) {
78
83
  _this.preferences = new _TeamPreferences2.default(client);
79
84
  _this.customWebhooks = new _TeamCustomWebhooks2.default(client);
80
85
  _this.scim = new _TeamSCIM2.default(client);
86
+ _this.integrations = new _TeamIntegrations2.default(client);
81
87
  return _this;
82
88
  }
83
89
 
84
90
  /**
85
- * The Admin Team SCIM API.
91
+ * The Admin Team Integrations API.
86
92
  *
87
93
  * @type {TeamSCIM}
88
94
  */
89
95
 
90
96
 
91
97
  /**
92
- * The Admin Team Preferences API.
98
+ * The Admin Custom Webhooks API.
93
99
  *
94
- * @type {TeamPreferences}
100
+ * @type {TeamCustomWebhooks}
95
101
  */
96
102
 
97
103
 
98
104
  /**
99
- * The Admin Team Dashboard API.
105
+ * The Admin Team Features API.
100
106
  *
101
- * @type {TeamDashboard}
107
+ * @type {TeamFeatures}
108
+ */
109
+
110
+ /**
111
+ * The Admin Team Users API.
112
+ *
113
+ * @type {TeamUsers}
102
114
  */
103
115
 
104
116
 
@@ -0,0 +1,10 @@
1
+ export default TeamIntegrations;
2
+ declare class TeamIntegrations extends API {
3
+ /** @private */
4
+ constructor(client: any);
5
+ /**
6
+ * The Admin Team monday.com API.
7
+ */
8
+ mondayDotCom: any;
9
+ }
10
+ import API from "../API";
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+
5
+ var _API2 = require('../API');
6
+
7
+ var _API3 = _interopRequireDefault(_API2);
8
+
9
+ var _TeamMondayDotCom = require('./TeamMondayDotCom');
10
+
11
+ var _TeamMondayDotCom2 = _interopRequireDefault(_TeamMondayDotCom);
12
+
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+
15
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
+
17
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
18
+
19
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* Copyright (C) 2018 PageProof Holdings Limited - All Rights Reserved.
20
+ * Unauthorized copying of this file, via any medium is strictly prohibited.
21
+ * Proprietary and confidential.
22
+ */
23
+
24
+
25
+ var TeamIntegrations = function (_API) {
26
+ _inherits(TeamIntegrations, _API);
27
+
28
+ /** @private */
29
+ function TeamIntegrations(client) {
30
+ _classCallCheck(this, TeamIntegrations);
31
+
32
+ // Nested APIs
33
+ var _this = _possibleConstructorReturn(this, _API.call(this, client));
34
+
35
+ _this.mondayDotCom = new _TeamMondayDotCom2.default(client);
36
+ return _this;
37
+ }
38
+ /**
39
+ * The Admin Team monday.com API.
40
+ */
41
+
42
+
43
+ return TeamIntegrations;
44
+ }(_API3.default);
45
+
46
+ exports.default = TeamIntegrations;
47
+ //# sourceMappingURL=TeamIntegrations.js.map
@@ -0,0 +1,15 @@
1
+ export default TeamMondayDotCom;
2
+ declare class TeamMondayDotCom extends API {
3
+ constructor(client: any);
4
+ /**
5
+ * Gets URL used to authenticate against monday.com.
6
+ *
7
+ * @example
8
+ * const admin = await client.admin();
9
+ * const authUrl = await admin.team.integrations.mondayDotCom.getAuthUrl();
10
+ *
11
+ * @returns {Promise<string>}
12
+ */
13
+ getAuthUrl(): Promise<string>;
14
+ }
15
+ import API from "../API";
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+
5
+ var _API2 = require('../API');
6
+
7
+ var _API3 = _interopRequireDefault(_API2);
8
+
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+
11
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12
+
13
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
14
+
15
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* Copyright (C) 2018 PageProof Holdings Limited - All Rights Reserved.
16
+ * Unauthorized copying of this file, via any medium is strictly prohibited.
17
+ * Proprietary and confidential.
18
+ */
19
+
20
+
21
+ var TeamMondayDotCom = function (_API) {
22
+ _inherits(TeamMondayDotCom, _API);
23
+
24
+ function TeamMondayDotCom() {
25
+ _classCallCheck(this, TeamMondayDotCom);
26
+
27
+ return _possibleConstructorReturn(this, _API.apply(this, arguments));
28
+ }
29
+
30
+ /**
31
+ * Gets URL used to authenticate against monday.com.
32
+ *
33
+ * @example
34
+ * const admin = await client.admin();
35
+ * const authUrl = await admin.team.integrations.mondayDotCom.getAuthUrl();
36
+ *
37
+ * @returns {Promise<string>}
38
+ */
39
+ TeamMondayDotCom.prototype.getAuthUrl = function getAuthUrl() {
40
+ return this.client.request('admin.team.integrations.monday-dot-com.get-request-url').then(function (response) {
41
+ if (response.data) {
42
+ return response.data.url;
43
+ }
44
+ return null;
45
+ });
46
+ };
47
+
48
+ return TeamMondayDotCom;
49
+ }(_API3.default);
50
+
51
+ exports.default = TeamMondayDotCom;
52
+ //# sourceMappingURL=TeamMondayDotCom.js.map
@@ -687,6 +687,10 @@
687
687
  "path": "/api/admin/settings",
688
688
  "body": ["displayComments", "editComments", "proofReference"]
689
689
  },
690
+ "admin.team.integrations.monday-dot-com.get-request-url": {
691
+ "method": "GET",
692
+ "path": "/api/integrations/monday-dot-com/oauth/requesturl"
693
+ },
690
694
  "admin.team.preferences.notifications.load": {
691
695
  "method": "GET",
692
696
  "path": "/api/admin/preferences/notifications",