@globisnv/cypress-core 0.0.1

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 (308) hide show
  1. package/README.md +255 -0
  2. package/bin/create-customer-repo.mjs +89 -0
  3. package/biome.json +49 -0
  4. package/dist/apiMethods/IGS_request.d.ts +98 -0
  5. package/dist/apiMethods/IGS_request.js +161 -0
  6. package/dist/apiMethods/IGS_response.d.ts +47 -0
  7. package/dist/apiMethods/IGS_response.js +1 -0
  8. package/dist/blueprints/GLO_addressPopup.d.ts +45 -0
  9. package/dist/blueprints/GLO_addressPopup.js +96 -0
  10. package/dist/blueprints/GLO_article.d.ts +45 -0
  11. package/dist/blueprints/GLO_article.js +110 -0
  12. package/dist/blueprints/GLO_articleLot.d.ts +12 -0
  13. package/dist/blueprints/GLO_articleLot.js +23 -0
  14. package/dist/blueprints/GLO_articleVersion.d.ts +4 -0
  15. package/dist/blueprints/GLO_articleVersion.js +4 -0
  16. package/dist/blueprints/GLO_attachmentPopup.d.ts +9 -0
  17. package/dist/blueprints/GLO_attachmentPopup.js +10 -0
  18. package/dist/blueprints/GLO_bankAccount.d.ts +7 -0
  19. package/dist/blueprints/GLO_bankAccount.js +7 -0
  20. package/dist/blueprints/GLO_billingProcess.d.ts +4 -0
  21. package/dist/blueprints/GLO_billingProcess.js +4 -0
  22. package/dist/blueprints/GLO_billingProposal.d.ts +9 -0
  23. package/dist/blueprints/GLO_billingProposal.js +9 -0
  24. package/dist/blueprints/GLO_cancel.d.ts +7 -0
  25. package/dist/blueprints/GLO_cancel.js +7 -0
  26. package/dist/blueprints/GLO_commandlist.d.ts +10 -0
  27. package/dist/blueprints/GLO_commandlist.js +10 -0
  28. package/dist/blueprints/GLO_complaint.d.ts +27 -0
  29. package/dist/blueprints/GLO_complaint.js +51 -0
  30. package/dist/blueprints/GLO_composition.d.ts +14 -0
  31. package/dist/blueprints/GLO_composition.js +20 -0
  32. package/dist/blueprints/GLO_consignment.d.ts +61 -0
  33. package/dist/blueprints/GLO_consignment.js +104 -0
  34. package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +6 -0
  35. package/dist/blueprints/GLO_consignmentContainerGroup.js +6 -0
  36. package/dist/blueprints/GLO_consignmentGoods.d.ts +40 -0
  37. package/dist/blueprints/GLO_consignmentGoods.js +62 -0
  38. package/dist/blueprints/GLO_consignmentHandling.d.ts +4 -0
  39. package/dist/blueprints/GLO_consignmentHandling.js +4 -0
  40. package/dist/blueprints/GLO_consignmentOrder.d.ts +31 -0
  41. package/dist/blueprints/GLO_consignmentOrder.js +37 -0
  42. package/dist/blueprints/GLO_consignmentPart.d.ts +13 -0
  43. package/dist/blueprints/GLO_consignmentPart.js +13 -0
  44. package/dist/blueprints/GLO_consignmentParts.d.ts +5 -0
  45. package/dist/blueprints/GLO_consignmentParts.js +12 -0
  46. package/dist/blueprints/GLO_consignmentPrice.d.ts +11 -0
  47. package/dist/blueprints/GLO_consignmentPrice.js +19 -0
  48. package/dist/blueprints/GLO_consignmentSupplier.d.ts +6 -0
  49. package/dist/blueprints/GLO_consignmentSupplier.js +11 -0
  50. package/dist/blueprints/GLO_contacts.d.ts +10 -0
  51. package/dist/blueprints/GLO_contacts.js +14 -0
  52. package/dist/blueprints/GLO_container.d.ts +6 -0
  53. package/dist/blueprints/GLO_container.js +4 -0
  54. package/dist/blueprints/GLO_contract.d.ts +22 -0
  55. package/dist/blueprints/GLO_contract.js +30 -0
  56. package/dist/blueprints/GLO_contractArticle.d.ts +17 -0
  57. package/dist/blueprints/GLO_contractArticle.js +35 -0
  58. package/dist/blueprints/GLO_contractArticleCost.d.ts +5 -0
  59. package/dist/blueprints/GLO_contractArticleCost.js +8 -0
  60. package/dist/blueprints/GLO_countryVatZone.d.ts +8 -0
  61. package/dist/blueprints/GLO_countryVatZone.js +9 -0
  62. package/dist/blueprints/GLO_currencyDeviation.d.ts +14 -0
  63. package/dist/blueprints/GLO_currencyDeviation.js +15 -0
  64. package/dist/blueprints/GLO_customerArticle.d.ts +12 -0
  65. package/dist/blueprints/GLO_customerArticle.js +15 -0
  66. package/dist/blueprints/GLO_customsFlow.d.ts +8 -0
  67. package/dist/blueprints/GLO_customsFlow.js +19 -0
  68. package/dist/blueprints/GLO_customsFlowDefinition.d.ts +15 -0
  69. package/dist/blueprints/GLO_customsFlowDefinition.js +14 -0
  70. package/dist/blueprints/GLO_customsUnion.d.ts +4 -0
  71. package/dist/blueprints/GLO_customsUnion.js +4 -0
  72. package/dist/blueprints/GLO_deliveryReceipt.d.ts +10 -0
  73. package/dist/blueprints/GLO_deliveryReceipt.js +22 -0
  74. package/dist/blueprints/GLO_departureSchedule.d.ts +27 -0
  75. package/dist/blueprints/GLO_departureSchedule.js +57 -0
  76. package/dist/blueprints/GLO_departureScheduleTimes.d.ts +49 -0
  77. package/dist/blueprints/GLO_departureScheduleTimes.js +61 -0
  78. package/dist/blueprints/GLO_document.d.ts +7 -0
  79. package/dist/blueprints/GLO_document.js +7 -0
  80. package/dist/blueprints/GLO_documentAttachment.d.ts +4 -0
  81. package/dist/blueprints/GLO_documentAttachment.js +4 -0
  82. package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +5 -0
  83. package/dist/blueprints/GLO_documentDefinitionEntity.js +5 -0
  84. package/dist/blueprints/GLO_documentGroup.d.ts +4 -0
  85. package/dist/blueprints/GLO_documentGroup.js +4 -0
  86. package/dist/blueprints/GLO_documentType.d.ts +12 -0
  87. package/dist/blueprints/GLO_documentType.js +11 -0
  88. package/dist/blueprints/GLO_enterCountry.d.ts +21 -0
  89. package/dist/blueprints/GLO_enterCountry.js +47 -0
  90. package/dist/blueprints/GLO_enterDiscount.d.ts +8 -0
  91. package/dist/blueprints/GLO_enterDiscount.js +9 -0
  92. package/dist/blueprints/GLO_equipment.d.ts +34 -0
  93. package/dist/blueprints/GLO_equipment.js +55 -0
  94. package/dist/blueprints/GLO_equipmentCategory.d.ts +15 -0
  95. package/dist/blueprints/GLO_equipmentCategory.js +14 -0
  96. package/dist/blueprints/GLO_equipmentEntity.d.ts +5 -0
  97. package/dist/blueprints/GLO_equipmentEntity.js +5 -0
  98. package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +13 -0
  99. package/dist/blueprints/GLO_equipmentServiceCategory.js +13 -0
  100. package/dist/blueprints/GLO_equipmentType.d.ts +21 -0
  101. package/dist/blueprints/GLO_equipmentType.js +20 -0
  102. package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +13 -0
  103. package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +12 -0
  104. package/dist/blueprints/GLO_fieldInputValidation.d.ts +46 -0
  105. package/dist/blueprints/GLO_fieldInputValidation.js +73 -0
  106. package/dist/blueprints/GLO_formula.d.ts +9 -0
  107. package/dist/blueprints/GLO_formula.js +9 -0
  108. package/dist/blueprints/GLO_gang.d.ts +12 -0
  109. package/dist/blueprints/GLO_gang.js +12 -0
  110. package/dist/blueprints/GLO_holiday.d.ts +7 -0
  111. package/dist/blueprints/GLO_holiday.js +8 -0
  112. package/dist/blueprints/GLO_journey.d.ts +18 -0
  113. package/dist/blueprints/GLO_journey.js +24 -0
  114. package/dist/blueprints/GLO_journeyStop.d.ts +32 -0
  115. package/dist/blueprints/GLO_journeyStop.js +44 -0
  116. package/dist/blueprints/GLO_layout.d.ts +6 -0
  117. package/dist/blueprints/GLO_layout.js +6 -0
  118. package/dist/blueprints/GLO_logging.d.ts +9 -0
  119. package/dist/blueprints/GLO_logging.js +12 -0
  120. package/dist/blueprints/GLO_logisticConnection.d.ts +10 -0
  121. package/dist/blueprints/GLO_logisticConnection.js +11 -0
  122. package/dist/blueprints/GLO_logisticConnectionType.d.ts +5 -0
  123. package/dist/blueprints/GLO_logisticConnectionType.js +5 -0
  124. package/dist/blueprints/GLO_logisticContract.d.ts +28 -0
  125. package/dist/blueprints/GLO_logisticContract.js +80 -0
  126. package/dist/blueprints/GLO_logisticContractDetail.d.ts +42 -0
  127. package/dist/blueprints/GLO_logisticContractDetail.js +122 -0
  128. package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +11 -0
  129. package/dist/blueprints/GLO_logisticContractDetailHandling.js +14 -0
  130. package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +5 -0
  131. package/dist/blueprints/GLO_logisticContractDetailItem.js +8 -0
  132. package/dist/blueprints/GLO_logisticContractItem.d.ts +14 -0
  133. package/dist/blueprints/GLO_logisticContractItem.js +40 -0
  134. package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +4 -0
  135. package/dist/blueprints/GLO_logisticContractItemActivity.js +4 -0
  136. package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +7 -0
  137. package/dist/blueprints/GLO_logisticContractItemSurcharge.js +7 -0
  138. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +4 -0
  139. package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +4 -0
  140. package/dist/blueprints/GLO_logisticContractReference.d.ts +4 -0
  141. package/dist/blueprints/GLO_logisticContractReference.js +4 -0
  142. package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +9 -0
  143. package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +8 -0
  144. package/dist/blueprints/GLO_logisticLocation.d.ts +7 -0
  145. package/dist/blueprints/GLO_logisticLocation.js +7 -0
  146. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +19 -0
  147. package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +30 -0
  148. package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +4 -0
  149. package/dist/blueprints/GLO_logisticPurchaseOrder.js +4 -0
  150. package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +6 -0
  151. package/dist/blueprints/GLO_logistic_waiting_hours.js +6 -0
  152. package/dist/blueprints/GLO_operationalDefault.d.ts +23 -0
  153. package/dist/blueprints/GLO_operationalDefault.js +25 -0
  154. package/dist/blueprints/GLO_outputDetailMail.d.ts +14 -0
  155. package/dist/blueprints/GLO_outputDetailMail.js +13 -0
  156. package/dist/blueprints/GLO_postalcode.d.ts +6 -0
  157. package/dist/blueprints/GLO_postalcode.js +6 -0
  158. package/dist/blueprints/GLO_priceDependency.d.ts +5 -0
  159. package/dist/blueprints/GLO_priceDependency.js +4 -0
  160. package/dist/blueprints/GLO_priceEntry.d.ts +17 -0
  161. package/dist/blueprints/GLO_priceEntry.js +17 -0
  162. package/dist/blueprints/GLO_priceRequest.d.ts +8 -0
  163. package/dist/blueprints/GLO_priceRequest.js +20 -0
  164. package/dist/blueprints/GLO_priceRequestLine.d.ts +12 -0
  165. package/dist/blueprints/GLO_priceRequestLine.js +17 -0
  166. package/dist/blueprints/GLO_principal.d.ts +9 -0
  167. package/dist/blueprints/GLO_principal.js +13 -0
  168. package/dist/blueprints/GLO_printPopup.d.ts +10 -0
  169. package/dist/blueprints/GLO_printPopup.js +62 -0
  170. package/dist/blueprints/GLO_production.d.ts +9 -0
  171. package/dist/blueprints/GLO_production.js +9 -0
  172. package/dist/blueprints/GLO_productionLineMaterial.d.ts +8 -0
  173. package/dist/blueprints/GLO_productionLineMaterial.js +13 -0
  174. package/dist/blueprints/GLO_productionMaterial.d.ts +5 -0
  175. package/dist/blueprints/GLO_productionMaterial.js +5 -0
  176. package/dist/blueprints/GLO_purchaseCosts.d.ts +6 -0
  177. package/dist/blueprints/GLO_purchaseCosts.js +9 -0
  178. package/dist/blueprints/GLO_purchaseInvoice.d.ts +12 -0
  179. package/dist/blueprints/GLO_purchaseInvoice.js +25 -0
  180. package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +8 -0
  181. package/dist/blueprints/GLO_purchaseInvoiceLine.js +13 -0
  182. package/dist/blueprints/GLO_purchaseOrder.d.ts +14 -0
  183. package/dist/blueprints/GLO_purchaseOrder.js +25 -0
  184. package/dist/blueprints/GLO_purchaseOrderLine.d.ts +10 -0
  185. package/dist/blueprints/GLO_purchaseOrderLine.js +24 -0
  186. package/dist/blueprints/GLO_purchasePrices.d.ts +10 -0
  187. package/dist/blueprints/GLO_purchasePrices.js +10 -0
  188. package/dist/blueprints/GLO_quotation.d.ts +12 -0
  189. package/dist/blueprints/GLO_quotation.js +32 -0
  190. package/dist/blueprints/GLO_quotationLine.d.ts +12 -0
  191. package/dist/blueprints/GLO_quotationLine.js +28 -0
  192. package/dist/blueprints/GLO_receipt.d.ts +13 -0
  193. package/dist/blueprints/GLO_receipt.js +17 -0
  194. package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +8 -0
  195. package/dist/blueprints/GLO_receiptFromTempReceipt.js +8 -0
  196. package/dist/blueprints/GLO_receiptLine.d.ts +22 -0
  197. package/dist/blueprints/GLO_receiptLine.js +28 -0
  198. package/dist/blueprints/GLO_relationAddress.d.ts +26 -0
  199. package/dist/blueprints/GLO_relationAddress.js +58 -0
  200. package/dist/blueprints/GLO_relationBankAccount.d.ts +9 -0
  201. package/dist/blueprints/GLO_relationBankAccount.js +9 -0
  202. package/dist/blueprints/GLO_relationContact.d.ts +23 -0
  203. package/dist/blueprints/GLO_relationContact.js +45 -0
  204. package/dist/blueprints/GLO_relationGroupType.d.ts +7 -0
  205. package/dist/blueprints/GLO_relationGroupType.js +6 -0
  206. package/dist/blueprints/GLO_relations.d.ts +67 -0
  207. package/dist/blueprints/GLO_relations.js +186 -0
  208. package/dist/blueprints/GLO_relationtype.d.ts +15 -0
  209. package/dist/blueprints/GLO_relationtype.js +31 -0
  210. package/dist/blueprints/GLO_remarkType.d.ts +10 -0
  211. package/dist/blueprints/GLO_remarkType.js +9 -0
  212. package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +4 -0
  213. package/dist/blueprints/GLO_remarkTypeDefaultValue.js +14 -0
  214. package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +10 -0
  215. package/dist/blueprints/GLO_remarkTypeEntityType.js +9 -0
  216. package/dist/blueprints/GLO_representative.d.ts +7 -0
  217. package/dist/blueprints/GLO_representative.js +6 -0
  218. package/dist/blueprints/GLO_salesInvoice.d.ts +9 -0
  219. package/dist/blueprints/GLO_salesInvoice.js +15 -0
  220. package/dist/blueprints/GLO_salesInvoiceLine.d.ts +9 -0
  221. package/dist/blueprints/GLO_salesInvoiceLine.js +13 -0
  222. package/dist/blueprints/GLO_salesOrder.d.ts +13 -0
  223. package/dist/blueprints/GLO_salesOrder.js +25 -0
  224. package/dist/blueprints/GLO_salesOrderLine.d.ts +13 -0
  225. package/dist/blueprints/GLO_salesOrderLine.js +34 -0
  226. package/dist/blueprints/GLO_stockCorrection.d.ts +14 -0
  227. package/dist/blueprints/GLO_stockCorrection.js +24 -0
  228. package/dist/blueprints/GLO_stopSchedule.d.ts +4 -0
  229. package/dist/blueprints/GLO_stopSchedule.js +4 -0
  230. package/dist/blueprints/GLO_supplierArticle.d.ts +8 -0
  231. package/dist/blueprints/GLO_supplierArticle.js +8 -0
  232. package/dist/blueprints/GLO_tclSetting.d.ts +6 -0
  233. package/dist/blueprints/GLO_tclSetting.js +6 -0
  234. package/dist/blueprints/GLO_todo.d.ts +10 -0
  235. package/dist/blueprints/GLO_todo.js +21 -0
  236. package/dist/blueprints/GLO_todoSchedule.d.ts +23 -0
  237. package/dist/blueprints/GLO_todoSchedule.js +79 -0
  238. package/dist/blueprints/GLO_tractionDistance.d.ts +6 -0
  239. package/dist/blueprints/GLO_tractionDistance.js +6 -0
  240. package/dist/blueprints/GLO_transportOrder.d.ts +4 -0
  241. package/dist/blueprints/GLO_transportOrder.js +4 -0
  242. package/dist/blueprints/GLO_transportPrice.d.ts +18 -0
  243. package/dist/blueprints/GLO_transportPrice.js +34 -0
  244. package/dist/blueprints/GLO_transportRequirement.d.ts +18 -0
  245. package/dist/blueprints/GLO_transportRequirement.js +32 -0
  246. package/dist/blueprints/GLO_transportRequirementContainer.d.ts +8 -0
  247. package/dist/blueprints/GLO_transportRequirementContainer.js +8 -0
  248. package/dist/blueprints/GLO_transportRequirementGoods.d.ts +33 -0
  249. package/dist/blueprints/GLO_transportRequirementGoods.js +51 -0
  250. package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +6 -0
  251. package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +6 -0
  252. package/dist/blueprints/GLO_transportStock.d.ts +4 -0
  253. package/dist/blueprints/GLO_transportStock.js +4 -0
  254. package/dist/blueprints/GLO_visit.d.ts +9 -0
  255. package/dist/blueprints/GLO_visit.js +10 -0
  256. package/dist/blueprints/GLO_warehouseMove.d.ts +9 -0
  257. package/dist/blueprints/GLO_warehouseMove.js +9 -0
  258. package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +6 -0
  259. package/dist/blueprints/GLO_warehouseOrderSubline.js +11 -0
  260. package/dist/blueprints/GLO_workflowLoggingTable.d.ts +20 -0
  261. package/dist/blueprints/GLO_workflowLoggingTable.js +20 -0
  262. package/dist/blueprints/GLO_workflowVerification.d.ts +10 -0
  263. package/dist/blueprints/GLO_workflowVerification.js +19 -0
  264. package/dist/blueprints/GLO_zone.d.ts +9 -0
  265. package/dist/blueprints/GLO_zone.js +9 -0
  266. package/dist/blueprints/GLO_zone_postalcode.d.ts +12 -0
  267. package/dist/blueprints/GLO_zone_postalcode.js +10 -0
  268. package/dist/blueprints/GLO_zone_type.d.ts +8 -0
  269. package/dist/blueprints/GLO_zone_type.js +7 -0
  270. package/dist/blueprints/GLT_goods.d.ts +2 -0
  271. package/dist/blueprints/GLT_goods.js +12 -0
  272. package/dist/commands/FOB_commands.d.ts +124 -0
  273. package/dist/commands/FOB_commands.js +211 -0
  274. package/dist/commands/GLJ_commands.d.ts +28 -0
  275. package/dist/commands/GLJ_commands.js +40 -0
  276. package/dist/commands/GLO_commands.d.ts +685 -0
  277. package/dist/commands/GLO_commands.js +2315 -0
  278. package/dist/commands/GLS_commands.d.ts +63 -0
  279. package/dist/commands/GLS_commands.js +103 -0
  280. package/dist/commands/GLT_commands.d.ts +78 -0
  281. package/dist/commands/GLT_commands.js +148 -0
  282. package/dist/commands/POR_commands.d.ts +85 -0
  283. package/dist/commands/POR_commands.js +122 -0
  284. package/dist/config.d.ts +9 -0
  285. package/dist/config.js +115 -0
  286. package/dist/index.d.ts +2 -0
  287. package/dist/index.js +15 -0
  288. package/dist/plugins/prometheusWriter.d.ts +15 -0
  289. package/dist/plugins/prometheusWriter.js +111 -0
  290. package/dist/register.d.ts +8 -0
  291. package/dist/register.js +23 -0
  292. package/dist/tsHelper.d.ts +161 -0
  293. package/dist/tsHelper.js +294 -0
  294. package/dist/types.d.ts +363 -0
  295. package/dist/types.js +4 -0
  296. package/dist/websocketDetector.d.ts +71 -0
  297. package/dist/websocketDetector.js +1593 -0
  298. package/package.json +58 -0
  299. package/scripts/check-unnecessary-waiting.mjs +119 -0
  300. package/template/CODEOWNERS +20 -0
  301. package/template/biome.json +7 -0
  302. package/template/cypress/e2e/__CUSTOMER__/template.cy.ts.example +18 -0
  303. package/template/cypress/support/e2e.ts +21 -0
  304. package/template/cypress/support/record.mjs +46 -0
  305. package/template/cypress.config.ts +3 -0
  306. package/template/cypress.env.json.example +24 -0
  307. package/template/package.json +20 -0
  308. package/template/tsconfig.json +11 -0
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Represents an object containing key-value pairs with string values.
3
+ * @typedef {Object.<string, string>} responseUUIDObject
4
+ */
5
+ type responseUUIDObject = {
6
+ [key: string]: string;
7
+ };
8
+ /**
9
+ * Represents the default structure of a response object.
10
+ * @typedef {Object} responseDefault
11
+ * @property {number} status - The status code of the response.
12
+ */
13
+ export type responseDefault = {
14
+ status: number;
15
+ };
16
+ /**
17
+ * Represents the structure of a response object for create operations.
18
+ * @typedef {responseDefault} responseCreate
19
+ * @property {Object} body - The body of the response.
20
+ * @property {Array<responseUUIDObject>} body.create - An array of objects containing created UUIDs.
21
+ */
22
+ export type responseCreate = responseDefault & {
23
+ body: {
24
+ create: Array<responseUUIDObject>;
25
+ };
26
+ };
27
+ /**
28
+ * Represents the structure of a response object for patch operations.
29
+ * @typedef {responseDefault} responsePatch
30
+ * @property {Object} body - The body of the response.
31
+ * @property {Array<responseUUIDObject>} body.patch - An array of objects containing patched UUIDs.
32
+ */
33
+ export type responsePatch = responseDefault & {
34
+ body: {
35
+ patch: Array<responseUUIDObject>;
36
+ };
37
+ };
38
+ /**
39
+ * Represents the structure of a response object for read operations.
40
+ * @typedef {responseDefault} responseRead
41
+ * @template T - Type of the body of the response.
42
+ * @property {T} body - The body of the response.
43
+ */
44
+ export type responseRead<T> = responseDefault & {
45
+ body: T;
46
+ };
47
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,45 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ export type ObjAddressPopupBase = {
3
+ type?: 'search' | 'create';
4
+ addressCode?: string;
5
+ name?: string;
6
+ country?: string;
7
+ state?: string;
8
+ county?: string;
9
+ PC?: string;
10
+ city?: string;
11
+ streetName?: string;
12
+ number?: string | number;
13
+ latitude?: string;
14
+ longitude?: string;
15
+ flagUseSelectedAddress?: CheckState;
16
+ rowToSelect?: string | number;
17
+ flag_postaddress?: CheckState;
18
+ flag_deliveryaddress?: CheckState;
19
+ flag_invoiceaddress?: CheckState;
20
+ flag_legaladdress?: CheckState;
21
+ flag_visitaddress?: CheckState;
22
+ flag_manual_coordinates?: CheckState;
23
+ btn_validate_address?: boolean;
24
+ close_popup?: boolean;
25
+ btn_use_entered_address?: boolean;
26
+ btn_use_selected_address?: boolean;
27
+ btn_save_address?: boolean;
28
+ autoSelect?: boolean;
29
+ btn_accept_double_address?: boolean;
30
+ };
31
+ type OnlyOneTrue<T, K extends keyof T = keyof T> = (K extends keyof T ? {
32
+ [P in K]-?: true;
33
+ } & {
34
+ [P in Exclude<keyof T, K>]?: false | undefined;
35
+ } : never) | {
36
+ [P in keyof T]?: false | undefined;
37
+ };
38
+ type MutuallyExclusiveButtons = OnlyOneTrue<{
39
+ btn_save_address?: boolean;
40
+ btn_use_entered_address?: boolean;
41
+ btn_use_selected_address?: boolean;
42
+ }>;
43
+ export type objAddressPopup = ObjAddressPopupBase & MutuallyExclusiveButtons;
44
+ export declare const GLO_enterAddressPopup: (obj: objAddressPopup) => void;
45
+ export {};
@@ -0,0 +1,96 @@
1
+ import { equalBool, row, skipCheck, span } from '../tsHelper.js';
2
+ const addresFormName = 'ng$address_search_creation_sel';
3
+ export const GLO_enterAddressPopup = (obj) => {
4
+ // Set the default value to true
5
+ obj = { autoSelect: true, ...obj };
6
+ if (obj.type === 'search') {
7
+ searchAddress(obj);
8
+ }
9
+ else if (obj.type === 'create') {
10
+ createAddress(obj);
11
+ }
12
+ else {
13
+ throw new Error('Invalid type for address popup. Use "search" or "create".');
14
+ }
15
+ };
16
+ const fillInBasicAddressFields = (obj) => {
17
+ cy.GLO_addInput([addresFormName, 'address_name'], obj.name);
18
+ if (obj.country) {
19
+ cy.GLO_getElement(['ng$address_search_creation_sel', 'country']).then(($country) => {
20
+ if ($country.find('.fa-search').length > 0) {
21
+ cy.GLO_popupWindow([addresFormName, 'country'], obj.country);
22
+ }
23
+ else {
24
+ cy.GLO_addInput([addresFormName, 'country'], obj.country);
25
+ }
26
+ });
27
+ }
28
+ if (obj.state)
29
+ cy.GLO_checkLoadingIndicator();
30
+ cy.GLO_addInput([addresFormName, 'local_state_id'], obj.state);
31
+ if (obj.county)
32
+ cy.GLO_checkLoadingIndicator();
33
+ cy.GLO_popupWindow([addresFormName, 'local_county_id'], obj.county, 'branch_code', equalBool);
34
+ cy.GLO_addInput([addresFormName, 'postal_code'], obj.PC);
35
+ if (obj.PC)
36
+ cy.GLO_checkLoadingIndicator();
37
+ cy.GLO_addInput([addresFormName, 'city'], obj.city);
38
+ if (obj.city)
39
+ cy.GLO_checkLoadingIndicator();
40
+ if (obj.type === 'search') {
41
+ cy.GLO_popupWindow([addresFormName, 'btn_select_street'], obj.streetName, 'streetname');
42
+ }
43
+ else if (obj.type === 'create' && obj.streetName) {
44
+ // If the type is create, we should use the streetName directly
45
+ cy.get('body').then(($body) => {
46
+ if ($body.find(`[data-cy$="${addresFormName}.streetname_validation"]`).length > 0) {
47
+ cy.GLO_getElement([addresFormName, 'streetname_validation']).find('.dx-texteditor-input').filter(':enabled').clear().type(obj.streetName);
48
+ }
49
+ else {
50
+ cy.GLO_addInput([addresFormName, 'streetname'], obj.streetName);
51
+ }
52
+ });
53
+ }
54
+ cy.GLO_addInput([addresFormName, 'house_number'], obj.number);
55
+ };
56
+ // Seperate functions for cognitive complexity sonar warning
57
+ const searchAddress = (obj) => {
58
+ cy.GLO_addInput([addresFormName, 'address_code'], obj.addressCode);
59
+ fillInBasicAddressFields(obj);
60
+ cy.GLO_clickButton([addresFormName, 'button_search']);
61
+ if (obj.addressCode && obj.autoSelect) {
62
+ // If you have the address code then you can select it based on the span else you need to take the first one for now
63
+ cy.GLO_dblClickRowInGrid(span, [addresFormName, 'grid'], obj.addressCode, undefined, skipCheck);
64
+ }
65
+ else if (obj.autoSelect) {
66
+ cy.GLO_dblClickRowInGrid(typeof obj.rowToSelect === 'string' ? span : row, [addresFormName, 'grid'], obj.rowToSelect ?? 0, undefined, skipCheck, equalBool);
67
+ }
68
+ };
69
+ const createAddress = (obj) => {
70
+ const formNameCreateGrid = 'ng$relations_dtl_add_address_dlg_lower';
71
+ cy.GLO_getElement([addresFormName, 'mode_create_or_select']).find('.dx-radiobutton-icon').last().click();
72
+ cy.GLO_checkLoadingIndicator();
73
+ fillInBasicAddressFields(obj);
74
+ cy.GLO_checkbox([addresFormName, 'flag_postaddress'], obj.flag_postaddress);
75
+ cy.GLO_checkbox([addresFormName, 'flag_deliveryaddress'], obj.flag_deliveryaddress);
76
+ cy.GLO_checkbox([addresFormName, 'flag_invoiceaddress'], obj.flag_invoiceaddress);
77
+ cy.GLO_checkbox([addresFormName, 'flag_legaladdress'], obj.flag_legaladdress);
78
+ cy.GLO_checkbox([addresFormName, 'flag_visitaddress'], obj.flag_visitaddress);
79
+ if (obj.btn_validate_address) {
80
+ cy.GLO_clickButton([addresFormName, 'btn_validate_address']);
81
+ }
82
+ cy.GLO_checkbox([addresFormName, 'flag_manual_coordinates'], obj.flag_manual_coordinates);
83
+ cy.GLO_addInput([addresFormName, 'local_geo_latitude'], obj.latitude);
84
+ cy.GLO_addInput([addresFormName, 'local_geo_longitude'], obj.longitude);
85
+ if (obj.btn_save_address !== true)
86
+ cy.GLO_dblClickRowInGrid(typeof obj.rowToSelect === 'string' ? span : row, [formNameCreateGrid, 'grid'], obj.rowToSelect ?? 0, undefined, skipCheck, equalBool);
87
+ const buttonToClick = ['btn_use_entered_address', 'btn_use_selected_address', 'btn_save_address'].find((key) => obj[key]);
88
+ if (buttonToClick) {
89
+ cy.get(`[data-cy="${addresFormName}.${buttonToClick}"]`, { timeout: 10000 }).filter(':visible').should('exist');
90
+ cy.GLO_clickButton([addresFormName, buttonToClick]);
91
+ if (obj.btn_accept_double_address) {
92
+ cy.GLO_dialogChoice('Accept');
93
+ }
94
+ cy.get('.svy-dialog', { timeout: 20000 }).should('not.exist');
95
+ }
96
+ };
@@ -0,0 +1,45 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ export type objArticle = {
3
+ articleCode?: string;
4
+ articleMainGroup?: string;
5
+ articleSubGroup?: string;
6
+ articleType?: string;
7
+ articleDefaultSupplier?: string;
8
+ attention?: string;
9
+ articleStatus?: string;
10
+ extraSearchCode?: string;
11
+ articleUnit?: string;
12
+ articleSalesPriceUnit?: string;
13
+ articlePurchasePriceUnit?: string;
14
+ articleSalesPriceQuantity?: number;
15
+ articlePurchasePriceQuantity?: number;
16
+ articleGrossWeight?: string | number;
17
+ articleNetWeight?: string | number;
18
+ articlePackagingType?: string;
19
+ articlePackagingPerAmount?: number;
20
+ articlePackagingGrossWeight?: string | number;
21
+ articlePackagesPerLayer?: number;
22
+ articleLayersPerPallet?: number;
23
+ articleUnitsPerPallet?: number;
24
+ articlePalletType?: string;
25
+ articleVATCode?: string;
26
+ pricePerUnit?: string;
27
+ layerHeight?: string | number;
28
+ purchaseProduction?: string;
29
+ productionRouting?: string;
30
+ translationStandard0?: string;
31
+ translationStandard1?: string;
32
+ translationStandard2?: string;
33
+ articleUnitLength?: string | number;
34
+ articleUnitWidth?: string;
35
+ articleUnitHeight?: string;
36
+ weightContents?: number;
37
+ weightContentsUnit?: string;
38
+ financialCostaccount?: string;
39
+ financialTurnoveraccount?: string;
40
+ financialStockaccount?: string;
41
+ financialFlagIncludeCostImportDutyCalc?: CheckState;
42
+ useLotType?: string;
43
+ minimumStock?: number;
44
+ };
45
+ export declare const GLO_enterArticle: (obj: objArticle) => void;
@@ -0,0 +1,110 @@
1
+ import { close, open } from '../tsHelper.js';
2
+ const articleUnitsForm = 'ng$article_dtl_units';
3
+ const articleFinancialForm = 'ng$article_dtl_financial';
4
+ const articleWarehouseForm = 'ng$article_dtl_warehousemgt';
5
+ const articleProductionForm = 'ng$article_dtl_production';
6
+ const articleMainForm = 'ng$article_dtl';
7
+ export const GLO_enterArticle = (obj) => {
8
+ cy.GLO_addInput([articleMainForm, 'article_code'], obj.articleCode);
9
+ cy.GLO_addInput([articleMainForm, 'articlemaingroup_id'], obj.articleMainGroup);
10
+ if (obj.articleMainGroup && obj.articleSubGroup)
11
+ cy.GLO_checkLoadingIndicator();
12
+ cy.GLO_addInput([articleMainForm, 'articlesubgroup_id'], obj.articleSubGroup);
13
+ if (obj.articleMainGroup || obj.articleSubGroup)
14
+ cy.GLO_checkLoadingIndicator();
15
+ cy.GLO_addInput([articleMainForm, 'extra_search_code'], obj.extraSearchCode);
16
+ cy.GLO_addInput([articleMainForm, 'articlestatus_id'], obj.articleStatus);
17
+ cy.GLO_addInput([articleMainForm, 'articletype_id'], obj.articleType);
18
+ cy.GLO_popupWindow([articleMainForm, 'supplier'], obj.articleDefaultSupplier);
19
+ cy.GLO_addInput([articleMainForm, 'attentionline'], obj.attention);
20
+ if (obj.articleUnit ||
21
+ obj.articleSalesPriceUnit ||
22
+ obj.articlePurchasePriceUnit ||
23
+ obj.articleSalesPriceQuantity ||
24
+ obj.articlePurchasePriceQuantity ||
25
+ obj.articleGrossWeight ||
26
+ obj.articleNetWeight ||
27
+ obj.articlePackagingType ||
28
+ obj.articlePackagingPerAmount ||
29
+ obj.articlePackagingGrossWeight ||
30
+ obj.articlePackagesPerLayer ||
31
+ obj.articleLayersPerPallet ||
32
+ obj.articleUnitsPerPallet ||
33
+ obj.articlePalletType ||
34
+ obj.weightContents ||
35
+ obj.weightContentsUnit ||
36
+ obj.layerHeight) {
37
+ GLO_enterArticleUnits(obj);
38
+ }
39
+ if (obj.articleVATCode || obj.financialCostaccount || obj.financialTurnoveraccount || obj.financialStockaccount || obj.financialFlagIncludeCostImportDutyCalc) {
40
+ GLO_enterArticleFinancial(obj);
41
+ }
42
+ if (obj.purchaseProduction || obj.useLotType || obj.minimumStock)
43
+ GLO_enterWarehouseManagement(obj);
44
+ if (obj.productionRouting)
45
+ GLO_enterProduction(obj);
46
+ if (obj.translationStandard0 || obj.translationStandard1 || obj.translationStandard2) {
47
+ GLO_enterTranslations(obj);
48
+ }
49
+ };
50
+ const GLO_enterArticleUnits = (obj) => {
51
+ // Tab 'Units'
52
+ cy.GLO_selectTab([articleMainForm, 'tabs_70'], 'Units', open);
53
+ cy.GLO_addInput([articleUnitsForm, 'content_articleunit_id'], obj.articleUnit);
54
+ cy.GLO_addInput([articleUnitsForm, 'weight'], obj.weightContents);
55
+ cy.GLO_addInput([articleUnitsForm, 'weight_articleunit_id'], obj.weightContentsUnit);
56
+ cy.GLO_addInput([articleUnitsForm, 'length_in_unit'], obj.articleUnitLength);
57
+ cy.GLO_addInput([articleUnitsForm, 'width_in_unit'], obj.articleUnitWidth);
58
+ cy.GLO_addInput([articleUnitsForm, 'height_in_unit'], obj.articleUnitHeight);
59
+ cy.GLO_addInput([articleUnitsForm, 'price_per_unit_id'], obj.articleSalesPriceUnit);
60
+ cy.GLO_addInput([articleUnitsForm, 'purchase_price_per_unit_id'], obj.articlePurchasePriceUnit);
61
+ cy.GLO_addInput([articleUnitsForm, 'price_per'], obj.articleSalesPriceQuantity);
62
+ if (obj.articleSalesPriceQuantity && obj.articlePurchasePriceQuantity)
63
+ cy.GLO_checkLoadingIndicator();
64
+ cy.GLO_addInput([articleUnitsForm, 'purchase_price_per'], obj.articlePurchasePriceQuantity);
65
+ cy.GLO_addInput([articleUnitsForm, 'gross_weight_in_kg'], obj.articleGrossWeight);
66
+ cy.GLO_addInput([articleUnitsForm, 'net_weight_in_kg'], obj.articleNetWeight);
67
+ cy.GLO_addInput([articleUnitsForm, 'colli_articleunit_id'], obj.articlePackagingType);
68
+ cy.GLO_addInput([articleUnitsForm, 'number_of_content'], obj.articlePackagingPerAmount);
69
+ cy.GLO_addInput([articleUnitsForm, 'colli_weight_in_kg'], obj.articlePackagingGrossWeight);
70
+ cy.GLO_addInput([articleUnitsForm, 'packages_per_pallet_layer'], obj.articlePackagesPerLayer);
71
+ cy.GLO_addInput([articleUnitsForm, 'layer_height'], obj.layerHeight);
72
+ cy.GLO_addInput([articleUnitsForm, 'layers_per_pallet'], obj.articleLayersPerPallet);
73
+ if (obj.articleLayersPerPallet && obj.articleUnitsPerPallet)
74
+ cy.GLO_checkLoadingIndicator();
75
+ cy.GLO_addInput([articleUnitsForm, 'units_per_pallet'], obj.articleUnitsPerPallet);
76
+ cy.GLO_addInput([articleUnitsForm, 'container_subtype_id'], obj.articlePalletType);
77
+ cy.GLO_selectTab([articleMainForm, 'tabs_70'], 'Units', close);
78
+ };
79
+ const GLO_enterArticleFinancial = (obj) => {
80
+ // Tab 'Financial'
81
+ cy.GLO_selectTab([articleMainForm, 'tabs_70'], 'Financial', open);
82
+ cy.GLO_addInput([articleFinancialForm, 'vat_id'], obj.articleVATCode);
83
+ cy.GLO_addInput([articleFinancialForm, 'gl_account_id_costs'], obj.financialCostaccount);
84
+ cy.GLO_addInput([articleFinancialForm, 'gl_account_id_turnover'], obj.financialTurnoveraccount);
85
+ cy.GLO_addInput([articleFinancialForm, 'goods_costs_gl_account_id'], obj.financialStockaccount);
86
+ cy.GLO_checkbox([articleFinancialForm, 'Check_Box'], obj.financialFlagIncludeCostImportDutyCalc);
87
+ cy.GLO_selectTab([articleMainForm, 'tabs_70'], 'Financial', close);
88
+ };
89
+ const GLO_enterWarehouseManagement = (obj) => {
90
+ // Tab 'Warehouse management'
91
+ cy.GLO_selectTab([articleMainForm, 'tabs_70'], 'Warehouse management', open);
92
+ cy.GLO_addInput([articleWarehouseForm, 'purchase_production'], obj.purchaseProduction);
93
+ cy.GLO_addInput([articleWarehouseForm, 'use_lot_type'], obj.useLotType);
94
+ cy.GLO_addInput([articleWarehouseForm, 'minimum_stock'], obj.minimumStock);
95
+ cy.GLO_selectTab([articleMainForm, 'tabs_70'], 'Warehouse management', close);
96
+ };
97
+ const GLO_enterProduction = (obj) => {
98
+ // Tab 'Financial'
99
+ cy.GLO_selectTab([articleMainForm, 'tabs_70'], 'Production', open);
100
+ cy.GLO_addInput([articleProductionForm, 'production_routing'], obj.productionRouting);
101
+ cy.GLO_selectTab([articleMainForm, 'tabs_70'], 'Production', close);
102
+ };
103
+ const GLO_enterTranslations = (obj) => {
104
+ // Tab 'Translations'
105
+ cy.GLO_selectTab([articleMainForm, 'tabs_70'], 'Translations', open);
106
+ cy.GLO_fillInfieldInGrid(['ng$articletranslations_lst_tab', 'grid'], 0, 'descr', obj.translationStandard0);
107
+ cy.GLO_fillInfieldInGrid(['ng$articletranslations_lst_tab', 'grid'], 1, 'descr', obj.translationStandard1);
108
+ cy.GLO_fillInfieldInGrid(['ng$articletranslations_lst_tab', 'grid'], 2, 'descr', obj.translationStandard2);
109
+ cy.GLO_selectTab([articleMainForm, 'tabs_70'], 'Translations', close);
110
+ };
@@ -0,0 +1,12 @@
1
+ export type objArticleLot = {
2
+ articleCode?: number | string;
3
+ articleVersionCode?: string;
4
+ purchasedQuantity?: number;
5
+ purchasedPriceInEUR?: number;
6
+ localWarehouseId?: string;
7
+ localWarehouseLocationId?: string;
8
+ customsStatus?: string;
9
+ dialogRecalculatePriceIn?: 'Yes' | 'No';
10
+ principalCode?: string;
11
+ };
12
+ export declare const GLO_enterArticleLot: (obj: objArticleLot) => void;
@@ -0,0 +1,23 @@
1
+ import { close, open } from '../tsHelper.js';
2
+ export const GLO_enterArticleLot = (obj) => {
3
+ const formName = 'ng$lot_dtl';
4
+ const detailTabsName = 'tabs_70';
5
+ cy.GLO_popupWindow(['ng$lot_dtl', 'article_code'], obj.articleCode);
6
+ cy.GLO_checkField(['ng$lot_dtl', 'article_code'], obj.articleCode);
7
+ cy.GLO_addInput([formName, 'local_articleversion_id'], obj.articleVersionCode);
8
+ cy.GLO_addInput([formName, 'customs_status_id'], obj.customsStatus);
9
+ cy.GLO_addInput([formName, 'principal_parameters_id'], obj.principalCode);
10
+ if (obj.purchasedQuantity || obj.purchasedPriceInEUR || obj.localWarehouseId || obj.localWarehouseLocationId) {
11
+ cy.GLO_selectTab([formName, detailTabsName], 'Purchase/production', open);
12
+ cy.GLO_addInput(['ng$lot_dtl_purchase_production', 'purchased_quantity'], obj.purchasedQuantity);
13
+ if (obj.dialogRecalculatePriceIn) {
14
+ if (!obj.purchasedQuantity)
15
+ throw new Error('dialogRecalculatePriceIn requires purchasedQuantity to be set');
16
+ cy.GLO_dialogRequiredCheck(obj.dialogRecalculatePriceIn);
17
+ }
18
+ cy.GLO_addInput(['ng$lot_dtl_purchase_production', 'purchased_price_in_euro'], obj.purchasedPriceInEUR);
19
+ cy.GLO_addInput(['ng$lot_dtl_purchase_production', 'local_warehouse_id'], obj.localWarehouseId);
20
+ cy.GLO_addInput(['ng$lot_dtl_purchase_production', 'local_warehouse_location_id'], obj.localWarehouseLocationId);
21
+ cy.GLO_selectTab([formName, detailTabsName], 'Purchase/production', close);
22
+ }
23
+ };
@@ -0,0 +1,4 @@
1
+ export type objArticleVersion = {
2
+ articleVersion?: string;
3
+ };
4
+ export declare const GLO_enterArticleVersion: (obj: objArticleVersion) => void;
@@ -0,0 +1,4 @@
1
+ const articleVersionMainForm = 'ng$articleversion_dtl';
2
+ export const GLO_enterArticleVersion = (obj) => {
3
+ cy.GLO_addInput([articleVersionMainForm, 'alternate_article_code'], obj.articleVersion);
4
+ };
@@ -0,0 +1,9 @@
1
+ export type objAttachmentPopup = {
2
+ documentGroupCode?: string;
3
+ documentTypeId?: string;
4
+ documentDate?: string;
5
+ documentReminderDatetime?: string;
6
+ documentExpirationDate?: string;
7
+ documentClosingDatetime?: string;
8
+ };
9
+ export declare const GLO_enterAttachmentPopup: (obj: objAttachmentPopup) => void;
@@ -0,0 +1,10 @@
1
+ import { input } from '../tsHelper.js';
2
+ export const GLO_enterAttachmentPopup = (obj) => {
3
+ const propertiesFormName = 'ng$svy_nav_document_add_document';
4
+ cy.GLO_addInput([propertiesFormName, 'document_group_code_1'], obj.documentGroupCode);
5
+ cy.GLO_addInput([propertiesFormName, 'document_type_id'], obj.documentTypeId);
6
+ cy.GLO_addDate(input, [propertiesFormName, 'document_date'], obj.documentDate);
7
+ cy.GLO_addDate(input, [propertiesFormName, 'document_reminder_datetime'], obj.documentReminderDatetime);
8
+ cy.GLO_addDate(input, [propertiesFormName, 'expiration_date'], obj.documentExpirationDate);
9
+ cy.GLO_addDate(input, [propertiesFormName, 'document_closing_datetime'], obj.documentClosingDatetime);
10
+ };
@@ -0,0 +1,7 @@
1
+ export type objBankAccount = {
2
+ bankName?: string;
3
+ bankAccountNr?: string;
4
+ countryCode?: string;
5
+ currencyCode?: string;
6
+ };
7
+ export declare const GLO_enterBankAccount: (obj: objBankAccount) => void;
@@ -0,0 +1,7 @@
1
+ export const GLO_enterBankAccount = (obj) => {
2
+ const formName = 'ng$bank_account_dtl';
3
+ cy.GLO_addInput([formName, 'bank_name'], obj.bankName);
4
+ cy.GLO_addInput([formName, 'bank_account_nr'], obj.bankAccountNr);
5
+ cy.GLO_addInput([formName, 'bank_country_1'], obj.countryCode);
6
+ cy.GLO_addInput([formName, 'currency_id'], obj.currencyCode);
7
+ };
@@ -0,0 +1,4 @@
1
+ export type objBillingProcess = {
2
+ priceBilling?: string;
3
+ };
4
+ export declare const GLO_enterBillingProcess: (obj: objBillingProcess) => void;
@@ -0,0 +1,4 @@
1
+ export const GLO_enterBillingProcess = (obj) => {
2
+ const formName = 'ng$billing_process_tx_dtl';
3
+ cy.GLO_addInput([formName, 'price'], obj.priceBilling);
4
+ };
@@ -0,0 +1,9 @@
1
+ export type objBillingProposalTransport = {
2
+ externalTotalAmountExclVat?: number;
3
+ externalTotalAmountVat?: number;
4
+ externalTotalAmountInclVat?: number;
5
+ relationReference?: string;
6
+ externalReference?: string;
7
+ externalInvoiceDate?: string;
8
+ };
9
+ export declare const GLO_enterBillingProposalTransport: (obj: objBillingProposalTransport) => void;
@@ -0,0 +1,9 @@
1
+ export const GLO_enterBillingProposalTransport = (obj) => {
2
+ const formName = 'ng$billing_proposal$transport_dtl';
3
+ cy.GLO_addInput([formName, 'external_total_amount_excl_vat'], obj.externalTotalAmountExclVat);
4
+ cy.GLO_addInput([formName, 'external_total_amount_vat'], obj.externalTotalAmountVat);
5
+ cy.GLO_addInput([formName, 'external_total_amount_incl_vat'], obj.externalTotalAmountInclVat);
6
+ cy.GLO_addInput([formName, 'relation_reference'], obj.relationReference);
7
+ cy.GLO_addInput([formName, 'external_reference'], obj.externalReference);
8
+ cy.GLO_addInput([formName, 'external_invoice_date'], obj.externalInvoiceDate);
9
+ };
@@ -0,0 +1,7 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ export type objCancel = {
3
+ remark?: string;
4
+ flagCancelledByCustomer?: CheckState;
5
+ cancelledDate?: string;
6
+ };
7
+ export declare const GLO_enterCancel: (obj: objCancel) => void;
@@ -0,0 +1,7 @@
1
+ import { input } from '../tsHelper.js';
2
+ export const GLO_enterCancel = (obj) => {
3
+ const formName = 'ng$blocking_and_reason_code_dlg$cancel';
4
+ cy.GLO_addInput([formName, 'remark'], obj.remark);
5
+ cy.GLO_checkbox([formName, 'flag_cancelled_by_customer'], obj.flagCancelledByCustomer);
6
+ cy.GLO_addDate(input, [formName, 'cancelled_date'], obj.cancelledDate);
7
+ };
@@ -0,0 +1,10 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ export type objCommandlist = {
3
+ commandlistType?: string;
4
+ validFrom?: string;
5
+ validTo?: string;
6
+ allowAutomaticUpdate?: CheckState;
7
+ customerRelation?: string;
8
+ commandlistCode?: string;
9
+ };
10
+ export declare const GLO_enterCommandlist: (obj: objCommandlist) => void;
@@ -0,0 +1,10 @@
1
+ import { input } from '../tsHelper.js';
2
+ export const GLO_enterCommandlist = (obj) => {
3
+ const formName = 'ng$commandlist_dtl';
4
+ cy.GLO_addInput([formName, 'commandlist_type'], obj.commandlistType);
5
+ cy.GLO_addDate(input, [formName, 'valid_from'], obj.validFrom);
6
+ cy.GLO_addDate(input, [formName, 'valid_till'], obj.validTo);
7
+ cy.GLO_checkbox([formName, 'allow_automatic_update'], obj.allowAutomaticUpdate);
8
+ cy.GLO_popupWindow([formName, 'btn_select_relation'], obj.customerRelation);
9
+ cy.GLO_addInput([formName, 'commandlist_code'], obj.commandlistCode);
10
+ };
@@ -0,0 +1,27 @@
1
+ type BaseComplaint = {
2
+ type?: string;
3
+ subtype?: string;
4
+ relationCode?: string;
5
+ responsible?: string;
6
+ subject?: string;
7
+ description?: string;
8
+ actionPoints?: string;
9
+ salesInvoice?: string | number;
10
+ customerReference?: string;
11
+ level?: string;
12
+ purchaseOrder?: string;
13
+ };
14
+ /**
15
+ * Force SO to be required when SOL is filled in.
16
+ */
17
+ type ComplaintWithoutArticle = BaseComplaint & {
18
+ salesOrder?: string;
19
+ salesOrderLineArticleCode?: never;
20
+ };
21
+ type ComplaintWithArticle = BaseComplaint & {
22
+ salesOrder: string;
23
+ salesOrderLineArticleCode: string;
24
+ };
25
+ export type objComplaint = ComplaintWithoutArticle | ComplaintWithArticle;
26
+ export declare const GLO_enterComplaint: (obj: objComplaint) => void;
27
+ export {};
@@ -0,0 +1,51 @@
1
+ import { close, equalBool, open, skipCheck, span } from '../tsHelper.js';
2
+ const formName = 'ng$complaint_dtl';
3
+ const formNameOrders = `${formName}_orders`;
4
+ const detailTabsName = 'tabs_340';
5
+ export const GLO_enterComplaint = (obj) => {
6
+ cy.GLO_addInput([formName, 'case_type_id'], obj.type);
7
+ cy.GLO_checkField([formName, 'case_type_id'], obj.type);
8
+ cy.GLO_checkLoadingIndicator();
9
+ cy.GLO_addInput([formName, 'subject'], obj.subject);
10
+ cy.GLO_addInput([formName, 'case_subtype_id'], obj.subtype);
11
+ cy.GLO_addInput([formName, 'relation_reference'], obj.customerReference);
12
+ cy.GLO_addInput([formName, 'case_level_id'], obj.level);
13
+ cy.GLO_popupWindow([formName, 'relation_code'], obj.relationCode, undefined, equalBool);
14
+ if (obj.responsible) {
15
+ // Needed for clearing the 'responsible' field first
16
+ const responsibleElementName = 'responsible_id';
17
+ cy.GLO_clearField([formName, responsibleElementName]);
18
+ cy.GLO_popupWindow([formName, responsibleElementName], obj.responsible);
19
+ }
20
+ if (obj.actionPoints) {
21
+ cy.GLO_selectTab([formName, detailTabsName], 'Attributes', open);
22
+ //! Change this line if its ever possible to add input to aa text area via a name or when dynamic attributes have a 'data_cy'
23
+ cy.GLO_getElement(['attribute_value_9c8886bf_fc5d_46cd_a88e_c3ea67f92627']).find('textarea').clear().type(obj.actionPoints);
24
+ cy.GLO_selectTab([formName, detailTabsName], 'Attributes', close);
25
+ }
26
+ if (obj.description) {
27
+ cy.GLO_selectTab([formName, detailTabsName], 'Description', open);
28
+ cy.GLO_addInput(['ng$cases_dtl_description', 'description'], obj.description);
29
+ cy.GLO_selectTab([formName, detailTabsName], 'Description', close);
30
+ }
31
+ if (obj.salesInvoice || obj.salesOrder || obj.salesOrderLineArticleCode || obj.purchaseOrder) {
32
+ GLO_ordersTab(obj);
33
+ }
34
+ };
35
+ const GLO_ordersTab = (obj) => {
36
+ cy.GLO_selectTab([formName, detailTabsName], 'Orders', open);
37
+ cy.GLO_popupWindow([formNameOrders, 'btn_select_sales_invoice'], obj.salesInvoice);
38
+ cy.GLO_popupWindow([formNameOrders, 'btn_select_purchase_order'], obj.purchaseOrder);
39
+ if (obj.salesOrder && obj.salesOrderLineArticleCode) {
40
+ cy.GLO_popupWindow([formNameOrders, 'btn_select_sales_orderline'], obj.salesOrder);
41
+ cy.get('.window-body', { timeout: 10000 })
42
+ .filter(':visible')
43
+ .then(() => {
44
+ cy.GLO_dblClickRowInGrid(span, ['ng$salesorderline_sel', 'grid'], obj.salesOrderLineArticleCode, 'article_code', skipCheck);
45
+ });
46
+ }
47
+ else if (obj.salesOrder && !obj.salesOrderLineArticleCode) {
48
+ cy.GLO_popupWindow([formNameOrders, 'btn_select_sales_order'], obj.salesOrder);
49
+ }
50
+ cy.GLO_selectTab([formName, detailTabsName], 'Orders', close);
51
+ };
@@ -0,0 +1,14 @@
1
+ import { type CheckState } from '../tsHelper.js';
2
+ export type objComposition = {
3
+ article?: string;
4
+ inputQuantity?: number;
5
+ inputUnit?: string;
6
+ quantityBase?: number;
7
+ flagDeliverPart?: CheckState;
8
+ flagPicking?: CheckState;
9
+ flagBackflush?: CheckState;
10
+ parentArticleVersion?: string;
11
+ componentArticleVersion?: string;
12
+ sequenceNumber?: number;
13
+ };
14
+ export declare const GLO_enterComposition: (obj: objComposition) => void;
@@ -0,0 +1,20 @@
1
+ import { close, open } from '../tsHelper.js';
2
+ export const GLO_enterComposition = (obj) => {
3
+ const formName = 'ng$composition_dtl';
4
+ const formNameGeneral = 'ng$composition_dtl_general';
5
+ cy.GLO_addInput([formName, 'article_code'], obj.article);
6
+ cy.GLO_addInput([formName, 'position_nr'], obj.sequenceNumber);
7
+ cy.GLO_addInput([formName, 'articleversion'], obj.componentArticleVersion);
8
+ cy.GLO_addInput([formName, 'alternate_article_code'], obj.parentArticleVersion);
9
+ // General tab
10
+ if (obj.inputQuantity || obj.flagDeliverPart || obj.inputUnit || obj.quantityBase || obj.flagPicking || obj.flagBackflush) {
11
+ cy.GLO_selectTab([formName, 'tabs_70'], 'General', open);
12
+ cy.GLO_addInput([formNameGeneral, 'input_qty'], obj.inputQuantity);
13
+ cy.GLO_addInput([formNameGeneral, 'input_qty_per_unit_id'], obj.inputUnit);
14
+ cy.GLO_checkbox([formNameGeneral, 'flag_deliver_part'], obj.flagDeliverPart);
15
+ cy.GLO_checkbox([formNameGeneral, 'flag_picking'], obj.flagPicking);
16
+ cy.GLO_checkbox([formNameGeneral, 'flag_backflush'], obj.flagBackflush);
17
+ cy.GLO_addInput([formNameGeneral, 'quantity'], obj.quantityBase);
18
+ cy.GLO_selectTab([formName, 'tabs_70'], 'General', close);
19
+ }
20
+ };