losant_rest 1.19.0 → 1.19.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +872 -38
  3. data/docs/applications.md +49 -0
  4. data/docs/device.md +12 -3
  5. data/docs/me.md +116 -0
  6. data/lib/losant_rest/version.rb +1 -1
  7. data/lib/platform_rest/application.rb +932 -0
  8. data/lib/platform_rest/application_api_token.rb +176 -0
  9. data/lib/platform_rest/application_api_tokens.rb +136 -0
  10. data/lib/platform_rest/application_certificate.rb +176 -0
  11. data/lib/platform_rest/application_certificate_authorities.rb +138 -0
  12. data/lib/platform_rest/application_certificate_authority.rb +176 -0
  13. data/lib/platform_rest/application_certificates.rb +138 -0
  14. data/lib/platform_rest/application_dashboard.rb +225 -0
  15. data/lib/platform_rest/application_dashboards.rb +138 -0
  16. data/lib/platform_rest/application_key.rb +176 -0
  17. data/lib/platform_rest/application_keys.rb +141 -0
  18. data/lib/platform_rest/application_template.rb +79 -0
  19. data/lib/platform_rest/application_templates.rb +176 -0
  20. data/lib/platform_rest/applications.rb +209 -0
  21. data/lib/platform_rest/audit_log.rb +81 -0
  22. data/lib/platform_rest/audit_logs.rb +93 -0
  23. data/lib/platform_rest/auth.rb +245 -0
  24. data/lib/platform_rest/client.rb +410 -0
  25. data/lib/platform_rest/credential.rb +224 -0
  26. data/lib/platform_rest/credentials.rb +138 -0
  27. data/lib/platform_rest/dashboard.rb +268 -0
  28. data/lib/platform_rest/dashboards.rb +136 -0
  29. data/lib/platform_rest/data.rb +176 -0
  30. data/lib/platform_rest/data_table.rb +274 -0
  31. data/lib/platform_rest/data_table_row.rb +182 -0
  32. data/lib/platform_rest/data_table_rows.rb +343 -0
  33. data/lib/platform_rest/data_tables.rb +138 -0
  34. data/lib/platform_rest/device.rb +767 -0
  35. data/lib/platform_rest/device_recipe.rb +234 -0
  36. data/lib/platform_rest/device_recipes.rb +146 -0
  37. data/lib/platform_rest/devices.rb +707 -0
  38. data/lib/platform_rest/edge_deployment.rb +81 -0
  39. data/lib/platform_rest/edge_deployments.rb +236 -0
  40. data/lib/platform_rest/embedded_deployment.rb +81 -0
  41. data/lib/platform_rest/embedded_deployments.rb +280 -0
  42. data/lib/platform_rest/error.rb +34 -0
  43. data/lib/platform_rest/event.rb +176 -0
  44. data/lib/platform_rest/events.rb +341 -0
  45. data/lib/platform_rest/experience.rb +142 -0
  46. data/lib/platform_rest/experience_domain.rb +176 -0
  47. data/lib/platform_rest/experience_domains.rb +126 -0
  48. data/lib/platform_rest/experience_endpoint.rb +230 -0
  49. data/lib/platform_rest/experience_endpoints.rb +200 -0
  50. data/lib/platform_rest/experience_group.rb +180 -0
  51. data/lib/platform_rest/experience_groups.rb +141 -0
  52. data/lib/platform_rest/experience_slug.rb +176 -0
  53. data/lib/platform_rest/experience_slugs.rb +126 -0
  54. data/lib/platform_rest/experience_user.rb +176 -0
  55. data/lib/platform_rest/experience_users.rb +142 -0
  56. data/lib/platform_rest/experience_version.rb +176 -0
  57. data/lib/platform_rest/experience_versions.rb +138 -0
  58. data/lib/platform_rest/experience_view.rb +228 -0
  59. data/lib/platform_rest/experience_views.rb +142 -0
  60. data/lib/platform_rest/file.rb +226 -0
  61. data/lib/platform_rest/files.rb +144 -0
  62. data/lib/platform_rest/flow.rb +580 -0
  63. data/lib/platform_rest/flow_version.rb +352 -0
  64. data/lib/platform_rest/flow_versions.rb +201 -0
  65. data/lib/platform_rest/flows.rb +310 -0
  66. data/lib/platform_rest/instance.rb +377 -0
  67. data/lib/platform_rest/instance_api_token.rb +176 -0
  68. data/lib/platform_rest/instance_api_tokens.rb +136 -0
  69. data/lib/platform_rest/instance_custom_node.rb +282 -0
  70. data/lib/platform_rest/instance_custom_nodes.rb +136 -0
  71. data/lib/platform_rest/instance_member.rb +176 -0
  72. data/lib/platform_rest/instance_members.rb +134 -0
  73. data/lib/platform_rest/instance_org.rb +336 -0
  74. data/lib/platform_rest/instance_org_invite.rb +182 -0
  75. data/lib/platform_rest/instance_org_invites.rb +138 -0
  76. data/lib/platform_rest/instance_org_member.rb +182 -0
  77. data/lib/platform_rest/instance_org_members.rb +138 -0
  78. data/lib/platform_rest/instance_orgs.rb +139 -0
  79. data/lib/platform_rest/instance_sandbox.rb +181 -0
  80. data/lib/platform_rest/instance_sandboxes.rb +98 -0
  81. data/lib/platform_rest/instances.rb +88 -0
  82. data/lib/platform_rest/integration.rb +178 -0
  83. data/lib/platform_rest/integrations.rb +138 -0
  84. data/lib/platform_rest/me.rb +923 -0
  85. data/lib/platform_rest/notebook.rb +423 -0
  86. data/lib/platform_rest/notebooks.rb +138 -0
  87. data/lib/platform_rest/org.rb +663 -0
  88. data/lib/platform_rest/org_invites.rb +124 -0
  89. data/lib/platform_rest/orgs.rb +140 -0
  90. data/lib/platform_rest/resource_job.rb +326 -0
  91. data/lib/platform_rest/resource_jobs.rb +138 -0
  92. data/lib/platform_rest/user_api_token.rb +170 -0
  93. data/lib/platform_rest/user_api_tokens.rb +132 -0
  94. data/lib/platform_rest/utils.rb +44 -0
  95. data/lib/platform_rest/webhook.rb +178 -0
  96. data/lib/platform_rest/webhooks.rb +138 -0
  97. data/lib/platform_rest.rb +129 -0
  98. data/schemas/apiTokenPost.json +4 -0
  99. data/schemas/applicationDashboardPost.json +66 -0
  100. data/schemas/dashboard.json +66 -0
  101. data/schemas/dashboardPatch.json +66 -0
  102. data/schemas/dashboardPost.json +66 -0
  103. data/schemas/dashboards.json +66 -0
  104. data/schemas/deviceConnectionStatus.json +10 -0
  105. data/schemas/deviceLog.json +3 -0
  106. data/schemas/event.json +8 -0
  107. data/schemas/eventPlusNewCount.json +8 -0
  108. data/schemas/events.json +8 -0
  109. data/schemas/githubLogin.json +4 -0
  110. data/schemas/integrationPatch.json +0 -10
  111. data/schemas/orgInviteActionUser.json +18 -0
  112. data/schemas/orgInviteResultUser.json +18 -0
  113. data/schemas/orgInviteUser.json +51 -0
  114. data/schemas/orgInvitesUser.json +59 -0
  115. data/schemas/payloadCountsBreakdown.json +1 -25
  116. data/schemas/periodSummaries.json +172 -0
  117. data/schemas/samlResponse.json +4 -0
  118. data/schemas/userCredentials.json +4 -0
  119. data/schemas/userPost.json +4 -0
  120. metadata +98 -2
