Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.d.ts 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. declare namespace WDIOProtocols {
  2. type CommandPath = 'string'
  3. type CommandMethod = 'POST' | 'GET' | 'DELETE'
  4. type Protocol = Record<CommandPath, Record<CommandMethod, CommandEndpoint>>
  5. /**
  6. * describes a command endpoint
  7. */
  8. interface CommandEndpoint {
  9. /**
  10. * command name
  11. */
  12. command: string
  13. /**
  14. * command description
  15. */
  16. description: string
  17. /**
  18. * link to specification reference
  19. */
  20. ref: string
  21. /**
  22. * supported command parameters
  23. */
  24. parameters: CommandParameters[]
  25. /**
  26. * variables within the command path (e.g. /:sessionId/element)
  27. */
  28. variables?: CommandPathVariables[]
  29. /**
  30. * supported environments
  31. */
  32. support?: SupportedEnvironments
  33. /**
  34. * set to true if command is only supported in Selenium Hub Node
  35. */
  36. isHubCommand?: boolean,
  37. /**
  38. * information on return data
  39. */
  40. returns?: CommandReturnObject
  41. }
  42. interface CommandReturnObject {
  43. type: string
  44. name: string
  45. description: string
  46. }
  47. interface CommandPathVariables {
  48. name: string
  49. description: string
  50. /**
  51. * the following are given for path variables, we should still define
  52. * it as values are populated automatically
  53. */
  54. required?: boolean
  55. type?: string
  56. }
  57. interface CommandParameters {
  58. name: string,
  59. type: string,
  60. description: string,
  61. required: boolean
  62. }
  63. type Platform = 'ios' | 'android'
  64. type Environments = 'XCUITest' | 'UIAutomation' | 'UiAutomator'
  65. /**
  66. * supported mobile environments, e.g.
  67. * ```
  68. * "ios": {
  69. * "UIAutomation": "8.0 to 9.3"
  70. * }
  71. * ```
  72. */
  73. type SupportedEnvironments = Record<Platform, Record<Environments, string>>
  74. }
  75. declare module "@wdio/protocols" {
  76. export default WDIOProtocols
  77. export const WebDriverProtocol: WDIOProtocols.Protocol
  78. export const MJsonWProtocol: WDIOProtocols.Protocol
  79. export const JsonWProtocol: WDIOProtocols.Protocol
  80. export const AppiumProtocol: WDIOProtocols.Protocol
  81. export const ChromiumProtocol: WDIOProtocols.Protocol
  82. export const SauceLabsProtocol: WDIOProtocols.Protocol
  83. export const SeleniumProtocol: WDIOProtocols.Protocol
  84. }