@trakit/objects 0.0.9 → 0.0.11

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.
Files changed (81) hide show
  1. package/API/Geography/Functions.d.ts +237 -0
  2. package/API/Geography/Interfaces.d.ts +151 -0
  3. package/API/Geography/LatLng.d.ts +87 -0
  4. package/API/Geography/LatLngBounds.d.ts +147 -0
  5. package/API/Geography/Position.d.ts +75 -0
  6. package/API/Geography/StreetAddress.d.ts +60 -0
  7. package/API/Geometry/Functions.d.ts +115 -0
  8. package/API/Geometry/Interfaces.d.ts +112 -0
  9. package/API/Geometry/Point.d.ts +82 -0
  10. package/API/Geometry/Radial.d.ts +111 -0
  11. package/API/Geometry/Rectangle.d.ts +160 -0
  12. package/API/Geometry/Size.d.ts +59 -0
  13. package/API/Interfaces/IAmCompany.d.ts +12 -0
  14. package/API/Interfaces/IBelongAsset.d.ts +16 -0
  15. package/API/Interfaces/IBelongBillingProfile.d.ts +16 -0
  16. package/API/Interfaces/IBelongCompany.d.ts +16 -0
  17. package/API/Interfaces/IDeserializable.d.ts +14 -0
  18. package/API/Interfaces/IEnabled.d.ts +11 -0
  19. package/API/Interfaces/IFileSize.d.ts +10 -0
  20. package/API/Interfaces/IGlobal.d.ts +12 -0
  21. package/API/Interfaces/IHavePermissions.d.ts +21 -0
  22. package/API/Interfaces/IHavePreferences.d.ts +30 -0
  23. package/API/Interfaces/IIconic.d.ts +16 -0
  24. package/API/Interfaces/IIdUlong.d.ts +11 -0
  25. package/API/Interfaces/ILabelled.d.ts +11 -0
  26. package/API/Interfaces/INamed.d.ts +14 -0
  27. package/API/Interfaces/IPictured.d.ts +16 -0
  28. package/API/Interfaces/IRequestable.d.ts +23 -0
  29. package/API/Interfaces/ISerializable.d.ts +11 -0
  30. package/API/Interfaces/ISuspendable.d.ts +17 -0
  31. package/API/Interfaces/IVisual.d.ts +19 -0
  32. package/Accounts/Permissions/Authorizer.d.ts +205 -0
  33. package/Accounts/Permissions/Permission.d.ts +57 -0
  34. package/Accounts/Permissions/PermissionEscalation.d.ts +42 -0
  35. package/Accounts/Permissions/PermissionEscalationState.d.ts +20 -0
  36. package/Accounts/Permissions/PermissionEscalationType.d.ts +14 -0
  37. package/Accounts/Permissions/PermissionLevel.d.ts +18 -0
  38. package/Accounts/Permissions/PermissionMethod.d.ts +14 -0
  39. package/Accounts/Permissions/PermissionType.d.ts +281 -0
  40. package/Billing/Hosting/BillableHostingBase.d.ts +42 -0
  41. package/Billing/Hosting/BillableHostingLicense.d.ts +31 -0
  42. package/Billing/Hosting/BillableHostingLicenseType.d.ts +21 -0
  43. package/Billing/Hosting/BillableHostingRule.d.ts +31 -0
  44. package/Billing/Hosting/BillableHostingType.d.ts +42 -0
  45. package/Billing/Report/BillingReport.d.ts +113 -0
  46. package/Billing/Report/BillingReportBreakdown.d.ts +35 -0
  47. package/Billing/Report/BillingReportHostingSummary.d.ts +37 -0
  48. package/Billing/Report/BillingReportLicenseBreakdown.d.ts +80 -0
  49. package/Billing/Report/BillingReportServiceBreakdown.d.ts +125 -0
  50. package/Billing/Report/BillingReportStatus.d.ts +26 -0
  51. package/Billing/Report/BillingReportSummary.d.ts +50 -0
  52. package/Hosting/Fields/FormFieldAttachments.d.ts +32 -0
  53. package/Hosting/Fields/FormFieldBase.d.ts +57 -0
  54. package/Hosting/Fields/FormFieldBase_fromJSON.d.ts +2 -0
  55. package/Hosting/Fields/FormFieldBoolean.d.ts +39 -0
  56. package/Hosting/Fields/FormFieldChoice.d.ts +47 -0
  57. package/Hosting/Fields/FormFieldDate.d.ts +27 -0
  58. package/Hosting/Fields/FormFieldNumeric.d.ts +55 -0
  59. package/Hosting/Fields/FormFieldNumericSize.d.ts +33 -0
  60. package/Hosting/Fields/FormFieldSignature.d.ts +18 -0
  61. package/Hosting/Fields/FormFieldText.d.ts +33 -0
  62. package/Hosting/Fields/FormFieldTime.d.ts +38 -0
  63. package/Hosting/Fields/FormFieldTimezone.d.ts +15 -0
  64. package/Providers/Config/ProviderConfig.d.ts +71 -0
  65. package/Providers/Config/ProviderRegistration.d.ts +120 -0
  66. package/Providers/Config/ProviderScript.d.ts +87 -0
  67. package/Providers/Config/ProviderScriptBlock.d.ts +42 -0
  68. package/Providers/Config/ProviderScriptParameter.d.ts +50 -0
  69. package/Providers/Config/ProviderScriptParameterType.d.ts +18 -0
  70. package/Providers/Configuration/ProviderConfiguration.d.ts +67 -0
  71. package/Providers/Configuration/ProviderConfigurationNode.d.ts +67 -0
  72. package/Providers/Configuration/ProviderConfigurationType.d.ts +63 -0
  73. package/Providers/Configuration/ProviderGeofenceBase.d.ts +30 -0
  74. package/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +2 -0
  75. package/Providers/Configuration/ProviderGeofenceCircular.d.ts +29 -0
  76. package/Providers/Configuration/ProviderGeofencePoint.d.ts +13 -0
  77. package/Providers/Configuration/ProviderGeofencePolygon.d.ts +24 -0
  78. package/Providers/Configuration/ProviderGeofenceRectangle.d.ts +29 -0
  79. package/index.d.ts +1 -1
  80. package/package.json +5 -7
  81. package/trakit-objects.min.js +1 -1
