@globisnv/cypress-core 0.0.2 → 0.0.4

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 (297) hide show
  1. package/README.md +12 -7
  2. package/dist/apiMethods/IGS_request.d.ts +98 -0
  3. package/dist/apiMethods/IGS_request.js +161 -0
  4. package/dist/apiMethods/IGS_response.d.ts +47 -0
  5. package/dist/apiMethods/IGS_response.js +1 -0
  6. package/dist/blueprints/GLO_addressPopup.d.ts +45 -0
  7. package/dist/blueprints/GLO_addressPopup.js +96 -0
  8. package/dist/blueprints/GLO_article.d.ts +45 -0
  9. package/dist/blueprints/GLO_article.js +110 -0
  10. package/dist/blueprints/GLO_articleLot.d.ts +12 -0
  11. package/dist/blueprints/GLO_articleLot.js +23 -0
  12. package/dist/blueprints/GLO_articleVersion.d.ts +4 -0
  13. package/dist/blueprints/GLO_articleVersion.js +4 -0
  14. package/dist/blueprints/GLO_attachmentPopup.d.ts +9 -0
  15. package/dist/blueprints/GLO_attachmentPopup.js +10 -0
  16. package/dist/blueprints/GLO_bankAccount.d.ts +7 -0
  17. package/dist/blueprints/GLO_bankAccount.js +7 -0
  18. package/dist/blueprints/GLO_billingProcess.d.ts +4 -0
  19. package/dist/blueprints/GLO_billingProcess.js +4 -0
  20. package/dist/blueprints/GLO_billingProposal.d.ts +9 -0
  21. package/dist/blueprints/GLO_billingProposal.js +9 -0
  22. package/dist/blueprints/GLO_cancel.d.ts +7 -0
  23. package/dist/blueprints/GLO_cancel.js +7 -0
  24. package/dist/blueprints/GLO_commandlist.d.ts +10 -0
  25. package/dist/blueprints/GLO_commandlist.js +10 -0
  26. package/dist/blueprints/GLO_complaint.d.ts +27 -0
  27. package/dist/blueprints/GLO_complaint.js +51 -0
  28. package/dist/blueprints/GLO_composition.d.ts +14 -0
  29. package/dist/blueprints/GLO_composition.js +20 -0
  30. package/dist/blueprints/GLO_consignment.d.ts +61 -0
  31. package/dist/blueprints/GLO_consignment.js +104 -0
  32. package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +6 -0
  33. package/dist/blueprints/GLO_consignmentContainerGroup.js +6 -0
  34. package/dist/blueprints/GLO_consignmentGoods.d.ts +40 -0
  35. package/dist/blueprints/GLO_consignmentGoods.js +62 -0
  36. package/dist/blueprints/GLO_consignmentHandling.d.ts +4 -0
  37. package/dist/blueprints/GLO_consignmentHandling.js +4 -0
  38. package/dist/blueprints/GLO_consignmentOrder.d.ts +31 -0
  39. package/dist/blueprints/GLO_consignmentOrder.js +37 -0
  40. package/dist/blueprints/GLO_consignmentPart.d.ts +13 -0
  41. package/dist/blueprints/GLO_consignmentPart.js +13 -0
  42. package/dist/blueprints/GLO_consignmentParts.d.ts +5 -0
  43. package/dist/blueprints/GLO_consignmentParts.js +12 -0
  44. package/dist/blueprints/GLO_consignmentPrice.d.ts +11 -0
  45. package/dist/blueprints/GLO_consignmentPrice.js +19 -0
  46. package/dist/blueprints/GLO_consignmentSupplier.d.ts +6 -0
  47. package/dist/blueprints/GLO_consignmentSupplier.js +11 -0
  48. package/dist/blueprints/GLO_contacts.d.ts +10 -0
  49. package/dist/blueprints/GLO_contacts.js +14 -0
  50. package/dist/blueprints/GLO_container.d.ts +6 -0
  51. package/dist/blueprints/GLO_container.js +4 -0
  52. package/dist/blueprints/GLO_contract.d.ts +22 -0
  53. package/dist/blueprints/GLO_contract.js +30 -0
  54. package/dist/blueprints/GLO_contractArticle.d.ts +17 -0
  55. package/dist/blueprints/GLO_contractArticle.js +35 -0
  56. package/dist/blueprints/GLO_contractArticleCost.d.ts +5 -0
  57. package/dist/blueprints/GLO_contractArticleCost.js +8 -0
  58. package/dist/blueprints/GLO_countryVatZone.d.ts +8 -0
  59. package/dist/blueprints/GLO_countryVatZone.js +9 -0
  60. package/dist/blueprints/GLO_currencyDeviation.d.ts +14 -0
  61. package/dist/blueprints/GLO_currencyDeviation.js +15 -0
  62. package/dist/blueprints/GLO_customerArticle.d.ts +12 -0
  63. package/dist/blueprints/GLO_customerArticle.js +15 -0
  64. package/dist/blueprints/GLO_customsFlow.d.ts +8 -0
  65. package/dist/blueprints/GLO_customsFlow.js +19 -0
  66. package/dist/blueprints/GLO_customsFlowDefinition.d.ts +15 -0
  67. package/dist/blueprints/GLO_customsFlowDefinition.js +14 -0
  68. package/dist/blueprints/GLO_customsUnion.d.ts +4 -0
  69. package/dist/blueprints/GLO_customsUnion.js +4 -0
  70. package/dist/blueprints/GLO_deliveryReceipt.d.ts +10 -0
  71. package/dist/blueprints/GLO_deliveryReceipt.js +22 -0
  72. package/dist/blueprints/GLO_departureSchedule.d.ts +27 -0
  73. package/dist/blueprints/GLO_departureSchedule.js +57 -0
  74. package/dist/blueprints/GLO_departureScheduleTimes.d.ts +49 -0
  75. package/dist/blueprints/GLO_departureScheduleTimes.js +61 -0
  76. package/dist/blueprints/GLO_document.d.ts +7 -0
  77. package/dist/blueprints/GLO_document.js +7 -0
  78. package/dist/blueprints/GLO_documentAttachment.d.ts +4 -0
  79. package/dist/blueprints/GLO_documentAttachment.js +4 -0
  80. package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +5 -0
  81. package/dist/blueprints/GLO_documentDefinitionEntity.js +5 -0
  82. package/dist/blueprints/GLO_documentGroup.d.ts +4 -0
  83. package/dist/blueprints/GLO_documentGroup.js +4 -0
  84. package/dist/blueprints/GLO_documentType.d.ts +12 -0
  85. package/dist/blueprints/GLO_documentType.js +11 -0
  86. package/dist/blueprints/GLO_enterCountry.d.ts +21 -0
  87. package/dist/blueprints/GLO_enterCountry.js +47 -0
  88. package/dist/blueprints/GLO_enterDiscount.d.ts +8 -0
  89. package/dist/blueprints/GLO_enterDiscount.js +9 -0
  90. package/dist/blueprints/GLO_equipment.d.ts +34 -0
  91. package/dist/blueprints/GLO_equipment.js +55 -0
  92. package/dist/blueprints/GLO_equipmentCategory.d.ts +15 -0
  93. package/dist/blueprints/GLO_equipmentCategory.js +14 -0
  94. package/dist/blueprints/GLO_equipmentEntity.d.ts +5 -0
  95. package/dist/blueprints/GLO_equipmentEntity.js +5 -0
  96. package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +13 -0
  97. package/dist/blueprints/GLO_equipmentServiceCategory.js +13 -0
  98. package/dist/blueprints/GLO_equipmentType.d.ts +21 -0
  99. package/dist/blueprints/GLO_equipmentType.js +20 -0
  100. package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +13 -0
  101. package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +12 -0
  102. package/dist/blueprints/GLO_fieldInputValidation.d.ts +46 -0
  103. package/dist/blueprints/GLO_fieldInputValidation.js +73 -0
  104. package/dist/blueprints/GLO_formula.d.ts +9 -0
  105. package/dist/blueprints/GLO_formula.js +9 -0
  106. package/dist/blueprints/GLO_gang.d.ts +12 -0
  107. package/dist/blueprints/GLO_gang.js +12 -0
  108. package/dist/blueprints/GLO_holiday.d.ts +7 -0
  109. package/dist/blueprints/GLO_holiday.js +8 -0
  110. package/dist/blueprints/GLO_journey.d.ts +18 -0
  111. package/dist/blueprints/GLO_journey.js +24 -0
  112. package/dist/blueprints/GLO_journeyStop.d.ts +32 -0
  113. package/dist/blueprints/GLO_journeyStop.js +44 -0
  114. package/dist/blueprints/GLO_layout.d.ts +6 -0
  115. package/dist/blueprints/GLO_layout.js +6 -0
  116. package/dist/blueprints/GLO_logging.d.ts +9 -0
  117. package/dist/blueprints/GLO_logging.js +12 -0
  118. package/dist/blueprints/GLO_logisticConnection.d.ts +10 -0
  119. package/dist/blueprints/GLO_logisticConnection.js +11 -0
  120. package/dist/blueprints/GLO_logisticConnectionType.d.ts +5 -0
  121. package/dist/blueprints/GLO_logisticConnectionType.js +5 -0
  122. package/dist/blueprints/GLO_logisticContract.d.ts +28 -0
  123. package/dist/blueprints/GLO_logisticContract.js +80 -0
  124. package/dist/blueprints/GLO_logisticContractDetail.d.ts +42 -0
  125. package/dist/blueprints/GLO_logisticContractDetail.js +122 -0
  126. package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +11 -0
  127. package/dist/blueprints/GLO_logisticContractDetailHandling.js +14 -0
  128. package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +5 -0
  129. package/dist/blueprints/GLO_logisticContractDetailItem.js +8 -0
  130. package/dist/blueprints/GLO_logisticContractItem.d.ts +14 -0
  131. package/dist/blueprints/GLO_logisticContractItem.js +40 -0
  132. package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +4 -0
  133. package/dist/blueprints/GLO_logisticContractItemActivity.js +4 -0
  134. package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +7 -0
  135. package/dist/blueprints/GLO_logisticContractItemSurcharge.js +7 -0
  136. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +4 -0
  137. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +4 -0
  138. package/dist/blueprints/GLO_logisticContractReference.d.ts +4 -0
  139. package/dist/blueprints/GLO_logisticContractReference.js +4 -0
  140. package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +9 -0
  141. package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +8 -0
  142. package/dist/blueprints/GLO_logisticLocation.d.ts +7 -0
  143. package/dist/blueprints/GLO_logisticLocation.js +7 -0
  144. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +19 -0
  145. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +30 -0
  146. package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +4 -0
  147. package/dist/blueprints/GLO_logisticPurchaseOrder.js +4 -0
  148. package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +6 -0
  149. package/dist/blueprints/GLO_logistic_waiting_hours.js +6 -0
  150. package/dist/blueprints/GLO_operationalDefault.d.ts +23 -0
  151. package/dist/blueprints/GLO_operationalDefault.js +25 -0
  152. package/dist/blueprints/GLO_outputDetailMail.d.ts +14 -0
  153. package/dist/blueprints/GLO_outputDetailMail.js +13 -0
  154. package/dist/blueprints/GLO_postalcode.d.ts +6 -0
  155. package/dist/blueprints/GLO_postalcode.js +6 -0
  156. package/dist/blueprints/GLO_priceDependency.d.ts +5 -0
  157. package/dist/blueprints/GLO_priceDependency.js +4 -0
  158. package/dist/blueprints/GLO_priceEntry.d.ts +17 -0
  159. package/dist/blueprints/GLO_priceEntry.js +17 -0
  160. package/dist/blueprints/GLO_priceRequest.d.ts +8 -0
  161. package/dist/blueprints/GLO_priceRequest.js +20 -0
  162. package/dist/blueprints/GLO_priceRequestLine.d.ts +12 -0
  163. package/dist/blueprints/GLO_priceRequestLine.js +17 -0
  164. package/dist/blueprints/GLO_principal.d.ts +9 -0
  165. package/dist/blueprints/GLO_principal.js +13 -0
  166. package/dist/blueprints/GLO_printPopup.d.ts +10 -0
  167. package/dist/blueprints/GLO_printPopup.js +62 -0
  168. package/dist/blueprints/GLO_production.d.ts +9 -0
  169. package/dist/blueprints/GLO_production.js +9 -0
  170. package/dist/blueprints/GLO_productionLineMaterial.d.ts +8 -0
  171. package/dist/blueprints/GLO_productionLineMaterial.js +13 -0
  172. package/dist/blueprints/GLO_productionMaterial.d.ts +5 -0
  173. package/dist/blueprints/GLO_productionMaterial.js +5 -0
  174. package/dist/blueprints/GLO_purchaseCosts.d.ts +6 -0
  175. package/dist/blueprints/GLO_purchaseCosts.js +9 -0
  176. package/dist/blueprints/GLO_purchaseInvoice.d.ts +12 -0
  177. package/dist/blueprints/GLO_purchaseInvoice.js +25 -0
  178. package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +8 -0
  179. package/dist/blueprints/GLO_purchaseInvoiceLine.js +13 -0
  180. package/dist/blueprints/GLO_purchaseOrder.d.ts +14 -0
  181. package/dist/blueprints/GLO_purchaseOrder.js +25 -0
  182. package/dist/blueprints/GLO_purchaseOrderLine.d.ts +10 -0
  183. package/dist/blueprints/GLO_purchaseOrderLine.js +24 -0
  184. package/dist/blueprints/GLO_purchasePrices.d.ts +10 -0
  185. package/dist/blueprints/GLO_purchasePrices.js +10 -0
  186. package/dist/blueprints/GLO_quotation.d.ts +12 -0
  187. package/dist/blueprints/GLO_quotation.js +32 -0
  188. package/dist/blueprints/GLO_quotationLine.d.ts +12 -0
  189. package/dist/blueprints/GLO_quotationLine.js +28 -0
  190. package/dist/blueprints/GLO_receipt.d.ts +13 -0
  191. package/dist/blueprints/GLO_receipt.js +17 -0
  192. package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +8 -0
  193. package/dist/blueprints/GLO_receiptFromTempReceipt.js +8 -0
  194. package/dist/blueprints/GLO_receiptLine.d.ts +22 -0
  195. package/dist/blueprints/GLO_receiptLine.js +28 -0
  196. package/dist/blueprints/GLO_relationAddress.d.ts +26 -0
  197. package/dist/blueprints/GLO_relationAddress.js +58 -0
  198. package/dist/blueprints/GLO_relationBankAccount.d.ts +9 -0
  199. package/dist/blueprints/GLO_relationBankAccount.js +9 -0
  200. package/dist/blueprints/GLO_relationContact.d.ts +23 -0
  201. package/dist/blueprints/GLO_relationContact.js +45 -0
  202. package/dist/blueprints/GLO_relationGroupType.d.ts +7 -0
  203. package/dist/blueprints/GLO_relationGroupType.js +6 -0
  204. package/dist/blueprints/GLO_relations.d.ts +67 -0
  205. package/dist/blueprints/GLO_relations.js +186 -0
  206. package/dist/blueprints/GLO_relationtype.d.ts +15 -0
  207. package/dist/blueprints/GLO_relationtype.js +31 -0
  208. package/dist/blueprints/GLO_remarkType.d.ts +10 -0
  209. package/dist/blueprints/GLO_remarkType.js +9 -0
  210. package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +4 -0
  211. package/dist/blueprints/GLO_remarkTypeDefaultValue.js +14 -0
  212. package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +10 -0
  213. package/dist/blueprints/GLO_remarkTypeEntityType.js +9 -0
  214. package/dist/blueprints/GLO_representative.d.ts +7 -0
  215. package/dist/blueprints/GLO_representative.js +6 -0
  216. package/dist/blueprints/GLO_salesInvoice.d.ts +9 -0
  217. package/dist/blueprints/GLO_salesInvoice.js +15 -0
  218. package/dist/blueprints/GLO_salesInvoiceLine.d.ts +9 -0
  219. package/dist/blueprints/GLO_salesInvoiceLine.js +13 -0
  220. package/dist/blueprints/GLO_salesOrder.d.ts +13 -0
  221. package/dist/blueprints/GLO_salesOrder.js +25 -0
  222. package/dist/blueprints/GLO_salesOrderLine.d.ts +13 -0
  223. package/dist/blueprints/GLO_salesOrderLine.js +34 -0
  224. package/dist/blueprints/GLO_stockCorrection.d.ts +14 -0
  225. package/dist/blueprints/GLO_stockCorrection.js +24 -0
  226. package/dist/blueprints/GLO_stopSchedule.d.ts +4 -0
  227. package/dist/blueprints/GLO_stopSchedule.js +4 -0
  228. package/dist/blueprints/GLO_supplierArticle.d.ts +8 -0
  229. package/dist/blueprints/GLO_supplierArticle.js +8 -0
  230. package/dist/blueprints/GLO_tclSetting.d.ts +6 -0
  231. package/dist/blueprints/GLO_tclSetting.js +6 -0
  232. package/dist/blueprints/GLO_todo.d.ts +10 -0
  233. package/dist/blueprints/GLO_todo.js +21 -0
  234. package/dist/blueprints/GLO_todoSchedule.d.ts +23 -0
  235. package/dist/blueprints/GLO_todoSchedule.js +79 -0
  236. package/dist/blueprints/GLO_tractionDistance.d.ts +6 -0
  237. package/dist/blueprints/GLO_tractionDistance.js +6 -0
  238. package/dist/blueprints/GLO_transportOrder.d.ts +4 -0
  239. package/dist/blueprints/GLO_transportOrder.js +4 -0
  240. package/dist/blueprints/GLO_transportPrice.d.ts +18 -0
  241. package/dist/blueprints/GLO_transportPrice.js +34 -0
  242. package/dist/blueprints/GLO_transportRequirement.d.ts +18 -0
  243. package/dist/blueprints/GLO_transportRequirement.js +32 -0
  244. package/dist/blueprints/GLO_transportRequirementContainer.d.ts +8 -0
  245. package/dist/blueprints/GLO_transportRequirementContainer.js +8 -0
  246. package/dist/blueprints/GLO_transportRequirementGoods.d.ts +33 -0
  247. package/dist/blueprints/GLO_transportRequirementGoods.js +51 -0
  248. package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +6 -0
  249. package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +6 -0
  250. package/dist/blueprints/GLO_transportStock.d.ts +4 -0
  251. package/dist/blueprints/GLO_transportStock.js +4 -0
  252. package/dist/blueprints/GLO_visit.d.ts +9 -0
  253. package/dist/blueprints/GLO_visit.js +10 -0
  254. package/dist/blueprints/GLO_warehouseMove.d.ts +9 -0
  255. package/dist/blueprints/GLO_warehouseMove.js +9 -0
  256. package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +6 -0
  257. package/dist/blueprints/GLO_warehouseOrderSubline.js +11 -0
  258. package/dist/blueprints/GLO_workflowLoggingTable.d.ts +20 -0
  259. package/dist/blueprints/GLO_workflowLoggingTable.js +20 -0
  260. package/dist/blueprints/GLO_workflowVerification.d.ts +10 -0
  261. package/dist/blueprints/GLO_workflowVerification.js +19 -0
  262. package/dist/blueprints/GLO_zone.d.ts +9 -0
  263. package/dist/blueprints/GLO_zone.js +9 -0
  264. package/dist/blueprints/GLO_zone_postalcode.d.ts +12 -0
  265. package/dist/blueprints/GLO_zone_postalcode.js +10 -0
  266. package/dist/blueprints/GLO_zone_type.d.ts +8 -0
  267. package/dist/blueprints/GLO_zone_type.js +7 -0
  268. package/dist/blueprints/GLT_goods.d.ts +2 -0
  269. package/dist/blueprints/GLT_goods.js +12 -0
  270. package/dist/commands/FOB_commands.d.ts +124 -0
  271. package/dist/commands/FOB_commands.js +211 -0
  272. package/dist/commands/GLJ_commands.d.ts +28 -0
  273. package/dist/commands/GLJ_commands.js +40 -0
  274. package/dist/commands/GLO_commands.d.ts +685 -0
  275. package/dist/commands/GLO_commands.js +2319 -0
  276. package/dist/commands/GLS_commands.d.ts +63 -0
  277. package/dist/commands/GLS_commands.js +103 -0
  278. package/dist/commands/GLT_commands.d.ts +78 -0
  279. package/dist/commands/GLT_commands.js +148 -0
  280. package/dist/commands/POR_commands.d.ts +85 -0
  281. package/dist/commands/POR_commands.js +122 -0
  282. package/dist/config.d.ts +9 -0
  283. package/dist/config.js +115 -0
  284. package/dist/index.d.ts +2 -0
  285. package/dist/index.js +15 -0
  286. package/dist/plugins/prometheusWriter.d.ts +15 -0
  287. package/dist/plugins/prometheusWriter.js +111 -0
  288. package/dist/register.d.ts +8 -0
  289. package/dist/register.js +23 -0
  290. package/dist/tsHelper.d.ts +161 -0
  291. package/dist/tsHelper.js +294 -0
  292. package/dist/types.d.ts +363 -0
  293. package/dist/types.js +4 -0
  294. package/dist/websocketDetector.d.ts +71 -0
  295. package/dist/websocketDetector.js +1593 -0
  296. package/package.json +10 -2
  297. package/template/package.json +1 -1