@@ -0,0 +1,138 @@
1
+ # The MIT License (MIT)
2
+ #
3
+ # Copyright (c) 2023 Losant IoT, Inc.
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in all
13
+ # copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ # SOFTWARE.
22
+
23
+ require "json"
24
+
25
+ module PlatformRest
26
+
27
+ # Class containing all the actions for the Webhooks Resource
28
+ class Webhooks
29
+
30
+ def initialize(client)
31
+ @client = client
32
+ end
33
+
34
+ # Returns the webhooks for an application
35
+ #
36
+ # Authentication:
37
+ # The client must be configured with a valid api
38
+ # access token to call this action. The token
39
+ # must include at least one of the following scopes:
40
+ # all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, webhooks.*, or webhooks.get.
41
+ #
42
+ # Parameters:
43
+ # * {string} applicationId - ID associated with the application
44
+ # * {string} sortField - Field to sort the results by. Accepted values are: name, id, creationDate, lastUpdated
45
+ # * {string} sortDirection - Direction to sort the results by. Accepted values are: asc, desc
46
+ # * {string} page - Which page of results to return
47
+ # * {string} perPage - How many items to return per page
48
+ # * {string} filterField - Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name
49
+ # * {string} filter - Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering.
50
+ # * {string} losantdomain - Domain scope of request (rarely needed)
51
+ # * {boolean} _actions - Return resource actions in response
52
+ # * {boolean} _links - Return resource link in response
53
+ # * {boolean} _embedded - Return embedded resources in response
54
+ #
55
+ # Responses:
56
+ # * 200 - Collection of webhooks (https://api.losant.com/#/definitions/webhooks)
57
+ #
58
+ # Errors:
59
+ # * 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
60
+ # * 404 - Error if application was not found (https://api.losant.com/#/definitions/error)
61
+ def get(params = {})
62
+ params = Utils.symbolize_hash_keys(params)
63
+ query_params = { _actions: false, _links: true, _embedded: true }
64
+ headers = {}
65
+ body = nil
66
+
67
+ raise ArgumentError.new("applicationId is required") unless params.has_key?(:applicationId)
68
+
69
+ query_params[:sortField] = params[:sortField] if params.has_key?(:sortField)
70
+ query_params[:sortDirection] = params[:sortDirection] if params.has_key?(:sortDirection)
71
+ query_params[:page] = params[:page] if params.has_key?(:page)
72
+ query_params[:perPage] = params[:perPage] if params.has_key?(:perPage)
73
+ query_params[:filterField] = params[:filterField] if params.has_key?(:filterField)
74
+ query_params[:filter] = params[:filter] if params.has_key?(:filter)
75
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
76
+ query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
77
+ query_params[:_links] = params[:_links] if params.has_key?(:_links)
78
+ query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
79
+
80
+ path = "/applications/#{params[:applicationId]}/webhooks"
81
+
82
+ @client.request(
83
+ method: :get,
84
+ path: path,
85
+ query: query_params,
86
+ headers: headers,
87
+ body: body)
88
+ end
89
+
90
+ # Create a new webhook for an application
91
+ #
92
+ # Authentication:
93
+ # The client must be configured with a valid api
94
+ # access token to call this action. The token
95
+ # must include at least one of the following scopes:
96
+ # all.Application, all.Organization, all.User, webhooks.*, or webhooks.post.
97
+ #
98
+ # Parameters:
99
+ # * {string} applicationId - ID associated with the application
100
+ # * {hash} webhook - New webhook information (https://api.losant.com/#/definitions/webhookPost)
101
+ # * {string} losantdomain - Domain scope of request (rarely needed)
102
+ # * {boolean} _actions - Return resource actions in response
103
+ # * {boolean} _links - Return resource link in response
104
+ # * {boolean} _embedded - Return embedded resources in response
105
+ #
106
+ # Responses:
107
+ # * 201 - Successfully created webhook (https://api.losant.com/#/definitions/webhook)
108
+ #
109
+ # Errors:
110
+ # * 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
111
+ # * 404 - Error if application was not found (https://api.losant.com/#/definitions/error)
112
+ def post(params = {})
113
+ params = Utils.symbolize_hash_keys(params)
114
+ query_params = { _actions: false, _links: true, _embedded: true }
115
+ headers = {}
116
+ body = nil
117
+
118
+ raise ArgumentError.new("applicationId is required") unless params.has_key?(:applicationId)
119
+ raise ArgumentError.new("webhook is required") unless params.has_key?(:webhook)
120
+
121
+ body = params[:webhook] if params.has_key?(:webhook)
122
+ headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
123
+ query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
124
+ query_params[:_links] = params[:_links] if params.has_key?(:_links)
125
+ query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
126
+
127
+ path = "/applications/#{params[:applicationId]}/webhooks"
128
+
129
+ @client.request(
130
+ method: :post,
131
+ path: path,
132
+ query: query_params,
133
+ headers: headers,
134
+ body: body)
135
+ end
136
+
137
+ end
138
+ end
@@ -0,0 +1,129 @@
1
+ # The MIT License (MIT)
2
+ #
3
+ # Copyright (c) 2023 Losant IoT, Inc.
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in all
13
+ # copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ # SOFTWARE.
22
+
23
+ require_relative "platform_rest/version"
24
+ require_relative "platform_rest/error"
25
+ require_relative "platform_rest/utils"
26
+ require_relative "platform_rest/application"
27
+ require_relative "platform_rest/application_api_token"
28
+ require_relative "platform_rest/application_api_tokens"
29
+ require_relative "platform_rest/application_certificate"
30
+ require_relative "platform_rest/application_certificate_authorities"
31
+ require_relative "platform_rest/application_certificate_authority"
32
+ require_relative "platform_rest/application_certificates"
33
+ require_relative "platform_rest/application_dashboard"
34
+ require_relative "platform_rest/application_dashboards"
35
+ require_relative "platform_rest/application_key"
36
+ require_relative "platform_rest/application_keys"
37
+ require_relative "platform_rest/application_template"
38
+ require_relative "platform_rest/application_templates"
39
+ require_relative "platform_rest/applications"
40
+ require_relative "platform_rest/audit_log"
41
+ require_relative "platform_rest/audit_logs"
42
+ require_relative "platform_rest/auth"
43
+ require_relative "platform_rest/credential"
44
+ require_relative "platform_rest/credentials"
45
+ require_relative "platform_rest/dashboard"
46
+ require_relative "platform_rest/dashboards"
47
+ require_relative "platform_rest/data"
48
+ require_relative "platform_rest/data_table"
49
+ require_relative "platform_rest/data_table_row"
50
+ require_relative "platform_rest/data_table_rows"
51
+ require_relative "platform_rest/data_tables"
52
+ require_relative "platform_rest/device"
53
+ require_relative "platform_rest/device_recipe"
54
+ require_relative "platform_rest/device_recipes"
55
+ require_relative "platform_rest/devices"
56
+ require_relative "platform_rest/edge_deployment"
57
+ require_relative "platform_rest/edge_deployments"
58
+ require_relative "platform_rest/embedded_deployment"
59
+ require_relative "platform_rest/embedded_deployments"
60
+ require_relative "platform_rest/event"
61
+ require_relative "platform_rest/events"
62
+ require_relative "platform_rest/experience"
63
+ require_relative "platform_rest/experience_domain"
64
+ require_relative "platform_rest/experience_domains"
65
+ require_relative "platform_rest/experience_endpoint"
66
+ require_relative "platform_rest/experience_endpoints"
67
+ require_relative "platform_rest/experience_group"
68
+ require_relative "platform_rest/experience_groups"
69
+ require_relative "platform_rest/experience_slug"
70
+ require_relative "platform_rest/experience_slugs"
71
+ require_relative "platform_rest/experience_user"
72
+ require_relative "platform_rest/experience_users"
73
+ require_relative "platform_rest/experience_version"
74
+ require_relative "platform_rest/experience_versions"
75
+ require_relative "platform_rest/experience_view"
76
+ require_relative "platform_rest/experience_views"
77
+ require_relative "platform_rest/file"
78
+ require_relative "platform_rest/files"
79
+ require_relative "platform_rest/flow"
80
+ require_relative "platform_rest/flow_version"
81
+ require_relative "platform_rest/flow_versions"
82
+ require_relative "platform_rest/flows"
83
+ require_relative "platform_rest/instance"
84
+ require_relative "platform_rest/instance_api_token"
85
+ require_relative "platform_rest/instance_api_tokens"
86
+ require_relative "platform_rest/instance_custom_node"
87
+ require_relative "platform_rest/instance_custom_nodes"
88
+ require_relative "platform_rest/instance_member"
89
+ require_relative "platform_rest/instance_members"
90
+ require_relative "platform_rest/instance_org"
91
+ require_relative "platform_rest/instance_org_invite"
92
+ require_relative "platform_rest/instance_org_invites"
93
+ require_relative "platform_rest/instance_org_member"
94
+ require_relative "platform_rest/instance_org_members"
95
+ require_relative "platform_rest/instance_orgs"
96
+ require_relative "platform_rest/instance_sandbox"
97
+ require_relative "platform_rest/instance_sandboxes"
98
+ require_relative "platform_rest/instances"
99
+ require_relative "platform_rest/integration"
100
+ require_relative "platform_rest/integrations"
101
+ require_relative "platform_rest/me"
102
+ require_relative "platform_rest/notebook"
103
+ require_relative "platform_rest/notebooks"
104
+ require_relative "platform_rest/org"
105
+ require_relative "platform_rest/org_invites"
106
+ require_relative "platform_rest/orgs"
107
+ require_relative "platform_rest/resource_job"
108
+ require_relative "platform_rest/resource_jobs"
109
+ require_relative "platform_rest/user_api_token"
110
+ require_relative "platform_rest/user_api_tokens"
111
+ require_relative "platform_rest/webhook"
112
+ require_relative "platform_rest/webhooks"
113
+ require_relative "platform_rest/client"
114
+
115
+ module PlatformRest
116
+
117
+ def self.client
118
+ @client ||= Client.new
119
+ end
120
+
121
+ def self.method_missing(sym, *args, &block)
122
+ self.client.__send__(sym, *args, &block)
123
+ end
124
+
125
+ def respond_to_missing?(method_name, include_private = false)
126
+ self.client.respond_to?(method_name, include_private)
127
+ end
128
+
129
+ end
@@ -337,6 +337,7 @@
337
337
  "applications.post",
