losant_rest 1.19.7 → 1.19.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +30 -0
  3. data/README.md +2 -2
  4. data/docs/_schemas.md +3986 -227
  5. data/docs/devices.md +0 -1
  6. data/docs/instanceOrgs.md +1 -0
  7. data/lib/platform_rest/client.rb +2 -2
  8. data/lib/platform_rest/devices.rb +0 -1
  9. data/lib/platform_rest/instance_orgs.rb +3 -0
  10. data/lib/platform_rest/version.rb +1 -1
  11. data/schemas/advancedInstanceOrgQuery.json +1171 -0
  12. data/schemas/application.json +20 -4
  13. data/schemas/applicationCreationByTemplateResult.json +20 -4
  14. data/schemas/applicationDashboardPost.json +7 -0
  15. data/schemas/applicationTemplate.json +4 -0
  16. data/schemas/applicationTemplates.json +4 -0
  17. data/schemas/applications.json +20 -4
  18. data/schemas/credential.json +13 -1
  19. data/schemas/credentialLinkedResources.json +330 -18
  20. data/schemas/credentialPatch.json +22 -0
  21. data/schemas/credentialPost.json +31 -1
  22. data/schemas/credentials.json +13 -1
  23. data/schemas/dashboard.json +7 -0
  24. data/schemas/dashboardPatch.json +7 -0
  25. data/schemas/dashboardPost.json +7 -0
  26. data/schemas/dashboards.json +7 -0
  27. data/schemas/devicesExportPost.json +8 -0
  28. data/schemas/devicesRemoveDataPost.json +10 -0
  29. data/schemas/experienceLinkedResources.json +341 -18
  30. data/schemas/experienceView.json +11 -0
  31. data/schemas/experienceViewPatch.json +11 -0
  32. data/schemas/experienceViewPost.json +11 -0
  33. data/schemas/experienceViews.json +11 -0
  34. data/schemas/flow.json +110 -6
  35. data/schemas/flowPatch.json +110 -6
  36. data/schemas/flowPost.json +110 -6
  37. data/schemas/flowVersion.json +220 -12
  38. data/schemas/flowVersionPost.json +110 -6
  39. data/schemas/flowVersions.json +220 -12
  40. data/schemas/flows.json +110 -6
  41. data/schemas/flowsImportPost.json +220 -12
  42. data/schemas/flowsImportResult.json +330 -18
  43. data/schemas/historicalSummaries.json +40 -8
  44. data/schemas/historicalSummary.json +40 -8
  45. data/schemas/instanceCustomNodePatch.json +8 -6
  46. data/schemas/instanceCustomNodePost.json +8 -6
  47. data/schemas/instanceOrg.json +20 -4
  48. data/schemas/instanceOrgs.json +20 -4
  49. data/schemas/instanceSandbox.json +20 -4
  50. data/schemas/instanceSandboxes.json +20 -4
  51. data/schemas/me.json +20 -4
  52. data/schemas/notebook.json +8 -0
  53. data/schemas/notebookPatch.json +8 -0
  54. data/schemas/notebookPost.json +8 -0
  55. data/schemas/notebooks.json +8 -0
  56. data/schemas/org.json +20 -4
  57. data/schemas/orgs.json +20 -4
  58. data/schemas/payloadStats.json +20 -4
  59. data/schemas/webhook.json +13 -0
  60. data/schemas/webhookPatch.json +13 -0
  61. data/schemas/webhookPost.json +13 -0
  62. data/schemas/webhooks.json +13 -0
  63. metadata +4 -3
  64. data/.travis.yml +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8eff8a92a173bce4e3fce2590775a7446146c18a1960fc2e0aa40fe6701c3f6e
4
- data.tar.gz: c7808635ff3bcce9ffe4806196d8a6ed735106ce642d19bfbf92a5980ab6bf32
3
+ metadata.gz: d0a05a273cb1fe4d465205136b91b4788e3cc792fcfefa6d1739317667ea5903
4
+ data.tar.gz: 843b6d9135730cdfb7c1b633403a2380de14526905b0b7742fc3e2d9e271704d
5
5
  SHA512:
6
- metadata.gz: 2a645538e8fc373af09bd747e36b35024f0e875cb4ee77036ded298ec5062bd1a3aef6423739fa9878c849f8fdec7b62409849d5b16b0043b7c818768dd0d5be
7
- data.tar.gz: f72cc2a295e3f37b875655aa2869bc13e56e6dec21be1321c868b266ef208146c537c2636a8b8465041aee4284ff7903f7fed4f4c608f3dc8967116534dcd1d0
6
+ metadata.gz: 75ceb1c310c2f2ce60430e8e4dc184ce9ef8b7eb63b1d667d7508439f2a18b706cb59ca73d2cee4c10500d0cd36eac89176b6877c0c7bf28b907dc86a41073d0
7
+ data.tar.gz: 246855c5ff53dac72f57e97e9b829376e49ace2d3ea9a40cd6f3d6351043b9a40ba24349abc501adaa8473fd8cc6e5041fb27ca832e08df5a2d4c884f9b7817f
@@ -0,0 +1,30 @@
1
+ name: Run Tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types: ['opened', 'reopened', 'synchronize']
9
+
10
+ jobs:
11
+ test:
12
+ strategy:
13
+ matrix:
14
+ ruby: [ '2.5', '2.4', '2.3', '2.1' ]
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ actions: write
18
+ contents: read
19
+ pull-requests: write
20
+ steps:
21
+ - name: Checkout
22
+ uses: actions/checkout@v4
23
+ - name: Set up Ruby ${{ matrix.ruby }}
24
+ uses: ruby/setup-ruby@v1
25
+ with:
26
+ ruby-version: ${{ matrix.ruby }}
27
+ - name: Install dependencies
28
+ run: bundle install
29
+ - name: Run tests
30
+ run: bundle exec rake
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Losant Ruby REST API Client
2
2
 
3
- [![Build Status](https://travis-ci.com/Losant/losant-rest-ruby.svg?branch=master)](https://travis-ci.com/Losant/losant-rest-ruby) [![Gem Version](https://badge.fury.io/rb/losant_rest.svg)](https://badge.fury.io/rb/losant_rest)
3
+ ![Build Status](https://github.com/Losant/losant-rest-js/actions/workflows/test.yml/badge.svg?branch=master) [![Gem Version](https://badge.fury.io/rb/losant_rest.svg)](https://badge.fury.io/rb/losant_rest)
4
4
 
5
5
  The [Losant](https://www.losant.com) REST API client provides a simple way to use the comprehensive Losant API. You can authenticate either as a Losant device or with your user account, and have access to all the functionality of the Losant platform.
6
6
 
@@ -23,7 +23,7 @@ gem install losant_rest
23
23
  Below is a high-level example of using the Losant Ruby REST API client to authenticate against the Losant Platform and report state for a device.
24
24
 
25
25
  ```ruby
26
- require "losant_rest"
26
+ require "platform_rest"
27
27
 
28
28
  response = PlatformRest.auth.authenticate_device(credentials: {
29
29
  deviceId: "my-device-id",