@@ -0,0 +1,61 @@
1
+ import { close, open } from '../tsHelper.js';
2
+ const formName = 'ng$logistic_conn_schedule_times_dtl';
3
+ const addressFormName = 'ng$remark_dtl_logistic_conn_schedule_times';
4
+ const detailTabsName = 'tabs_70';
5
+ export const GLO_enterDepartureScheduleTimes = (obj) => {
6
+ // Data_cy has 2 inputs so we need the first one and use the raw command
7
+ cy.GLO_addInput([formName, 'departure_time'], obj.departureTime);
8
+ cy.GLO_addInput([formName, 'departure_time', 1], obj.departureTimezone);
9
+ cy.GLO_addInput([formName, 'arrival_time'], obj.arrivalTime);
10
+ cy.GLO_addInput([formName, 'arrival_time', 1], obj.arrivalTimezone);
11
+ typeIfPresent('arrival_relative_days', obj.arrivalRelativeDays);
12
+ typeIfPresent('embark_duration', obj.embarkDuration);
13
+ typeIfPresent('disembark_duration', obj.disembarkDuration);
14
+ cy.GLO_addInput([formName, 'pricing_group'], obj.pricingGroup);
15
+ typeIfPresent('first_drop_relative_days', obj.firstDropRelativeDays);
16
+ typeIfPresent('first_drop_time', obj.firstDropTime);
17
+ typeIfPresent('first_drop_dgn_relative_days', obj.firstDropDgnRelativeDays);
18
+ typeIfPresent('first_drop_dgn_time', obj.firstDropDgnTime);
19
+ typeIfPresent('last_drop_relative_days', obj.lastDropRelativeDays);
20
+ typeIfPresent('last_drop_time', obj.lastDropTime);
21
+ typeIfPresent('last_drop_dgn_relative_days', obj.lastDropDgnRelativeDays);
22
+ typeIfPresent('last_drop_dgn_time', obj.lastDropDgnTime);
23
+ typeIfPresent('last_drop_container_relative_days', obj.lastDropContainerRelativeDays);
24
+ typeIfPresent('last_drop_container_time', obj.lastDropContainerTime);
25
+ typeIfPresent('last_drop_trailer_relative_days', obj.lastDropTrailerRelativeDays);
26
+ typeIfPresent('last_drop_trailer_time', obj.lastDropTrailerTime);
27
+ typeIfPresent('available_after_arrival_time_relative_days', obj.availableAfterArrivalTimeRelativeDays);
28
+ typeIfPresent('available_lofo_after_arrival_time_relative_days', obj.availableLofoAfterArrivalTimeRelativeDays);
29
+ cy.GLO_addInput([formName, 'min_nr_of_containers'], obj.minNrOfContainers);
30
+ cy.GLO_addInput([formName, 'max_nr_of_containers'], obj.maxNrOfContainers);
31
+ cy.GLO_addInput([formName, 'min_nr_of_trailers'], obj.minNrOfTrailers);
32
+ cy.GLO_addInput([formName, 'max_nr_of_trailers'], obj.maxNrOfTrailers);
33
+ cy.GLO_addInput([formName, 'max_anti_theft_capacity'], obj.maxAntiTheftCapacity);
34
+ cy.GLO_addInput([formName, 'capacity_gross_weight'], obj.capacityGrossWeight);
35
+ cy.GLO_addInput([formName, 'capacity_gross_weight_unit_id'], obj.capacityGrossWeightUnitId);
36
+ typeIfPresent('booking_opening_relative_days', obj.bookingOpeningRelativeDays);
37
+ typeIfPresent('booking_opening_time', obj.bookingOpeningTime);
38
+ typeIfPresent('booking_closing_relative_days', obj.bookingClosingRelativeDays);
39
+ typeIfPresent('booking_closing_time', obj.bookingClosingTime);
40
+ cy.GLO_checkbox([formName, 'flag_operational_active'], obj.flagOperationalActive);
41
+ cy.GLO_checkbox([formName, 'flag_dgn_allowed'], obj.flagDgnAllowed);
42
+ cy.GLO_checkbox([formName, 'flag_dgn_limited_quantity_allowed'], obj.flagDgnLimitedQuantityAllowed);
43
+ cy.GLO_checkbox([formName, 'flag_waste_allowed'], obj.flagWasteAllowed);
44
+ cy.GLO_checkbox([formName, 'monday'], obj.flagMonday);
45
+ cy.GLO_checkbox([formName, 'tuesday'], obj.flagTuesday);
46
+ cy.GLO_checkbox([formName, 'wednesday'], obj.flagWednesday);
47
+ cy.GLO_checkbox([formName, 'thursday'], obj.flagThursday);
48
+ cy.GLO_checkbox([formName, 'friday'], obj.flagFriday);
49
+ cy.GLO_checkbox([formName, 'saturday'], obj.flagSaturday);
50
+ cy.GLO_checkbox([formName, 'sunday'], obj.flagSunday);
51
+ if (obj.remark) {
52
+ cy.GLO_selectTab([formName, detailTabsName], 'Remarks', open);
53
+ cy.GLO_addInput([addressFormName, 'local_LOG_CONN_SCHED_TIMES_REMARK'], obj.remark);
54
+ cy.GLO_selectTab([formName, detailTabsName], 'Remarks', close);
55
+ }
56
+ };
57
+ const typeIfPresent = (fieldName, value) => {
58
+ if (value) {
59
+ cy.GLO_getElement([formName, fieldName]).find('.dx-texteditor-input').type(value);
60
+ }
61
+ };
@@ -0,0 +1,7 @@
1
+ export type objDocument = {
2
+ documentGroup?: string;
3
+ documentType?: string;
4
+ customerApprovalUser?: string;
5
+ supplierApprovalUser?: string;
6
+ };
7
+ export declare const GLO_enterDocument: (obj: objDocument) => void;
@@ -0,0 +1,7 @@
1
+ export const GLO_enterDocument = (obj) => {
2
+ const formName = 'ng$document_dtl';
3
+ cy.GLO_addInput([formName, 'document_group_id'], obj.documentGroup);
4
+ cy.GLO_addInput([formName, 'document_type_id'], obj.documentType);
5
+ cy.GLO_addInput([formName, 'customer_approval_user'], obj.customerApprovalUser);
6
+ cy.GLO_addInput([formName, 'supplier_approval_user'], obj.supplierApprovalUser);
7
+ };
@@ -0,0 +1,4 @@
1
+ export type objDocumentAttachment = {
2
+ clientFilePath?: string;
3
+ };
4
+ export declare const GLO_enterDocumentAttachment: (obj: objDocumentAttachment) => void;
@@ -0,0 +1,4 @@
1
+ export const GLO_enterDocumentAttachment = (obj) => {
2
+ const formName = 'ng$document_attachment_dtl';
3
+ cy.GLO_addInput([formName, 'client_file_path'], obj.clientFilePath);
4
+ };
@@ -0,0 +1,5 @@
1
+ export type objDocumentDefinitionType = {
2
+ documentGroup?: string;
3
+ documentType?: string;
4
+ };
5
+ export declare const GLO_enterDocumentDefinitionType: (obj: objDocumentDefinitionType) => void;
@@ -0,0 +1,5 @@
1
+ export const GLO_enterDocumentDefinitionType = (obj) => {
2
+ const formName = 'ng$document_definition_entity_dtl';
3
+ cy.GLO_addInput([formName, 'document_group_id'], obj.documentGroup);
4
+ cy.GLO_addInput([formName, 'document_type_id'], obj.documentType);
5
+ };
@@ -0,0 +1,4 @@
1
+ export type objDocumentGroup = {
2
+ documentGroupCode?: string;
3
+ };
4
+ export declare const GLO_enterDocumentGroup: (obj: objDocumentGroup) => void;
@@ -0,0 +1,4 @@
1
+ export const GLO_enterDocumentGroup = (obj) => {
2
+ const formName = 'ng$document_group_dtl';
3
+ cy.GLO_addInput([formName, 'document_group_code'], obj.documentGroupCode);
4
+ };
@@ -0,0 +1,12 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objDocumentType = {
3
+ documentType?: string;
4
+ documentTypeStatus?: string;
5
+ referenceForClosingDate?: string;
6
+ offsetTimeReminderForClosingDate?: string;
7
+ incomingOutgoing?: string;
8
+ customerApprovalNeeded?: CheckState;
9
+ supplierApprovalNeeded?: CheckState;
10
+ visibleInCustomerPortal?: CheckState;
11
+ };
12
+ export declare const GLO_enterDocumentType: (obj: objDocumentType) => void;
@@ -0,0 +1,11 @@
1
+ export const GLO_enterDocumentType = (obj) => {
2
+ const formName = 'ng$document_type_dtl';
3
+ cy.GLO_addInput([formName, 'document_type_code'], obj.documentType);
4
+ cy.GLO_addInput([formName, 'document_type_status'], obj.documentTypeStatus);
5
+ cy.GLO_addInput([formName, 'reference_for_closing_date'], obj.referenceForClosingDate);
6
+ cy.GLO_addInput([formName, 'offset_time_reminder_for_closing_date'], obj.offsetTimeReminderForClosingDate);
7
+ cy.GLO_addInput([formName, 'incoming_outgoing'], obj.incomingOutgoing);
8
+ cy.GLO_checkbox([formName, 'customer_approval_needed'], obj.customerApprovalNeeded);
9
+ cy.GLO_checkbox([formName, 'supplier_approval_needed'], obj.supplierApprovalNeeded);
10
+ cy.GLO_checkbox([formName, 'visible_in_customer_portal'], obj.visibleInCustomerPortal);
11
+ };
@@ -0,0 +1,21 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ export type objCountry = {
3
+ countryCode?: string;
4
+ isoCountryCode?: string;
5
+ isoCountryCode3?: string;
6
+ vatPrefix?: string;
7
+ dialCode?: string;
8
+ isActive?: CheckState;
9
+ useCounties?: CheckState;
10
+ useStates?: CheckState;
11
+ streetFormat?: string;
12
+ addressBlockFormat?: string;
13
+ translation?: string;
14
+ stateName?: string;
15
+ stateCode?: string;
16
+ countyName?: string;
17
+ postalCode?: string;
18
+ city?: string;
19
+ contextCountryCode?: string;
20
+ };
21
+ export declare const GLO_enterCountry: (obj: objCountry, part?: string) => void;
@@ -0,0 +1,47 @@
1
+ import { close, open } from '../tsHelper.js';
2
+ const formName = 'ng$country_dtl';
3
+ const formState = 'ng$country_state_dtl';
4
+ const formPostalcode = 'ng$postalcode_dtl';
5
+ export const GLO_enterCountry = (obj, part = 'country') => {
6
+ switch (part) {
7
+ case 'state': {
8
+ cy.GLO_addInput([formState, 'textbox_state_name'], obj.stateName);
9
+ cy.GLO_addInput([formState, 'textbox_state_code'], obj.stateCode);
10
+ cy.GLO_addInput([formState, 'textbox_vat_prefix'], obj.vatPrefix);
11
+ break;
12
+ }
13
+ case 'county': {
14
+ cy.GLO_addInput(['ng$county_dtl', 'county'], obj.countyName);
15
+ break;
16
+ }
17
+ case 'postalCode': {
18
+ cy.GLO_addInput([formPostalcode, 'textbox_state'], obj.stateName);
19
+ cy.GLO_addInput([formPostalcode, 'county_id'], obj.countyName);
20
+ cy.GLO_addInput([formPostalcode, 'postalcode'], obj.postalCode);
21
+ cy.GLO_addInput([formPostalcode, 'city'], obj.city);
22
+ break;
23
+ }
24
+ default: {
25
+ cy.GLO_addInput([formName, 'country_code'], obj.countryCode);
26
+ cy.GLO_addInput([formName, 'iso_country_code'], obj.isoCountryCode);
27
+ cy.GLO_addInput([formName, 'iso_country_code_3'], obj.isoCountryCode3);
28
+ cy.GLO_addInput([formName, 'vat_prefix'], obj.vatPrefix);
29
+ cy.GLO_addInput([formName, 'international_dial_code'], obj.dialCode);
30
+ cy.GLO_checkbox([formName, 'is_active'], obj.isActive);
31
+ cy.GLO_checkbox([formName, 'flag_use_counties'], obj.useCounties);
32
+ cy.GLO_checkbox([formName, 'checkbox_use_states'], obj.useStates);
33
+ cy.GLO_addInput([formName, 'street_format'], obj.streetFormat);
34
+ cy.GLO_addInput([formName, 'textbox_addres_block_format'], obj.addressBlockFormat);
35
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Translations', open);
36
+ if (obj.translation !== undefined) {
37
+ cy.GLO_getElement(['ng$basetabletranslation_uuid_lst_tab', 'grid']).within(() => {
38
+ cy.get('.editable-field').each((field) => {
39
+ cy.wrap(field).dblclick().type(obj.translation);
40
+ });
41
+ });
42
+ }
43
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Translations', close);
44
+ break;
45
+ }
46
+ }
47
+ };
@@ -0,0 +1,8 @@
1
+ export type objDiscount = {
2
+ discountOrigin?: string;
3
+ discountType?: string;
4
+ relationCode?: string;
5
+ validFrom?: string;
6
+ discountPerc1?: number;
7
+ };
8
+ export declare const GLO_enterDiscount: (obj: objDiscount) => void;
@@ -0,0 +1,9 @@
1
+ import { input } from '../tsHelper.js';
2
+ export const GLO_enterDiscount = (obj) => {
3
+ const formName = 'ng$discounts_dtl';
4
+ cy.GLO_addInput([formName, 'discount_origin'], obj.discountOrigin);
5
+ cy.GLO_addInput([formName, 'discount_type'], obj.discountType);
6
+ cy.GLO_popupWindow([formName, 'btn_select_relation'], obj.relationCode);
7
+ cy.GLO_addDate(input, [formName, 'valid_from'], obj.validFrom);
8
+ cy.GLO_addInput([`${formName}_contractual`, 'discount_perc_1'], obj.discountPerc1);
9
+ };
@@ -0,0 +1,34 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ import { type objAddressPopup } from './GLO_addressPopup.js';
3
+ export type objEquipment = {
4
+ historyRemark?: string;
5
+ flagRentedOut?: CheckState;
6
+ buyer?: string;
7
+ equipmentCode?: string;
8
+ equipmentType?: string;
9
+ licensePlate?: string;
10
+ owner?: string;
11
+ equipmentCategory?: string;
12
+ inUseByRelation?: string;
13
+ flagIsActive?: CheckState;
14
+ seriesNr?: string;
15
+ lastKnownAddress?: objAddressPopup;
16
+ shipmentContainerType?: string;
17
+ shipmentContainerSubType?: string;
18
+ damaged?: CheckState;
19
+ temperatureControlled?: string;
20
+ rentedOutTo?: string;
21
+ oneTimeUse?: CheckState;
22
+ tarraWeight?: number;
23
+ flagHighValue?: CheckState;
24
+ exteriorHeight?: string | number;
25
+ roadTarra?: string | number;
26
+ flagDangerousGoods?: CheckState;
27
+ flagTemperatureContolledAllowed?: CheckState;
28
+ flagAlcoholAllowed?: CheckState;
29
+ flagWasteAllowed?: CheckState;
30
+ numberOfAxles?: string | number;
31
+ fuelType?: string;
32
+ euroClass?: string;
33
+ };
34
+ export declare const GLO_enterEquipment: (obj: objEquipment, tabName?: string) => void;
@@ -0,0 +1,55 @@
1
+ import { close, open } from '../tsHelper.js';
2
+ import { GLO_enterAddressPopup } from './GLO_addressPopup.js';
3
+ export const GLO_enterEquipment = (obj, tabName = 'tabs_70') => {
4
+ const formName = 'ng$equipment_dtl';
5
+ const generalFormName = 'ng$equipment_dtl_general';
6
+ // Relation information
7
+ cy.GLO_addInput([formName, 'equipment_code'], obj.equipmentCode);
8
+ cy.GLO_addInput([formName, 'equipment_category_id'], obj.equipmentCategory);
9
+ if (obj.equipmentCategory && obj.equipmentType)
10
+ cy.GLO_checkLoadingIndicator();
11
+ cy.GLO_addInput([formName, 'equipment_type_id'], obj.equipmentType);
12
+ cy.GLO_addInput([formName, 'shipment_container_type_id'], obj.shipmentContainerType);
13
+ cy.GLO_addInput([formName, 'shipment_container_subtype_id'], obj.shipmentContainerSubType);
14
+ cy.GLO_addInput([formName, 'series_nr'], obj.seriesNr);
15
+ cy.GLO_addInput([formName, 'tarra'], obj.tarraWeight);
16
+ cy.GLO_popupWindow([formName, 'owner_relation_id'], obj.owner, 'relation_code');
17
+ cy.GLO_addInput([formName, 'in_use_by_relation_id'], obj.inUseByRelation);
18
+ cy.GLO_checkbox([formName, 'flag_is_active'], obj.flagIsActive);
19
+ if (obj.lastKnownAddress) {
20
+ cy.GLO_clickButton([formName, 'last_known_address_id'], 'fa-search');
21
+ GLO_enterAddressPopup(obj.lastKnownAddress);
22
+ }
23
+ if (obj.damaged) {
24
+ cy.GLO_selectTab([formName, tabName], 'General', open);
25
+ cy.GLO_checkbox([generalFormName, 'flag_damaged'], obj.damaged);
26
+ cy.GLO_selectTab([formName, tabName], 'General', close);
27
+ }
28
+ if (obj.rentedOutTo) {
29
+ cy.GLO_selectTab([formName, tabName], 'General', open);
30
+ cy.GLO_popupWindow([generalFormName, 'rented_out_relation_id'], obj.rentedOutTo);
31
+ cy.GLO_selectTab([formName, tabName], 'General', close);
32
+ }
33
+ if (obj.oneTimeUse || obj.flagHighValue) {
34
+ cy.GLO_selectTab([formName, tabName], 'Container', open);
35
+ cy.GLO_checkbox([`${formName}_container`, 'one_time_use'], obj.oneTimeUse);
36
+ cy.GLO_checkbox([`${formName}_container`, 'flag_high_value'], obj.flagHighValue);
37
+ cy.GLO_selectTab([formName, tabName], 'Container', close);
38
+ }
39
+ // Road tab
40
+ if (obj.licensePlate || obj.exteriorHeight || obj.roadTarra) {
41
+ cy.GLO_selectTab(['ng$equipment_dtl', tabName], 'Road', open);
42
+ cy.GLO_addInput([`${formName}_road`, 'license_plate'], obj.licensePlate);
43
+ cy.GLO_addInput([`${formName}_road`, 'equipment_height'], obj.exteriorHeight);
44
+ cy.GLO_addInput([`${formName}_road`, 'Tarra'], obj.roadTarra);
45
+ cy.GLO_checkbox([`${formName}_road`, 'flag_dangerous_goods'], obj.flagDangerousGoods);
46
+ cy.GLO_checkbox([`${formName}_road`, 'flag_high_value'], obj.flagHighValue);
47
+ cy.GLO_checkbox([`${formName}_road`, 'flag_tcl_allowed'], obj.flagTemperatureContolledAllowed);
48
+ cy.GLO_checkbox([`${formName}_road`, 'flag_alcohol_allowed'], obj.flagAlcoholAllowed);
49
+ cy.GLO_checkbox([`${formName}_road`, 'flag_waste_allowed'], obj.flagWasteAllowed);
50
+ cy.GLO_addInput([`${formName}_road`, 'euro_class'], obj.euroClass);
51
+ cy.GLO_addInput([`${formName}_road`, 'fuel_type'], obj.fuelType);
52
+ cy.GLO_addInput([`${formName}_road`, 'nr_of_axles'], obj.numberOfAxles);
53
+ cy.GLO_selectTab(['ng$equipment_dtl', tabName], 'Road', close);
54
+ }
55
+ };
@@ -0,0 +1,15 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objEquipmentCategory = {
3
+ equipmentCategoryCode?: string;
4
+ default?: CheckState;
5
+ charter?: CheckState;
6
+ rail?: CheckState;
7
+ container?: CheckState;
8
+ towingVehicle?: CheckState;
9
+ road?: CheckState;
10
+ air?: CheckState;
11
+ ocean?: CheckState;
12
+ ferry?: CheckState;
13
+ inlandShipping?: CheckState;
14
+ };
15
+ export declare const GLO_enterEquipmentCategory: (obj: objEquipmentCategory) => void;
@@ -0,0 +1,14 @@
1
+ export const GLO_enterEquipmentCategory = (obj) => {
2
+ const formName = 'ng$equipment_category_dtl';
3
+ cy.GLO_addInput([formName, 'equipment_category_code'], obj.equipmentCategoryCode);
4
+ cy.GLO_checkbox([formName, 'checkbox_flag_default'], obj.default);
5
+ cy.GLO_checkbox([formName, 'checkbox_flag_charter'], obj.charter);
6
+ cy.GLO_checkbox([formName, 'checkbox_flag_rail'], obj.rail);
7
+ cy.GLO_checkbox([formName, 'checkbox_flag_container'], obj.container);
8
+ cy.GLO_checkbox([formName, 'checkbox_flag_towing_vehicle'], obj.towingVehicle);
9
+ cy.GLO_checkbox([formName, 'checkbox_flag_road'], obj.road);
10
+ cy.GLO_checkbox([formName, 'checkbox_flag_air'], obj.air);
11
+ cy.GLO_checkbox([formName, 'checkbox_flag_ocean'], obj.ocean);
12
+ cy.GLO_checkbox([formName, 'checkbox_flag_ferry'], obj.ferry);
13
+ cy.GLO_checkbox([formName, 'checkbox_flag_inland_shipping'], obj.inlandShipping);
14
+ };
@@ -0,0 +1,5 @@
1
+ export type objEquipmentEntity = {
2
+ equipmentCode?: string;
3
+ logisticContractDetailCode?: string;
4
+ };
5
+ export declare const GLO_enterEquipmentEntity: (obj: objEquipmentEntity) => void;
@@ -0,0 +1,5 @@
1
+ export const GLO_enterEquipmentEntity = (obj) => {
2
+ const formName = 'ng$equipment_entity_dtl';
3
+ cy.GLO_addInput([formName, 'equipment_code'], obj.equipmentCode);
4
+ cy.GLO_addInput([formName, 'logistic_contract_detail_code'], obj.logisticContractDetailCode);
5
+ };
@@ -0,0 +1,13 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ export type objEquipmentServiceCategory = {
3
+ serviceCategory?: string;
4
+ serviceType?: string;
5
+ lastService?: string;
6
+ nextService?: string;
7
+ temporaryDisabled?: CheckState;
8
+ serviceUpcoming?: CheckState;
9
+ serviceRequired?: CheckState;
10
+ serviceExceeded?: CheckState;
11
+ active?: CheckState;
12
+ };
13
+ export declare const GLO_enterEquipmentServiceCategory: (obj: objEquipmentServiceCategory) => void;
@@ -0,0 +1,13 @@
1
+ import { input } from '../tsHelper.js';
2
+ export const GLO_enterEquipmentServiceCategory = (obj) => {
3
+ const formName = 'ng$equipment_service_category$active_dtl';
4
+ cy.GLO_addDate(input, [formName, 'last_service_date'], obj.lastService);
5
+ cy.GLO_addDate(input, [formName, 'next_service_date'], obj.nextService);
6
+ cy.GLO_addInput([formName, 'service_category'], obj.serviceCategory);
7
+ cy.GLO_addInput([formName, 'service_type'], obj.serviceType);
8
+ cy.GLO_checkbox([formName, 'flag_temporarily_disabled'], obj.temporaryDisabled);
9
+ cy.GLO_checkbox([formName, 'flag_service_upcoming'], obj.serviceUpcoming);
10
+ cy.GLO_checkbox([formName, 'flag_service_required'], obj.serviceRequired);
11
+ cy.GLO_checkbox([formName, 'flag_service_exceeded'], obj.serviceExceeded);
12
+ cy.GLO_checkbox([formName, 'flag_active'], obj.active);
13
+ };
@@ -0,0 +1,21 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objEquipmentType = {
3
+ equipmentTypeCode: string;
4
+ equipmentCategoryCode?: string;
5
+ description?: string;
6
+ externalPlatform?: string;
7
+ classificationGroup?: string;
8
+ defaultLoadWeight?: number;
9
+ defaultLoadWeightUnit?: string;
10
+ transportMethod?: string;
11
+ charter?: CheckState;
12
+ rail?: CheckState;
13
+ container?: CheckState;
14
+ towingVehicle?: CheckState;
15
+ road?: CheckState;
16
+ air?: CheckState;
17
+ ocean?: CheckState;
18
+ ferry?: CheckState;
19
+ inlandShipping?: CheckState;
20
+ };
21
+ export declare const GLO_enterEquipmentType: (obj: objEquipmentType) => void;
@@ -0,0 +1,20 @@
1
+ export const GLO_enterEquipmentType = (obj) => {
2
+ const formName = 'ng$equipment_type_dtl';
3
+ cy.GLO_addInput([formName, 'textbox_equipment_category'], obj.equipmentCategoryCode);
4
+ cy.GLO_addInput([formName, 'equipment_type_code'], obj.equipmentTypeCode);
5
+ cy.GLO_addInput([formName, 'description'], obj.description);
6
+ cy.GLO_addInput([formName, 'external_platform'], obj.externalPlatform);
7
+ cy.GLO_addInput([formName, 'classification_group'], obj.classificationGroup);
8
+ cy.GLO_addInput([formName, 'default_load_weight'], obj.defaultLoadWeight);
9
+ cy.GLO_addInput([formName, 'weight_unit_id'], obj.defaultLoadWeightUnit);
10
+ cy.GLO_addInput([formName, 'transport_method'], obj.transportMethod);
11
+ cy.GLO_checkbox([formName, 'flag_charter'], obj.charter);
12
+ cy.GLO_checkbox([formName, 'flag_rail'], obj.rail);
13
+ cy.GLO_checkbox([formName, 'flag_container'], obj.container);
14
+ cy.GLO_checkbox([formName, 'flag_towing_vehicle'], obj.towingVehicle);
15
+ cy.GLO_checkbox([formName, 'flag_road'], obj.road);
16
+ cy.GLO_checkbox([formName, 'flag_air'], obj.air);
17
+ cy.GLO_checkbox([formName, 'flag_water'], obj.ocean);
18
+ cy.GLO_checkbox([formName, 'flag_ferry'], obj.ferry);
19
+ cy.GLO_checkbox([formName, 'flag_inland_shipping'], obj.inlandShipping);
20
+ };
@@ -0,0 +1,13 @@
1
+ import type { CheckState } from '../tsHelper.js';
2
+ export type objEquipmentTypeServiceCategory = {
3
+ equipmentCategoryCode?: string;
4
+ equipmentTypeCode?: string;
5
+ serviceCategoryCode: string;
6
+ serviceType?: string;
7
+ noAutomaticCalculation?: CheckState;
8
+ alertWindowUpcoming?: string;
9
+ alerWindowRequired?: string;
10
+ intervalWindow?: string;
11
+ intervalBase?: string;
12
+ };
13
+ export declare const GLO_enterEquipmentTypeServiceCategory: (obj: objEquipmentTypeServiceCategory) => void;
@@ -0,0 +1,12 @@
1
+ export const GLO_enterEquipmentTypeServiceCategory = (obj) => {
2
+ const formName = 'ng$equipment_type_service_category_dtl';
3
+ cy.GLO_addInput([formName, 'equipment_type'], obj.equipmentCategoryCode);
4
+ cy.GLO_popupWindow([formName, 'equipment_subtype'], obj.equipmentTypeCode);
5
+ cy.GLO_addInput([formName, 'service_category'], obj.serviceCategoryCode);
6
+ cy.GLO_addInput([formName, 'service_type'], obj.serviceType);
7
+ cy.GLO_checkbox([formName, 'flag_no_automatic_calculation'], obj.noAutomaticCalculation);
8
+ cy.GLO_addInput([formName, 'alert_window_upcoming'], obj.alertWindowUpcoming);
9
+ cy.GLO_addInput([formName, 'alert_window_required'], obj.alerWindowRequired);
10
+ cy.GLO_addInput([formName, 'interval_window'], obj.intervalWindow);
11
+ cy.GLO_addInput([formName, 'interval_base'], obj.intervalBase);
12
+ };
@@ -0,0 +1,46 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ type ParameterType = 'Attribute' | 'Relation' | 'Dynamic attribute';
3
+ type ValidationEvent = 'onPreSave' | 'onDataChange' | 'onEdit' | 'onNew' | 'onNew & onEdit' | 'onDuplicate' | 'onNew & onDuplicate' | 'onEdit & onDuplicate' | 'onNew & onEdit & onDuplicate';
4
+ type ValidationType = 'Content validation' | 'Default value' | 'Editable' | 'Mandatory';
5
+ type DefaultValueSetting = 'Always' | 'When blanc' | 'New' | 'When new and blanc';
6
+ export type objContentValidation = {
7
+ inputFormat?: string;
8
+ contentValidationSimple?: string;
9
+ contentValidationFormula?: string;
10
+ };
11
+ export type objDefaultValue = {
12
+ defaultValueSetting?: DefaultValueSetting;
13
+ defaultValueConditionSimple?: string;
14
+ defaultValueConditionFormula?: string;
15
+ defaultValueSimple?: string;
16
+ defaultValueFormula?: string;
17
+ };
18
+ export type objEditable = {
19
+ flagEditable?: CheckState;
20
+ editableConditionSimple?: string;
21
+ editableConditionFormula?: string;
22
+ };
23
+ export type objMandatory = {
24
+ flagMandatory?: CheckState;
25
+ mandatoryConditionSimple?: string;
26
+ mandatoryFormula?: string;
27
+ };
28
+ export type objFieldInputValidation = {
29
+ program?: string;
30
+ customView?: string;
31
+ userGroup?: string;
32
+ validFrom?: string;
33
+ validTill?: string;
34
+ validationType?: ValidationType;
35
+ setField?: string;
36
+ setFieldType?: ParameterType;
37
+ validationEvent?: ValidationEvent;
38
+ field?: string;
39
+ fieldType?: ParameterType;
40
+ contentValidation?: objContentValidation;
41
+ defaultValue?: objDefaultValue;
42
+ editable?: objEditable;
43
+ mandatory?: objMandatory;
44
+ };
45
+ export declare const GLO_enterFieldInputValidation: (obj: objFieldInputValidation) => void;
46
+ export {};
@@ -0,0 +1,73 @@
1
+ import { input, open } from '../tsHelper.js';
2
+ const formName = 'ng$field_input_validation_dtl';
3
+ export const GLO_enterFieldInputValidation = (obj) => {
4
+ cy.GLO_addInput([formName, 'program'], obj.program);
5
+ cy.GLO_popupWindow([formName, 'custom_view'], obj.customView);
6
+ cy.GLO_addInput([formName, 'sec_group_id'], obj.userGroup);
7
+ cy.GLO_addDate(input, [formName, 'valid_from'], obj.validFrom);
8
+ cy.GLO_addDate(input, [formName, 'valid_till'], obj.validTill);
9
+ cy.GLO_addInput([formName, 'validation_type'], obj.validationType);
10
+ if (obj.setField) {
11
+ cy.GLO_clickButton([formName, 'set_field'], 'fa-search');
12
+ if (obj.setFieldType) {
13
+ cy.GLO_addInput(['ng$field_input_validation_dataprovider_dlg', 'parameter_type'], obj.setFieldType);
14
+ }
15
+ cy.GLO_addInput(['ng$field_input_validation_dataprovider_dlg', 'parameter_attribute'], obj.setField);
16
+ cy.GLO_clickButton(['ng$field_input_validation_dataprovider_dlg', 'submit_btn']);
17
+ }
18
+ cy.GLO_addInput([formName, 'validation_event'], obj.validationEvent);
19
+ if (obj.field) {
20
+ cy.GLO_clickButton([formName, 'field'], 'fa-search');
21
+ if (obj.fieldType) {
22
+ cy.GLO_addInput(['ng$field_input_validation_dataprovider_dlg', 'parameter_type'], obj.fieldType);
23
+ }
24
+ cy.GLO_addInput(['ng$field_input_validation_dataprovider_dlg', 'parameter_attribute'], obj.field);
25
+ cy.GLO_clickButton(['ng$field_input_validation_dataprovider_dlg', 'submit_btn']);
26
+ }
27
+ // Content validation tab
28
+ if (obj.contentValidation) {
29
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Content validation', open);
30
+ enterContentValidation(obj.contentValidation);
31
+ }
32
+ // Default value tab
33
+ if (obj.defaultValue) {
34
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Default values', open);
35
+ enterDefaultValue(obj.defaultValue);
36
+ }
37
+ // Editable tab
38
+ if (obj.editable) {
39
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Editable', open);
40
+ enterEditable(obj.editable);
41
+ }
42
+ // Mandatory tab
43
+ if (obj.mandatory) {
44
+ cy.GLO_selectTab([formName, 'tabs_70'], 'Mandatory', open);
45
+ enterMandatory(obj.mandatory);
46
+ }
47
+ };
48
+ const enterContentValidation = (obj) => {
49
+ const tabFormName = 'ng$field_input_validation_dtl_content_validation';
50
+ cy.GLO_addInput([tabFormName, 'input_format'], obj.inputFormat);
51
+ cy.GLO_addInput([tabFormName, 'content_validation_simple'], obj.contentValidationSimple);
52
+ cy.GLO_popupWindow([tabFormName, 'content_validation_formula'], obj.contentValidationFormula);
53
+ };
54
+ const enterDefaultValue = (obj) => {
55
+ const tabFormName = 'ng$field_input_validation_dtl_default_value';
56
+ cy.GLO_addInput([tabFormName, 'default_value_setting'], obj.defaultValueSetting);
57
+ cy.GLO_addInput([tabFormName, 'default_value_condition_simple'], obj.defaultValueConditionSimple);
58
+ cy.GLO_popupWindow([tabFormName, 'default_value_condition_formula'], obj.defaultValueConditionFormula);
59
+ cy.GLO_addInput([tabFormName, 'default_value_simple'], obj.defaultValueSimple);
60
+ cy.GLO_popupWindow([tabFormName, 'default_value_formula'], obj.defaultValueFormula);
61
+ };
62
+ const enterEditable = (obj) => {
63
+ const tabFormName = 'ng$field_input_validation_dtl_editable';
64
+ cy.GLO_checkbox([tabFormName, 'flag_editable'], obj.flagEditable);
65
+ cy.GLO_addInput([tabFormName, 'editable_condition_simple'], obj.editableConditionSimple);
66
+ cy.GLO_popupWindow([tabFormName, 'editable_condition_formula'], obj.editableConditionFormula);
67
+ };
68
+ const enterMandatory = (obj) => {
69
+ const tabFormName = 'ng$field_input_validation_dtl_mandatory';
70
+ cy.GLO_checkbox([tabFormName, 'flag_mandatory'], obj.flagMandatory);
71
+ cy.GLO_addInput([tabFormName, 'mandatory_condition_simple'], obj.mandatoryConditionSimple);
72
+ cy.GLO_popupWindow([tabFormName, 'mandatory_formula'], obj.mandatoryFormula);
73
+ };
@@ -0,0 +1,9 @@
1
+ export type objFormula = {
2
+ formulaCode?: string;
3
+ formulaType?: string;
4
+ ticketNr?: string;
5
+ formula?: string;
6
+ featureCode?: string;
7
+ scenarioCode?: string;
8
+ };
9
+ export declare const GLO_enterFormula: (obj: objFormula) => void;
@@ -0,0 +1,9 @@
1
+ export const GLO_enterFormula = (obj) => {
2
+ const formName = 'ng$formula_dtl';
3
+ cy.GLO_addInput([formName, 'formula_code'], obj.formulaCode);
4
+ cy.GLO_addInput([formName, 'formula_type'], obj.formulaType);
5
+ cy.GLO_addInput([formName, 'ticket_nr'], obj.ticketNr);
6
+ cy.GLO_addInput([formName, 'formula'], obj.formula);
7
+ cy.GLO_addInput([formName, 'feature_code'], obj.featureCode);
8
+ cy.GLO_addInput([formName, 'scenario_code'], obj.scenarioCode);
9
+ };
@@ -0,0 +1,12 @@
1
+ export type objGang = {
2
+ type?: string;
3
+ status?: string;
4
+ terminal?: string;
5
+ foreman?: string;
6
+ tallyman?: string;
7
+ shiftDate?: string;
8
+ calendarDay?: string;
9
+ warehouse?: string;
10
+ description?: string;
11
+ };
12
+ export declare const GLO_createGang: (obj: objGang) => void;