@@ -0,0 +1,24 @@
1
+ import { uint } from "../../API/Types";
2
+ import { PlaceType } from "../../Places/PlaceType";
3
+ import { ProviderGeofenceBase } from "./ProviderGeofenceBase";
4
+ /**
5
+ * A geofence whose boundary is defined by a non-overlapping series of coordinates.
6
+ * @deprecated
7
+ */
8
+ export declare class ProviderGeofencePolygon extends ProviderGeofenceBase {
9
+ /**
10
+ * Complex geofence.
11
+ */
12
+ get type(): PlaceType;
13
+ /**
14
+ * The maximum number of vertices supported by the device.
15
+ */
16
+ maxVertices: uint;
17
+ constructor(maxGeofenceCount?: uint, maxVertices?: uint);
18
+ toJSON(): {
19
+ maxVertices: number | null;
20
+ type: PlaceType;
21
+ maxGeofenceCount: number;
22
+ };
23
+ }
24
+ //# sourceMappingURL=ProviderGeofencePolygon.d.ts.map
@@ -0,0 +1,29 @@
1
+ import { int, uint } from "../../API/Types";
2
+ import { PlaceType } from "../../Places/PlaceType";
3
+ import { ProviderGeofenceBase } from "./ProviderGeofenceBase";
4
+ /**
5
+ * A geofence whose boundary is a "rectangle" defined by corner coordinates.
6
+ * @deprecated
7
+ */
8
+ export declare class ProviderGeofenceRectangle extends ProviderGeofenceBase {
9
+ /**
10
+ * Boundaries defined with only two coordinates.
11
+ */
12
+ get type(): PlaceType;
13
+ /**
14
+ * The smallest possible diameter for this geofence.
15
+ */
16
+ maxLength: uint;
17
+ /**
18
+ * The smallest possible diameter for this geofence.
19
+ */
20
+ maxWidth: uint;
21
+ constructor(maxGeofenceCount?: uint, maxLength?: int, maxWidth?: int);
22
+ toJSON(): {
23
+ maxLength: number | null;
24
+ maxWidth: number | null;
25
+ type: PlaceType;
26
+ maxGeofenceCount: number;
27
+ };
28
+ }
29
+ //# sourceMappingURL=ProviderGeofenceRectangle.d.ts.map
package/index.d.ts CHANGED
@@ -188,7 +188,7 @@ import { ReportType } from "./Reports/ReportType";
188
188
  /**
189
189
  * Version number for this release.
190
190
  */
191
- export declare const version = "0.0.7";
191
+ export declare const version = "0.0.11";
192
192
  /**
193
193
  * The names of all main object types in the Trak-iT Object Model.
194
194
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trakit/objects",
3
3
  "type": "module",
4
- "version": "0.0.9",
4
+ "version": "0.0.11",
5
5
  "main": "./trakit-objects.min.js",
6
6
  "types": "./index.d.ts",
7
7
  "scripts": {
@@ -12,12 +12,10 @@
12
12
  "url": "git+https://github.com/trakitwireless/trakit-ts-objects.git"
13
13
  },
14
14
  "files": [
15
- "/*.js",
16
- "/*/*.js",
17
- "/*.d.ts",
18
- "/*/*.d.ts",
19
- "LICENSE.md",
20
- "README.md"
15
+ "LICENSE",
16
+ "README.md",
17
+ "**/*.js",
18
+ "**/*.d.ts"
21
19
  ],