338
338
  "applications.import",
339
339
  "applications.detailedSummary",
340
+ "applications.periodSummaries",
340
341
  "auditLog.get",
341
342
  "auditLogs.get",
342
343
  "dashboard.patch",
@@ -471,6 +472,9 @@
471
472
  "me.deviceCounts",
472
473
  "me.notebookMinuteCounts",
473
474
  "me.transferResources",
475
+ "me.invite",
476
+ "me.invites",
477
+ "me.respondToInvite",
474
478
  "orgs.*",
475
479
  "orgs.get",
476
480
  "orgs.post"
@@ -2388,6 +2388,10 @@
2388
2388
  }
2389
2389
  ]
2390
2390
  },
2391
+ "yAxisId": {
2392
+ "type": "string",
2393
+ "maxLength": 48
2394
+ },
2391
2395
  "lineType": {
2392
2396
  "type": "string",
2393
2397
  "enum": [
@@ -2441,6 +2445,62 @@
2441
2445
  },
2442
2446
  "additionalProperties": false
2443
2447
  }
2448
+ },
2449
+ "yAxes": {
2450
+ "type": "array",
2451
+ "maxItems": 10,
2452
+ "items": {
2453
+ "type": "object",
2454
+ "properties": {
2455
+ "id": {
2456
+ "type": "string",
2457
+ "maxLength": 48
2458
+ },
2459
+ "label": {
2460
+ "type": "string",
2461
+ "maxLength": 255
2462
+ },
2463
+ "position": {
2464
+ "type": "string",
2465
+ "enum": [
2466
+ "left",
2467
+ "right",
2468
+ "hidden"
2469
+ ],
2470
+ "default": "left"
2471
+ },
2472
+ "min": {
2473
+ "oneOf": [
2474
+ {
2475
+ "type": "number"
2476
+ },
2477
+ {
2478
+ "type": "string",
2479
+ "maxLength": 128
2480
+ }
2481
+ ]
2482
+ },
2483
+ "max": {
2484
+ "oneOf": [
2485
+ {
2486
+ "type": "number"
2487
+ },
2488
+ {
2489
+ "type": "string",
2490
+ "maxLength": 128
2491
+ }
2492
+ ]
2493
+ },
2494
+ "format": {
2495
+ "type": "string",
2496
+ "maxLength": 255
2497
+ }
2498
+ },
2499
+ "additionalProperties": false,
2500
+ "required": [
2501
+ "id"
2502
+ ]
2503
+ }
2444
2504
  }
