@ironcode/vas-lib 1.9.0 → 1.11.0

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.
@@ -10,5 +10,6 @@ export interface VasJobElasticDoc extends VasRestrictedAccountObjectDto {
10
10
  timezoneOffset: number;
11
11
  lastForm: string;
12
12
  fields: Record<string, any>;
13
+ _runtimeFields: Record<string, any>;
13
14
  }
14
15
  //# sourceMappingURL=job.elastic-doc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"job.elastic-doc.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/elastic/job.elastic-doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAE1D,MAAM,WAAW,gBAAiB,SAAQ,6BAA6B;IACrE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B"}
1
+ {"version":3,"file":"job.elastic-doc.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/elastic/job.elastic-doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAE1D,MAAM,WAAW,gBAAiB,SAAQ,6BAA6B;IACrE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"job.elastic-doc.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/elastic/job.elastic-doc.ts"],"names":[],"mappings":"","sourcesContent":["import { VasRestrictedAccountObjectDto } from '../entity';\n\nexport interface VasJobElasticDoc extends VasRestrictedAccountObjectDto {\n reference: string | null;\n jobDate: string | null;\n assigneeId: string | null;\n assigneeName: string | null;\n jobStatus: string;\n jobStatusLastUpdate: string | null;\n jobType: string;\n timezoneOffset: number;\n lastForm: string;\n fields: Record<string, any>;\n}\n"]}
1
+ {"version":3,"file":"job.elastic-doc.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/elastic/job.elastic-doc.ts"],"names":[],"mappings":"","sourcesContent":["import { VasRestrictedAccountObjectDto } from '../entity';\n\nexport interface VasJobElasticDoc extends VasRestrictedAccountObjectDto {\n reference: string | null;\n jobDate: string | null;\n assigneeId: string | null;\n assigneeName: string | null;\n jobStatus: string;\n jobStatusLastUpdate: string | null;\n jobType: string;\n timezoneOffset: number;\n lastForm: string;\n fields: Record<string, any>;\n _runtimeFields: Record<string, any>;\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  export declare type VasJobActionStepStage = 'initializing' | 'running' | 'succeeded' | 'failed';
2
2
  export interface VasJobActionStepDto {
3
3
  id: string;
4
- type: 'automation' | 'controls' | 'email-form' | 'instruction' | 'set-datetime' | 'set-job-status';
4
+ type: 'automation' | 'controls' | 'email-form' | 'instruction' | 'set-datetime' | 'set-job-status' | 'set-value';
5
5
  stage: VasJobActionStepStage;
6
6
  }
7
7
  /**
@@ -73,4 +73,13 @@ export interface VasJobActionSetDatetimeStepDto extends VasJobActionStepDto {
73
73
  controlName: string;
74
74
  }
75
75
  export declare const isJobSetDatetimeStep: (step: VasJobActionStepDto) => step is VasJobActionSetDatetimeStepDto;
76
+ /**
77
+ * SetValue step allow us set the value of any control with a hardcoded value
78
+ */
79
+ export interface VasJobActionSetValueStepDto extends VasJobActionStepDto {
80
+ type: 'set-value';
81
+ value: string;
82
+ controlName: string;
83
+ }
84
+ export declare const isJobSetValueStep: (step: VasJobActionStepDto) => step is VasJobActionSetValueStepDto;
76
85
  //# sourceMappingURL=vas-job-action.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vas-job-action.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job-action.dto.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,MAAM,qBAAqB,GAAG,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEhG,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,GACd,UAAU,GACV,YAAY,GACZ,aAAa,GACb,cAAc,GACd,gBAAgB,CAAC;IACrB,KAAK,EAAE,qBAAqB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAE9B,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAIlC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B,OAAO,EAEL,oBAAoB,GAElB,UAAU,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,6BAA8B,SAAQ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AM,CAAC;CACrB;AAED,eAAO,MAAM,oBAAoB,SACzB,mBAAmB,KACxB,IAAI,IAAI,8BAEV,CAAC"}
1
+ {"version":3,"file":"vas-job-action.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job-action.dto.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,MAAM,qBAAqB,GAAG,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEhG,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,GACd,UAAU,GACV,YAAY,GACZ,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,WAAW,CAAC;IAChB,KAAK,EAAE,qBAAqB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAE9B,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAIlC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B,OAAO,EAEL,oBAAoB,GAElB,UAAU,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB;IACxE,IAAI,EAAE,YAAY,CAAC;IAEnB,GAAG,EAAE,MAAM,CAAC;IAEZ,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,eAAO,MAAM,mBAAmB,SACxB,mBAAmB,KACxB,IAAI,IAAI,6BAEV,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACtE,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,iBAAiB,SACtB,mBAAmB,KACxB,IAAI,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etJobStatusStep = exports.isJobEmailFormStep = exports.isJobControlsStep = exports.isJobAutomationStep = void 0;
3
+ exports.isJobSetValueStep = exports.isJobSetDatetimeStep = exports.isJobSetJobStatusStep = exports.isJobEmailFormStep = exports.isJobControlsStep = exports.isJobAutomationStep = void 0;
4
4
  const isJobAutomationStep = (step) => {
5
5
  return step && step.type === 'automation';
6
6
  };
@@ -21,4 +21,8 @@ const isJobSetDatetimeStep = (step) => {
21
21
  return step && step.type === 'set-datetime';
22
22
  };
23
23
  exports.isJobSetDatetimeStep = isJobSetDatetimeStep;
24
+ const isJobSetValueStep = (step) => {
25
+ return step && step.type === 'set-value';
26
+ };
27
+ exports.isJobSetValueStep = isJobSetValueStep;
24
28
  //# sourceMappingURL=vas-job-action.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vas-job-action.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job-action.dto.ts"],"names":[],"mappings":";;;AAkDO,MAAM,mBAAmB,GAAG,CACjC,IAAyB,EACc,EAAE;IACzC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC;AAC5C,CAAC,CAAC;AAJW,QAAA,mBAAmB,uBAI9B;AAUK,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACY,EAAE;IACvC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC;AAC1C,CAAC,CAAC;AAJW,QAAA,iBAAiB,qBAI5B;AAeK,MAAM,kBAAkB,GAAG,CAChC,IAAyB,EACa,EAAE;IACxC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC;AAC5C,CAAC,CAAC;AAJW,QAAA,kBAAkB,sBAI7B;AA6BK,MAAM,qBAAqB,GAAG,CACnC,IAAyB,EACgB,EAAE;IAC3C,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAChD,CAAC,CAAC;AAJW,QAAA,qBAAqB,yBAIhC;AAWK,MAAM,oBAAoB,GAAG,CAClC,IAAyB,EACe,EAAE;IAC1C,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,cAAc,CAAC;AAC9C,CAAC,CAAC;AAJW,QAAA,oBAAoB,wBAI/B","sourcesContent":["export declare type VasJobActionStepStage = 'initializing' | 'running' | 'succeeded' | 'failed';\n\nexport interface VasJobActionStepDto {\n id: string;\n type: 'automation'\n | 'controls'\n | 'email-form'\n | 'instruction'\n | 'set-datetime'\n | 'set-job-status';\n stage: VasJobActionStepStage;\n}\n\n/**\n * Describes an action that can be performed on a job\n */\nexport interface VasJobActionDto {\n // unique id of the action\n id: string;\n // The title of the action\n title: string;\n // a list of steps to be performed\n steps: Array<VasJobActionStepDto>;\n // a control name for which to check the presence of a value. If the value\n // is set, then the action is assumed to have succeeded. The field for the\n // control should be set by the last step in the action.\n succeededControl?: string;\n // a list of job status ids that this action will be valid for, if the array\n // is empty, then the action is valid for any job status.\n jobStatuses?: Array<string>;\n // the context where the action can be displayed\n context:\n // action can be displayed in the portal viewing an instruction\n 'portal-instruction'\n // action can be displayed when the job form is available\n | 'job-form';\n}\n\n/**\n * Automation steps allow us to send the job along with some configuration\n * parameters to some backend automation\n */\nexport interface VasJobActionAutomationStepDto extends VasJobActionStepDto {\n type: 'automation';\n // url of the automation engine\n url: string;\n // an object of parameters that will be passed to the automation\n params?: Record<string, any>;\n}\n\nexport const isJobAutomationStep = (\n step: VasJobActionStepDto\n): step is VasJobActionAutomationStepDto => {\n return step && step.type === 'automation';\n};\n\n/**\n * Controls step allow us to specify a number of controls to present to the user\n */\nexport interface VasJobActionControlsStepDto extends VasJobActionStepDto {\n type: 'controls';\n controlNames: Array<string>;\n}\n\nexport const isJobControlsStep = (\n step: VasJobActionStepDto\n): step is VasJobActionControlsStepDto => {\n return step && step.type === 'controls';\n};\n\n/**\n * Email form step allow us to present the email form with some values already\n * set\n */\nexport interface VasJobActionEmailFormStepDto extends VasJobActionStepDto {\n type: 'email-form';\n params: {\n $recipients: Array<string>,\n $subject: string;\n $body: Array<string>;\n };\n}\n\nexport const isJobEmailFormStep = (\n step: VasJobActionStepDto\n): step is VasJobActionEmailFormStepDto => {\n return step && step.type === 'email-form';\n};\n\n\n/**\n * This step is designed to allow us to add an action button that will be\n * displayed on the instruction. If the user invokes the action, a form will be\n * displayed. The form id is discovered by looking up the instruction provider.\n */\nexport interface VasJobActionInstructionStepDto extends VasJobActionStepDto {\n type: 'instruction';\n // The id of an instruction provider, which will be opened in the portal\n // allowing the user to submit a form whose inputs are determined by the\n // instruction provider\n instructionProviderId: string;\n // Optional name of a control in the form referenced by the instruction\n // provider, the value of the control will be set to the job id from which\n // the action was triggered.\n linkControl: string;\n}\n\n\n/**\n * SetJobStatus step allow us set the job status to some value\n */\nexport interface VasJobActionSetJobStatusStepDto extends VasJobActionStepDto {\n type: 'set-job-status';\n value: string;\n}\n\nexport const isJobSetJobStatusStep = (\n step: VasJobActionStepDto\n): step is VasJobActionSetJobStatusStepDto => {\n return step && step.type === 'set-job-status';\n};\n\n/**\n * SetDatetime step allow us set the value of a datetime control\n */\nexport interface VasJobActionSetDatetimeStepDto extends VasJobActionStepDto {\n type: 'set-datetime';\n value: string;\n controlName: string;\n}\n\nexport const isJobSetDatetimeStep = (\n step: VasJobActionStepDto\n): step is VasJobActionSetDatetimeStepDto => {\n return step && step.type === 'set-datetime';\n};\n"]}
1
+ {"version":3,"file":"vas-job-action.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job-action.dto.ts"],"names":[],"mappings":";;;AAmDO,MAAM,mBAAmB,GAAG,CACjC,IAAyB,EACc,EAAE;IACzC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC;AAC5C,CAAC,CAAC;AAJW,QAAA,mBAAmB,uBAI9B;AAUK,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACY,EAAE;IACvC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC;AAC1C,CAAC,CAAC;AAJW,QAAA,iBAAiB,qBAI5B;AAeK,MAAM,kBAAkB,GAAG,CAChC,IAAyB,EACa,EAAE;IACxC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC;AAC5C,CAAC,CAAC;AAJW,QAAA,kBAAkB,sBAI7B;AA6BK,MAAM,qBAAqB,GAAG,CACnC,IAAyB,EACgB,EAAE;IAC3C,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAChD,CAAC,CAAC;AAJW,QAAA,qBAAqB,yBAIhC;AAWK,MAAM,oBAAoB,GAAG,CAClC,IAAyB,EACe,EAAE;IAC1C,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,cAAc,CAAC;AAC9C,CAAC,CAAC;AAJW,QAAA,oBAAoB,wBAI/B;AAWK,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACY,EAAE;IACvC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,CAAC;AAC3C,CAAC,CAAC;AAJW,QAAA,iBAAiB,qBAI5B","sourcesContent":["export declare type VasJobActionStepStage = 'initializing' | 'running' | 'succeeded' | 'failed';\n\nexport interface VasJobActionStepDto {\n id: string;\n type: 'automation'\n | 'controls'\n | 'email-form'\n | 'instruction'\n | 'set-datetime'\n | 'set-job-status'\n | 'set-value';\n stage: VasJobActionStepStage;\n}\n\n/**\n * Describes an action that can be performed on a job\n */\nexport interface VasJobActionDto {\n // unique id of the action\n id: string;\n // The title of the action\n title: string;\n // a list of steps to be performed\n steps: Array<VasJobActionStepDto>;\n // a control name for which to check the presence of a value. If the value\n // is set, then the action is assumed to have succeeded. The field for the\n // control should be set by the last step in the action.\n succeededControl?: string;\n // a list of job status ids that this action will be valid for, if the array\n // is empty, then the action is valid for any job status.\n jobStatuses?: Array<string>;\n // the context where the action can be displayed\n context:\n // action can be displayed in the portal viewing an instruction\n 'portal-instruction'\n // action can be displayed when the job form is available\n | 'job-form';\n}\n\n/**\n * Automation steps allow us to send the job along with some configuration\n * parameters to some backend automation\n */\nexport interface VasJobActionAutomationStepDto extends VasJobActionStepDto {\n type: 'automation';\n // url of the automation engine\n url: string;\n // an object of parameters that will be passed to the automation\n params?: Record<string, any>;\n}\n\nexport const isJobAutomationStep = (\n step: VasJobActionStepDto\n): step is VasJobActionAutomationStepDto => {\n return step && step.type === 'automation';\n};\n\n/**\n * Controls step allow us to specify a number of controls to present to the user\n */\nexport interface VasJobActionControlsStepDto extends VasJobActionStepDto {\n type: 'controls';\n controlNames: Array<string>;\n}\n\nexport const isJobControlsStep = (\n step: VasJobActionStepDto\n): step is VasJobActionControlsStepDto => {\n return step && step.type === 'controls';\n};\n\n/**\n * Email form step allow us to present the email form with some values already\n * set\n */\nexport interface VasJobActionEmailFormStepDto extends VasJobActionStepDto {\n type: 'email-form';\n params: {\n $recipients: Array<string>,\n $subject: string;\n $body: Array<string>;\n };\n}\n\nexport const isJobEmailFormStep = (\n step: VasJobActionStepDto\n): step is VasJobActionEmailFormStepDto => {\n return step && step.type === 'email-form';\n};\n\n\n/**\n * This step is designed to allow us to add an action button that will be\n * displayed on the instruction. If the user invokes the action, a form will be\n * displayed. The form id is discovered by looking up the instruction provider.\n */\nexport interface VasJobActionInstructionStepDto extends VasJobActionStepDto {\n type: 'instruction';\n // The id of an instruction provider, which will be opened in the portal\n // allowing the user to submit a form whose inputs are determined by the\n // instruction provider\n instructionProviderId: string;\n // Optional name of a control in the form referenced by the instruction\n // provider, the value of the control will be set to the job id from which\n // the action was triggered.\n linkControl: string;\n}\n\n\n/**\n * SetJobStatus step allow us set the job status to some value\n */\nexport interface VasJobActionSetJobStatusStepDto extends VasJobActionStepDto {\n type: 'set-job-status';\n value: string;\n}\n\nexport const isJobSetJobStatusStep = (\n step: VasJobActionStepDto\n): step is VasJobActionSetJobStatusStepDto => {\n return step && step.type === 'set-job-status';\n};\n\n/**\n * SetDatetime step allow us set the value of a datetime control\n */\nexport interface VasJobActionSetDatetimeStepDto extends VasJobActionStepDto {\n type: 'set-datetime';\n value: string;\n controlName: string;\n}\n\nexport const isJobSetDatetimeStep = (\n step: VasJobActionStepDto\n): step is VasJobActionSetDatetimeStepDto => {\n return step && step.type === 'set-datetime';\n};\n\n/**\n * SetValue step allow us set the value of any control with a hardcoded value\n */\nexport interface VasJobActionSetValueStepDto extends VasJobActionStepDto {\n type: 'set-value';\n value: string;\n controlName: string;\n}\n\nexport const isJobSetValueStep = (\n step: VasJobActionStepDto\n): step is VasJobActionSetValueStepDto => {\n return step && step.type === 'set-value';\n};\n"]}
@@ -2842,6 +2842,9 @@ const isJobSetJobStatusStep = (step) => {
2842
2842
  const isJobSetDatetimeStep = (step) => {
2843
2843
  return step && step.type === 'set-datetime';
2844
2844
  };
2845
+ const isJobSetValueStep = (step) => {
2846
+ return step && step.type === 'set-value';
2847
+ };
2845
2848
 
2846
2849
  /**
2847
2850
  * VasLookupModel
@@ -3284,5 +3287,5 @@ class VasVehicleModel extends VasAccountObjectModel {
3284
3287
  * Generated bundle index. Do not edit.
3285
3288
  */
3286
3289
 
3287
- export { VasAccountIndexingMode, VasAccountObjectModel, VasBaseModel, VasBranchModel, VasContactModel, VasControlConfigDirection, VasControlModel, VasControlTypeModel, VasFieldModel, VasFileModel, VasFireUserModel, VasFormConfigModel, VasFormModel, VasGroupModel, VasInstructionJobFieldModel, VasInstructionJobModel, VasInstructionModel, VasInstructionProviderModel, VasInvitationModel, VasInvitationTypeEnum, VasJobDataModel, VasJobEmailModel, VasJobModel, VasLookupModel, VasMembershipModel, VasNoteModel, VasReportLayoutModel, VasReportModel, VasReportRequestModel, VasRestrictedAccountObjectModel, VasTaskModel, VasUserModel, VasVehicleModel, getEmptyGeoLocation, isCameraControlValueV1, isFileDto, isJobAutomationStep, isJobControlsStep, isJobEmailFormStep, isJobSetDatetimeStep, isJobSetJobStatusStep, prepareFieldApiValue };
3290
+ export { VasAccountIndexingMode, VasAccountObjectModel, VasBaseModel, VasBranchModel, VasContactModel, VasControlConfigDirection, VasControlModel, VasControlTypeModel, VasFieldModel, VasFileModel, VasFireUserModel, VasFormConfigModel, VasFormModel, VasGroupModel, VasInstructionJobFieldModel, VasInstructionJobModel, VasInstructionModel, VasInstructionProviderModel, VasInvitationModel, VasInvitationTypeEnum, VasJobDataModel, VasJobEmailModel, VasJobModel, VasLookupModel, VasMembershipModel, VasNoteModel, VasReportLayoutModel, VasReportModel, VasReportRequestModel, VasRestrictedAccountObjectModel, VasTaskModel, VasUserModel, VasVehicleModel, getEmptyGeoLocation, isCameraControlValueV1, isFileDto, isJobAutomationStep, isJobControlsStep, isJobEmailFormStep, isJobSetDatetimeStep, isJobSetJobStatusStep, isJobSetValueStep, prepareFieldApiValue };
3288
3291
  //# sourceMappingURL=ironcode-vas-lib.mjs.map