@pageproof/sdk-pr 508.0.1701119996021 → 509.0.1700833745934
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 +12 -0
- package/README.md +4 -0
- package/lib/adapters/NodeRequestAdapter.js +1 -1
- package/lib/adapters/SyncCryptoAdapter.d.ts +6 -0
- package/lib/adapters/SyncCryptoAdapter.js +1 -1
- package/lib/api/Briefs.d.ts +1 -2
- package/lib/api/Briefs.js +1 -1
- package/lib/api/Files.js +1 -1
- package/lib/api/admin/Team.d.ts +0 -7
- package/lib/api/admin/Team.js +8 -20
- package/lib/bluffer/Uint8ArrayBluffer.d.ts +71 -0
- package/lib/bluffer/Uint8ArrayBluffer.js +1 -0
- package/lib/bluffer/index.js +1 -1
- package/lib/network/endpoints.json +2 -7
- package/lib/pageproof.js +1 -1
- package/lib/sync-crypto-adapter.js +1 -1
- package/lib/util/isObject.js +1 -1
- package/lib/util/objectToString.d.ts +2 -0
- package/lib/util/objectToString.js +1 -0
- package/package.json +2 -1
- package/lib/api/admin/TeamCustomWebhooks.d.ts +0 -16
- package/lib/api/admin/TeamCustomWebhooks.js +0 -51
- package/lib/util/getContentLength.d.ts +0 -3
- package/lib/util/getContentLength.js +0 -1
package/lib/util/isObject.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var
|
|
1
|
+
"use strict";exports.__esModule=true;var _objectToString=require("./objectToString");var _objectToString2=_interopRequireDefault(_objectToString);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(value){return(0,_objectToString2.default)(value)==="[object Object]"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.__esModule=true;var toString=Object.prototype.toString;exports.default=function(value){return toString.call(value)};
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pageproof/sdk-pr",
|
|
3
3
|
"description": "The official PageProof SDK",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "509.0.1700833745934",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"browser": "lib/pageproof.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@jacobmarshall/kv": "^0.2.0",
|
|
9
9
|
"Base64": "^1.0.1",
|
|
10
|
+
"base64-js": "1.5.1",
|
|
10
11
|
"crypto-js": "^3.1.9-1",
|
|
11
12
|
"debug": "^2.6.9",
|
|
12
13
|
"draft-js-linkify-plugin": "^2.0.1",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export default TeamCustomWebhooks;
|
|
2
|
-
declare class TeamCustomWebhooks extends API {
|
|
3
|
-
constructor(client: any);
|
|
4
|
-
/**
|
|
5
|
-
* Creates/registers a new custom webhook.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* const admin = await client.admin();
|
|
9
|
-
* await admin.team.customWebhooks.create('proof_started', 'https://example.com/webhook');
|
|
10
|
-
*
|
|
11
|
-
* @since v2.0.0-beta.90
|
|
12
|
-
* @returns {Promise<TeamFeatures>}
|
|
13
|
-
*/
|
|
14
|
-
create(eventName: any, webhookUrl: any): Promise<any>;
|
|
15
|
-
}
|
|
16
|
-
import API from "../API";
|
|
@@ -1,51 +0,0 @@
|
|
|
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 TeamCustomWebhooks = function (_API) {
|
|
22
|
-
_inherits(TeamCustomWebhooks, _API);
|
|
23
|
-
|
|
24
|
-
function TeamCustomWebhooks() {
|
|
25
|
-
_classCallCheck(this, TeamCustomWebhooks);
|
|
26
|
-
|
|
27
|
-
return _possibleConstructorReturn(this, _API.apply(this, arguments));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Creates/registers a new custom webhook.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* const admin = await client.admin();
|
|
35
|
-
* await admin.team.customWebhooks.create('proof_started', 'https://example.com/webhook');
|
|
36
|
-
*
|
|
37
|
-
* @since v2.0.0-beta.90
|
|
38
|
-
* @returns {Promise<TeamFeatures>}
|
|
39
|
-
*/
|
|
40
|
-
TeamCustomWebhooks.prototype.create = function create(eventName, webhookUrl) {
|
|
41
|
-
return this.client.request('admin.team.custom-webhooks.create', {
|
|
42
|
-
event: eventName,
|
|
43
|
-
url: webhookUrl
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
return TeamCustomWebhooks;
|
|
48
|
-
}(_API3.default);
|
|
49
|
-
|
|
50
|
-
exports.default = TeamCustomWebhooks;
|
|
51
|
-
//# sourceMappingURL=TeamCustomWebhooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;function getContentLength(content){if(typeof Blob!=="undefined"&&content instanceof Blob){return content.size}else if(typeof Buffer!=="undefined"&&Buffer.isBuffer(content)){return Buffer.byteLength(content)}else{return 0}}exports.default=getContentLength;
|