2445
2505
  },
2446
2506
  "additionalProperties": false
@@ -2811,6 +2871,9 @@
2811
2871
  "defaultZoom": {
2812
2872
  "type": "number"
2813
2873
  },
2874
+ "disableZoom": {
2875
+ "type": "boolean"
2876
+ },
2814
2877
  "segments": {
2815
2878
  "type": "array",
2816
2879
  "maxItems": 300,
@@ -5378,6 +5441,9 @@
5378
5441
  }
5379
5442
  ]
5380
5443
  },
5444
+ "disableZoom": {
5445
+ "type": "boolean"
5446
+ },
5381
5447
  "deviceIds": {
5382
5448
  "type": "array",
5383
5449
  "maxItems": 100,
@@ -2594,6 +2594,10 @@
2594
2594
  }
2595
2595
  ]
2596
2596
  },
2597
+ "yAxisId": {
2598
+ "type": "string",
2599
+ "maxLength": 48
2600
+ },
2597
2601
  "lineType": {
2598
2602
  "type": "string",
2599
2603
  "enum": [
@@ -2647,6 +2651,62 @@
2647
2651
  },
2648
2652
  "additionalProperties": false
2649
2653
  }
2654
+ },
2655
+ "yAxes": {
2656
+ "type": "array",
2657
+ "maxItems": 10,
2658
+ "items": {
2659
+ "type": "object",
2660
+ "properties": {
2661
+ "id": {
2662
+ "type": "string",
2663
+ "maxLength": 48
2664
+ },
2665
+ "label": {
2666
+ "type": "string",
2667
+ "maxLength": 255
2668
+ },
2669
+ "position": {
2670
+ "type": "string",
2671
+ "enum": [
2672
+ "left",
2673
+ "right",
2674
+ "hidden"
2675
+ ],
2676
+ "default": "left"
2677
+ },
2678
+ "min": {
2679
+ "oneOf": [
2680
+ {
2681
+ "type": "number"
2682
+ },
2683
+ {
2684
+ "type": "string",
2685
+ "maxLength": 128
2686
+ }
2687
+ ]
2688
+ },
2689
+ "max": {
2690
+ "oneOf": [
2691
+ {
2692
+ "type": "number"
2693
+ },
2694
+ {
2695
+ "type": "string",
2696
+ "maxLength": 128
2697
+ }
2698
+ ]
2699
+ },
2700
+ "format": {
2701
+ "type": "string",
2702
+ "maxLength": 255
2703
+ }
2704
+ },
2705
+ "additionalProperties": false,
2706
+ "required": [
2707
+ "id"
2708
+ ]
2709
+ }
2650
2710
  }
