@globisnv/cypress-core 0.0.1 → 0.0.2

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 (296) hide show
  1. package/README.md +1 -1
  2. package/package.json +7 -7
  3. package/dist/apiMethods/IGS_request.d.ts +0 -98
  4. package/dist/apiMethods/IGS_request.js +0 -161
  5. package/dist/apiMethods/IGS_response.d.ts +0 -47
  6. package/dist/apiMethods/IGS_response.js +0 -1
  7. package/dist/blueprints/GLO_addressPopup.d.ts +0 -45
  8. package/dist/blueprints/GLO_addressPopup.js +0 -96
  9. package/dist/blueprints/GLO_article.d.ts +0 -45
  10. package/dist/blueprints/GLO_article.js +0 -110
  11. package/dist/blueprints/GLO_articleLot.d.ts +0 -12
  12. package/dist/blueprints/GLO_articleLot.js +0 -23
  13. package/dist/blueprints/GLO_articleVersion.d.ts +0 -4
  14. package/dist/blueprints/GLO_articleVersion.js +0 -4
  15. package/dist/blueprints/GLO_attachmentPopup.d.ts +0 -9
  16. package/dist/blueprints/GLO_attachmentPopup.js +0 -10
  17. package/dist/blueprints/GLO_bankAccount.d.ts +0 -7
  18. package/dist/blueprints/GLO_bankAccount.js +0 -7
  19. package/dist/blueprints/GLO_billingProcess.d.ts +0 -4
  20. package/dist/blueprints/GLO_billingProcess.js +0 -4
  21. package/dist/blueprints/GLO_billingProposal.d.ts +0 -9
  22. package/dist/blueprints/GLO_billingProposal.js +0 -9
  23. package/dist/blueprints/GLO_cancel.d.ts +0 -7
  24. package/dist/blueprints/GLO_cancel.js +0 -7
  25. package/dist/blueprints/GLO_commandlist.d.ts +0 -10
  26. package/dist/blueprints/GLO_commandlist.js +0 -10
  27. package/dist/blueprints/GLO_complaint.d.ts +0 -27
  28. package/dist/blueprints/GLO_complaint.js +0 -51
  29. package/dist/blueprints/GLO_composition.d.ts +0 -14
  30. package/dist/blueprints/GLO_composition.js +0 -20
  31. package/dist/blueprints/GLO_consignment.d.ts +0 -61
  32. package/dist/blueprints/GLO_consignment.js +0 -104
  33. package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +0 -6
  34. package/dist/blueprints/GLO_consignmentContainerGroup.js +0 -6
  35. package/dist/blueprints/GLO_consignmentGoods.d.ts +0 -40
  36. package/dist/blueprints/GLO_consignmentGoods.js +0 -62
  37. package/dist/blueprints/GLO_consignmentHandling.d.ts +0 -4
  38. package/dist/blueprints/GLO_consignmentHandling.js +0 -4
  39. package/dist/blueprints/GLO_consignmentOrder.d.ts +0 -31
  40. package/dist/blueprints/GLO_consignmentOrder.js +0 -37
  41. package/dist/blueprints/GLO_consignmentPart.d.ts +0 -13
  42. package/dist/blueprints/GLO_consignmentPart.js +0 -13
  43. package/dist/blueprints/GLO_consignmentParts.d.ts +0 -5
  44. package/dist/blueprints/GLO_consignmentParts.js +0 -12
  45. package/dist/blueprints/GLO_consignmentPrice.d.ts +0 -11
  46. package/dist/blueprints/GLO_consignmentPrice.js +0 -19
  47. package/dist/blueprints/GLO_consignmentSupplier.d.ts +0 -6
  48. package/dist/blueprints/GLO_consignmentSupplier.js +0 -11
  49. package/dist/blueprints/GLO_contacts.d.ts +0 -10
  50. package/dist/blueprints/GLO_contacts.js +0 -14
  51. package/dist/blueprints/GLO_container.d.ts +0 -6
  52. package/dist/blueprints/GLO_container.js +0 -4
  53. package/dist/blueprints/GLO_contract.d.ts +0 -22
  54. package/dist/blueprints/GLO_contract.js +0 -30
  55. package/dist/blueprints/GLO_contractArticle.d.ts +0 -17
  56. package/dist/blueprints/GLO_contractArticle.js +0 -35
  57. package/dist/blueprints/GLO_contractArticleCost.d.ts +0 -5
  58. package/dist/blueprints/GLO_contractArticleCost.js +0 -8
  59. package/dist/blueprints/GLO_countryVatZone.d.ts +0 -8
  60. package/dist/blueprints/GLO_countryVatZone.js +0 -9
  61. package/dist/blueprints/GLO_currencyDeviation.d.ts +0 -14
  62. package/dist/blueprints/GLO_currencyDeviation.js +0 -15
  63. package/dist/blueprints/GLO_customerArticle.d.ts +0 -12
  64. package/dist/blueprints/GLO_customerArticle.js +0 -15
  65. package/dist/blueprints/GLO_customsFlow.d.ts +0 -8
  66. package/dist/blueprints/GLO_customsFlow.js +0 -19
  67. package/dist/blueprints/GLO_customsFlowDefinition.d.ts +0 -15
  68. package/dist/blueprints/GLO_customsFlowDefinition.js +0 -14
  69. package/dist/blueprints/GLO_customsUnion.d.ts +0 -4
  70. package/dist/blueprints/GLO_customsUnion.js +0 -4
  71. package/dist/blueprints/GLO_deliveryReceipt.d.ts +0 -10
  72. package/dist/blueprints/GLO_deliveryReceipt.js +0 -22
  73. package/dist/blueprints/GLO_departureSchedule.d.ts +0 -27
  74. package/dist/blueprints/GLO_departureSchedule.js +0 -57
  75. package/dist/blueprints/GLO_departureScheduleTimes.d.ts +0 -49
  76. package/dist/blueprints/GLO_departureScheduleTimes.js +0 -61
  77. package/dist/blueprints/GLO_document.d.ts +0 -7
  78. package/dist/blueprints/GLO_document.js +0 -7
  79. package/dist/blueprints/GLO_documentAttachment.d.ts +0 -4
  80. package/dist/blueprints/GLO_documentAttachment.js +0 -4
  81. package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +0 -5
  82. package/dist/blueprints/GLO_documentDefinitionEntity.js +0 -5
  83. package/dist/blueprints/GLO_documentGroup.d.ts +0 -4
  84. package/dist/blueprints/GLO_documentGroup.js +0 -4
  85. package/dist/blueprints/GLO_documentType.d.ts +0 -12
  86. package/dist/blueprints/GLO_documentType.js +0 -11
  87. package/dist/blueprints/GLO_enterCountry.d.ts +0 -21
  88. package/dist/blueprints/GLO_enterCountry.js +0 -47
  89. package/dist/blueprints/GLO_enterDiscount.d.ts +0 -8
  90. package/dist/blueprints/GLO_enterDiscount.js +0 -9
  91. package/dist/blueprints/GLO_equipment.d.ts +0 -34
  92. package/dist/blueprints/GLO_equipment.js +0 -55
  93. package/dist/blueprints/GLO_equipmentCategory.d.ts +0 -15
  94. package/dist/blueprints/GLO_equipmentCategory.js +0 -14
  95. package/dist/blueprints/GLO_equipmentEntity.d.ts +0 -5
  96. package/dist/blueprints/GLO_equipmentEntity.js +0 -5
  97. package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +0 -13
  98. package/dist/blueprints/GLO_equipmentServiceCategory.js +0 -13
  99. package/dist/blueprints/GLO_equipmentType.d.ts +0 -21
  100. package/dist/blueprints/GLO_equipmentType.js +0 -20
  101. package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +0 -13
  102. package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +0 -12
  103. package/dist/blueprints/GLO_fieldInputValidation.d.ts +0 -46
  104. package/dist/blueprints/GLO_fieldInputValidation.js +0 -73
  105. package/dist/blueprints/GLO_formula.d.ts +0 -9
  106. package/dist/blueprints/GLO_formula.js +0 -9
  107. package/dist/blueprints/GLO_gang.d.ts +0 -12
  108. package/dist/blueprints/GLO_gang.js +0 -12
  109. package/dist/blueprints/GLO_holiday.d.ts +0 -7
  110. package/dist/blueprints/GLO_holiday.js +0 -8
  111. package/dist/blueprints/GLO_journey.d.ts +0 -18
  112. package/dist/blueprints/GLO_journey.js +0 -24
  113. package/dist/blueprints/GLO_journeyStop.d.ts +0 -32
  114. package/dist/blueprints/GLO_journeyStop.js +0 -44
  115. package/dist/blueprints/GLO_layout.d.ts +0 -6
  116. package/dist/blueprints/GLO_layout.js +0 -6
  117. package/dist/blueprints/GLO_logging.d.ts +0 -9
  118. package/dist/blueprints/GLO_logging.js +0 -12
  119. package/dist/blueprints/GLO_logisticConnection.d.ts +0 -10
  120. package/dist/blueprints/GLO_logisticConnection.js +0 -11
  121. package/dist/blueprints/GLO_logisticConnectionType.d.ts +0 -5
  122. package/dist/blueprints/GLO_logisticConnectionType.js +0 -5
  123. package/dist/blueprints/GLO_logisticContract.d.ts +0 -28
  124. package/dist/blueprints/GLO_logisticContract.js +0 -80
  125. package/dist/blueprints/GLO_logisticContractDetail.d.ts +0 -42
  126. package/dist/blueprints/GLO_logisticContractDetail.js +0 -122
  127. package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +0 -11
  128. package/dist/blueprints/GLO_logisticContractDetailHandling.js +0 -14
  129. package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +0 -5
  130. package/dist/blueprints/GLO_logisticContractDetailItem.js +0 -8
  131. package/dist/blueprints/GLO_logisticContractItem.d.ts +0 -14
  132. package/dist/blueprints/GLO_logisticContractItem.js +0 -40
  133. package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +0 -4
  134. package/dist/blueprints/GLO_logisticContractItemActivity.js +0 -4
  135. package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +0 -7
  136. package/dist/blueprints/GLO_logisticContractItemSurcharge.js +0 -7
  137. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +0 -4
  138. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +0 -4
  139. package/dist/blueprints/GLO_logisticContractReference.d.ts +0 -4
  140. package/dist/blueprints/GLO_logisticContractReference.js +0 -4
  141. package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +0 -9
  142. package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +0 -8
  143. package/dist/blueprints/GLO_logisticLocation.d.ts +0 -7
  144. package/dist/blueprints/GLO_logisticLocation.js +0 -7
  145. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +0 -19
  146. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +0 -30
  147. package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +0 -4
  148. package/dist/blueprints/GLO_logisticPurchaseOrder.js +0 -4
  149. package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +0 -6
  150. package/dist/blueprints/GLO_logistic_waiting_hours.js +0 -6
  151. package/dist/blueprints/GLO_operationalDefault.d.ts +0 -23
  152. package/dist/blueprints/GLO_operationalDefault.js +0 -25
  153. package/dist/blueprints/GLO_outputDetailMail.d.ts +0 -14
  154. package/dist/blueprints/GLO_outputDetailMail.js +0 -13
  155. package/dist/blueprints/GLO_postalcode.d.ts +0 -6
  156. package/dist/blueprints/GLO_postalcode.js +0 -6
  157. package/dist/blueprints/GLO_priceDependency.d.ts +0 -5
  158. package/dist/blueprints/GLO_priceDependency.js +0 -4
  159. package/dist/blueprints/GLO_priceEntry.d.ts +0 -17
  160. package/dist/blueprints/GLO_priceEntry.js +0 -17
  161. package/dist/blueprints/GLO_priceRequest.d.ts +0 -8
  162. package/dist/blueprints/GLO_priceRequest.js +0 -20
  163. package/dist/blueprints/GLO_priceRequestLine.d.ts +0 -12
  164. package/dist/blueprints/GLO_priceRequestLine.js +0 -17
  165. package/dist/blueprints/GLO_principal.d.ts +0 -9
  166. package/dist/blueprints/GLO_principal.js +0 -13
  167. package/dist/blueprints/GLO_printPopup.d.ts +0 -10
  168. package/dist/blueprints/GLO_printPopup.js +0 -62
  169. package/dist/blueprints/GLO_production.d.ts +0 -9
  170. package/dist/blueprints/GLO_production.js +0 -9
  171. package/dist/blueprints/GLO_productionLineMaterial.d.ts +0 -8
  172. package/dist/blueprints/GLO_productionLineMaterial.js +0 -13
  173. package/dist/blueprints/GLO_productionMaterial.d.ts +0 -5
  174. package/dist/blueprints/GLO_productionMaterial.js +0 -5
  175. package/dist/blueprints/GLO_purchaseCosts.d.ts +0 -6
  176. package/dist/blueprints/GLO_purchaseCosts.js +0 -9
  177. package/dist/blueprints/GLO_purchaseInvoice.d.ts +0 -12
  178. package/dist/blueprints/GLO_purchaseInvoice.js +0 -25
  179. package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +0 -8
  180. package/dist/blueprints/GLO_purchaseInvoiceLine.js +0 -13
  181. package/dist/blueprints/GLO_purchaseOrder.d.ts +0 -14
  182. package/dist/blueprints/GLO_purchaseOrder.js +0 -25
  183. package/dist/blueprints/GLO_purchaseOrderLine.d.ts +0 -10
  184. package/dist/blueprints/GLO_purchaseOrderLine.js +0 -24
  185. package/dist/blueprints/GLO_purchasePrices.d.ts +0 -10
  186. package/dist/blueprints/GLO_purchasePrices.js +0 -10
  187. package/dist/blueprints/GLO_quotation.d.ts +0 -12
  188. package/dist/blueprints/GLO_quotation.js +0 -32
  189. package/dist/blueprints/GLO_quotationLine.d.ts +0 -12
  190. package/dist/blueprints/GLO_quotationLine.js +0 -28
  191. package/dist/blueprints/GLO_receipt.d.ts +0 -13
  192. package/dist/blueprints/GLO_receipt.js +0 -17
  193. package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +0 -8
  194. package/dist/blueprints/GLO_receiptFromTempReceipt.js +0 -8
  195. package/dist/blueprints/GLO_receiptLine.d.ts +0 -22
  196. package/dist/blueprints/GLO_receiptLine.js +0 -28
  197. package/dist/blueprints/GLO_relationAddress.d.ts +0 -26
  198. package/dist/blueprints/GLO_relationAddress.js +0 -58
  199. package/dist/blueprints/GLO_relationBankAccount.d.ts +0 -9
  200. package/dist/blueprints/GLO_relationBankAccount.js +0 -9
  201. package/dist/blueprints/GLO_relationContact.d.ts +0 -23
  202. package/dist/blueprints/GLO_relationContact.js +0 -45
  203. package/dist/blueprints/GLO_relationGroupType.d.ts +0 -7
  204. package/dist/blueprints/GLO_relationGroupType.js +0 -6
  205. package/dist/blueprints/GLO_relations.d.ts +0 -67
  206. package/dist/blueprints/GLO_relations.js +0 -186
  207. package/dist/blueprints/GLO_relationtype.d.ts +0 -15
  208. package/dist/blueprints/GLO_relationtype.js +0 -31
  209. package/dist/blueprints/GLO_remarkType.d.ts +0 -10
  210. package/dist/blueprints/GLO_remarkType.js +0 -9
  211. package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +0 -4
  212. package/dist/blueprints/GLO_remarkTypeDefaultValue.js +0 -14
  213. package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +0 -10
  214. package/dist/blueprints/GLO_remarkTypeEntityType.js +0 -9
  215. package/dist/blueprints/GLO_representative.d.ts +0 -7
  216. package/dist/blueprints/GLO_representative.js +0 -6
  217. package/dist/blueprints/GLO_salesInvoice.d.ts +0 -9
  218. package/dist/blueprints/GLO_salesInvoice.js +0 -15
  219. package/dist/blueprints/GLO_salesInvoiceLine.d.ts +0 -9
  220. package/dist/blueprints/GLO_salesInvoiceLine.js +0 -13
  221. package/dist/blueprints/GLO_salesOrder.d.ts +0 -13
  222. package/dist/blueprints/GLO_salesOrder.js +0 -25
  223. package/dist/blueprints/GLO_salesOrderLine.d.ts +0 -13
  224. package/dist/blueprints/GLO_salesOrderLine.js +0 -34
  225. package/dist/blueprints/GLO_stockCorrection.d.ts +0 -14
  226. package/dist/blueprints/GLO_stockCorrection.js +0 -24
  227. package/dist/blueprints/GLO_stopSchedule.d.ts +0 -4
  228. package/dist/blueprints/GLO_stopSchedule.js +0 -4
  229. package/dist/blueprints/GLO_supplierArticle.d.ts +0 -8
  230. package/dist/blueprints/GLO_supplierArticle.js +0 -8
  231. package/dist/blueprints/GLO_tclSetting.d.ts +0 -6
  232. package/dist/blueprints/GLO_tclSetting.js +0 -6
  233. package/dist/blueprints/GLO_todo.d.ts +0 -10
  234. package/dist/blueprints/GLO_todo.js +0 -21
  235. package/dist/blueprints/GLO_todoSchedule.d.ts +0 -23
  236. package/dist/blueprints/GLO_todoSchedule.js +0 -79
  237. package/dist/blueprints/GLO_tractionDistance.d.ts +0 -6
  238. package/dist/blueprints/GLO_tractionDistance.js +0 -6
  239. package/dist/blueprints/GLO_transportOrder.d.ts +0 -4
  240. package/dist/blueprints/GLO_transportOrder.js +0 -4
  241. package/dist/blueprints/GLO_transportPrice.d.ts +0 -18
  242. package/dist/blueprints/GLO_transportPrice.js +0 -34
  243. package/dist/blueprints/GLO_transportRequirement.d.ts +0 -18
  244. package/dist/blueprints/GLO_transportRequirement.js +0 -32
  245. package/dist/blueprints/GLO_transportRequirementContainer.d.ts +0 -8
  246. package/dist/blueprints/GLO_transportRequirementContainer.js +0 -8
  247. package/dist/blueprints/GLO_transportRequirementGoods.d.ts +0 -33
  248. package/dist/blueprints/GLO_transportRequirementGoods.js +0 -51
  249. package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +0 -6
  250. package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +0 -6
  251. package/dist/blueprints/GLO_transportStock.d.ts +0 -4
  252. package/dist/blueprints/GLO_transportStock.js +0 -4
  253. package/dist/blueprints/GLO_visit.d.ts +0 -9
  254. package/dist/blueprints/GLO_visit.js +0 -10
  255. package/dist/blueprints/GLO_warehouseMove.d.ts +0 -9
  256. package/dist/blueprints/GLO_warehouseMove.js +0 -9
  257. package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +0 -6
  258. package/dist/blueprints/GLO_warehouseOrderSubline.js +0 -11
  259. package/dist/blueprints/GLO_workflowLoggingTable.d.ts +0 -20
  260. package/dist/blueprints/GLO_workflowLoggingTable.js +0 -20
  261. package/dist/blueprints/GLO_workflowVerification.d.ts +0 -10
  262. package/dist/blueprints/GLO_workflowVerification.js +0 -19
  263. package/dist/blueprints/GLO_zone.d.ts +0 -9
  264. package/dist/blueprints/GLO_zone.js +0 -9
  265. package/dist/blueprints/GLO_zone_postalcode.d.ts +0 -12
  266. package/dist/blueprints/GLO_zone_postalcode.js +0 -10
  267. package/dist/blueprints/GLO_zone_type.d.ts +0 -8
  268. package/dist/blueprints/GLO_zone_type.js +0 -7
  269. package/dist/blueprints/GLT_goods.d.ts +0 -2
  270. package/dist/blueprints/GLT_goods.js +0 -12
  271. package/dist/commands/FOB_commands.d.ts +0 -124
  272. package/dist/commands/FOB_commands.js +0 -211
  273. package/dist/commands/GLJ_commands.d.ts +0 -28
  274. package/dist/commands/GLJ_commands.js +0 -40
  275. package/dist/commands/GLO_commands.d.ts +0 -685
  276. package/dist/commands/GLO_commands.js +0 -2315
  277. package/dist/commands/GLS_commands.d.ts +0 -63
  278. package/dist/commands/GLS_commands.js +0 -103
  279. package/dist/commands/GLT_commands.d.ts +0 -78
  280. package/dist/commands/GLT_commands.js +0 -148
  281. package/dist/commands/POR_commands.d.ts +0 -85
  282. package/dist/commands/POR_commands.js +0 -122
  283. package/dist/config.d.ts +0 -9
  284. package/dist/config.js +0 -115
  285. package/dist/index.d.ts +0 -2
  286. package/dist/index.js +0 -15
  287. package/dist/plugins/prometheusWriter.d.ts +0 -15
  288. package/dist/plugins/prometheusWriter.js +0 -111
  289. package/dist/register.d.ts +0 -8
  290. package/dist/register.js +0 -23
  291. package/dist/tsHelper.d.ts +0 -161
  292. package/dist/tsHelper.js +0 -294
  293. package/dist/types.d.ts +0 -363
  294. package/dist/types.js +0 -4
  295. package/dist/websocketDetector.d.ts +0 -71
  296. package/dist/websocketDetector.js +0 -1593
