nd-common
Version:
1,486 lines (1,480 loc) • 92.3 kB
JavaScript
import { Injectable, NgModule, defineInjectable } from '@angular/core';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
class CommonService {
constructor() { }
/**
* Determines if the source string contains any strings found in given substring array.
* @param {?} source The source string.
* @param {?} substrings The substring array to check the source against.
* @return {?}
*/
static stringContainsAny(source, substrings) {
if (substrings) {
for (let /** @type {?} */ index = 0; index !== substrings.length; index++) {
const /** @type {?} */ substring = substrings[index];
if (source.indexOf(substring) !== -1) {
return true;
}
}
}
return false;
}
/**
* Determine if the given value is null, empty or undefined.
* @param {?} value The value to be inspected.
* @return {?}
*/
static isNullOrEmptyOrUndefined(value) {
let /** @type {?} */ result = true;
if (value !== undefined && value != null) {
if (value.length > 0) {
result = false;
}
}
return result;
}
}
CommonService.decorators = [
{ type: Injectable, args: [{
providedIn: 'root'
},] },
];
/** @nocollapse */
CommonService.ctorParameters = () => [];
/** @nocollapse */ CommonService.ngInjectableDef = defineInjectable({ factory: function CommonService_Factory() { return new CommonService(); }, token: CommonService, providedIn: "root" });
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
class CommonModule {
}
CommonModule.decorators = [
{ type: NgModule, args: [{
imports: [],
declarations: [],
exports: []
},] },
];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Enum class that gives the allowed http methods.
*/
class HttpMethod {
}
HttpMethod.Get = "GET";
HttpMethod.Post = "POST";
HttpMethod.Put = "PUT";
HttpMethod.Delete = "DELETE";
/**
* Enum class that provides the possible response types
*/
class HttpResponseType {
}
HttpResponseType.arraybuffer = "arraybuffer";
HttpResponseType.blob = "blob";
HttpResponseType.json = 'json';
HttpResponseType.text = "text";
/** @enum {number} */
const CommandType = {
/**
* Do nothing.
*/
NoOp: 0,
/**
* File envelopes in a container.
*/
File: 1,
/**
* Unfile envelopes from a folder.
*/
Unfile: 2,
/**
* Move one or more documents to a destination container.
*/
Move: 3,
/**
* Copy one or more documents to a destination container.
*/
Copy: 4,
};
CommandType[CommandType.NoOp] = "NoOp";
CommandType[CommandType.File] = "File";
CommandType[CommandType.Unfile] = "Unfile";
CommandType[CommandType.Move] = "Move";
CommandType[CommandType.Copy] = "Copy";
/**
* Class defines functionality
*/
class Guid {
/**
* Constructs a Guid object from a given guid string.
* @param {?} guid The guid string to create with.
*/
constructor(guid) {
this.guid = guid;
this._guid = guid;
}
/**
* Converts a Guid to a string.
* @return {?}
*/
toString() {
return this.guid;
}
/**
* Constructs a new Guid object.
* @return {?}
*/
static makeNew() {
let /** @type {?} */ result = "";
let /** @type {?} */ i;
let /** @type {?} */ j;
for (j = 0; j < 32; j++) {
if (j === 8 || j === 12 || j === 16 || j === 20)
result = result + "-";
i = Math.floor(Math.random() * 16).toString(16).toUpperCase();
result = result + i;
}
return new Guid(result);
}
}
/**
* Class that defines the properties of a REST command request. See ndCommon.Models.Forms.CommandRequest
*/
class CommandRequest {
/**
* Constructs a command request object.
*/
constructor() {
// Assign unique request identifier.
this.Id = Guid.makeNew().toString();
this.Commands = new Array();
}
/**
* Adds the given command to the request.
* @param {?} command Interface to the command object to be added to the request.
* @return {?} Returns the index of newly added command. -1 is returned on a failure.
*/
addCommand(command) {
let /** @type {?} */ result = -1;
if (command != null) {
result = this.Commands.push(command) - 1;
}
return result;
}
/**
* Adds the given commands to the request.
* @param {?=} commands An array of command the request is to process.
* @return {?}
*/
addCommands(commands = null) {
if (!commands)
throw ("no commands specified.");
if (commands.length === 0)
throw ("a command array was specified but it has no commands.");
this.Commands = commands;
}
}
/**
* Base class for all supported commands.
*/
class Command {
/**
* Constructs a Command object.
*/
constructor() {
// Assign unique command identifier.
this.Id = Guid.makeNew().toString();
}
}
/**
* Files one or more envelopes in the specified container.
*/
class NoOpCommand extends Command {
constructor() {
super();
this.CommandType = CommandType.NoOp;
}
}
/**
* Files one or more envelopes in the specified container.
*/
class FileCommand extends Command {
/**
* @param {?} container
* @param {?} envelopes
* @param {?=} inheritAcl
* @param {?=} inheritProfile
*/
constructor(container, envelopes, inheritAcl = false, inheritProfile = false) {
if (!container)
throw ("container is required.");
if (!envelopes)
throw ("envelopes is required.");
super();
this.CommandType = CommandType.File;
this.Container = container;
this.Envelopes = envelopes;
this.InheritAcl = inheritAcl;
this.InheritProfile = inheritProfile;
}
}
/**
* Files one or more envelopes in the specified container.
*/
class UnfileCommand extends Command {
/**
* @param {?} container
* @param {?} envelopes
*/
constructor(container, envelopes) {
if (!container)
throw ("container is required.");
if (!envelopes)
throw ("envelopes is required.");
super();
this.CommandType = CommandType.Unfile;
this.Container = container;
this.Envelopes = envelopes;
}
}
/**
* Moves/Copies one or more documents to one or more destination containers.
*/
class MoveCommand extends Command {
/**
* @param {?} Id
* @param {?} Envelopes
* @param {?} Source
* @param {?} Destination
* @param {?} AttributesToReturn
* @param {?} ListFlags
*/
constructor(Id, Envelopes, Source, Destination, AttributesToReturn, ListFlags) {
if (!Envelopes)
throw ("Envelopes is a required parameter.");
super();
this.Id = Id;
this.CommandType = CommandType.Move;
this.Envelopes = Envelopes;
this.Source = Source;
this.Destination = Destination;
this.AttributesToReturn = AttributesToReturn;
this.ListFlags = ListFlags;
}
}
/**
* Defines the parameters needed to make the API call. Also allows us to add any parameters specific to our system that is not included in the RequestOptions class.
*/
class CallParameters {
}
/**
* Enum class that gives the proper syntax for the RestAPI versions.
*/
class APIVersions {
}
APIVersions.one = "/v1";
APIVersions.two = "/v2";
class NetDocumentsService {
}
NetDocumentsService.ducot = "ducot.netdocuments.com";
NetDocumentsService.vault = "vault.netvoyage.com ";
NetDocumentsService.eu = "eu.netdocuments.com";
NetDocumentsService.au = "au.netdocuments.com";
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Class represents Toast message
*/
class Toast {
}
/** @enum {number} */
const ToastType = {
SimpleToast: 1,
DetailedDocumentToast: 2,
MultipleDocumetsToast: 3,
DetailedFolderToast: 4,
MultipleItemsToast: 5,
FolderDraggedToWorkspaceToast: 6,
TopLevelFolderMessage: 7,
MultipleTopLevelFolderMessage: 8,
NdClickToast: 9,
};
ToastType[ToastType.SimpleToast] = "SimpleToast";
ToastType[ToastType.DetailedDocumentToast] = "DetailedDocumentToast";
ToastType[ToastType.MultipleDocumetsToast] = "MultipleDocumetsToast";
ToastType[ToastType.DetailedFolderToast] = "DetailedFolderToast";
ToastType[ToastType.MultipleItemsToast] = "MultipleItemsToast";
ToastType[ToastType.FolderDraggedToWorkspaceToast] = "FolderDraggedToWorkspaceToast";
ToastType[ToastType.TopLevelFolderMessage] = "TopLevelFolderMessage";
ToastType[ToastType.MultipleTopLevelFolderMessage] = "MultipleTopLevelFolderMessage";
ToastType[ToastType.NdClickToast] = "NdClickToast";
/**
* Subclass representing an envelope attachment.
*/
class Attachment {
}
/**
* This class implements an attachement model. This model holds information about envelope level document attachments.
*/
class AttachmentsModel {
}
class CheckOutInformation {
}
class Sorting {
/**
* @param {?} field
* @param {?=} direction
* @param {?=} useMvpSorting
*/
constructor(field, direction, useMvpSorting) {
// If the field is a number (the first expected parameter) then..
if (typeof field == "number") {
this.Field = /** @type {?} */ (field);
this.Direction = /** @type {?} */ (SortDirectionType[direction]);
this.UseMvpSorting = useMvpSorting || false;
}
else if (typeof field == "string") {
let /** @type {?} */ sortParts = field.split("!");
if (sortParts.length) {
let /** @type {?} */ parsedAttr = parseInt(sortParts[0]);
if (isNaN(parsedAttr)) {
this.Field = SortFieldLetters[sortParts[0]];
}
else {
this.Field = SortField.CustomBase + parsedAttr;
}
this.Direction = sortParts[1].toLowerCase() == "a" ? SortDirectionType[SortDirectionType.Ascending] : SortDirectionType[SortDirectionType.Descending];
this.UseMvpSorting = false;
}
}
else {
let /** @type {?} */ value = /** @type {?} */ (field);
this.Field = value.Field;
this.Direction = value.Direction;
this.UseMvpSorting = false;
}
}
/**
* @return {?}
*/
ToString() {
// If Direction is "None" then do NOT sort the results.
// For example, recent workspaces should not be sorted.
if (this.Direction === "None") {
return "none";
}
else {
return this.Field + "|" + (this.Direction === "Ascending" ? "asc" : "desc");
}
}
}
/** @enum {number} */
const FilterType = {
// Include only items that match the filter
IncludeOnly: 0,
// Include only items that do not match the filter
Exclude: 1,
// Include only items that do not match the filter and force the provided query to comply
ExcludeForce: 2,
};
FilterType[FilterType.IncludeOnly] = "IncludeOnly";
FilterType[FilterType.Exclude] = "Exclude";
FilterType[FilterType.ExcludeForce] = "ExcludeForce";
/** @enum {number} */
const SortDirectionType = {
Ascending: 0,
Descending: 1,
None: 2,
};
SortDirectionType[SortDirectionType.Ascending] = "Ascending";
SortDirectionType[SortDirectionType.Descending] = "Descending";
SortDirectionType[SortDirectionType.None] = "None";
/** @enum {number} */
const CustomAttributeTypeLetter = {
Text: 2,
Numeric: 3,
Date: 1,
Note: 2,
};
CustomAttributeTypeLetter[CustomAttributeTypeLetter.Text] = "Text";
CustomAttributeTypeLetter[CustomAttributeTypeLetter.Numeric] = "Numeric";
CustomAttributeTypeLetter[CustomAttributeTypeLetter.Date] = "Date";
CustomAttributeTypeLetter[CustomAttributeTypeLetter.Note] = "Note";
/** @enum {number} */
const SortFieldTypeLetter = {
D: 1,
//Date
T: 2,
//String not sure if there needs to be an "S" and a "T"
N: 3,
};
SortFieldTypeLetter[SortFieldTypeLetter.D] = "D";
SortFieldTypeLetter[SortFieldTypeLetter.T] = "T";
SortFieldTypeLetter[SortFieldTypeLetter.N] = "N";
/** @enum {number} */
const SortFieldType = {
LastModDate: 1,
CreationDate: 1,
DocName: 2,
LastModUser: 2,
ContainCabs: 2,
ShareSpaceName: 2,
CreationUser: 2,
DocNumber: 2,
EmailTo: 2,
EmailAttach: 3,
CalendarDate: 3,
VerCount: 3,
};
SortFieldType[SortFieldType.LastModDate] = "LastModDate";
SortFieldType[SortFieldType.CreationDate] = "CreationDate";
SortFieldType[SortFieldType.DocName] = "DocName";
SortFieldType[SortFieldType.LastModUser] = "LastModUser";
SortFieldType[SortFieldType.ContainCabs] = "ContainCabs";
SortFieldType[SortFieldType.ShareSpaceName] = "ShareSpaceName";
SortFieldType[SortFieldType.CreationUser] = "CreationUser";
SortFieldType[SortFieldType.DocNumber] = "DocNumber";
SortFieldType[SortFieldType.EmailTo] = "EmailTo";
SortFieldType[SortFieldType.EmailAttach] = "EmailAttach";
SortFieldType[SortFieldType.CalendarDate] = "CalendarDate";
SortFieldType[SortFieldType.VerCount] = "VerCount";
/** @enum {number} */
const SortFieldLetters = {
A: 10,
//SortField.ContainCabs
B: 4,
//SortField.ShareSpaceName
C: 3,
//SortField.DocName
// D //cannot sort on View link
E: 8,
//SortField.LastModUser
F: 7,
//SortField.LastModDate
// G //cannot sort on Profile link
// H //cannot sort on Info link
I: 6,
//SortField.CreationUser
J: 5,
//SortField.CreationDate
K: 999,
//SortField.DocNumber
L: 11,
//SortField.DocExten
V: 28,
//SortField.VerCount
M: 19,
//SortField.EmailFrom
N: 17,
//SortField.EmailTo
O: 18,
//SortField.EmailCc
P: 7,
//SortField.LastModDate //Email date
//Q = 3, //SortField.DocName //Email Subject
T: 27,
};
SortFieldLetters[SortFieldLetters.A] = "A";
SortFieldLetters[SortFieldLetters.B] = "B";
SortFieldLetters[SortFieldLetters.C] = "C";
SortFieldLetters[SortFieldLetters.E] = "E";
SortFieldLetters[SortFieldLetters.F] = "F";
SortFieldLetters[SortFieldLetters.I] = "I";
SortFieldLetters[SortFieldLetters.J] = "J";
SortFieldLetters[SortFieldLetters.K] = "K";
SortFieldLetters[SortFieldLetters.L] = "L";
SortFieldLetters[SortFieldLetters.V] = "V";
SortFieldLetters[SortFieldLetters.M] = "M";
SortFieldLetters[SortFieldLetters.N] = "N";
SortFieldLetters[SortFieldLetters.O] = "O";
SortFieldLetters[SortFieldLetters.P] = "P";
SortFieldLetters[SortFieldLetters.T] = "T";
/** @enum {number} */
const SortField = {
Fulltext: 1,
Acl: 2,
DocName: 3,
ShareSpaceName: 4,
CreationDate: 5,
// YYYYMMDD format
CreationUser: 6,
LastModDate: 7,
LastModUser: 8,
// 9 is unused
ContainCabs: 10,
DocExten: 11,
CalendarDate: 12,
// for ndCal items
TopFolder: 13,
// cabinetGuid in which this item is a top folder (only used by top folders)
Unprofiled: 14,
// cabinetGuids in which this item has one or more required fields that are empty
DeletedCabs: 15,
// cabinets which have this item in the Deleted Items folder
FolderEnvUrl: 16,
// envurls of folder contents, hashed
EmailTo: 17,
EmailCc: 18,
EmailFrom: 19,
JumboFolder: 20,
// DOCID (no dashes) for Jumbo Folders that contain this document
EmailAttach: 27,
// 1 for emails with attachments
VerCount: 28,
// # of versions
DocNumber: 999,
CustomBase: 1000,
};
SortField[SortField.Fulltext] = "Fulltext";
SortField[SortField.Acl] = "Acl";
SortField[SortField.DocName] = "DocName";
SortField[SortField.ShareSpaceName] = "ShareSpaceName";
SortField[SortField.CreationDate] = "CreationDate";
SortField[SortField.CreationUser] = "CreationUser";
SortField[SortField.LastModDate] = "LastModDate";
SortField[SortField.LastModUser] = "LastModUser";
SortField[SortField.ContainCabs] = "ContainCabs";
SortField[SortField.DocExten] = "DocExten";
SortField[SortField.CalendarDate] = "CalendarDate";
SortField[SortField.TopFolder] = "TopFolder";
SortField[SortField.Unprofiled] = "Unprofiled";
SortField[SortField.DeletedCabs] = "DeletedCabs";
SortField[SortField.FolderEnvUrl] = "FolderEnvUrl";
SortField[SortField.EmailTo] = "EmailTo";
SortField[SortField.EmailCc] = "EmailCc";
SortField[SortField.EmailFrom] = "EmailFrom";
SortField[SortField.JumboFolder] = "JumboFolder";
SortField[SortField.EmailAttach] = "EmailAttach";
SortField[SortField.VerCount] = "VerCount";
SortField[SortField.DocNumber] = "DocNumber";
SortField[SortField.CustomBase] = "CustomBase";
/** @enum {number} */
const StandardAttributes = {
Everything: 1,
Name: 3,
NetbinderName: 4,
Created: 5,
CreatedBy: 6,
Modified: 7,
ModifiedBy: 8,
Cabinets: 10,
Ext: 11,
CalDateStart: 12,
CalDateEnd: 112,
// apparently implicit with calDateStart, not sure it will be used
TopFolder: 13,
Unprofiled: 14,
DeletedCabs: 15,
FolderEnvurl: 16,
XmlTo: 17,
// Email to
XmlCc: 18,
// Email CC
XmlFrom: 19,
// Email From
JumboFolders: 20,
Locations: 24,
Emails: 25,
Dates: 126,
// Used in solr navigator xml, not sure if needed
DocDateTime: 26,
EmailAttach: 27,
EmailAttachExt: 28,
EmailAttachCount: 29,
EmailDomain: 30,
EmailId: 31,
EnvUrl: 32,
OfficialVersionNumber: 33,
VersionsCount: 34,
Source: 35,
SourceId: 36,
CheckedOutUser: 54,
CheckedOutDate: 55,
CheckedOut: 56,
SortBy: 997,
// Used by the new Advanced Search page, not by the SOLR parser
DocId: 999,
Approved: 201,
//document properties
Locked: 202,
Signed: 203,
};
StandardAttributes[StandardAttributes.Everything] = "Everything";
StandardAttributes[StandardAttributes.Name] = "Name";
StandardAttributes[StandardAttributes.NetbinderName] = "NetbinderName";
StandardAttributes[StandardAttributes.Created] = "Created";
StandardAttributes[StandardAttributes.CreatedBy] = "CreatedBy";
StandardAttributes[StandardAttributes.Modified] = "Modified";
StandardAttributes[StandardAttributes.ModifiedBy] = "ModifiedBy";
StandardAttributes[StandardAttributes.Cabinets] = "Cabinets";
StandardAttributes[StandardAttributes.Ext] = "Ext";
StandardAttributes[StandardAttributes.CalDateStart] = "CalDateStart";
StandardAttributes[StandardAttributes.CalDateEnd] = "CalDateEnd";
StandardAttributes[StandardAttributes.TopFolder] = "TopFolder";
StandardAttributes[StandardAttributes.Unprofiled] = "Unprofiled";
StandardAttributes[StandardAttributes.DeletedCabs] = "DeletedCabs";
StandardAttributes[StandardAttributes.FolderEnvurl] = "FolderEnvurl";
StandardAttributes[StandardAttributes.XmlTo] = "XmlTo";
StandardAttributes[StandardAttributes.XmlCc] = "XmlCc";
StandardAttributes[StandardAttributes.XmlFrom] = "XmlFrom";
StandardAttributes[StandardAttributes.JumboFolders] = "JumboFolders";
StandardAttributes[StandardAttributes.Locations] = "Locations";
StandardAttributes[StandardAttributes.Emails] = "Emails";
StandardAttributes[StandardAttributes.Dates] = "Dates";
StandardAttributes[StandardAttributes.DocDateTime] = "DocDateTime";
StandardAttributes[StandardAttributes.EmailAttach] = "EmailAttach";
StandardAttributes[StandardAttributes.EmailAttachExt] = "EmailAttachExt";
StandardAttributes[StandardAttributes.EmailAttachCount] = "EmailAttachCount";
StandardAttributes[StandardAttributes.EmailDomain] = "EmailDomain";
StandardAttributes[StandardAttributes.EmailId] = "EmailId";
StandardAttributes[StandardAttributes.EnvUrl] = "EnvUrl";
StandardAttributes[StandardAttributes.OfficialVersionNumber] = "OfficialVersionNumber";
StandardAttributes[StandardAttributes.VersionsCount] = "VersionsCount";
StandardAttributes[StandardAttributes.Source] = "Source";
StandardAttributes[StandardAttributes.SourceId] = "SourceId";
StandardAttributes[StandardAttributes.CheckedOutUser] = "CheckedOutUser";
StandardAttributes[StandardAttributes.CheckedOutDate] = "CheckedOutDate";
StandardAttributes[StandardAttributes.CheckedOut] = "CheckedOut";
StandardAttributes[StandardAttributes.SortBy] = "SortBy";
StandardAttributes[StandardAttributes.DocId] = "DocId";
StandardAttributes[StandardAttributes.Approved] = "Approved";
StandardAttributes[StandardAttributes.Locked] = "Locked";
StandardAttributes[StandardAttributes.Signed] = "Signed";
/** @enum {number} */
const AccountOption = {
// ndOptions
breakout: 1,
// unused; formerly Breakout
AllowMultipleValues: 2,
// Used instead of versioning flag. Task: #26890
profiling: 4,
fullText: 8,
docFiling: 16,
// encourage filing; still used for defaulting. See ND01262.
admCreUsers: 32,
// cabinet admins allowed to create users and groups (ND00766)
calendaring: 64,
docDelivery: 128,
// Document Delivery
LDS: 256,
// local document server
NetBinders: 512,
// ShareSpaces
syncOutlook: 1024,
// Outlook NDSync
folderSearch: 2048,
// unused from release 17.2. Allows searching within (smart) folders
encStorage: 4096,
// ND00415 - Storage encryption; formerly Windows NDSync
secTemplate: 8192,
// unused; formerly ND00895 - Security Templates
virusScan: 16384,
// unused; formerly ND00278 - Virus Scanning
noDocMoves: 32768,
// ND00993 - Prevent Document Moves from Repository
trialAccount: 262144,
privateStorage: 524288,
encryptionKeyMgmt: 1048576,
// PBI 16148, workspace encryption keys
cabDisable: 2097152,
// PBI 18745 - Cabinet admins may disable cabinet
dlp: 4194304,
// PBI 33429:[DLP] Add Option for DLP on Repository Administration Page
indexAllVersions: 8388608,
// Index all file versions - PBI 46372
ThreadKM: 16777216,
// PBI 49164 - Is ThreadKM integration enabled
Analytics: 33554432,
// PBI 49520 - Is ndAnalytics enabled
ThreadKMDispInNdWeb: 67108864,
// PBI 51985 - Expose ndThread features in ndWeb
ocrBacklogProcessing: 134217728,
// PBI 51547 - OCR Backlog Processing
ocrActiveMonitoring: 268435456,
// PBI 51547 - OCR Active Monitoring
// ndOptions2, left shifted 4 bytes
allowND2: 4294967296,
// unused; formerly ND01134 - ND2 desktop access
docRetention: 8589934592,
// 0x200000000 ND01235 - Purging
allowJumbo: 17179869184,
// 0x400000000 ND01312 - Jumbo folders allowed (also controlled at cabinet level); unused?
docReview: 34359738368,
// ND01309 0x800000000 - Document Review
federatedId: 68719476736,
// 0x1000000000 ND01129 - Federated Identity
basicEdition: 137438953472,
// 0x2000000000 ND01431 - Basic Edition
conMemberCount: 274877906944,
// 0x4000000000 ND01384 - Consolidated Membership Count
expireWarnMsg: 549755813888,
// 0x8000000000 ND01417 - Repository expiration warning message has been sent
expireFinalMsg: 1099511627776,
// 0x10000000000 ND01417 - Repository expiration final message has been sent
contentAnalysis: 2199023255552,
// 0x20000000000 ND01523 - Advanced Searching Options (filters, similar, contentAnalysis etc.)
noSecondary: 4398046511104,
// 0x40000000000 ND01525 - Prohibit migration to secondary storage; unused?
textFlowInt: 8796093022208,
// 0x80000000000 ND01898 - TextFlow integration; unused
convertToPDF: 17592186044416,
// 0x100000000000 ND01908 - Create PDF Attachment
imgProc: 35184372088832,
//= 0x200000000000 ND01549 - Image Processing
ndsyncWipe: 70368744177664,
// 0x400000000000 PBI 2393 - When user is removed, unlink devices and wipe all content
collaborationSpaces: 140737488355328,
// PBI 34915 - Collaboration spaces
ndSyncDisable: 281474976710656,
// PBI 52971 - NdSync Disable
ExternalUsersIgnoreIPRange: 562949953421312,
};
AccountOption[AccountOption.breakout] = "breakout";
AccountOption[AccountOption.AllowMultipleValues] = "AllowMultipleValues";
AccountOption[AccountOption.profiling] = "profiling";
AccountOption[AccountOption.fullText] = "fullText";
AccountOption[AccountOption.docFiling] = "docFiling";
AccountOption[AccountOption.admCreUsers] = "admCreUsers";
AccountOption[AccountOption.calendaring] = "calendaring";
AccountOption[AccountOption.docDelivery] = "docDelivery";
AccountOption[AccountOption.LDS] = "LDS";
AccountOption[AccountOption.NetBinders] = "NetBinders";
AccountOption[AccountOption.syncOutlook] = "syncOutlook";
AccountOption[AccountOption.folderSearch] = "folderSearch";
AccountOption[AccountOption.encStorage] = "encStorage";
AccountOption[AccountOption.secTemplate] = "secTemplate";
AccountOption[AccountOption.virusScan] = "virusScan";
AccountOption[AccountOption.noDocMoves] = "noDocMoves";
AccountOption[AccountOption.trialAccount] = "trialAccount";
AccountOption[AccountOption.privateStorage] = "privateStorage";
AccountOption[AccountOption.encryptionKeyMgmt] = "encryptionKeyMgmt";
AccountOption[AccountOption.cabDisable] = "cabDisable";
AccountOption[AccountOption.dlp] = "dlp";
AccountOption[AccountOption.indexAllVersions] = "indexAllVersions";
AccountOption[AccountOption.ThreadKM] = "ThreadKM";
AccountOption[AccountOption.Analytics] = "Analytics";
AccountOption[AccountOption.ThreadKMDispInNdWeb] = "ThreadKMDispInNdWeb";
AccountOption[AccountOption.ocrBacklogProcessing] = "ocrBacklogProcessing";
AccountOption[AccountOption.ocrActiveMonitoring] = "ocrActiveMonitoring";
AccountOption[AccountOption.allowND2] = "allowND2";
AccountOption[AccountOption.docRetention] = "docRetention";
AccountOption[AccountOption.allowJumbo] = "allowJumbo";
AccountOption[AccountOption.docReview] = "docReview";
AccountOption[AccountOption.federatedId] = "federatedId";
AccountOption[AccountOption.basicEdition] = "basicEdition";
AccountOption[AccountOption.conMemberCount] = "conMemberCount";
AccountOption[AccountOption.expireWarnMsg] = "expireWarnMsg";
AccountOption[AccountOption.expireFinalMsg] = "expireFinalMsg";
AccountOption[AccountOption.contentAnalysis] = "contentAnalysis";
AccountOption[AccountOption.noSecondary] = "noSecondary";
AccountOption[AccountOption.textFlowInt] = "textFlowInt";
AccountOption[AccountOption.convertToPDF] = "convertToPDF";
AccountOption[AccountOption.imgProc] = "imgProc";
AccountOption[AccountOption.ndsyncWipe] = "ndsyncWipe";
AccountOption[AccountOption.collaborationSpaces] = "collaborationSpaces";
AccountOption[AccountOption.ndSyncDisable] = "ndSyncDisable";
AccountOption[AccountOption.ExternalUsersIgnoreIPRange] = "ExternalUsersIgnoreIPRange";
/** @enum {number} */
const UserOptionsFlags = {
/**
* This user has rights to create shared folders in My Cabinet
*/
createShareFolder: 1,
/**
* Search takes the user to the advanced search page - ND00621
*/
advancedSearch: 2,
/**
* Enabled PDF streaming for this user
*/
pdfStreaming: 4,
/**
* If set, display names (in lists) as "firstname (mi) lastname", otherwise display as "lastname, firstname (mi)"
*/
nameDisplayOrder: 8,
/**
* If set, this user has a blackberry device
*/
blackberry: 16,
/**
* Recent Workspaces most recently viewed workspaces option
*/
recentWorkspaces: 64,
/**
* Accept inbound mail only from this user's email address. ND01154
*/
restrictInBoundMail: 128,
/**
* Disallow any inbound mail. ND01154
*/
disallowInBoundMail: 256,
/**
* ND01376: 0 means sort by Key (default); 1 means sort by Description
*/
sortLookupByDescription: 512,
/**
* ND01220 FAST default sort order (two bits) 0 == none; 1 == Relevance Ranking
*/
searchSortOne: 1024,
/**
* 2 == Last Modified Date; 3 == Document Nam
*/
searchSortTwo: 2048,
/**
* Flag determine if My Cabinet should be shown or not.
*/
showMyCabinet: 8192,
/**
* Personalized sort option
*/
searchSortPersonalized: 16384,
/**
* Cannot use highest order bit - will be interpreted by eDir as negative number
*/
mustNotUse: 2147483648,
};
UserOptionsFlags[UserOptionsFlags.createShareFolder] = "createShareFolder";
UserOptionsFlags[UserOptionsFlags.advancedSearch] = "advancedSearch";
UserOptionsFlags[UserOptionsFlags.pdfStreaming] = "pdfStreaming";
UserOptionsFlags[UserOptionsFlags.nameDisplayOrder] = "nameDisplayOrder";
UserOptionsFlags[UserOptionsFlags.blackberry] = "blackberry";
UserOptionsFlags[UserOptionsFlags.recentWorkspaces] = "recentWorkspaces";
UserOptionsFlags[UserOptionsFlags.restrictInBoundMail] = "restrictInBoundMail";
UserOptionsFlags[UserOptionsFlags.disallowInBoundMail] = "disallowInBoundMail";
UserOptionsFlags[UserOptionsFlags.sortLookupByDescription] = "sortLookupByDescription";
UserOptionsFlags[UserOptionsFlags.searchSortOne] = "searchSortOne";
UserOptionsFlags[UserOptionsFlags.searchSortTwo] = "searchSortTwo";
UserOptionsFlags[UserOptionsFlags.showMyCabinet] = "showMyCabinet";
UserOptionsFlags[UserOptionsFlags.searchSortPersonalized] = "searchSortPersonalized";
UserOptionsFlags[UserOptionsFlags.mustNotUse] = "mustNotUse";
/** @enum {number} */
const MembershipModelControlFlags = {
/**
* No flag information has been specified.
*/
Undefined: 0,
/**
* Flag that indicates that updated user information is requested.
*/
IncludeUserInformation: 1,
/**
* Flag that indicates that updated repository information is requested.
*/
IncludeRepositoryInformation: 2,
/**
* Flag that indicates that updated cabinet information is requested.
*/
IncludeCabinetInformation: 4,
/**
* Flag that indicates that groups information is required.
*/
IncludeGroupsInformation: 8,
/**
* Flag that indicates that the analytics configuration is required.
*/
IncludeAnalyticsConfigurationForEachRepository: 16,
};
MembershipModelControlFlags[MembershipModelControlFlags.Undefined] = "Undefined";
MembershipModelControlFlags[MembershipModelControlFlags.IncludeUserInformation] = "IncludeUserInformation";
MembershipModelControlFlags[MembershipModelControlFlags.IncludeRepositoryInformation] = "IncludeRepositoryInformation";
MembershipModelControlFlags[MembershipModelControlFlags.IncludeCabinetInformation] = "IncludeCabinetInformation";
MembershipModelControlFlags[MembershipModelControlFlags.IncludeGroupsInformation] = "IncludeGroupsInformation";
MembershipModelControlFlags[MembershipModelControlFlags.IncludeAnalyticsConfigurationForEachRepository] = "IncludeAnalyticsConfigurationForEachRepository";
/** @enum {number} */
const OptionalAttributes = {
/**
* No Flags
*/
None: 0,
/**
* Fetches the document's checked out status.
*/
AllowCheckedOutState: 2,
/**
* Fetches the check out details: who, when, comment
*/
CheckedOutBy: 4,
/**
* Repository attributes (abbreviated dictionary: id, name, type, etc.)
* See FullCustomAttributeDefinition for a full dictionary of each attribute.
*/
CustomAttributes: 262144,
/**
* Primary cabinet and workspace attribute plural name
*/
DefaultCabinet: 16777216,
/**
* Repository attributes (full dictionary)
* See CustomAttributes for an abbreviated dictionary of each attribute.
*/
FullCustomAttributeDefinition: 33554432,
/**
* Short name for FullCustromAttributeDefinition
*/
FCAD: 33554432,
};
OptionalAttributes[OptionalAttributes.None] = "None";
OptionalAttributes[OptionalAttributes.AllowCheckedOutState] = "AllowCheckedOutState";
OptionalAttributes[OptionalAttributes.CheckedOutBy] = "CheckedOutBy";
OptionalAttributes[OptionalAttributes.CustomAttributes] = "CustomAttributes";
OptionalAttributes[OptionalAttributes.DefaultCabinet] = "DefaultCabinet";
OptionalAttributes[OptionalAttributes.FullCustomAttributeDefinition] = "FullCustomAttributeDefinition";
OptionalAttributes[OptionalAttributes.FCAD] = "FCAD";
/** @enum {number} */
const UserOptLevel = {
/*
* Refers to the user level option
*/
User: 1,
};
UserOptLevel[UserOptLevel.User] = "User";
/** @enum {number} */
const CustomAttributeType = {
Text: 0,
Numeric: 1,
Date: 2,
Note: 3,
};
CustomAttributeType[CustomAttributeType.Text] = "Text";
CustomAttributeType[CustomAttributeType.Numeric] = "Numeric";
CustomAttributeType[CustomAttributeType.Date] = "Date";
CustomAttributeType[CustomAttributeType.Note] = "Note";
/** @enum {number} */
const DefaultFromBehavior = {
None: 0,
DefaultFrom: 1,
DeterminedBy: 2,
WorkspaceTemplate: 3,
};
DefaultFromBehavior[DefaultFromBehavior.None] = "None";
DefaultFromBehavior[DefaultFromBehavior.DefaultFrom] = "DefaultFrom";
DefaultFromBehavior[DefaultFromBehavior.DeterminedBy] = "DeterminedBy";
DefaultFromBehavior[DefaultFromBehavior.WorkspaceTemplate] = "WorkspaceTemplate";
/** @enum {number} */
const RepositoryAdminType = {
NonAdmin: 0,
FullAdmin: 1,
LookupAdmin: 2,
MembershipAdmin: 4,
CabCreateAdmin: 8,
DeviceAdmin: 16,
};
RepositoryAdminType[RepositoryAdminType.NonAdmin] = "NonAdmin";
RepositoryAdminType[RepositoryAdminType.FullAdmin] = "FullAdmin";
RepositoryAdminType[RepositoryAdminType.LookupAdmin] = "LookupAdmin";
RepositoryAdminType[RepositoryAdminType.MembershipAdmin] = "MembershipAdmin";
RepositoryAdminType[RepositoryAdminType.CabCreateAdmin] = "CabCreateAdmin";
RepositoryAdminType[RepositoryAdminType.DeviceAdmin] = "DeviceAdmin";
/** @enum {number} */
const CabinetAdminType = {
NonAdmin: 0,
FullAdmin: 1,
};
CabinetAdminType[CabinetAdminType.NonAdmin] = "NonAdmin";
CabinetAdminType[CabinetAdminType.FullAdmin] = "FullAdmin";
/** @enum {number} */
const UserType = {
Internal: 0,
External: 2,
};
UserType[UserType.Internal] = "Internal";
UserType[UserType.External] = "External";
/**
* Primary cabinet model class
*/
class PrimaryCabinetModel {
/**
* @param {?} cabinetGuid
*/
constructor(cabinetGuid) {
this.CabinetGuid = cabinetGuid;
}
}
class CabinetModel {
/**
* @param {?} cabinet
* @param {?} repositoryGuid
*/
constructor(cabinet, repositoryGuid) {
this.cabinet = cabinet;
this.repositoryGuid = repositoryGuid;
}
}
/**
* Easy light weight Cabinet Name and Guid pair.
*/
class CabinetNameAndGuid {
/**
* @param {?} name
* @param {?} guid
*/
constructor(name, guid) {
this.Name = name;
this.Guid = guid;
}
}
class Attribute {
/**
* @param {?} id
* @param {?} name
*/
constructor(id, name) {
this.id = id;
this.name = name;
}
}
/** @enum {number} */
const CabinetOption = {
topFoldersAdminOnly: 1,
autoFolder: 2,
// ND01557 - Auto file in workspace folders (together with ND_OPT_CAB_AUTO_FILTER)
deleteAdminOnly: 4,
// only administrators can delete items in the cabinet
noFulltextIndexing: 8,
// no full text indexing
inheritACL: 16,
// standalone document inherits ACL of folder in which it is filed
forceEntry: 32,
// require users to enter values in required document attributes before continuing past the Edit Profile page
ndSyncDelete: 64,
// delete corresponding online item when a mirrored workstation item is deleted
forceNewOnly: 128,
// require Admin users to enter required document attributes for new documents only
restrictExtCreate: 256,
// external users are not allowed to create documents
workspaceEnabled: 512,
// workspaces enabled flag
editOldVersions: 1024,
// ND01105 - restrict editing of older versions to Official and Latest
comparisonAttach: 2048,
// ND01179 - Store comparisons (i.e. DeltaView output) as attachments
filingOptionBit1: 4096,
// ND01262 (Simplify Filing Imports) These two bits work together as follows:
filingOptionBit2: 8192,
// 00 means SHOW, 01 means HIDE, 10 means FORCE, 11 is undefined
jumboFolders: 16384,
// ND01312 - Jumbo folders enabled
noFilingInWorkspace: 32768,
// ND01294 - File Into Workspace (allow filing if bit is not set; prohibit filing if bit is set)
unauthPrinAccess: 65536,
// ND01471 - Share NetBinders without passwords (unauthPrin = unauthenticated principal)
versionChgRights: 131072,
// ND01548 - False (default): Admin rights required, True: Edit rights required
archival: 262144,
// ND01563 - Archival cabinet - no editing or deletion
protectedCab: 524288,
// ND01568 - Protected Cabinet (can only be deleted by NetDocuments personnel)
noExtUserNotify: 1048576,
// ND01621 - Prevent external users from using the Notify option
nbInheritLogo: 2097152,
// ND01704 - NetBinders created in this cabinet inherit the cabinet logo
autoFilter: 4194304,
// ND01918 - Auto filter in workspaces (together with ND_OPT_CAB_AUTO_FOLDER)
deliverDoc: 8388608,
// ND02164 - Disable Deliver for Cabinet
noOnlineEditor: 16777216,
// PBI 9005 - Provide a way to disable Online Editor (Microsoft OneDrive or [Office Online (aka WOPI)])
notCopyLink: 33554432,
// Do not allow copying the document delivery link
revokeAdminOnly: 67108864,
// Only allow Cabinet Administrators to revoke document delivery links
cabIsDisabled: 134217728,
// Cabinet is disabled
purgeImmediate: 268435456,
};
CabinetOption[CabinetOption.topFoldersAdminOnly] = "topFoldersAdminOnly";
CabinetOption[CabinetOption.autoFolder] = "autoFolder";
CabinetOption[CabinetOption.deleteAdminOnly] = "deleteAdminOnly";
CabinetOption[CabinetOption.noFulltextIndexing] = "noFulltextIndexing";
CabinetOption[CabinetOption.inheritACL] = "inheritACL";
CabinetOption[CabinetOption.forceEntry] = "forceEntry";
CabinetOption[CabinetOption.ndSyncDelete] = "ndSyncDelete";
CabinetOption[CabinetOption.forceNewOnly] = "forceNewOnly";
CabinetOption[CabinetOption.restrictExtCreate] = "restrictExtCreate";
CabinetOption[CabinetOption.workspaceEnabled] = "workspaceEnabled";
CabinetOption[CabinetOption.editOldVersions] = "editOldVersions";
CabinetOption[CabinetOption.comparisonAttach] = "comparisonAttach";
CabinetOption[CabinetOption.filingOptionBit1] = "filingOptionBit1";
CabinetOption[CabinetOption.filingOptionBit2] = "filingOptionBit2";
CabinetOption[CabinetOption.jumboFolders] = "jumboFolders";
CabinetOption[CabinetOption.noFilingInWorkspace] = "noFilingInWorkspace";
CabinetOption[CabinetOption.unauthPrinAccess] = "unauthPrinAccess";
CabinetOption[CabinetOption.versionChgRights] = "versionChgRights";
CabinetOption[CabinetOption.archival] = "archival";
CabinetOption[CabinetOption.protectedCab] = "protectedCab";
CabinetOption[CabinetOption.noExtUserNotify] = "noExtUserNotify";
CabinetOption[CabinetOption.nbInheritLogo] = "nbInheritLogo";
CabinetOption[CabinetOption.autoFilter] = "autoFilter";
CabinetOption[CabinetOption.deliverDoc] = "deliverDoc";
CabinetOption[CabinetOption.noOnlineEditor] = "noOnlineEditor";
CabinetOption[CabinetOption.notCopyLink] = "notCopyLink";
CabinetOption[CabinetOption.revokeAdminOnly] = "revokeAdminOnly";
CabinetOption[CabinetOption.cabIsDisabled] = "cabIsDisabled";
CabinetOption[CabinetOption.purgeImmediate] = "purgeImmediate";
class SortingInfo {
constructor() {
this.All = [];
this.Documents = [];
this.Email = [];
}
}
/** @enum {number} */
const ErrorCodes = {
FileAccessDenied: 70,
DocumentNotFound: 424,
SharedDocumentIsGone: 0,
DocumentContainsAvirus: 80040110,
UnatachedPrincipalSessionAlreadyEstablished: 80078233,
SpecificErrorWithMessage: 9999,
FileNotFound: 53,
NoWorkspaceAttribute: -2147467261,
};
ErrorCodes[ErrorCodes.FileAccessDenied] = "FileAccessDenied";
ErrorCodes[ErrorCodes.DocumentNotFound] = "DocumentNotFound";
ErrorCodes[ErrorCodes.SharedDocumentIsGone] = "SharedDocumentIsGone";
ErrorCodes[ErrorCodes.DocumentContainsAvirus] = "DocumentContainsAvirus";
ErrorCodes[ErrorCodes.UnatachedPrincipalSessionAlreadyEstablished] = "UnatachedPrincipalSessionAlreadyEstablished";
ErrorCodes[ErrorCodes.SpecificErrorWithMessage] = "SpecificErrorWithMessage";
ErrorCodes[ErrorCodes.FileNotFound] = "FileNotFound";
ErrorCodes[ErrorCodes.NoWorkspaceAttribute] = "NoWorkspaceAttribute";
/**
* Favorite Document model class
*/
class FavoriteDocumentModel {
/**
* @param {?} envld
* @param {?} isFavorite
*/
constructor(envld, isFavorite) {
this.EnvId = envld;
this.IsFavorite = isFavorite;
}
}
/**
* Possible select parameters for the document model.
* Some of these mimics enumerated values found in OptionalAttributes in OptionalAttr.cs
*/
class SelectParameters {
}
/**
* Fetches the combined count of document and email attachments.
*/
SelectParameters.AllowAttachmentCount = "AllowAttachmentCount";
/**
* Fetches the document's checked out status.
*/
SelectParameters.AllowCheckedOutState = "AllowCheckedOutState";
/**
* Fetches the check out details: who, when, comment
*/
SelectParameters.CheckedOutBy = "CheckedOutBy";
/**
* Fetch email to, from, cc, message id, attachment list, etc.
*/
SelectParameters.EmailAttributes = "EmailAttributes";
/**
* Fetches the envelope Access Control List (ACL).
*/
SelectParameters.IncludeAcls = "IncludeAcls";
/**
* Fetches whether the envelope has been deleted.
*/
SelectParameters.DeletedStatus = "DeletedStatus";
/**
* Fetches hoverover tip for folders.
*/
SelectParameters.HoverTip = "HoverTip";
/**
* Fetches workspace and/or custom attribute description information.
*/
SelectParameters.Descriptions = "Descriptions";
/**
* Fetches standard attributes (see <see cref="ndCommon.Models.DocumentModel.StandardAttributes"/>).
*/
SelectParameters.StandardAttributes = "StandardAttributes";
/**
* Fetches status attributes (see <see cref="ndCommon.Models.DocumentModel.StatusAttributes"/>).
*/
SelectParameters.StatusAttributes = "StatusAttributes";
/**
* Fetches whether the document is on the user's favorite list (home page, favorite workspaces)
*/
SelectParameters.Favorite = "Favorite";
/**
* Fetches the document's hold status.
*/
SelectParameters.Hold = "Hold";
/**
* Fetches whether echoing is allowed at the caller's IP address.
*/
SelectParameters.EchoAllowed = "EchoAllowed";
/**
* Fetches document source information (see <see cref="ndCommon.Models.DocumentModel.SourceInformation"/>).
*/
SelectParameters.Source = "Source";
/**
* Fetches document version information (see <see cref="ndCommon.Models.DocumentModel.Version"/>).
*/
SelectParameters.Versions = "Versions";
/**
* Fetches document version information (see <see cref="ndCommon.Models.DocumentModel.Version"/>).
*/
SelectParameters.VersionsLite = "VersionsLite";
/**
* Fetch displayable names in version lists, ACLs, locations, etc.
*/
SelectParameters.DisplayNames = "DisplayNames";
/**
* Fetches the Web Application Open Platform Interface (WOPI) source value used to open document in Office Online, Office for iOS, etc.
*/
SelectParameters.WopiSrc = "WopiSrc";
/**
* Fetches the list of document attachments (not email attachments).
*/
SelectParameters.DocAttachments = "DocAttachments";
/**
* Fetches custom attributes of documents (see <see cref="ndCommon.Models.DocumentModel.CustomAttribute"/>).
*/
SelectParameters.CustomAttributes = "CustomAttributes";
/**
* Fetches synchronization information (see <see cref="ndCommon.Models.DocumentModel.Synchronization"/>).
*/
SelectParameters.Sync = "Sync";
/**
* Fetches document location information (see <see cref="ndCommon.Models.DocumentModel.LocationsModel"/>).
*/
SelectParameters.Locations = "Locations";
/**
* Fetches fetches the displayable names in version lists, ACLs, locations, etc.
*/
SelectParameters.DispNames = "DispNames";
/**
* Fetches container information (see <see cref="ndCommon.Models.DocumentModel.ContainerModel"/>).
*/
SelectParameters.Containers = "Containers";
/**
* Fetches document ancestor information (see <see cref="ndCommon.Models.DocumentModel.Ancestors"/>).
*/
SelectParameters.Ancestors = "Ancestors";
/**
* Fetches container specific document information (see <see cref="ndCommon.Models.DocumentModel.Container"/>).
*/
SelectParameters.ContainerInfo = "ContainerInfo";
/**
* Fetches the users default cabinet (see <see cref="ndCommon.Models.Membership.CabinetInformation.DefaultCabinet"/> and
* work space plural name (see <see cref="ndCommon.Models.Membership.CabinetInformation.WorkSpacePluralName"/> information.
*/
SelectParameters.DefaultCabinet = "DefaultCabinet";
/**
* Fetches the full custom attribute (see <see cref="ndCommon.Models.DocumentModel.CustomAttribute"/>) rather than just the name, id, and type.
*/
SelectParameters.FullCustomAttributeDefinition = "FullCustomAttributeDefinition";
/**
* Fetches the Full Custom Attribute Definition (FCAD).
*/
SelectParameters.FCAD = "FCAD";
/**
* Fetches updated repository information.
*/
SelectParameters.IncludeRepositoryInformation = "IncludeRepositoryInformation";
/**
* Fetches updated cabinet information.
*/
SelectParameters.IncludeCabinetInformation = "IncludeCabinetInformation";
/**
* Document type extensions constant
*/
const DOCUMENT_TYPE_EXTENSIONS = {
/**
* Bitmap Image
*/
BitmapImage: "bmp",
/**
* Excel Spreadsheet, e.g. xls
*/
ExcelSpreadsheet: "xls",
/**
* Excel Spreadsheet 2, e.g. xlsx
*/
ExcelSpreadsheet2: "xlsx",
/**
* Excel Macro Enabled Spreadsheet
*/
ExcelMacroEnabledSpreadsheet: "xlsm",
/**
* Excel Binary Spreadsheet
*/
ExcelBinarySpreadsheet: "xlsb",
/**
* Excel Macro Enabled Spreadsheet Template
*/
ExcelMacroEnabledSpreadsheetTemplate: "xltm",
/**
* Extensible Markup Language
*/
ExtensibleMarkupLanguage: "xml",
/**
* Graphical Interchange Format
*/
GraphicalInterchangeFormat: "gif",
/*
* Group Wise Database Shortcut
*/
GroupWiseDatabaseShortcut: "gwi",
/**
* Hypertext Markup Language, e.g. htm
*/
HypertextMarkupLanguage: "htm",
/**
* Hypertext Markup Language 2, e.g. html
*/
HypertextMarkupLanguage2: "html",
/**
* Internet Shortcut
*/
InternetShortcut: "url",
/**
* Japanese Encoded File
*/
JapaneseEncodedFile: "nec",
/**
* JPEG Image, e.g. jpg
*/
JPEGImage: "jpg",
/**
* JPEG Image 2, e.g. jpeg
*/
JPEGImage2: "jpeg",
/**
* Microsoft Project
*/
MicrosoftProject: "mpp",
/**
* Microsoft Word, e.g. doc
*/
MicrosoftWord: "doc",
/**
* Microsoft Word 2, e.g. docx
*/
MicrosoftWord2: "docx",
/**
* MIME Mail Message
*/
MIMEMailMessage: "eml",
/**
* MIME Mail Message w/ Attachment
*/
MIMEMailMessageAttachment: "emlndatt",
/**
* NetDocuments Calendar
*/
NetDocumentsCalendar: "ndcal",
/**
* NetDocuments Discussion
*/
NetDocumentsDiscussion: "nddis",
/**
* NetDocuments Folder
*/
NetDocumentsFolder: "ndfld",
/**
* NetDocuments Filter
*/
NetDocumentsFilter: "ndflt",
/**
* NetDocuments Paper Document
*/
NetDocumentsPaperDocument: "ndnod",
/**
* NetDocuments Saved Search
*/
NetDocumentsSavedSearch: "ndsq",
/**
* NetDocuments Workspace
*/
NetDocumentsWorkspace: "ndws",
/** NetDocuments ShareSpace */
NetDocumentsShareSpace: "ss",
/** NetDocuments CollaborationSpace */
NetDocumentsCollaborationSpace: "ndcs",
/**
* Outlook Mail Message
*/
OutlookMailMessage: "msg",
/**
* Outlook Mail Message w/ Attachment
*/
OutlookMailMessageAttachment: "msgndatt",
/**
* Paper Port Scanned Image
*/
PaperPortScannedImage: "max",
/**
* Plain Text
*/
PlainText: "txt",
/**
* Portable Document Format
*/
PortableDocumentFormat: "pdf",
/**
* Portable Document Format
*/
PortableDocumentFormatA: "pdfA",
/**
* Portable Network Graphic
*/
PortableNetworkGraphic: "png",
/**
* Power Point Presentation, e.g. ppt
*/
PowerPointPresentation: "ppt",
/**
* Power Point Presentation 2, e.g. pptx
*/
PowerPointPresentation2: "pptx",
/**
* Power Point SlideShow
*/
PowerPointSlideShow: "ppsx",
/**
* RichText
*/
RichText: "rtf",
/**
* ScanSoft Pagis
*/
ScanSoftPagis: "xif",
/**
* Tagged Image File
*/
TaggedImageFile: "tif",
/**
* Tagged Image File
*/
TaggedImageFileFormat: "tiff",
/**
* Visio Drawing, e.g. vsd
*/
VisioDrawing: "vsd",
/**
* Visio Drawing 2, e.g. vsdx
*/
VisioDrawing2: "vsdx",
/**
* Word Open Macro Enabled
*/
WordOpenMacroEnabled: "docm",
/**
* Word Perfect
*/
WordPerfect