2651
2711
  },
2652
2712
  "additionalProperties": false
@@ -3017,6 +3077,9 @@
3017
3077
  "defaultZoom": {
3018
3078
  "type": "number"
3019
3079
  },
3080
+ "disableZoom": {
3081
+ "type": "boolean"
3082
+ },
3020
3083
  "segments": {
3021
3084
  "type": "array",
3022
3085
  "maxItems": 300,
@@ -5584,6 +5647,9 @@
5584
5647
  }
5585
5648
  ]
5586
5649
  },
5650
+ "disableZoom": {
5651
+ "type": "boolean"
5652
+ },
5587
5653
  "deviceIds": {
5588
5654
  "type": "array",
5589
5655
  "maxItems": 100,
@@ -2388,6 +2388,10 @@
2388
2388
  }
2389
2389
  ]
2390
2390
  },
2391
+ "yAxisId": {
2392
+ "type": "string",
2393
+ "maxLength": 48
2394
+ },
2391
2395
  "lineType": {
2392
2396
  "type": "string",
2393
2397
  "enum": [
@@ -2441,6 +2445,62 @@
2441
2445
  },
2442
2446
  "additionalProperties": false
2443
2447
  }
2448
+ },
2449
+ "yAxes": {
2450
+ "type": "array",
2451
+ "maxItems": 10,
2452
+ "items": {
2453
+ "type": "object",
2454
+ "properties": {
2455
+ "id": {
2456
+ "type": "string",
2457
+ "maxLength": 48
2458
+ },
2459
+ "label": {
2460
+ "type": "string",
2461
+ "maxLength": 255
2462
+ },
2463
+ "position": {
2464
+ "type": "string",
2465
+ "enum": [
2466
+ "left",
2467
+ "right",
2468
+ "hidden"
2469
+ ],
2470
+ "default": "left"
2471
+ },
2472
+ "min": {
2473
+ "oneOf": [
2474
+ {
2475
+ "type": "number"
2476
+ },
2477
+ {
2478
+ "type": "string",
2479
+ "maxLength": 128
2480
+ }
2481
+ ]
2482
+ },
2483
+ "max": {
2484
+ "oneOf": [
2485
+ {
2486
+ "type": "number"
2487
+ },
2488
+ {
2489
+ "type": "string",
2490
+ "maxLength": 128
2491
+ }
2492
+ ]
2493
+ },
2494
+ "format": {
2495
+ "type": "string",
2496
+ "maxLength": 255
2497
+ }
2498
+ },
2499
+ "additionalProperties": false,
2500
+ "required": [
2501
+ "id"
2502
+ ]
2503
+ }
2444
2504
  }