22
20
  "keywords": [
23
21
  "trakit"
@@ -5,4 +5,4 @@ function t(t){const s=[];for(let e=0,i=t.length;e<i;e++)s.indexOf(t[e])<0&&s.pus
5
5
  * All of the Trak-iT APIs use the same object definitions. Use this package in your TypeScript or JavaScript project.
6
6
  * Last updated on Friday December 19, 2025
7
7
  * @copyright Trak-iT Wireless Inc. 2025
8
- */const hh="0.0.7",ah={Company:kn,CompanyGeneral:wn,CompanyStyle:Jn,CompanyDirectory:Nn,CompanyPolicy:vn,CompanyReseller:On,Contact:ae,Machine:Ne,Session:xe,User:He,UserGeneral:je,UserAdvanced:Ie,UserGroup:qe,Asset:Xi,AssetGeneral:Zi,AssetAdvanced:_i,AssetDispatch:$i,AssetAlert:vr,AssetMessage:Tr,Behaviour:tn,BehaviourScript:en,BehaviourLog:sn,BillableHostingLicense:on,BillableHostingRule:un,BillingProfile:rn,BillingReport:gn,DispatchJob:In,DispatchTask:Mn,Document:An,FormResult:_n,FormTemplate:Yn,Dashcam:Zn,Icon:sr,Picture:er,MaintenanceSchedule:rr,MaintenanceJob:nr,Place:br,Provider:Hr,ProviderGeneral:jr,ProviderAdvanced:Rr,ProviderControl:Lr,ProviderScript:xr,ProviderConfig:Or,ProviderConfigurationType:Mr,ProviderConfiguration:Ur,ProviderRegistration:Cr,ReportTemplate:rh,ReportSchedule:ih,ReportResult:sh},oh={Company:Ss,CompanyGeneral:Ss,CompanyStyle:Ss,CompanyDirectory:Ss,CompanyPolicy:Ss,CompanyReseller:Ss,Contact:vs,Machine:Ts,Session:Cs,User:bs,UserGeneral:bs,UserAdvanced:bs,UserGroup:Os,Asset:Js,AssetGeneral:Js,AssetAdvanced:Js,AssetDispatch:Js,AssetAlert:ks,AssetMessage:ks,Behaviour:xs,BehaviourScript:Us,BehaviourLog:Is,BillingProfile:Ms,BillingReport:As,BillableHostingRule:Ds,BillableHostingLicense:Ps,DispatchTask:Es,DispatchJob:zs,Document:Ks,FormTemplate:Rs,FormResult:Bs,Dashcam:Hs,Icon:js,Picture:Ls,MaintenanceSchedule:qs,MaintenanceJob:Gs,Place:Vs,Provider:Fs,ProviderGeneral:Fs,ProviderAdvanced:Fs,ProviderControl:Fs,ProviderScript:Ws,ProviderConfig:_s,ProviderConfigurationType:Ys,ProviderConfiguration:$s,ProviderRegistration:Zs,ReportTemplate:Xs,ReportSchedule:Qs,ReportResult:te},uh={capitalize:function(t,s=!0){return t?.length?t[0][s?"toUpperCase":"toLowerCase"]()+t.slice(1):""},codify:J,date:m,douglasPeucker:function(t,s,e){if(!Array.isArray(t))throw new TypeError("source is not an Array.");if(!("function"==typeof(i=s)||i instanceof Function))throw new TypeError("triangleHeight is not an Function.");var i;if(!u(e)||e<0)throw new TypeError("tolerance is not an Number or less than zero.");return t.length<3?[...t]:t.filter(n,p(t,s,e))},fileSize:function(t,s=0,e="MB",i=3,n=",",r=n,h="."){let a=0;if(t){const s=oi.includes(e)?oi.indexOf(e):ui;for(;a<s&&t>=1024;)t/=1024,a++}return ot(c(t,s),i,n,r,h)+" "+oi[a]},findTimeZoneById:U,guid:function(){const t=(new Date).valueOf().toString(16).substring(1).split("").reduce(Bt,[...Ti]);for(let s=0;s<36;s++)if(" "===t[s]){let e=16*Zt.random()|0;t[s]=(19!==s?e:3&e|8).toString(16)}return t.join("")},highlight:function(t,s,[e,i]=["<b>","</b>"]){if(!t||!s?.length)return t;let n,r="",h=0;const a=new RegExp(s.map((t=>J(t).split("-").map((t=>t.split("").map((t=>ys+t)).join("")+ys)).join("[^a-z0-9]+"))).join("|"),"gim");for(;n=a.exec(t);)r+=t.slice(h,n.index)+e+n[0]+i,h=n.index+n[0].length;return r+t.slice(h)},id:d,isNothing:h,isntNaN:u,numberGroups:ot,roundTo:c,parseTime:function(t){return new Be(t).totalSeconds},phoneNumber:g,pluralize:function(t){return t.endsWith("y")?t.slice(0,-1)+"ies":t.endsWith("ch")?t+"es":t+"s"},singularize:function(t){return t.endsWith("ies")?t.slice(0,-3)+"y":t.endsWith("ches")?t.slice(0,-2):t.endsWith("s")?t.slice(0,-1):t},stringifyTime:function(t){return new Be(t*Pe).toString()}},ch=ai,lh={toPassword:function(t){return encodeURIComponent([...h(t)?"":String(t)].reduce((function(t,s){return t+String.fromCharCode(111^s.charCodeAt(0))}),""))},fromPassword:function(t){return[...decodeURIComponent(h(t)?"":String(t))].reduce((function(t,s){return t+String.fromCharCode(111^s.charCodeAt(0))}),"")}},dh={fromMap:N,fromMapPredicate:w,toMap:S,toMapPredicate:y},mh={pathLength:function(t){let s=0,e=0,i=t.length-1,n=t[e],r=n;for(;e<i;e++)n=t[e],r=t[e+1],s+=l(r.x-n.x,r.y-n.y);return s},pathOrthogonal:At,pathReduce:function(t,s=0){return t.length<3?t.slice():(s>0||(s=0),t.filter(n,p(t,Dt,s)))},pointAngle:xt,pointDistance:Ut,pointPythagora:l,pointVector:Mt,polyArea:Pt,polyContains:function(t,s){let e=t.slice(),i=0,n=e.length,r=n-1,h=!1;if(e[i].x===e[r].x&&e[i].y===e[r].y&&(e.pop(),n=e.length,r=n-1),zt(Et(e),s))for(;i<n;r=i++){const t=e[i],n=e[r];t.y>s.y!=n.y>s.y&&s.x<(n.x-t.x)*(s.y-t.y)/(n.y-t.y)+t.x&&(h=!h)}return h},polyReduce:function(t,s=0){let e=[...t],i=t.length;if(i<3)return e;{let t=0,r=0;s>0||(s=0);for(let s=0;s<i;s++){const n=e[s];for(let h=s+1;h<i;h++){const i=Ut(n,e[h]);i>t&&(r=s,t=i)}}return e=e.splice(r,i).concat(e),Ut(e[0],e[i-1])>0&&(i=e.push(e[0])),e=e.filter(n,p(e,Dt,s)),i=e.length,Ut(e[0],e[i-1])<=0&&e.pop(),e}},polyWrapper:function(t){let s=t.slice().sort(It),e=s[0],i=[e];for(;s.length>1;){let t=0,n=0,r=360;for(let i=0,h=s.length;i<h;i++){const a=s[i],o=xt(e,a),u=Ut(e,a);a!==e&&(u?(o<r||o===r&&u>n)&&(o===r&&(s.splice(t,1),i--,h--),r=o,n=u,t=i):(s.splice(i--,1),h--))}if(0===t)break;i.push(e=s.splice(t,1)[0])}return i},radialCircumference:function(t){return 2*Xt*t},radialArea:function(t){return Xt*(t*t)},radialSmallest:function(t,s){let e=t[0],i=0;switch(t.length){case 1:return{x:e.x,y:e.y,r:i};case 2:return function(t){const s=function(t){return{x:t.left+(t.right-t.left)/2,y:t.top+(t.bottom-t.top)/2}}(t);t.right,t.left,t.bottom,t.top;return{x:s.x,y:s.y,r:Ut(s,{x:t.left,y:t.top})}}(Et(t))}s||(s=1e4);for(let n=0;n<s;n++){let s=t[0],r=0;for(let i=0;i<t.length;i++){const n=t[i],h=Ut(e,n);h>r&&(s=n,r=h)}e={x:e.x+1/(n+1)*(s.x-e.x),y:e.y+1/(n+1)*(s.y-e.y)},i=r}return{x:e.x,y:e.y,r:i}},radialOverlapsRectangle:function(t,s){const e=kt(s),i=kt(s);return e.top-=t.r,e.bottom+=t.r,i.left-=t.r,i.right+=t.r,zt(e,t)||zt(i,t)||Ut(t,{x:s.left,y:s.top})<=t.r||Ut(t,{x:s.right,y:s.top})<=t.r||Ut(t,{x:s.left,y:s.bottom})<=t.r||Ut(t,{x:s.right,y:s.bottom})<=t.r}},ph={earthRadius:ci,clampLat:ct,clampLng:lt,pathLength:function(t){const s=[...t],e=s.length-1;for(let t=0,i=0;t<e;t++)i+=mt(s[t],s[t+1]);return length},pathReduce:function(t,s){return t.length<3?[...t]:(s>0||(s=0),t.filter(n,p(t,Nt,s)))},pathEncode:yt,pathDecode:St,pointAngle:dt,pointDistance:mt,pointMiddle:ft,pointOrthogonal:pt,pointTranslate:gt,pointVincenty:function(t,s){const e=ct(t.lat),i=ct(s.lat),n=lt(t.lng,e),r=(lt(s.lng,i)-n)*ms,h=ss((1-li)*ls(e*ms)),a=ss((1-li)*ls(e*ms)),o=us(h),c=is(h),l=us(a),d=is(a);let m,p,g,f,N,w,y,S,v,T,b=r,O=100;do{if(p=us(b),g=is(b),f=cs(d*p*(d*p)+(c*l-o*d*g)*(c*l-o*d*g)),0===f)return 0;N=o*l+c*d*g,w=es(f,N),y=c*d*p/f,S=1-y*y,v=N-2*o*l/S,T=li/16*S*(4+li*(4-3*S)),u(v)||(v=0),m=b,b=r+(1-T)*li*y*(w+T*f*(v+T*N*(2*v*v-1)))}while(Qt(b-m)>1e-12&&--O>0);if(!O)return 0;const C=272331606107.5547*S/40408299984661.445,J=C/1024*(256+C*(C*(74-47*C)-128));return di*(1+C/16384*(4096+C*(C*(320-175*C)-768)))*(w-J*f*(v+J/4*(N*(2*v*v-1)-J/6*v*(4*f*f-3)*(4*v*v-3))))},polyArea:function(t){const s=[...t];let e,i=0,n=0,r=s.length-1,h=s[n],a=s[r];if(h&&a&&mt(h,a)<=mi&&(s.pop(),r--),r<1)throw new Error("Not enough coordinates");if(r>1)for(n=1;n<r;n++)e=s[n],a=s[n+1],i+=Tt(h,e,a)*bt(h,e,a);return Qt(40680631590769*i)},polyContains:function(t,s){throw"not implemented"},polyReduce:function(t,s=1e-9){let e=[...t],i=t.length;if(i>2){const[t,r,h]=vt(e);s>0||(s=mi),e=e.splice(r,i).concat(e),mt(e[0],e[i-1])>s&&(i=e.push(e[0])),e=e.filter(n,p(e,Nt,s)),i=e.length,mt(e[0],e[i-1])<=s&&e.pop()}return e},polyWidest:vt},gh={computeAll:j,compute:H,computeAllSimple:function(t,s,e){return j(t,(s||[]).filter(R),(e||[]).filter(R))},computeSimple:q,computeSimpleLevels:function(t,s,e,i){const n=new Map;return q(t,s,e,i).forEach((function(t){n.set(t.kind,t.level)})),n},getSimpleLevel:function(t,s,e,i,n){return V(t,q(t,s,e,i),n)},hasSimple:function(t,s,e,i,n,r){return G(t,q(t,s,e,i),n,r)},findSimple:G,findSimpleLevel:V,computeAllComplex:function(t,s,e){const i=new Map;return j(t,(s||[]).filter(K),(e||[]).filter(K)).forEach((function(t,s){for(let s,e=0;s=t[e];e++)K(s)||t.splice(e--,1);t.length>0&&i.set(s,t)})),i},computeComplex:F,getComplexLevel:function(t,s,e,i,n,r,h){return _(t,F(t,s,e,i),n,r,h)},findComplexLevel:_,hasComplex:function(t,s,e,i,n,r,h,a){return W(t,F(t,s,e,i),n,r,h,a)},findComplex:W,hasAnyComplex:function(t,s,e,i,n,r){return Y(t,F(t,s,e,i),n,r)},findAnyComplex:Y,findAllEscalations:function(t,s,e,i){const n=new Map;return e.forEach((function(e,r){if(s.has(r)){const h=$(t,s.get(r),e,i&&i.get(r));h.length&&n.set(r,h)}else n.set(r,e.map((function(t){return new ye(ge.vertical,t.companyId,t.kind,t.level,t.labels)})))})),n},findEscalations:$,findAllLabelEscalations:function(t,s,e,i,n,r){const h=[];return(e||[]).length>0&&e.forEach((function(e){const a=Z(t,s,e,i,n,r);a&&h.push(a)})),h},findLabelEscalation:Z,implied:$t(ve),simple:$t(s(Yt(de),Te)),complex:$t(Te)};export{hr as AlertPriority,Xi as Asset,_i as AssetAdvanced,vr as AssetAlert,xi as AssetAttribute,$i as AssetDispatch,Zi as AssetGeneral,Tr as AssetMessage,Wi as AssetPlaceStatus,Ui as AssetPlaceStatusType,Ii as AssetType,Gt as Base,Vt as BaseComponent,Ue as BaseCompound,tn as Behaviour,sn as BehaviourLog,Ai as BehaviourLogType,Qi as BehaviourParameter,Mi as BehaviourParameterType,en as BehaviourScript,on as BillableHostingLicense,Ei as BillableHostingLicenseType,un as BillableHostingRule,zi as BillableHostingType,Di as BillingCurrency,Pi as BillingCycle,rn as BillingProfile,gn as BillingReport,dn as BillingReportBreakdown,mn as BillingReportHostingSummary,cn as BillingReportLicenseBreakdown,ln as BillingReportServiceBreakdown,Ri as BillingReportStatus,pn as BillingReportSummary,fn as ColourStyle,kn as Company,Nn as CompanyDirectory,wn as CompanyGeneral,vn as CompanyPolicy,On as CompanyReseller,Jn as CompanyStyle,ae as Contact,Zn as Dashcam,$n as DashcamBase,Xn as DashcamLive,Ln as DashcamMediaType,Yi as DispatchDirection,In as DispatchJob,qi as DispatchJobPriority,Un as DispatchStep,xn as DispatchStepState,Gi as DispatchStepStatus,Mn as DispatchTask,Vi as DispatchTaskStatus,An as Document,Pn as FormFieldAttachments,Dn as FormFieldBase,En as FormFieldBoolean,Kn as FormFieldChoice,Rn as FormFieldDate,qn as FormFieldNumeric,Bn as FormFieldNumericSize,Gn as FormFieldSignature,Vn as FormFieldText,Fn as FormFieldTime,Wn as FormFieldTimezone,Fi as FormFieldType,_n as FormResult,Yn as FormTemplate,sr as Icon,Qn as IconGlyph,tr as IconLabel,jn as IconLayer,Cn as LabelStyle,yi as LatLng,wi as LatLngBounds,Ne as Machine,ir as MaintenanceInterval,nr as MaintenanceJob,Hn as MaintenanceJobStatus,rr as MaintenanceSchedule,ur as MessageFolder,ar as MessageStatus,or as MessageType,pe as NotificationMethod,Tn as NotificationServerEmail,bn as NotificationServerSms,Bi as PasswordExpiryMode,yn as PasswordPolicy,fe as Permission,ye as PermissionEscalation,we as PermissionEscalationState,ge as PermissionEscalationType,ce as PermissionLevel,le as PermissionMethod,de as PermissionType,er as Picture,br as Place,cr as PlaceType,Ni as Point,vi as Position,Hr as Provider,Rr as ProviderAdvanced,Br as ProviderCommand,dr as ProviderCommandStatus,mr as ProviderCommandType,Or as ProviderConfig,Ur as ProviderConfiguration,Ir as ProviderConfigurationNode,Mr as ProviderConfigurationType,Lr as ProviderControl,Kr as ProviderData,jr as ProviderGeneral,Ar as ProviderGeofenceBase,Dr as ProviderGeofenceCircular,Pr as ProviderGeofencePoint,Er as ProviderGeofencePolygon,zr as ProviderGeofenceRectangle,Cr as ProviderRegistration,xr as ProviderScript,Jr as ProviderScriptBlock,kr as ProviderScriptParameter,lr as ProviderScriptParameterType,Ki as ProviderType,fi as Radial,gi as Rectangle,qr as ReportBreakdown,Gr as ReportBreakdownJob,Vr as ReportBreakdownMessage,Fr as ReportBreakdownTask,pr as ReportFilterMode,Wr as ReportNotifications,Zr as ReportOptions,_r as ReportParameter,gr as ReportParameterType,Xr as ReportRecurrence,fr as ReportRecurrenceType,sh as ReportResult,eh as ReportResultData,ih as ReportSchedule,Qr as ReportScorecard,Yr as ReportScorecardParameter,$r as ReportScorecardRules,Nr as ReportStatus,nh as ReportSummary,yr as ReportSummaryReason,rh as ReportTemplate,th as ReportTotal,wr as ReportType,ki as SearchPattern,xe as Session,Li as SessionMultiUser,Sn as SessionPolicy,Ce as SessionStatus,pi as Size,Si as StreetAddress,me as SystemsOfUnits,Be as TimeSpan,oe as Timezone,He as User,Ie as UserAdvanced,je as UserGeneral,qe as UserGroup,Le as UserNotifications,gh as authorizer,ah as classes,ch as convert,lh as encoding,ph as geography,mh as geometry,dh as serialization,oh as storage,uh as utility,hh as version};
8
+ */const hh="0.0.11",ah={Company:kn,CompanyGeneral:wn,CompanyStyle:Jn,CompanyDirectory:Nn,CompanyPolicy:vn,CompanyReseller:On,Contact:ae,Machine:Ne,Session:xe,User:He,UserGeneral:je,UserAdvanced:Ie,UserGroup:qe,Asset:Xi,AssetGeneral:Zi,AssetAdvanced:_i,AssetDispatch:$i,AssetAlert:vr,AssetMessage:Tr,Behaviour:tn,BehaviourScript:en,BehaviourLog:sn,BillableHostingLicense:on,BillableHostingRule:un,BillingProfile:rn,BillingReport:gn,DispatchJob:In,DispatchTask:Mn,Document:An,FormResult:_n,FormTemplate:Yn,Dashcam:Zn,Icon:sr,Picture:er,MaintenanceSchedule:rr,MaintenanceJob:nr,Place:br,Provider:Hr,ProviderGeneral:jr,ProviderAdvanced:Rr,ProviderControl:Lr,ProviderScript:xr,ProviderConfig:Or,ProviderConfigurationType:Mr,ProviderConfiguration:Ur,ProviderRegistration:Cr,ReportTemplate:rh,ReportSchedule:ih,ReportResult:sh},oh={Company:Ss,CompanyGeneral:Ss,CompanyStyle:Ss,CompanyDirectory:Ss,CompanyPolicy:Ss,CompanyReseller:Ss,Contact:vs,Machine:Ts,Session:Cs,User:bs,UserGeneral:bs,UserAdvanced:bs,UserGroup:Os,Asset:Js,AssetGeneral:Js,AssetAdvanced:Js,AssetDispatch:Js,AssetAlert:ks,AssetMessage:ks,Behaviour:xs,BehaviourScript:Us,BehaviourLog:Is,BillingProfile:Ms,BillingReport:As,BillableHostingRule:Ds,BillableHostingLicense:Ps,DispatchTask:Es,DispatchJob:zs,Document:Ks,FormTemplate:Rs,FormResult:Bs,Dashcam:Hs,Icon:js,Picture:Ls,MaintenanceSchedule:qs,MaintenanceJob:Gs,Place:Vs,Provider:Fs,ProviderGeneral:Fs,ProviderAdvanced:Fs,ProviderControl:Fs,ProviderScript:Ws,ProviderConfig:_s,ProviderConfigurationType:Ys,ProviderConfiguration:$s,ProviderRegistration:Zs,ReportTemplate:Xs,ReportSchedule:Qs,ReportResult:te},uh={capitalize:function(t,s=!0){return t?.length?t[0][s?"toUpperCase":"toLowerCase"]()+t.slice(1):""},codify:J,date:m,douglasPeucker:function(t,s,e){if(!Array.isArray(t))throw new TypeError("source is not an Array.");if(!("function"==typeof(i=s)||i instanceof Function))throw new TypeError("triangleHeight is not an Function.");var i;if(!u(e)||e<0)throw new TypeError("tolerance is not an Number or less than zero.");return t.length<3?[...t]:t.filter(n,p(t,s,e))},fileSize:function(t,s=0,e="MB",i=3,n=",",r=n,h="."){let a=0;if(t){const s=oi.includes(e)?oi.indexOf(e):ui;for(;a<s&&t>=1024;)t/=1024,a++}return ot(c(t,s),i,n,r,h)+" "+oi[a]},findTimeZoneById:U,guid:function(){const t=(new Date).valueOf().toString(16).substring(1).split("").reduce(Bt,[...Ti]);for(let s=0;s<36;s++)if(" "===t[s]){let e=16*Zt.random()|0;t[s]=(19!==s?e:3&e|8).toString(16)}return t.join("")},highlight:function(t,s,[e,i]=["<b>","</b>"]){if(!t||!s?.length)return t;let n,r="",h=0;const a=new RegExp(s.map((t=>J(t).split("-").map((t=>t.split("").map((t=>ys+t)).join("")+ys)).join("[^a-z0-9]+"))).join("|"),"gim");for(;n=a.exec(t);)r+=t.slice(h,n.index)+e+n[0]+i,h=n.index+n[0].length;return r+t.slice(h)},id:d,isNothing:h,isntNaN:u,numberGroups:ot,roundTo:c,parseTime:function(t){return new Be(t).totalSeconds},phoneNumber:g,pluralize:function(t){return t.endsWith("y")?t.slice(0,-1)+"ies":t.endsWith("ch")?t+"es":t+"s"},singularize:function(t){return t.endsWith("ies")?t.slice(0,-3)+"y":t.endsWith("ches")?t.slice(0,-2):t.endsWith("s")?t.slice(0,-1):t},stringifyTime:function(t){return new Be(t*Pe).toString()}},ch=ai,lh={toPassword:function(t){return encodeURIComponent([...h(t)?"":String(t)].reduce((function(t,s){return t+String.fromCharCode(111^s.charCodeAt(0))}),""))},fromPassword:function(t){return[...decodeURIComponent(h(t)?"":String(t))].reduce((function(t,s){return t+String.fromCharCode(111^s.charCodeAt(0))}),"")}},dh={fromMap:N,fromMapPredicate:w,toMap:S,toMapPredicate:y},mh={pathLength:function(t){let s=0,e=0,i=t.length-1,n=t[e],r=n;for(;e<i;e++)n=t[e],r=t[e+1],s+=l(r.x-n.x,r.y-n.y);return s},pathOrthogonal:At,pathReduce:function(t,s=0){return t.length<3?t.slice():(s>0||(s=0),t.filter(n,p(t,Dt,s)))},pointAngle:xt,pointDistance:Ut,pointPythagora:l,pointVector:Mt,polyArea:Pt,polyContains:function(t,s){let e=t.slice(),i=0,n=e.length,r=n-1,h=!1;if(e[i].x===e[r].x&&e[i].y===e[r].y&&(e.pop(),n=e.length,r=n-1),zt(Et(e),s))for(;i<n;r=i++){const t=e[i],n=e[r];t.y>s.y!=n.y>s.y&&s.x<(n.x-t.x)*(s.y-t.y)/(n.y-t.y)+t.x&&(h=!h)}return h},polyReduce:function(t,s=0){let e=[...t],i=t.length;if(i<3)return e;{let t=0,r=0;s>0||(s=0);for(let s=0;s<i;s++){const n=e[s];for(let h=s+1;h<i;h++){const i=Ut(n,e[h]);i>t&&(r=s,t=i)}}return e=e.splice(r,i).concat(e),Ut(e[0],e[i-1])>0&&(i=e.push(e[0])),e=e.filter(n,p(e,Dt,s)),i=e.length,Ut(e[0],e[i-1])<=0&&e.pop(),e}},polyWrapper:function(t){let s=t.slice().sort(It),e=s[0],i=[e];for(;s.length>1;){let t=0,n=0,r=360;for(let i=0,h=s.length;i<h;i++){const a=s[i],o=xt(e,a),u=Ut(e,a);a!==e&&(u?(o<r||o===r&&u>n)&&(o===r&&(s.splice(t,1),i--,h--),r=o,n=u,t=i):(s.splice(i--,1),h--))}if(0===t)break;i.push(e=s.splice(t,1)[0])}return i},radialCircumference:function(t){return 2*Xt*t},radialArea:function(t){return Xt*(t*t)},radialSmallest:function(t,s){let e=t[0],i=0;switch(t.length){case 1:return{x:e.x,y:e.y,r:i};case 2:return function(t){const s=function(t){return{x:t.left+(t.right-t.left)/2,y:t.top+(t.bottom-t.top)/2}}(t);t.right,t.left,t.bottom,t.top;return{x:s.x,y:s.y,r:Ut(s,{x:t.left,y:t.top})}}(Et(t))}s||(s=1e4);for(let n=0;n<s;n++){let s=t[0],r=0;for(let i=0;i<t.length;i++){const n=t[i],h=Ut(e,n);h>r&&(s=n,r=h)}e={x:e.x+1/(n+1)*(s.x-e.x),y:e.y+1/(n+1)*(s.y-e.y)},i=r}return{x:e.x,y:e.y,r:i}},radialOverlapsRectangle:function(t,s){const e=kt(s),i=kt(s);return e.top-=t.r,e.bottom+=t.r,i.left-=t.r,i.right+=t.r,zt(e,t)||zt(i,t)||Ut(t,{x:s.left,y:s.top})<=t.r||Ut(t,{x:s.right,y:s.top})<=t.r||Ut(t,{x:s.left,y:s.bottom})<=t.r||Ut(t,{x:s.right,y:s.bottom})<=t.r}},ph={earthRadius:ci,clampLat:ct,clampLng:lt,pathLength:function(t){const s=[...t],e=s.length-1;for(let t=0,i=0;t<e;t++)i+=mt(s[t],s[t+1]);return length},pathReduce:function(t,s){return t.length<3?[...t]:(s>0||(s=0),t.filter(n,p(t,Nt,s)))},pathEncode:yt,pathDecode:St,pointAngle:dt,pointDistance:mt,pointMiddle:ft,pointOrthogonal:pt,pointTranslate:gt,pointVincenty:function(t,s){const e=ct(t.lat),i=ct(s.lat),n=lt(t.lng,e),r=(lt(s.lng,i)-n)*ms,h=ss((1-li)*ls(e*ms)),a=ss((1-li)*ls(e*ms)),o=us(h),c=is(h),l=us(a),d=is(a);let m,p,g,f,N,w,y,S,v,T,b=r,O=100;do{if(p=us(b),g=is(b),f=cs(d*p*(d*p)+(c*l-o*d*g)*(c*l-o*d*g)),0===f)return 0;N=o*l+c*d*g,w=es(f,N),y=c*d*p/f,S=1-y*y,v=N-2*o*l/S,T=li/16*S*(4+li*(4-3*S)),u(v)||(v=0),m=b,b=r+(1-T)*li*y*(w+T*f*(v+T*N*(2*v*v-1)))}while(Qt(b-m)>1e-12&&--O>0);if(!O)return 0;const C=272331606107.5547*S/40408299984661.445,J=C/1024*(256+C*(C*(74-47*C)-128));return di*(1+C/16384*(4096+C*(C*(320-175*C)-768)))*(w-J*f*(v+J/4*(N*(2*v*v-1)-J/6*v*(4*f*f-3)*(4*v*v-3))))},polyArea:function(t){const s=[...t];let e,i=0,n=0,r=s.length-1,h=s[n],a=s[r];if(h&&a&&mt(h,a)<=mi&&(s.pop(),r--),r<1)throw new Error("Not enough coordinates");if(r>1)for(n=1;n<r;n++)e=s[n],a=s[n+1],i+=Tt(h,e,a)*bt(h,e,a);return Qt(40680631590769*i)},polyContains:function(t,s){throw"not implemented"},polyReduce:function(t,s=1e-9){let e=[...t],i=t.length;if(i>2){const[t,r,h]=vt(e);s>0||(s=mi),e=e.splice(r,i).concat(e),mt(e[0],e[i-1])>s&&(i=e.push(e[0])),e=e.filter(n,p(e,Nt,s)),i=e.length,mt(e[0],e[i-1])<=s&&e.pop()}return e},polyWidest:vt},gh={computeAll:j,compute:H,computeAllSimple:function(t,s,e){return j(t,(s||[]).filter(R),(e||[]).filter(R))},computeSimple:q,computeSimpleLevels:function(t,s,e,i){const n=new Map;return q(t,s,e,i).forEach((function(t){n.set(t.kind,t.level)})),n},getSimpleLevel:function(t,s,e,i,n){return V(t,q(t,s,e,i),n)},hasSimple:function(t,s,e,i,n,r){return G(t,q(t,s,e,i),n,r)},findSimple:G,findSimpleLevel:V,computeAllComplex:function(t,s,e){const i=new Map;return j(t,(s||[]).filter(K),(e||[]).filter(K)).forEach((function(t,s){for(let s,e=0;s=t[e];e++)K(s)||t.splice(e--,1);t.length>0&&i.set(s,t)})),i},computeComplex:F,getComplexLevel:function(t,s,e,i,n,r,h){return _(t,F(t,s,e,i),n,r,h)},findComplexLevel:_,hasComplex:function(t,s,e,i,n,r,h,a){return W(t,F(t,s,e,i),n,r,h,a)},findComplex:W,hasAnyComplex:function(t,s,e,i,n,r){return Y(t,F(t,s,e,i),n,r)},findAnyComplex:Y,findAllEscalations:function(t,s,e,i){const n=new Map;return e.forEach((function(e,r){if(s.has(r)){const h=$(t,s.get(r),e,i&&i.get(r));h.length&&n.set(r,h)}else n.set(r,e.map((function(t){return new ye(ge.vertical,t.companyId,t.kind,t.level,t.labels)})))})),n},findEscalations:$,findAllLabelEscalations:function(t,s,e,i,n,r){const h=[];return(e||[]).length>0&&e.forEach((function(e){const a=Z(t,s,e,i,n,r);a&&h.push(a)})),h},findLabelEscalation:Z,implied:$t(ve),simple:$t(s(Yt(de),Te)),complex:$t(Te)};export{hr as AlertPriority,Xi as Asset,_i as AssetAdvanced,vr as AssetAlert,xi as AssetAttribute,$i as AssetDispatch,Zi as AssetGeneral,Tr as AssetMessage,Wi as AssetPlaceStatus,Ui as AssetPlaceStatusType,Ii as AssetType,Gt as Base,Vt as BaseComponent,Ue as BaseCompound,tn as Behaviour,sn as BehaviourLog,Ai as BehaviourLogType,Qi as BehaviourParameter,Mi as BehaviourParameterType,en as BehaviourScript,on as BillableHostingLicense,Ei as BillableHostingLicenseType,un as BillableHostingRule,zi as BillableHostingType,Di as BillingCurrency,Pi as BillingCycle,rn as BillingProfile,gn as BillingReport,dn as BillingReportBreakdown,mn as BillingReportHostingSummary,cn as BillingReportLicenseBreakdown,ln as BillingReportServiceBreakdown,Ri as BillingReportStatus,pn as BillingReportSummary,fn as ColourStyle,kn as Company,Nn as CompanyDirectory,wn as CompanyGeneral,vn as CompanyPolicy,On as CompanyReseller,Jn as CompanyStyle,ae as Contact,Zn as Dashcam,$n as DashcamBase,Xn as DashcamLive,Ln as DashcamMediaType,Yi as DispatchDirection,In as DispatchJob,qi as DispatchJobPriority,Un as DispatchStep,xn as DispatchStepState,Gi as DispatchStepStatus,Mn as DispatchTask,Vi as DispatchTaskStatus,An as Document,Pn as FormFieldAttachments,Dn as FormFieldBase,En as FormFieldBoolean,Kn as FormFieldChoice,Rn as FormFieldDate,qn as FormFieldNumeric,Bn as FormFieldNumericSize,Gn as FormFieldSignature,Vn as FormFieldText,Fn as FormFieldTime,Wn as FormFieldTimezone,Fi as FormFieldType,_n as FormResult,Yn as FormTemplate,sr as Icon,Qn as IconGlyph,tr as IconLabel,jn as IconLayer,Cn as LabelStyle,yi as LatLng,wi as LatLngBounds,Ne as Machine,ir as MaintenanceInterval,nr as MaintenanceJob,Hn as MaintenanceJobStatus,rr as MaintenanceSchedule,ur as MessageFolder,ar as MessageStatus,or as MessageType,pe as NotificationMethod,Tn as NotificationServerEmail,bn as NotificationServerSms,Bi as PasswordExpiryMode,yn as PasswordPolicy,fe as Permission,ye as PermissionEscalation,we as PermissionEscalationState,ge as PermissionEscalationType,ce as PermissionLevel,le as PermissionMethod,de as PermissionType,er as Picture,br as Place,cr as PlaceType,Ni as Point,vi as Position,Hr as Provider,Rr as ProviderAdvanced,Br as ProviderCommand,dr as ProviderCommandStatus,mr as ProviderCommandType,Or as ProviderConfig,Ur as ProviderConfiguration,Ir as ProviderConfigurationNode,Mr as ProviderConfigurationType,Lr as ProviderControl,Kr as ProviderData,jr as ProviderGeneral,Ar as ProviderGeofenceBase,Dr as ProviderGeofenceCircular,Pr as ProviderGeofencePoint,Er as ProviderGeofencePolygon,zr as ProviderGeofenceRectangle,Cr as ProviderRegistration,xr as ProviderScript,Jr as ProviderScriptBlock,kr as ProviderScriptParameter,lr as ProviderScriptParameterType,Ki as ProviderType,fi as Radial,gi as Rectangle,qr as ReportBreakdown,Gr as ReportBreakdownJob,Vr as ReportBreakdownMessage,Fr as ReportBreakdownTask,pr as ReportFilterMode,Wr as ReportNotifications,Zr as ReportOptions,_r as ReportParameter,gr as ReportParameterType,Xr as ReportRecurrence,fr as ReportRecurrenceType,sh as ReportResult,eh as ReportResultData,ih as ReportSchedule,Qr as ReportScorecard,Yr as ReportScorecardParameter,$r as ReportScorecardRules,Nr as ReportStatus,nh as ReportSummary,yr as ReportSummaryReason,rh as ReportTemplate,th as ReportTotal,wr as ReportType,ki as SearchPattern,xe as Session,Li as SessionMultiUser,Sn as SessionPolicy,Ce as SessionStatus,pi as Size,Si as StreetAddress,me as SystemsOfUnits,Be as TimeSpan,oe as Timezone,He as User,Ie as UserAdvanced,je as UserGeneral,qe as UserGroup,Le as UserNotifications,gh as authorizer,ah as classes,ch as convert,lh as encoding,ph as geography,mh as geometry,dh as serialization,oh as storage,uh as utility,hh as version};