UNPKG

@arcgis/workflow-manager

Version:

ArcGIS Workflow Manager JavaScript API

10 lines (7 loc) 10.4 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. COPYRIGHT © 2022 Esri See copyright.txt for details. */ var e,t,o,n,a,i,r,s,d,l,c,u,p,D,A,b,S,P,f,m,U,C,T,g,E,y,J,R,N,w,v,O,h,I,V,M,H;!function(e){e.BaseContext="BaseContext",e.JobContext="JobContext"}(e||(e={})),function(e){e.Standard="Standard",e.Url="URL",e.Query="Query"}(t||(t={}));class Y extends Error{constructor(e,t){super(t),this.type=e,Object.setPrototypeOf(this,Y.prototype)}}!function(e){e.INVALID_CREDENTIAL="InvalidCredentialError",e.INVALID_TOKEN="InvalidTokenError",e.SERVER_CONFIG="ServerNotConfiguredException",e.SERVER_CONNECTION="ServerConnectionException"}(o||(o={})),function(e){e.OneToOne="OneToOne",e.OneToMany="OneToMany"}(n||(n={})),function(e){e.String="String",e.Integer="Integer",e.DateTime="DateTime",e.DateOnly="DateOnly",e.TimeOnly="TimeOnly",e.TimestampOffset="TimestampOffset",e.Boolean="Boolean",e.Double="Double"}(a||(a={})),function(e){e.Current="Current",e.ArcGISOnline="ArcGISOnline",e.Other="Other"}(i||(i={})),function(e){e.SurveyForm="SurveyForm"}(r||(r={})),function(e){e.CodedValue="codedValue"}(s||(s={})),function(e){e.Unassigned="Unassigned",e.Group="Group",e.User="User"}(d||(d={})),function(e){e.Success="Success",e.NoActiveStep="NoActiveStep",e.AlreadyExecuting="AlreadyExecuting",e.AssignedToDifferentUser="AssignedToDifferentUser",e.JobClosed="JobClosed",e.StepNotCurrent="StepNotCurrent",e.NoStartedStep="NoStartedStep",e.NoMatchingPaths="NoMatchingPaths",e.NotRunning="NotRunning",e.Held="Held"}(l||(l={})),function(e){e.Activated="Activated",e.Added="Added",e.Cancelled="Cancelled",e.Closed="Closed",e.Completed="Completed",e.Created="Created",e.Deactivated="Deactivated",e.Deleted="Deleted",e.DependencyAdded="DependencyAdded",e.Error="Error",e.Finished="Finished",e.Held="Held",e.HoldReleased="HoldReleased",e.Paused="Paused",e.Reactivated="Reactivated",e.Reassigned="Reassigned",e.Reopened="Reopened",e.Started="Started",e.Updated="Updated",e.Upgraded="Upgraded"}(c||(c={})),function(e){e.Draft="Draft",e.Active="Active",e.Automated="Automated",e.Retired="Retired"}(u||(u={})),function(e){e.CreationDate="CreationDate",e.SpecificDate="SpecificDate"}(p||(p={})),function(e){e.CloseJob="CloseJob",e.CreateJob="CreateJob",e.AddComment="AddComment",e.AssignJob="AssignJob",e.SetCurrentStep="SetCurrentStep",e.DeleteJob="DeleteJob"}(D||(D={})),function(e){e.Email="Email",e.WebRequest="WebRequest"}(A||(A={})),function(e){e.Scheduled="Scheduled",e.Webhook="Webhook"}(b||(b={})),function(e){e.HMAC="HMAC",e.SecretKey="SecretKey"}(S||(S={})),function(e){e.Base64="Base64",e.Hex="Hex"}(P||(P={})),function(e){e[e.SUNDAY=1]="SUNDAY",e[e.MONDAY=2]="MONDAY",e[e.TUESDAY=3]="TUESDAY",e[e.WEDNESDAY=4]="WEDNESDAY",e[e.THURSDAY=5]="THURSDAY",e[e.FRIDAY=6]="FRIDAY",e[e.SATURDAY=7]="SATURDAY"}(f||(f={})),function(e){e.Unknown="Unknown",e.Branch="Branch"}(m||(m={})),function(e){e.FeatureService="FeatureService",e.Survey="Survey",e.GeoprocessingService="GeoprocessingService",e.WebMap="WebMap",e.ProProject="ProProject",e.ProMapItem="ProMapItem",e.ProSceneItem="ProSceneItem",e.ProTaskItem="ProTaskItem",e.ProLayoutItem="ProLayoutItem",e.ProSystemToolboxItem="ProSystemToolboxItem",e.ProCommand="ProCommand"}(U||(U={})),function(e){e.SupportsBranchVersioning="SupportsBranchVersioning",e.SupportsCreateReplica="SupportsCreateReplica",e.SupportsDataQuality="SupportsDataQuality"}(C||(C={})),function(e){e.AdvancedAssignment="AdvancedAssignment",e.Attachment="Attachment",e.ClaimVersion="ClaimVersion",e.Cleanup="Cleanup",e.CreateJob="CreateJob",e.CreateReplica="CreateReplica",e.CreateVersion="CreateVersion",e.DataQualityRules="DataQualityRules",e.DefineLocation="DefineLocation",e.Email="Email",e.GPService="GPService",e.JobProperties="JobProperties",e.JobProperties1M="JobProperties1M",e.Manual="Manual",e.OpenApp="OpenApp",e.ProMappingAndTask="ProMappingAndTask",e.ProGPTool="ProGPTool",e.ReconcilePost="ReconcilePost",e.SetVersion="SetVersion",e.Survey="Survey",e.Question="Question",e.Unknown="",e.WebRequest="WebRequest"}(T||(T={})),function(e){e.Asc="Asc",e.Desc="Desc"}(g||(g={})),function(e){e.Chart="Chart",e.Standard="Standard"}(E||(E={})),function(e){e.String="String",e.Integer="Integer",e.DateTime="DateTime",e.Boolean="Boolean",e.Double="Double"}(y||(y={})),function(e){e.Duration="Duration",e.SpecificTime="SpecificTime",e.Expression="Expression"}(J||(J={})),function(e){e.HourOfDay="HourOfDay",e.DayOfWeek="DayOfWeek",e.DayOfMonth="DayOfMonth",e.MonthOfYear="MonthOfYear",e.NumberOfDays="NumberOfDays"}(R||(R={})),function(e){e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY",e[e.SUNDAY=7]="SUNDAY"}(N||(N={})),function(e){e.UserDefined="UserDefined",e.Spatial="Spatial"}(w||(w={})),function(e){e.Polygon="Polygon",e.Polyline="Polyline",e.Multipoint="Multipoint"}(v||(v={})),function(e){e.SELECT="Select",e.DRAW="Draw",e.SELECTANDDRAW="SelectAndDraw"}(O||(O={})),function(e){e.CREATE="Create",e.VIEW="View",e.EDIT="Edit"}(h||(h={})),function(e){e.LATEST="Latest"}(I||(I={})),function(e){e.USER="User",e.ARCADE="Arcade"}(V||(V={})),function(e){e.CREATE="Create",e.VIEW="View",e.EDIT="Edit"}(M||(M={})),function(e){e.NONE="None",e.ALL="All",e.FOLDER="Folder"}(H||(H={}));const j={EMAIL:"email",WEB:"webRequest",STEP:"step"};var k;!function(e){e.AdminAdvanced="adminAdvanced",e.AdminBasic="adminBasic",e.JobAssignAny="jobAssignAny",e.JobAssignGroup="jobAssignGroup",e.JobAssignIndividual="jobAssignIndividual",e.JobClose="jobClose",e.JobCreate="jobCreate",e.JobDelete="jobDelete",e.JobForceStop="jobForceStop",e.JobReopen="jobReopenClosed",e.WorkflowSetStepCurrent="workflowSetStepCurrent",e.JobUpdateAttachments="jobUpdateAttachments",e.JobUpdateDate="jobUpdateDate",e.JobUpdateDescription="jobUpdateDescription",e.JobUpdateExtendedProperties="jobUpdateExtendedProperties",e.JobUpdateHolds="jobUpdateHolds",e.JobUpdateLocation="jobUpdateLocation",e.JobUpdateName="jobUpdateName",e.JobUpdateNotes="jobUpdateNotes",e.JobUpdateOwner="jobUpdateOwner",e.JobUpdateParentJob="jobUpdateParentJob",e.JobUpdatePriority="jobUpdatePriority",e.JobUpdateStatus="jobUpdateStatus",e.JobUpdateVersions="jobUpdateVersions",e.JobUpgrade="jobUpgrade",e.ViewManagePage="viewManagePage",e.ViewCreatePanel="viewCreatePanel",e.ViewDetailsPanelAttachments="viewDetailsPanelAttachments",e.ViewDetailsPanelComments="viewDetailsPanelComments",e.ViewDetailsPanelDiagram="viewDetailsPanelDiagram",e.ViewDetailsPanelHistory="viewDetailsPanelHistory",e.ViewDetailsPanelHolds="viewDetailsPanelHolds",e.ViewDetailsPanelLocation="viewDetailsPanelLocation",e.ViewDetailsPanelNotes="viewDetailsPanelNotes",e.ViewDetailsPanelProperties="viewDetailsPanelProperties",e.ViewWorkPage="viewWorkPage"}(k||(k={}));const L=[k.AdminAdvanced,k.AdminBasic,k.JobAssignAny,k.JobAssignGroup,k.JobAssignIndividual,k.JobClose,k.JobCreate,k.JobDelete,k.JobForceStop,k.JobUpdateAttachments,k.JobUpdateDate,k.JobUpdateDescription,k.JobUpdateExtendedProperties,k.JobUpdateHolds,k.JobUpdateName,k.JobUpdateNotes,k.JobUpdateOwner,k.JobUpdateParentJob,k.JobUpdatePriority,k.JobUpdateStatus,k.JobUpdateVersions,k.JobUpgrade,k.WorkflowSetStepCurrent,k.ViewManagePage,k.ViewCreatePanel,k.ViewDetailsPanelAttachments,k.ViewDetailsPanelComments,k.ViewDetailsPanelDiagram,k.ViewDetailsPanelHistory,k.ViewDetailsPanelHolds,k.ViewDetailsPanelLocation,k.ViewDetailsPanelNotes,k.ViewDetailsPanelProperties,k.ViewWorkPage,k.JobReopen];class F{}class B extends F{hasPrivilege(e){return!!this.workflowPrivileges&&this.workflowPrivileges.some((t=>t===e))}isAdministrator(){return this.hasPrivilege(k.AdminAdvanced)||this.hasPrivilege(k.AdminBasic)}}var W,x,G,Q,_,q,K,X,z,Z,$;!function(e){e.Header="Header",e.QueryParams="QueryParams"}(W||(W={})),function(e){e.NoAuth="NoAuth",e.ApiKey="ApiKey",e.BearerToken="BearerToken",e.BasicAuth="BasicAuth",e.DigestAuth="DigestAuth",e.ApiKeyGenerated="ApiKeyGenerated",e.BearerTokenGenerated="BearerTokenGenerated",e.FederatedToken="FederatedToken"}(x||(x={})),function(e){e.NONE="None",e.FORM_DATA="FormData",e.URL_ENCODED="UrlEncoded",e.RAW="Raw"}(G||(G={})),function(e){e.JSON="application/json",e.XML="application/xml",e.TEXT="text/plain"}(Q||(Q={})),function(e){e.POST="POST",e.PUT="PUT",e.GET="GET",e.DELETE="DELETE",e.HEAD="HEAD",e.PATCH="PATCH",e.OPTIONS="OPTIONS"}(_||(_={})),function(e){e[e.None=0]="None",e[e.Cancel=1]="Cancel",e[e.Pause=2]="Pause",e[e.Finish=4]="Finish",e[e.Refresh=8]="Refresh"}(q||(q={})),function(e){e.FILE="File",e.TEXT="Text",e.URL="Url"}(K||(K={})),function(e){e.String="String",e.Integer="Integer",e.Double="Double",e.Boolean="Boolean",e.DateTime="DateTime",e.Unknown="Unknown"}(X||(X={})),function(e){e.Subscribe="subscribe",e.Unsubscribe="unsubscribe"}(z||(z={})),function(e){e.StepInfoRequiredError="StepInfoRequiredError"}(Z||(Z={})),function(e){e.Current="Current",e.Template="Template",e.Portal="Portal",e.Filepath="Filepath"}($||($={}));const ee=Object.freeze(Object.defineProperty({__proto__:null,get AllowedActions(){return q},get AttachmentLinkType(){return K},get DataType(){return X},get MessageType(){return Z},get ProjectType(){return $},get SubscriptionType(){return z}},Symbol.toStringTag,{value:"Module"}));export{A as ActivityAction,D as ActivityType,L as AllPrivileges,e as ArcadeContextType,t as ArcadeParseMode,d as AssignedType,w as AssignmentMethod,H as AttachmentSelectionType,W as AuthorizationLocationType,x as AuthorizationType,f as AutomatedCreationDayOfWeekType,b as AutomationType,G as BodyType,Q as ContentType,C as DataReferenceCapabilities,U as DataReferenceType,m as DataSourceType,N as DayOfWeekType,o as ErrorType,a as ExtendedPropertyDataType,s as ExtendedPropertyDomainType,r as ExtendedPropertyItemType,n as ExtendedPropertyTableRelationshipType,y as FieldType,v as GeometryType,V as InputType,l as JobActionStepStatus,c as JobHistoryAction,p as JobStartDateType,u as JobTemplateState,O as MethodType,i as PortalType,_ as RequestType,J as ScheduleType,E as SearchType,g as SortOrderType,T as StepActionType,M as StepMode,h as SurveyMode,I as SurveyRecordType,j as TemplateType,R as TimeType,S as WebhookHeaderSecurityType,P as WebhookHeaderSignatureFormat,Y as WorkflowError,k as WorkflowPrivilegeType,F as WorkflowUser,B as WorkflowUserDetails,ee as messages}; //# sourceMappingURL=index.js.map