2445
2505
  },
2446
2506
  "additionalProperties": false
@@ -2811,6 +2871,9 @@
2811
2871
  "defaultZoom": {
2812
2872
  "type": "number"
2813
2873
  },
2874
+ "disableZoom": {
2875
+ "type": "boolean"
2876
+ },
2814
2877
  "segments": {
2815
2878
  "type": "array",
2816
2879
  "maxItems": 300,
@@ -5378,6 +5441,9 @@
5378
5441
  }
5379
5442
  ]
5380
5443
  },
5444
+ "disableZoom": {
5445
+ "type": "boolean"
5446
+ },
5381
5447
  "deviceIds": {
5382
5448
  "type": "array",
5383
5449
  "maxItems": 100,
@@ -2396,6 +2396,10 @@
2396
2396
  }
2397
2397
  ]
2398
2398
  },
2399
+ "yAxisId": {
2400
+ "type": "string",
2401
+ "maxLength": 48
2402
+ },
2399
2403
  "lineType": {
2400
2404
  "type": "string",
2401
2405
  "enum": [
@@ -2449,6 +2453,62 @@
2449
2453
  },
2450
2454
  "additionalProperties": false
2451
2455
  }
2456
+ },
2457
+ "yAxes": {
2458
+ "type": "array",
2459
+ "maxItems": 10,
2460
+ "items": {
2461
+ "type": "object",
2462
+ "properties": {
2463
+ "id": {
2464
+ "type": "string",
2465
+ "maxLength": 48
2466
+ },
2467
+ "label": {
2468
+ "type": "string",
2469
+ "maxLength": 255
2470
+ },
2471
+ "position": {
2472
+ "type": "string",
2473
+ "enum": [
2474
+ "left",
2475
+ "right",
2476
+ "hidden"
2477
+ ],
2478
+ "default": "left"
2479
+ },
2480
+ "min": {
2481
+ "oneOf": [
2482
+ {
2483
+ "type": "number"
2484
+ },
2485
+ {
2486
+ "type": "string",
2487
+ "maxLength": 128
2488
+ }
2489
+ ]
2490
+ },
2491
+ "max": {
2492
+ "oneOf": [
2493
+ {
2494
+ "type": "number"
2495
+ },
2496
+ {
2497
+ "type": "string",
2498
+ "maxLength": 128
2499
+ }
2500
+ ]
2501
+ },
2502
+ "format": {
2503
+ "type": "string",
2504
+ "maxLength": 255
2505
+ }
2506
+ },
2507
+ "additionalProperties": false,
2508
+ "required": [
2509
+ "id"
2510
+ ]
2511
+ }
2452
2512
  }
2453
2513
  },
2454
2514
  "additionalProperties": false
@@ -2819,6 +2879,9 @@
2819
2879
  "defaultZoom": {
2820
2880
  "type": "number"
2821
2881
  },
2882
+ "disableZoom": {
2883
+ "type": "boolean"
2884
+ },
2822
2885
  "segments": {
2823
2886
  "type": "array",
2824
2887
  "maxItems": 300,
@@ -5386,6 +5449,9 @@
5386
5449
  }
5387
5450
  ]
5388
5451
  },
5452
+ "disableZoom": {
5453
+ "type": "boolean"
5454
+ },
5389
5455
  "deviceIds": {
5390
5456
  "type": "array",
5391
5457
  "maxItems": 100,