package/dist/tsHelper.js DELETED
@@ -1,294 +0,0 @@
1
- //********************
2
- //* Extra typescript helpers for cypress
3
- //*********************
4
- import { v4 } from 'uuid';
5
- //*********************
6
- //* Constants
7
- //*********************
8
- // Object with extra parameters through jenkins as environment variables.
9
- export const extraParams = (Cypress.expose('extraParams') ?? {});
10
- export const cypressWebsocketDebug = extraParams.cypressWebsocketDebug === 'true';
11
- export const cypressWebsocketLoader = extraParams.cypressWebsocketLoader === 'true';
12
- //? Custom types
13
- export const input = 'input';
14
- export const select = 'select';
15
- export const top = 'top';
16
- export const bottom = 'bottom';
17
- export const equal = 'equal';
18
- export const notEqual = 'not.equal';
19
- export const contains = 'contains';
20
- export const greaterEqual = 'be.gte';
21
- export const span = 'span';
22
- export const row = 'row';
23
- export const gridInput = 'aggrid-texteditor';
24
- export const gridInputWithoutEnter = 'aggrid-texteditor-without-enter';
25
- export const gridDropDown = 'aggrid-typeahededitor';
26
- export const gridSelect = 'aggrid-selecteditor';
27
- //? String
28
- export const cypressRecords = 'DELETE_CYPRESS_RECORDS';
29
- export const leapworkRecords = 'DELETE_LEAPWORK_RECORDS';
30
- export const add = 'add';
31
- export const edit = 'edit';
32
- export const duplicate = 'duplicate';
33
- export const warning = 'Warning';
34
- export const error = 'Error';
35
- export const info = 'Info';
36
- export const partial = 'partial';
37
- export const exact = 'exact';
38
- export const servoyApi = '/servoy-service/api_v2/';
39
- export const svyNavSelection = 'ng$svy_nav_selection';
40
- export const defaultTimeout = 4000;
41
- export const open = true;
42
- export const close = false;
43
- export const check = 'true';
44
- export const unCheck = 'false';
45
- export const scrollIntoView = true;
46
- export const noExplicitScroll = false;
47
- export const disableLoadingIndicator = false;
48
- export const skipCheck = true;
49
- export const noSkipCheck = false;
50
- export const equalBool = true;
51
- export const noEqualBool = false;
52
- export const showInCommandLog = true;
53
- export const hideInCommandLog = false;
54
- export const useStoredValue = true;
55
- export const noStoredValue = false;
56
- export const defaultUsername = false;
57
- export const alternateUsername = true;
58
- export const disabled = false;
59
- export const enabled = true;
60
- export const isInvalid = true;
61
- export const isValid = false;
62
- export const buttonSearch = true;
63
- export const typeSearch = false;
64
- //? Branded flag helper for enabling present == enabled
65
- export const clearExistingFilters = true;
66
- //*********************
67
- //* Functions
68
- //*********************
69
- /**
70
- * Generates a date string based on the current date or a future date by adding days.
71
- *
72
- * @param {number} [daysToAdd] - Number of days to add to the current date. If not provided, returns today's date.
73
- * @returns {string} - The date string in 'DD/MM/YYYY' format.
74
- * @example
75
- * Returns today's date
76
- * const today = getDate();
77
- *
78
- * Returns a date 3 days from now
79
- * const futureDate = getDate(3);
80
- */
81
- export function getDate(daysToAdd) {
82
- const today = new Date();
83
- if (daysToAdd) {
84
- const futureDate = new Date(today); // Create a new date
85
- futureDate.setDate(today.getDate() + daysToAdd);
86
- const dd = String(futureDate.getDate()).padStart(2, '0');
87
- const mm = String(futureDate.getMonth() + 1).padStart(2, '0');
88
- const yyyy = futureDate.getFullYear();
89
- const futureDateString = `${dd}/${mm}/${yyyy}`;
90
- return futureDateString;
91
- }
92
- else {
93
- const dd = String(today.getDate()).padStart(2, '0');
94
- const mm = String(today.getMonth() + 1).padStart(2, '0');
95
- const yyyy = today.getFullYear();
96
- const todayString = `${dd}/${mm}/${yyyy}`;
97
- return todayString;
98
- }
99
- }
100
- export function getClearDataFormula(formulaName) {
101
- let correctFormula;
102
- switch (formulaName) {
103
- case 'DELETE_CYPRESS_RECORDS':
104
- correctFormula = DELETE_CYPRESS_RECORDS;
105
- break;
106
- case 'DELETE_LEAPWORK_RECORDS':
107
- correctFormula = DELETE_LEAPWORK_RECORDS;
108
- break;
109
- default:
110
- throw new Error('Incorrect type');
111
- }
112
- return correctFormula;
113
- }
114
- export function getRandomNumberInRange(startValue, endValue) {
115
- return Math.floor(Math.random() * (endValue - startValue + 1)) + startValue;
116
- }
117
- export function numberToCommaValues(inputNumber) {
118
- // Function to format number with comma's - The number we want to format to the following syntax: 10,00 instead of 10.
119
- inputNumber = Number(inputNumber.toString().concat('.00'));
120
- return inputNumber.toLocaleString('de-DE', { minimumFractionDigits: 2 });
121
- }
122
- /**
123
- * Generates a UUID (Universally Unique Identifier) using the v4 method.
124
- * @param {number} [length] - The desired length of the random string. If not provided, the full UUID is generated.
125
- * @returns {string} The generated UUID.
126
- */
127
- export function getUUID(length) {
128
- return length ? v4().replace(/-/g, '').substring(0, length).toUpperCase() : v4().toUpperCase();
129
- }
130
- /**
131
- * Converts a localized number to a standard format for calculations or formulas.
132
- * @param {string | number | undefined} value - The input value to be converted.
133
- * @returns {number} The converted number
134
- * @throws {Error} If the value is undefined or cannot be converted to a valid number. Useful to stop execution of the test if the value is not as expected.
135
- */
136
- export function parseLocalizedNumber(value) {
137
- if (value === undefined)
138
- throw new Error('Value is undefined');
139
- if (typeof value === 'number')
140
- return value;
141
- const numericString = value
142
- .replace(/[^0-9,.-]/g, '')
143
- .replace(/\.(?=\d{3})/g, '')
144
- .replace(/,(?=\d{3})/g, '')
145
- .replace(/,([^,]*)$/, '.$1');
146
- if (Number.isNaN(Number(numericString)))
147
- throw new Error(`Invalid number format: ${value}`);
148
- return Number(numericString);
149
- }
150
- /**
151
- *
152
- * Gets the jenkins build number to use as a UUID,
153
- * will fall back to a random generated 4-character UUID if not found.
154
- * @returns {string} CYP + build number or random 4-character UUID
155
- */
156
- export const getOrCreateUuid = (index) => {
157
- const envKey = index !== undefined ? `BUILD_UUID_${index}` : 'BUILD_UUID';
158
- let uuid = Cypress.expose(envKey);
159
- if (!uuid) {
160
- const buildNumber = Cypress.expose('BUILD_NUMBER');
161
- const suffix = index !== undefined ? `-${index}` : '';
162
- uuid = buildNumber ? `CYP${buildNumber}${suffix}` : `CYP${getUUID(4)}${suffix}`;
163
- Cypress.expose({ [envKey]: uuid });
164
- }
165
- return uuid;
166
- };
167
- /**
168
- * Returns the ISO 8601 week number for the given date.
169
- *
170
- * The calculation normalizes the input to UTC (so local time is ignored) and follows the ISO-8601
171
- * rule where weeks start on Monday and week 1 is the week containing the year's first Thursday.
172
- *
173
- * @param d - The Date for which to compute the ISO week number.
174
- * @returns The ISO week number (1..53) for the provided date.
175
- */
176
- export const getISOWeek = (d) => {
177
- const date = new Date(Date.UTC(d.getFullYear(), d.getMonth(), d.getDate()));
178
- const dayNum = date.getUTCDay() || 7;
179
- date.setUTCDate(date.getUTCDate() + 4 - dayNum);
180
- const yearStart = new Date(Date.UTC(date.getUTCFullYear(), 0, 1));
181
- return Math.ceil(((date.getTime() - yearStart.getTime()) / 86400000 + 1) / 7);
182
- };
183
- //*********************
184
- //* Formula
185
- //*********************
186
- export const DELETE_CYPRESS_RECORDS = `var _query = 'SELECT Name FROM sysobjects WHERE xtype = ? ';
187
- var _ds = globals.svy_db_dataset('globis_development', _query, ['U']);
188
- var _check_query, _check_args, _check_ds;
189
- var _delete_query , _delete_args, _ok;
190
-
191
- for(var i = 1 ; i <= _ds.getMaxRowIndex() ; i++)
192
- {
193
- _check_query = 'SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = ? AND COLUMN_NAME = ?'
194
- _check_args = [_ds.getValue(i,1), 'sys_creationuser']
195
- _check_ds = globals.svy_db_dataset('globis_development', _check_query, _check_args);
196
- if(_check_ds.getMaxRowIndex() > 0)
197
- {
198
- _delete_query = 'DELETE FROM ' + _ds.getValue(i,1) + ' WHERE lower(sys_creationuser) = \\'cypress\\' '
199
- _delete_args = []
200
- _ok = globals.svy_db_sql('globis_development', 'environment', _delete_query, _delete_args);
201
- }
202
- }
203
-
204
- var _result = scopes.globals.openCurrentPeriod();
205
-
206
- $R{true}`;
207
- export const DELETE_LEAPWORK_RECORDS = `var _query = 'SELECT Name FROM sysobjects WHERE xtype = ? ';
208
- var _ds = globals.svy_db_dataset('globis_development', _query, ['U']);
209
- var _check_query, _check_args, _check_ds;
210
- var _delete_query , _delete_args, _ok;
211
-
212
- for(var i = 1 ; i <= _ds.getMaxRowIndex() ; i++)
213
- {
214
- _check_query = 'SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = ? AND COLUMN_NAME = ?'
215
- _check_args = [_ds.getValue(i,1), 'sys_creationuser']
216
- _check_ds = globals.svy_db_dataset('globis_development', _check_query, _check_args);
217
- if(_check_ds.getMaxRowIndex() > 0)
218
- {
219
- _delete_query = 'DELETE FROM ' + _ds.getValue(i,1) + ' WHERE lower(sys_creationuser) = \\'leapwork\\' '
220
- _delete_args = []
221
- _ok = globals.svy_db_sql('globis_development', 'environment', _delete_query, _delete_args);
222
- }
223
- }
224
-
225
- var _result = scopes.globals.openCurrentPeriod();
226
-
227
- $R{true}`;
228
- export const S3_PLUGIN_TEST = (key, secret) => `const _key = '${key}';
229
- const _secret = '${secret}';
230
-
231
- const s3_object = plugins.globisS3.createS3Object(_key, _secret);
232
-
233
- const _bucket = 'globis-ml';
234
- const _folder = 'jee_test';
235
- const _imagename = 'CONTRIBUTING.md';
236
- const _path_to_image_s3 = \`$\{_folder}/$\{_imagename}\`;
237
- const _path_to_image_local = '/usr/local/tomcat/CONTRIBUTING.md';
238
- const _path_to_image_s3_temp = \`TEMP/\${_imagename}\`;
239
- const _danger_prefix = 'danger';
240
-
241
- s3_object.listBuckets();
242
-
243
- s3_object.downloadObject(_bucket, _path_to_image_s3);
244
-
245
- s3_object.downloadFolder(_bucket, _folder);
246
-
247
- s3_object.deleteObject(_bucket, _path_to_image_s3);
248
-
249
- s3_object.uploadObject(_bucket, _path_to_image_s3, _path_to_image_local);
250
-
251
- s3_object.getPresignedUrl(_bucket, _path_to_image_s3);
252
-
253
- s3_object.getPresignedUrlFolder(_bucket, _folder);
254
-
255
- s3_object.copyObject(_bucket, _path_to_image_s3, _bucket, _path_to_image_s3_temp);
256
-
257
- s3_object.copyObject(_bucket, _path_to_image_s3_temp, _bucket, _path_to_image_s3);
258
-
259
- s3_object.listBucketObjects(_bucket);
260
-
261
- s3_object.listBucketObjectsFolderObj(_bucket, _folder);
262
-
263
- s3_object.listBucketObjectsFolder(_bucket, _folder);
264
-
265
- s3_object.listKeysInDirectory(_bucket, _danger_prefix);
266
-
267
- s3_object.getJSONStructureBucket(_bucket);
268
-
269
- s3_object.getJSONfolder(_bucket, _folder);
270
-
271
- globals.svy_fw_infomessage('S3 plugin test completed');`;
272
- export const LOG_PLUGIN_TEST = `plugins.globisLog.trace('Test trace');
273
-
274
- plugins.globisLog.debug('Test debug');
275
-
276
- plugins.globisLog.info('Test info');
277
-
278
- plugins.globisLog.warn('Test warn');
279
-
280
- plugins.globisLog.error('Test error');
281
-
282
- plugins.globisLog.fatal('Test fatal');
283
-
284
- plugins.globisLog.getLoggers();
285
-
286
- plugins.globisLog.getLogger('New Logger');
287
-
288
- plugins.globisLog.createLogger('New Logger');
289
-
290
- scopes.Log.info(plugins.globisLog.getVersion());
291
-
292
- scopes.Log.info(plugins.globisLog.getLog4jVersion());
293
-
294
- globals.svy_fw_infomessage('Log plugin test completed');`;
package/dist/types.d.ts DELETED
@@ -1,363 +0,0 @@
1
- type SaveData<T extends Record<string, string | number>> = Record<string, Partial<T>>;
2
- type selectorType = (string | number)[];
3
- type baseDatacontrolViewerButtonType = 'btnAdd' | 'btnEdit' | 'btnDelete' | 'btnDuplicate' | 'btnPrint' | 'btnMail' | 'btnSave' | 'btnCancel' | 'btnMenu' | 'btnClearAllFilters';
4
- type addDateType = 'input' | 'select';
5
- type popupType = 'Info' | 'Warning' | 'Error';
6
- type matchType = 'exact' | 'partial';
7
- type clickRowType = 'row' | 'span';
8
- type topBottomType = 'top' | 'bottom';
9
- type checkOperatorType = 'equal' | 'not.equal' | 'contains' | 'be.gte';
10
- type customValueTypeUndefined = customValueType | undefined;
11
- type deleteRecordsType = 'DELETE_CYPRESS_RECORDS' | 'DELETE_LEAPWORK_RECORDS';
12
- type viewModeButtonType = 'btnList' | 'btnDetail';
13
- type datacontrolbuttonType = baseDatacontrolViewerButtonType | viewModeButtonType | 'btnPrev' | 'btnNext' | 'btnAll' | 'btnPivot' | 'btnAttachment' | 'btnAddMode' | 'btnEditMode' | 'btnDeleteMode' | 'btnDeeplink' | 'btnExtendedSearch' | 'btnCustomViews' | 'btnFilter' | 'btnClearAllFilters';
14
- type checkValueInGridType = string | string[] | number;
15
- type selectMenuButtonLeftType = 'home' | 'settings' | 'help' | 'support' | 'excel' | 'info' | 'refresh' | 'query' | 'clients' | 'users' | 'theme';
16
- type urlTypeType = 'online' | 'pos' | 'globgate' | 'globjob' | 'globscan' | 'portal' | 'carrier' | 'globtrace' | 'external_portal' | 'globtake' | 'globis_external_portal';
17
- type customValueType = JQuery | string | number;
18
- type gridInputType = 'aggrid-texteditor' | 'aggrid-typeahededitor' | 'aggrid-selecteditor' | 'aggrid-texteditor-without-enter';
19
- type filterGridTypes = 'Contains' | 'Does not contain' | 'Equals' | 'Does not equal' | 'Begins with' | 'Ends with' | 'Blank' | 'Not blank';
20
- type FilterValue = number | string[];
21
- type TreeListFilters = {
22
- [key: string]: FilterValue;
23
- };
24
- type customviewType = 'Detail' | 'List' | 'Dialog' | 'Selector' | 'Pivot';
25
- declare const flagBrand: unique symbol;
26
- type Flag<Name extends string> = true & {
27
- readonly [flagBrand]: Name;
28
- };
29
- declare namespace ExtendedFilter {
30
- export type LogicalOperator = 'And' | 'Or';
31
- export type RelationSelect = string | [string, ...string[]];
32
- export type ClauseType = 'Attribute' | 'Related field' | 'Dynamic attribute' | 'Group' | 'Nested group';
33
- export type dropDownTypes = 'field' | 'operator' | 'value' | 'logical-operator' | 'select';
34
- export type dateTypes = 'value-from' | 'value-to';
35
- export type fieldTypes = dropDownTypes | dateTypes;
36
- export type OperatorValueMap = {
37
- 'is empty': never;
38
- 'is not empty': never;
39
- today: never;
40
- 'this week': never;
41
- 'this month': never;
42
- between: [string, string] | [number, number];
43
- in: string | string[];
44
- 'not in': string | string[];
45
- before: string;
46
- after: string;
47
- '<= today +/- days': number;
48
- '>= today +/- days': number;
49
- contains: string | number;
50
- 'starts with': string | number;
51
- 'ends with': string | number;
52
- '>': number;
53
- '>=': number;
54
- '<': number;
55
- '<=': number;
56
- '=': boolean | string | number;
57
- '≠': boolean | string | number;
58
- };
59
- export type Operator = keyof OperatorValueMap;
60
- type ValuesProp<O extends Operator> = [OperatorValueMap[O]] extends [never] ? {
61
- values?: never;
62
- } : {
63
- values: OperatorValueMap[O];
64
- };
65
- type OperatorDiscriminated = {
66
- [O in Operator]: {
67
- operator: O;
68
- } & ValuesProp<O>;
69
- }[Operator];
70
- type BaseClause = {
71
- logicalOperator?: LogicalOperator;
72
- };
73
- export type AttributeLeaf = BaseClause & {
74
- type?: 'Attribute';
75
- field: string;
76
- } & OperatorDiscriminated;
77
- export type RelatedFieldLeaf = BaseClause & {
78
- type: 'Related field';
79
- relationSelect: RelationSelect;
80
- field: string;
81
- } & OperatorDiscriminated;
82
- export type DynamicAttributeLeaf = BaseClause & {
83
- type: 'Dynamic attribute';
84
- field: string;
85
- } & OperatorDiscriminated;
86
- export type Leaf = AttributeLeaf | RelatedFieldLeaf | DynamicAttributeLeaf;
87
- export type NestedGroup = BaseClause & {
88
- type: 'Nested group';
89
- values: Array<Leaf | NestedGroup>;
90
- };
91
- export type Group = BaseClause & {
92
- type: 'Group';
93
- values: Array<Leaf | NestedGroup>;
94
- };
95
- export type Node = Leaf | Group | NestedGroup;
96
- export type FilterTree = Node[];
97
- export {};
98
- }
99
- type extendedFilterType = ExtendedFilter.FilterTree;
100
- type fileType = 'xlsx' | 'pdf' | 'docx' | 'xls' | 'xml';
101
- type clickMenuType = 'sidemenu' | 'usermenu';
102
- type apiMethodType = 'POST' | 'GET' | 'PATCH' | 'DELETE' | 'PUT';
103
- type MonacoModel = {
104
- setValue(value: string): void;
105
- uri: {
106
- toString(): string;
107
- };
108
- };
109
- type MonacoWindow = Cypress.AUTWindow & {
110
- monaco: {
111
- editor: {
112
- getModels(): MonacoModel[];
113
- };
114
- };
115
- };
116
- /**
117
- * Extensions to the browser Window object used by the WebSocket spy and loader.
118
- * Written by `attachWebSocketSpy`; read by `WS_loadingCheck`.
119
- */
120
- interface Window {
121
- WebSocket: typeof WebSocket;
122
- wsMessages?: WebSocketMessageStore;
123
- wsMetrics?: WsDomMetric[];
124
- lockedRecordRetries?: number;
125
- cypressWSDialogHandlerDisabled?: boolean;
126
- wsPopupFormOpen?: boolean;
127
- }
128
- /** Metric sample for Prometheus remote write. Extra labels are encoded automatically. */
129
- interface WsDomMetric {
130
- name: string;
131
- value: number;
132
- labels: {
133
- hostname: string;
134
- cypress_action: string;
135
- formname: string;
136
- beanname: string;
137
- methodname: string;
138
- dataproviderid: string;
139
- [key: string]: string;
140
- };
141
- timestamp: number;
142
- }
143
- /** In-memory store for all recorded WebSocket frames on the current page. */
144
- type WebSocketMessageStore = {
145
- messages: WebSocketMessage[];
146
- wsConnected?: boolean;
147
- };
148
- /** A single recorded WebSocket frame. */
149
- type WebSocketMessage = {
150
- direction: 'incoming' | 'outgoing';
151
- data: Parameters<WebSocket['send']>[0];
152
- timestamp: number;
153
- };
154
- /**
155
- * A server-to-client Servoy WebSocket response.
156
- * May carry form data updates, a correlating smsgid, and side-effect service API calls
157
- * (e.g. open a dialog, show/hide the loading indicator, navigate the page).
158
- */
159
- type WebSocketServerResponse = {
160
- /** Form data updates keyed by form name. Used to detect data-sync reflection. */
161
- msg: {
162
- forms?: Record<string, FormData>;
163
- [key: string]: unknown;
164
- };
165
- /** Client message id this response belongs to. Correlates with the outgoing `cmsgid`. */
166
- cmsgid: number;
167
- /** Server message id — the value of the outgoing `cmsgid` echoed back. */
168
- smsgid?: number;
169
- ret: unknown;
170
- /** Sablo service calls piggy-backed on this response (dialogs, loading indicator, navigation…). */
171
- serviceApis?: ServiceApiCall[];
172
- };
173
- /**
174
- * Arguments for a Servoy dialog service call.
175
- * The structured form is [title, message, buttonConfig]; the loose form covers all other calls.
176
- */
177
- type DialogArgs = [string, string, {
178
- vEr: number;
179
- v: string[];
180
- }] | unknown[];
181
- /**
182
- * A Sablo service API call embedded in a WebSocketServerResponse.
183
- * Triggers UI side-effects: dialogs, loading-indicator changes, window lifecycle, navigation, etc.
184
- */
185
- type ServiceApiCall = {
186
- /** The Sablo service being called. */
187
- name: 'dialogs' | '$windowService' | '$sabloLoadingIndicator' | 'window' | '$applicationService' | '$sabloService' | '$typesRegistry';
188
- version?: string;
189
- /** The method invoked on the service. */
190
- call?: 'showQuestionDialog' | 'showInfoDialog' | 'showWarningDialog' | 'showErrorDialog' | 'showSelectDialog' | 'create' | 'show' | 'destroy' | 'showLoading' | 'hideLoading' | 'cancelFormPopupInternal' | 'setStyleSheets' | 'expectFormToShowOnClient' | 'addComponentClientSideSpecs' | 'updateController' | 'destroyController' | 'showUrl';
191
- args?: DialogArgs;
192
- };
193
- /**
194
- * A client-to-server WebSocket command from the Servoy Angular client (formService).
195
- * All user interactions flow through this type: clicks, data changes, form lifecycle events.
196
- */
197
- type WebSocketServiceCommand = {
198
- service: 'formService';
199
- methodname: 'executeEvent' | 'dataPush' | 'svyPush' | 'callServerSideApi' | 'formLoaded' | 'formUnloaded' | 'formvisibility';
200
- args: ServiceCommandArgs;
201
- cmsgid?: number;
202
- requestId?: string;
203
- msgid?: number;
204
- };
205
- /** Arguments payload for a formService WebSocket command. Fields vary per methodname. */
206
- type ServiceCommandArgs = {
207
- formname?: string;
208
- beanname?: string;
209
- event?: string;
210
- property?: string;
211
- /** Changed field data for dataPush/svyPush — dataProviderID holds the new value. */
212
- changes?: {
213
- dataProviderID?: string | number | null;
214
- [key: string]: unknown;
215
- };
216
- /** Positional arguments for callServerSideApi (e.g. cellClick params). */
217
- args?: Array<Record<string, unknown>>;
218
- methodName?: 'closeNode' | 'cellClick';
219
- [key: string]: unknown;
220
- };
221
- /**
222
- * Subset of incoming Servoy form data used to detect whether a pending data-change was
223
- * reflected in a server response. The deeply nested structure mirrors the Servoy wire protocol.
224
- */
225
- interface FormData {
226
- grid?: {
227
- columns?: {
228
- g?: Array<{
229
- d?: Array<{
230
- u?: Array<{
231
- k?: string;
232
- v?: {
233
- vpu?: Array<{
234
- rows?: Array<string | number | null>;
235
- [key: string]: unknown;
236
- }>;
237
- [key: string]: unknown;
238
- };
239
- [key: string]: unknown;
240
- }>;
241
- [key: string]: unknown;
242
- }>;
243
- [key: string]: unknown;
244
- }>;
245
- [key: string]: unknown;
246
- };
247
- [key: string]: unknown;
248
- };
249
- [key: string]: unknown;
250
- }
251
- /**
252
- * Discriminated union of the two parsed WebSocket frame shapes:
253
- * - WebSocketServerResponse — a server-to-client response
254
- * - WebSocketServiceCommand — a client-to-server formService command
255
- *
256
- * `direction` is never present on the parsed payload (it lives on WebSocketMessage).
257
- */
258
- type WebSocketMessageType = ({
259
- direction?: never;
260
- } & WebSocketServerResponse) | ({
261
- direction?: never;
262
- } & WebSocketServiceCommand);
263
- /**
264
- * Tracks a pending svyPush data-change that the loader is waiting to see reflected
265
- * in an incoming server response (form update) before resolving.
266
- */
267
- type PendingDataSync = {
268
- formBase: string;
269
- value: string | number | null;
270
- timestamp: number;
271
- isSvyPush?: boolean;
272
- beanname?: string;
273
- };
274
- /** Tracks a cellClick outgoing request that may result in a dialog or popup form opening. */
275
- interface CellClickData {
276
- timestamp: number;
277
- clickType: 'click' | 'doubleClick';
278
- formname: string;
279
- beanname: string;
280
- }
281
- /**
282
- * Internal state machine for a single WS_loadingCheck invocation.
283
- * Every field is initialised fresh on each call — there is no shared state between invocations.
284
- */
285
- type WebSocketLoaderState = {
286
- /** Outstanding outgoing requests awaiting a response. Key = RequestId, value = send timestamp. */
287
- pendingRequests: Map<string, number>;
288
- loadingIndicator: boolean;
289
- /**
290
- * Subset of pendingRequests whose response triggered a dialog.
291
- * These requests are "held" (not resolved) until the dialog is dismissed, at which point
292
- * the server sends the actual response.
293
- */
294
- heldRequests: Set<string>;
295
- /** SvyPush changes we sent and are waiting to see echoed back in an incoming form update. */
296
- pendingDataSync: Map<string, PendingDataSync>;
297
- /** Index into win.wsMessages.messages up to which frames have already been processed. */
298
- lastProcessedIndex: number;
299
- /** RequestId of the most recent tracked outgoing frame — used to correlate dialog responses. */
300
- lastOutgoingRequestId: string | null;
301
- /**
302
- * Maps `${formname}:${beanname}` → pending svyPush metadata.
303
- * When a matching executeEvent arrives (user confirmed the field change) the svyPush is resolved.
304
- */
305
- pendingSvyPushMap: Map<string, {
306
- timestamp: number;
307
- originalChangeKey: string;
308
- }>;
309
- windowDestroyDetected: boolean;
310
- windowDestroyTimestamp: number | null;
311
- /**
312
- * When true, the quiet period is extended to QUIET_PERIOD_EXTENDED_MS (500 ms) instead of
313
- * QUIET_PERIOD_DEFAULT_MS (200 ms). Set after closeNode or a dialog interaction, both of
314
- * which are typically followed by a burst of additional WebSocket activity.
315
- */
316
- extendedQuietPeriod: boolean;
317
- pendingCellClickRequests: Map<string, CellClickData>;
318
- lastDialogCreatedTimestamp: number | null;
319
- lastWsActivityTs: number;
320
- /**
321
- * ExecuteEvent requests sent from `_dlg` forms (dialog forms).
322
- * Bulk-resolved when the enclosing window is destroyed so that the button that closed
323
- * the dialog is not left as a dangling pending request.
324
- */
325
- pendingDialogFormRequests: Set<string>;
326
- popupOpenedByThisAction: boolean;
327
- /** Form names for which we are still awaiting a formLoaded message before resolving. */
328
- pendingFormLoads: Set<string>;
329
- expectFormShowCount: number;
330
- expectingFormLoaded: boolean;
331
- /** True when a showUrl(_self) signal was received — the page is about to navigate away. */
332
- navigatingAway: boolean;
333
- /**
334
- * Timestamp when a DOM `<loading-indicator>` element was first detected, or null when absent.
335
- * Used to show elapsed wait time in the Cypress log while Angular is rendering.
336
- */
337
- domLoadingIndicatorStart: number | null;
338
- };
339
- /** Configuration options for a single WS_loadingCheck call. */
340
- interface WebSocketLoaderOptions {
341
- /** Maximum ms to wait before throwing a timeout error. Default: 120 000. */
342
- timeout?: number;
343
- /**
344
- * When true, the loader will auto-dismiss Info dialogs.
345
- * When false/unset, the test is responsible for handling the dialog itself.
346
- * Can also be set globally per-test via WS_toggleDialogHandler.
347
- */
348
- enableAutoInfoDialog?: boolean;
349
- /** When true, enables debug logging for the loader. */
350
- debugMode?: boolean;
351
- /**
352
- * Overrides the quiet period (ms) that must elapse with no WS activity before resolving.
353
- * Defaults to 200ms. Does not affect the extended (500ms) or popup (2000ms) quiet periods.
354
- */
355
- quietPeriodMs?: number;
356
- }
357
- /**
358
- * The three message-id formats used by Servoy WebSocket commands.
359
- * - `cmsg:N` — from the `cmsgid` field on outgoing formService commands
360
- * - `req:S` — from the `requestId` field on outgoing commands
361
- * - `msg:N` — from the `msgid` field on outgoing commands
362
- */
363
- type RequestId = `cmsg:${number}` | `req:${string}` | `msg:${number}`;
package/dist/types.js DELETED
@@ -1,4 +0,0 @@
1
- "use strict";
2
- //*********************
3
- //* Custom types
4
- //*********************