@pageproof/sdk-pr 280.0.1604526415503 → 281.0.1602190868209
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 +0 -41
- package/lib/adapters/SchedulerCryptoAdapter.d.ts +1 -3
- package/lib/adapters/SchedulerCryptoAdapter.js +1 -1
- package/lib/adapters/SyncCryptoAdapter.d.ts +1 -3
- package/lib/adapters/SyncCryptoAdapter.js +1 -1
- package/lib/api/Encryption.d.ts +0 -219
- package/lib/api/Encryption.js +1 -1
- package/lib/api/Files.d.ts +2 -0
- package/lib/api/Files.js +1 -1
- package/lib/api/Profile.d.ts +0 -8
- package/lib/api/Profile.js +1 -1
- package/lib/api/Proofs.d.ts +1 -8
- package/lib/api/Proofs.js +1 -1
- package/lib/api/ProofsCustomTools.d.ts +5 -6
- package/lib/api/Workflows.d.ts +2 -24
- package/lib/api/Workflows.js +1 -1
- package/lib/api/admin/Team.d.ts +4 -18
- package/lib/api/admin/Team.js +4 -29
- package/lib/api/admin/TeamFeatures.d.ts +0 -7
- package/lib/api/admin/TeamFeatures.js +0 -5
- package/lib/api/admin/TeamIntegrations.d.ts +10 -0
- package/lib/api/admin/{TeamWorkflows.js → TeamIntegrations.js} +16 -32
- package/lib/api/admin/TeamMondayDotCom.d.ts +15 -0
- package/lib/api/admin/{TeamCustomTools.js → TeamMondayDotCom.js} +18 -29
- package/lib/crypto/envelopes.d.ts +1 -2
- package/lib/crypto/envelopes.js +1 -1
- package/lib/crypto/index.d.ts +1 -2
- package/lib/crypto/index.js +1 -1
- package/lib/models/Proof.d.ts +0 -7
- package/lib/models/Proof.js +1 -1
- package/lib/models/TeamEmailFeatures.d.ts +1 -8
- package/lib/models/TeamEmailFeatures.js +1 -1
- package/lib/models/TeamFeatures.d.ts +0 -8
- package/lib/models/TeamFeatures.js +1 -1
- package/lib/models/Workflow.d.ts +0 -21
- package/lib/models/Workflow.js +1 -1
- package/lib/network/Request.js +1 -1
- package/lib/network/endpoints.json +4 -60
- package/lib/pageproof.js +1 -1
- package/lib/sync-crypto-adapter.js +1 -1
- package/lib/util/constants.d.ts +0 -2
- package/lib/util/constants.js +1 -1
- package/lib/worker-crypto-adapter.js +1 -1
- package/lib/worker.33813125.js +2 -0
- package/package.json +1 -1
- package/lib/api/Integrations.d.ts +0 -56
- package/lib/api/Integrations.js +0 -1
- package/lib/api/ProofsIntegrationReferences.d.ts +0 -41
- package/lib/api/ProofsIntegrationReferences.js +0 -1
- package/lib/api/admin/TeamCustomTools.d.ts +0 -22
- package/lib/api/admin/TeamWorkflows.d.ts +0 -19
- package/lib/crypto/transformFile.d.ts +0 -2
- package/lib/crypto/transformFile.js +0 -1
- package/lib/models/ProofIntegrationReference.d.ts +0 -33
- package/lib/models/ProofIntegrationReference.js +0 -1
- package/lib/models/TeamAccountFeatures.d.ts +0 -26
- package/lib/models/TeamAccountFeatures.js +0 -1
- package/lib/util/encryptionVersions.json +0 -52
- package/lib/worker.a2f0a156.js +0 -2
package/package.json
CHANGED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export default Integrations;
|
|
2
|
-
declare class Integrations extends API {
|
|
3
|
-
/** @private */
|
|
4
|
-
constructor(client: any, level: any);
|
|
5
|
-
/** @private */
|
|
6
|
-
level: any;
|
|
7
|
-
/**
|
|
8
|
-
* Gets the configurations for the available integrations
|
|
9
|
-
*
|
|
10
|
-
* @example <caption>Retrieving configurations for a team</caption>
|
|
11
|
-
* const admin = await client.admin();
|
|
12
|
-
* const availableConfigurations = await admin.team.integrations.configurations();
|
|
13
|
-
*
|
|
14
|
-
* @example <caption>Retrieving configurations for a user</caption>
|
|
15
|
-
* const availableConfigurations = await client.profile.integrations.configurations();
|
|
16
|
-
*
|
|
17
|
-
* @since 2.0.0-beta.141
|
|
18
|
-
* @returns {Promise<object|null>}
|
|
19
|
-
*/
|
|
20
|
-
configurations(): Promise<any>;
|
|
21
|
-
/**
|
|
22
|
-
* Gets the URL for setting up an integration
|
|
23
|
-
*
|
|
24
|
-
* @example <caption>Retrieving the integration setup url for a team</caption>
|
|
25
|
-
* const admin = await client.admin();
|
|
26
|
-
* const { url, windowFeatures } = await admin.team.integrations.getSetupUrl('monday.com');
|
|
27
|
-
*
|
|
28
|
-
* @example <caption>Retrieving the integration setup url for a user</caption>
|
|
29
|
-
* const { url, windowFeatures } = await client.profile.integrations.getSetupUrl('monday.com');
|
|
30
|
-
*
|
|
31
|
-
* @since 2.0.0-beta.141
|
|
32
|
-
* @param {string} integrationKey The unique identifier for the integration
|
|
33
|
-
* @param {object} [params] Any additional parameters required for building the setup url
|
|
34
|
-
* @returns {Promise<{ url: string, windowFeatures: string }>}
|
|
35
|
-
*/
|
|
36
|
-
getSetupUrl(integrationKey: string, params?: any): Promise<{
|
|
37
|
-
url: string;
|
|
38
|
-
windowFeatures: string;
|
|
39
|
-
}>;
|
|
40
|
-
/**
|
|
41
|
-
* Disables an integration
|
|
42
|
-
*
|
|
43
|
-
* @example <caption>Disabling an integration for a team</caption>
|
|
44
|
-
* const admin = await client.admin();
|
|
45
|
-
* await admin.team.integrations.disable('monday.com');
|
|
46
|
-
*
|
|
47
|
-
* @example <caption>Disabling an integration for a user</caption>
|
|
48
|
-
* await client.profile.integrations.disable('monday.com');
|
|
49
|
-
*
|
|
50
|
-
* @since 2.0.0-beta.144
|
|
51
|
-
* @param {string} integrationKey The unique identifier/identifiers for the integration/integrations
|
|
52
|
-
* @returns {Promise}
|
|
53
|
-
*/
|
|
54
|
-
disable(integrationKey: string): Promise<any>;
|
|
55
|
-
}
|
|
56
|
-
import API from "./API";
|
package/lib/api/Integrations.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var _API2=require("./API");var _API3=_interopRequireDefault(_API2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}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}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}var Integrations=function(_API){_inherits(Integrations,_API);function Integrations(client,level){_classCallCheck(this,Integrations);var _this=_possibleConstructorReturn(this,_API.call(this,client));_this.level=level;return _this}Integrations.prototype.configurations=function configurations(){return this.client.request("integrations.get-configurations",{level:this.level}).then(function(response){if(response.data){return response.data.integrations}return null})};Integrations.prototype.getSetupUrl=function getSetupUrl(integrationKey,params){return this.client.request("integrations.get-setup-url",{params:_extends({},params,{integration_key:integrationKey})}).then(function(response){return{url:response.data.url,windowFeatures:response.data.windowFeatures}})};Integrations.prototype.disable=function disable(integrationKey){return this.client.request("integrations.disable",{level:this.level,integration_key:integrationKey})};return Integrations}(_API3.default);exports.default=Integrations;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export default ProofsIntegrationReferences;
|
|
2
|
-
declare class ProofsIntegrationReferences extends API {
|
|
3
|
-
constructor(client: any);
|
|
4
|
-
/**
|
|
5
|
-
* Gets the integrations that a user is able to reference
|
|
6
|
-
*
|
|
7
|
-
* @example <caption>Retrieving integrations that can be referenced by a user</caption>
|
|
8
|
-
* const availableIntegrations = await client.proofs.integrationReferences.availableIntegrations()
|
|
9
|
-
*
|
|
10
|
-
* @since 2.0.0-beta.144
|
|
11
|
-
* @returns {Promise<Array<object>>}
|
|
12
|
-
*/
|
|
13
|
-
availableIntegrations(): Promise<any[]>;
|
|
14
|
-
/**
|
|
15
|
-
* Gets the options for what a user can reference in an integration
|
|
16
|
-
*
|
|
17
|
-
* @since 2.0.0-beta.144
|
|
18
|
-
* @param {string} integrationKey The unique identifier for the integration
|
|
19
|
-
* @returns {Promise<Array<object>>}
|
|
20
|
-
*/
|
|
21
|
-
options(key: any): Promise<any[]>;
|
|
22
|
-
/**
|
|
23
|
-
* Add an integration reference to a proof
|
|
24
|
-
*
|
|
25
|
-
* @since 2.0.0-beta.144
|
|
26
|
-
* @param {string} proofId The proof id
|
|
27
|
-
* @param {object} integrationReference The integration reference option to add to a proof
|
|
28
|
-
* @returns {Promise}
|
|
29
|
-
*/
|
|
30
|
-
add(proofId: string, integrationReference: any): Promise<any>;
|
|
31
|
-
/**
|
|
32
|
-
* Remove an integration reference from a proof
|
|
33
|
-
*
|
|
34
|
-
* @since 2.0.0-beta.144
|
|
35
|
-
* @param {string} proofId The proof id
|
|
36
|
-
* @param {string} referenceId The integration reference option referenceId
|
|
37
|
-
* @returns {Promise}
|
|
38
|
-
*/
|
|
39
|
-
remove(proofId: string, referenceId: string): Promise<any>;
|
|
40
|
-
}
|
|
41
|
-
import API from "./API";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _API2=require("./API");var _API3=_interopRequireDefault(_API2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}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}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}var ProofsIntegrationReferences=function(_API){_inherits(ProofsIntegrationReferences,_API);function ProofsIntegrationReferences(){_classCallCheck(this,ProofsIntegrationReferences);return _possibleConstructorReturn(this,_API.apply(this,arguments))}ProofsIntegrationReferences.prototype.availableIntegrations=function availableIntegrations(){return this.client.request("integrations.get-available-reference-integrations").then(function(response){return response.data.integrations})};ProofsIntegrationReferences.prototype.options=function options(key){return this.client.request("integrations.get-available-reference-options",{integration_key:key}).then(function(response){return response.data.optionTypes})};ProofsIntegrationReferences.prototype.add=function add(proofId,integrationReference){return this.client.request("integrations.proof-integration-references.add",{proofId:proofId,integrationReference:integrationReference})};ProofsIntegrationReferences.prototype.remove=function remove(proofId,referenceId){return this.client.request("integrations.proof-integration-references.remove",{proofId:proofId,referenceId:referenceId})};return ProofsIntegrationReferences}(_API3.default);exports.default=ProofsIntegrationReferences;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export default TeamCustomTools;
|
|
2
|
-
declare class TeamCustomTools extends API {
|
|
3
|
-
constructor(client: any);
|
|
4
|
-
/**
|
|
5
|
-
* Loads the custom tools for your team.
|
|
6
|
-
*
|
|
7
|
-
* Note: This feature is only available to enterprise teams.
|
|
8
|
-
*
|
|
9
|
-
* @returns {Promise<any>}
|
|
10
|
-
*/
|
|
11
|
-
load(): Promise<any>;
|
|
12
|
-
/**
|
|
13
|
-
* Updates a custom tools definition for your team.
|
|
14
|
-
*
|
|
15
|
-
* Note: This feature is only available to enterprise teams.
|
|
16
|
-
*
|
|
17
|
-
* @param {any} updates
|
|
18
|
-
* @returns {Promise<any>}
|
|
19
|
-
*/
|
|
20
|
-
update(updates: any): Promise<any>;
|
|
21
|
-
}
|
|
22
|
-
import API from "../API";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export default TeamWorkflows;
|
|
2
|
-
declare class TeamWorkflows extends API {
|
|
3
|
-
constructor(client: any);
|
|
4
|
-
/**
|
|
5
|
-
* Loads all the team workflow templates.
|
|
6
|
-
*
|
|
7
|
-
* @example <caption>Loading team's all workflow templates</caption>
|
|
8
|
-
* const admin = await client.admin();
|
|
9
|
-
* const teamOwnedTemplates = await admin.team.workflows.owned();
|
|
10
|
-
* console.log(teamOwnedTemplates); // [Workflow, Workflow, ...]
|
|
11
|
-
*
|
|
12
|
-
* @since v2.0.0-beta.145
|
|
13
|
-
* @returns {Promise<Array<Workflow>>}
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
owned(): Promise<Workflow[]>;
|
|
17
|
-
}
|
|
18
|
-
import API from "../API";
|
|
19
|
-
import Workflow from "../../models/Workflow";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;exports.default=transformFile;var _nodeForge=require("node-forge");var forge=_interopRequireWildcard(_nodeForge);var _pako=require("pako");var _pako2=_interopRequireDefault(_pako);var _byteStringBufferToArrayBuffer=require("./util/byteStringBufferToArrayBuffer");var _byteStringBufferToArrayBuffer2=_interopRequireDefault(_byteStringBufferToArrayBuffer);var _envelopes=require("./envelopes");var _stringToArrayBuffer=require("../util/stringToArrayBuffer");var _stringToArrayBuffer2=_interopRequireDefault(_stringToArrayBuffer);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}var DEV=false;var operations={encrypt:[encrypt,decrypt],"base64.encode":[base64Encode,base64Decode],"gzip.compress":[gzipCompress,gzipDecompress]};function encrypt(raw,_ref){var key=_ref.key,iv=_ref.iv;var keyBytes=forge.util.hexToBytes(key);var ivBytes=forge.util.hexToBytes(iv);var cipher=forge.cipher.createCipher("AES-CBC",keyBytes);cipher.start({iv:ivBytes});cipher.update(forge.util.createBuffer(raw));var success=cipher.finish();if(!success){throw new Error("Failed to encrypt.")}return(0,_byteStringBufferToArrayBuffer2.default)(cipher.output)}encrypt.operationName="encrypt";function decrypt(encrypted,_ref2){var key=_ref2.key,iv=_ref2.iv;var keyBytes=forge.util.hexToBytes(key);var ivBytes=forge.util.hexToBytes(iv);var decipher=forge.cipher.createDecipher("AES-CBC",keyBytes);decipher.start({iv:ivBytes});decipher.update(forge.util.createBuffer(encrypted));var success=decipher.finish();if(!success){throw new Error("Failed to decrypt.")}return(0,_byteStringBufferToArrayBuffer2.default)(decipher.output)}decrypt.operationName="decrypt";function gzipCompress(raw){return _pako2.default.gzip(raw)}gzipCompress.operationName="gzip.compress";function gzipDecompress(compressed){return _pako2.default.ungzip(compressed)}gzipDecompress.operationName="gzip.decompress";function base64Encode(ab){return toArrayBuffer(toString(ab,"base64"),"binary")}base64Encode.operationName="base64.encode";function base64Decode(ab){return toArrayBuffer(toString(ab,"binary"),"base64")}base64Decode.operationName="base64.decode";function toArrayBuffer(str,encoding){if(!encoding){throw new Error("toArrayBuffer: Must provide an encoding - none specified.")}switch(encoding){case"binary":{return(0,_byteStringBufferToArrayBuffer2.default)(forge.util.createBuffer(str))}case"base64":{return(0,_stringToArrayBuffer2.default)(forge.util.decode64(str))}case"utf8":{return(0,_byteStringBufferToArrayBuffer2.default)(forge.util.createBuffer(str,"utf8"))}default:{throw new Error('toArrayBuffer: Unsupported encoding "'+encoding+'".')}}}function toString(ab,encoding){if(!encoding){throw new Error("toString: Must provide an encoding - none specified.")}switch(encoding){case"binary":{return forge.util.createBuffer(ab).bytes()}case"utf8":{return forge.util.encodeUtf8(ab)}case"base64":{return forge.util.encode64(forge.util.createBuffer(ab).bytes())}default:{throw new Error('toString: Unsupported encoding: "'+encoding+'".')}}}function transformFile(raw,rawEncoding,outputEncoding,envelopeOrKeyIV,privateKeyPEM,transformOperations,reverse){return new Promise(function(resolve,reject){try{var operationFunctions=transformOperations.map(function(operationName){var operationGroup=operations[operationName];if(!operationGroup){throw new Error('Operation "'+operationName+'" unsupported in this version of the SDK.')}return operationGroup[reverse?1:0]});var needsEnvelope=transformOperations.indexOf("encrypt")!==-1;var state={};var prepare=[];if(needsEnvelope){if(typeof envelopeOrKeyIV==="string"){prepare.push((0,_envelopes.envelopeUnseal)(envelopeOrKeyIV,privateKeyPEM).then(function(keyIV){state.key=keyIV.key;state.iv=keyIV.iv}))}else if(envelopeOrKeyIV.key&&envelopeOrKeyIV.iv){state.key=envelopeOrKeyIV.key;state.iv=envelopeOrKeyIV.iv}else{throw new Error("File requires an envelope for encryption/decryption, none was provided.")}}Promise.all(prepare).then(function(){if(DEV)console.debug("Instructions:",operationFunctions.map(function(f){return f.operationName}));if(DEV)console.debug("Decoding input as "+rawEncoding);var data=toArrayBuffer(raw,rawEncoding);if(DEV)console.debug("Data:",Buffer.from(data));for(var index=0;index<operationFunctions.length;index++){try{if(DEV)console.debug("Running operation "+operationFunctions[index].operationName);data=operationFunctions[index](data,state);if(DEV)console.debug("Data:",Buffer.from(data))}catch(err){throw new Error('Failed operation "'+operationFunctions[index].operationName+'" (index '+index+") - "+err)}}if(DEV)console.log("Encoding output as "+outputEncoding);data=toString(data,outputEncoding);resolve(data)}).catch(function(err){reject(err)})}catch(err){reject(err)}})}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export default ProofIntegrationReference;
|
|
2
|
-
declare class ProofIntegrationReference {
|
|
3
|
-
/**
|
|
4
|
-
* The id of the reference (from the system being referenced)
|
|
5
|
-
*
|
|
6
|
-
* @type {string}
|
|
7
|
-
*/
|
|
8
|
-
referenceId: string;
|
|
9
|
-
/**
|
|
10
|
-
* The URL to view the reference on the system being referenced
|
|
11
|
-
*
|
|
12
|
-
* @type {string}
|
|
13
|
-
*/
|
|
14
|
-
referenceUrl: string;
|
|
15
|
-
/**
|
|
16
|
-
* The type of the reference
|
|
17
|
-
*
|
|
18
|
-
* @type {string}
|
|
19
|
-
*/
|
|
20
|
-
referenceType: string;
|
|
21
|
-
/**
|
|
22
|
-
* The label to be displayed for the reference
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
*/
|
|
26
|
-
referenceLabel: string;
|
|
27
|
-
/**
|
|
28
|
-
* @private
|
|
29
|
-
* @param {object} data The ProofIntegrationReference data
|
|
30
|
-
* @returns {ProofIntegrationReference}
|
|
31
|
-
*/
|
|
32
|
-
fromProofIntegrationReference(data: any): ProofIntegrationReference;
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var proofIntegrationReferenceSchema={referenceId:"ReferenceId",referenceUrl:"ReferenceUrl",referenceType:"ReferenceType",referenceLabel:"ReferenceLabel"};var ProofIntegrationReference=function(){function ProofIntegrationReference(){_classCallCheck(this,ProofIntegrationReference)}ProofIntegrationReference.prototype.fromProofIntegrationReference=function fromProofIntegrationReference(data){(0,_transform2.default)(this,proofIntegrationReferenceSchema,data);return this};return ProofIntegrationReference}();exports.default=ProofIntegrationReference;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default TeamAccountFeatures;
|
|
2
|
-
declare class TeamAccountFeatures {
|
|
3
|
-
/**
|
|
4
|
-
* Team id
|
|
5
|
-
*
|
|
6
|
-
* @since v2.0.0-beta.143
|
|
7
|
-
* @type {string}
|
|
8
|
-
*/
|
|
9
|
-
teamId: string;
|
|
10
|
-
/**
|
|
11
|
-
* Team name
|
|
12
|
-
*
|
|
13
|
-
* @since v2.0.0-beta.143
|
|
14
|
-
* @type {string}
|
|
15
|
-
*/
|
|
16
|
-
teamName: string;
|
|
17
|
-
/**
|
|
18
|
-
* Team account type
|
|
19
|
-
*
|
|
20
|
-
* @since v2.0.0-beta.143
|
|
21
|
-
* @type {string}
|
|
22
|
-
*/
|
|
23
|
-
teamType: string;
|
|
24
|
-
/** @private */
|
|
25
|
-
fromTeamAccountFeatures(teamAccountFeaturesData: any): TeamAccountFeatures;
|
|
26
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var TeamAccountFeatureSchema={teamId:"Id",teamName:"Name",teamType:"Type"};var TeamAccountFeatures=function(){function TeamAccountFeatures(){_classCallCheck(this,TeamAccountFeatures)}TeamAccountFeatures.prototype.fromTeamAccountFeatures=function fromTeamAccountFeatures(teamAccountFeaturesData){(0,_transform2.default)(this,TeamAccountFeatureSchema,teamAccountFeaturesData);return this};return TeamAccountFeatures}();exports.default=TeamAccountFeatures;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"0000": {
|
|
3
|
-
"thumbnail": [],
|
|
4
|
-
"sprite_sheet": [],
|
|
5
|
-
"preview_low": [],
|
|
6
|
-
"preview_high": [],
|
|
7
|
-
"contents_per_chunk": [],
|
|
8
|
-
"extracted_text_per_chunk": ["gzip.compress"],
|
|
9
|
-
"upload_per_chunk": [],
|
|
10
|
-
"rendition": []
|
|
11
|
-
},
|
|
12
|
-
"0001": {
|
|
13
|
-
"thumbnail": ["base64.encode", "encrypt", "base64.encode"],
|
|
14
|
-
"sprite_sheet": ["base64.encode", "encrypt", "base64.encode"],
|
|
15
|
-
"preview_low": ["base64.encode", "encrypt", "base64.encode"],
|
|
16
|
-
"preview_high": ["base64.encode", "encrypt", "base64.encode"],
|
|
17
|
-
"contents_per_chunk": ["base64.encode", "encrypt", "base64.encode", "base64.encode"],
|
|
18
|
-
"extracted_text_per_chunk": ["gzip.compress", "encrypt"],
|
|
19
|
-
"upload_per_chunk": ["encrypt"],
|
|
20
|
-
"rendition": ["encrypt"]
|
|
21
|
-
},
|
|
22
|
-
"0002": {
|
|
23
|
-
"thumbnail": ["base64.encode", "encrypt", "base64.encode"],
|
|
24
|
-
"sprite_sheet": ["encrypt"],
|
|
25
|
-
"preview_low": ["encrypt"],
|
|
26
|
-
"preview_high": ["encrypt"],
|
|
27
|
-
"contents_per_chunk": ["encrypt"],
|
|
28
|
-
"extracted_text_per_chunk": ["gzip.compress", "encrypt"],
|
|
29
|
-
"upload_per_chunk": ["encrypt"],
|
|
30
|
-
"rendition": ["encrypt"]
|
|
31
|
-
},
|
|
32
|
-
"0003": {
|
|
33
|
-
"thumbnail": ["encrypt"],
|
|
34
|
-
"sprite_sheet": ["encrypt"],
|
|
35
|
-
"preview_low": ["encrypt"],
|
|
36
|
-
"preview_high": ["encrypt"],
|
|
37
|
-
"contents_per_chunk": ["encrypt"],
|
|
38
|
-
"extracted_text_per_chunk": ["gzip.compress", "encrypt"],
|
|
39
|
-
"upload_per_chunk": ["encrypt"],
|
|
40
|
-
"rendition": ["encrypt"]
|
|
41
|
-
},
|
|
42
|
-
"0004": {
|
|
43
|
-
"thumbnail": ["gzip.compress", "encrypt"],
|
|
44
|
-
"sprite_sheet": ["gzip.compress", "encrypt"],
|
|
45
|
-
"preview_low": ["gzip.compress", "encrypt"],
|
|
46
|
-
"preview_high": ["gzip.compress", "encrypt"],
|
|
47
|
-
"contents_per_chunk": ["gzip.compress", "encrypt"],
|
|
48
|
-
"extracted_text_per_chunk": ["gzip.compress", "encrypt"],
|
|
49
|
-
"upload_per_chunk": ["gzip.compress", "encrypt"],
|
|
50
|
-
"rendition": ["gzip.compress", "encrypt"]
|
|
51
|
-
}
|
|
52
|
-
}
|