@placeos/ts-client 4.5.0 → 4.7.0

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 (93) hide show
  1. package/dist/alerts/functions.d.ts +7 -10
  2. package/dist/alerts/interfaces.d.ts +22 -0
  3. package/dist/api.d.ts +32 -19
  4. package/dist/applications/functions.d.ts +2 -5
  5. package/dist/applications/interfaces.d.ts +5 -11
  6. package/dist/assets/assets.class.d.ts +62 -0
  7. package/dist/assets/functions.d.ts +146 -0
  8. package/dist/assets/interfaces.d.ts +38 -0
  9. package/dist/clusters/functions.d.ts +16 -7
  10. package/dist/clusters/interfaces.d.ts +18 -3
  11. package/dist/domains/functions.d.ts +10 -6
  12. package/dist/drivers/functions.d.ts +3 -5
  13. package/dist/drivers/interfaces.d.ts +9 -7
  14. package/dist/edge/functions.d.ts +8 -7
  15. package/dist/index.cjs.js +2 -2
  16. package/dist/index.cjs.js.map +1 -1
  17. package/dist/index.es.js +2695 -2081
  18. package/dist/index.es.js.map +1 -1
  19. package/dist/index.umd.js +3 -3
  20. package/dist/index.umd.js.map +1 -1
  21. package/dist/ldap-sources/functions.d.ts +2 -5
  22. package/dist/metadata/functions.d.ts +8 -9
  23. package/dist/metadata/interfaces.d.ts +18 -4
  24. package/dist/modules/functions.d.ts +10 -4
  25. package/dist/modules/interfaces.d.ts +14 -12
  26. package/dist/oauth-sources/functions.d.ts +2 -5
  27. package/dist/repositories/functions.d.ts +17 -29
  28. package/dist/repositories/interfaces.d.ts +31 -3
  29. package/dist/resources/interface.d.ts +9 -4
  30. package/dist/saml-sources/functions.d.ts +4 -7
  31. package/dist/settings/functions.d.ts +6 -8
  32. package/dist/settings/interfaces.d.ts +7 -0
  33. package/dist/short-url/functions.d.ts +60 -0
  34. package/dist/short-url/interfaces.d.ts +22 -0
  35. package/dist/short-url/short-url.class.d.ts +17 -0
  36. package/dist/signage/interfaces.d.ts +9 -1
  37. package/dist/storages/functions.d.ts +31 -0
  38. package/dist/storages/interfaces.d.ts +6 -0
  39. package/dist/storages/storage.class.d.ts +18 -0
  40. package/dist/systems/functions.d.ts +38 -10
  41. package/dist/systems/interfaces.d.ts +58 -5
  42. package/dist/triggers/functions.d.ts +5 -7
  43. package/dist/triggers/interfaces.d.ts +9 -0
  44. package/dist/users/functions.d.ts +50 -10
  45. package/dist/users/interfaces.d.ts +35 -2
  46. package/dist/webrtc/functions.d.ts +52 -0
  47. package/dist/webrtc/interfaces.d.ts +73 -0
  48. package/dist/zones/functions.d.ts +12 -6
  49. package/dist/zones/interfaces.d.ts +9 -4
  50. package/package.json +1 -1
  51. package/src/alerts/functions.ts +14 -22
  52. package/src/alerts/interfaces.ts +25 -0
  53. package/src/api.ts +148 -3
  54. package/src/applications/functions.ts +4 -7
  55. package/src/applications/interfaces.ts +6 -12
  56. package/src/assets/assets.class.ts +123 -0
  57. package/src/assets/functions.ts +440 -0
  58. package/src/assets/interfaces.ts +41 -0
  59. package/src/clusters/functions.ts +39 -8
  60. package/src/clusters/interfaces.ts +21 -3
  61. package/src/domains/functions.ts +17 -6
  62. package/src/drivers/functions.ts +4 -6
  63. package/src/drivers/interfaces.ts +11 -7
  64. package/src/edge/functions.ts +18 -10
  65. package/src/ldap-sources/functions.ts +4 -7
  66. package/src/metadata/functions.ts +16 -10
  67. package/src/metadata/interfaces.ts +20 -4
  68. package/src/modules/functions.ts +29 -7
  69. package/src/modules/interfaces.ts +15 -12
  70. package/src/oauth-sources/functions.ts +4 -7
  71. package/src/repositories/functions.ts +35 -35
  72. package/src/repositories/interfaces.ts +35 -3
  73. package/src/resources/interface.ts +9 -4
  74. package/src/saml-sources/functions.ts +6 -9
  75. package/src/settings/functions.ts +14 -10
  76. package/src/settings/interfaces.ts +8 -0
  77. package/src/short-url/functions.ts +155 -0
  78. package/src/short-url/interfaces.ts +25 -0
  79. package/src/short-url/short-url.class.ts +33 -0
  80. package/src/signage/interfaces.ts +10 -1
  81. package/src/storages/functions.ts +88 -0
  82. package/src/storages/interfaces.ts +7 -0
  83. package/src/storages/storage.class.ts +34 -0
  84. package/src/systems/functions.ts +113 -13
  85. package/src/systems/interfaces.ts +65 -5
  86. package/src/triggers/functions.ts +9 -8
  87. package/src/triggers/interfaces.ts +10 -0
  88. package/src/users/functions.ts +104 -9
  89. package/src/users/interfaces.ts +40 -2
  90. package/src/webrtc/functions.ts +120 -0
  91. package/src/webrtc/interfaces.ts +77 -0
  92. package/src/zones/functions.ts +28 -7
  93. package/src/zones/interfaces.ts +10 -4
@@ -1,14 +1,16 @@
1
- /** Mapping of available query paramters for the dependencies index */
2
- export interface PlaceDriverQueryOptions {
3
- /** Set maximum number of results to return. Defaults to `20` */
4
- limit?: number;
5
- /** Set number of results to skip. Defaults to `0` */
6
- offset?: number;
7
- /** Filter result by type of driver. One of either `ssh`, `device`, `service` or `logic` */
1
+ import { PlaceResourceQueryOptions } from '../resources/interface';
2
+ /** Mapping of available query parameters for the drivers index endpoint */
3
+ export interface PlaceDriverQueryOptions extends PlaceResourceQueryOptions {
4
+ /** Filter result by type of driver */
8
5
  role?: 'ssh' | 'device' | 'service' | 'logic' | 'websocket';
9
6
  /** Only return drivers that have an update available */
10
7
  update_available?: boolean;
11
8
  }
9
+ /** Mapping of available query parameters for the drivers show endpoint */
10
+ export interface PlaceDriverShowOptions {
11
+ /** Check if the driver is compiled */
12
+ compilation_status?: boolean;
13
+ }
12
14
  /** List of details that can be assigned to a new Driver */
13
15
  export interface PlaceDriverDetails {
14
16
  /** Default name for the driver */
@@ -1,5 +1,4 @@
1
1
  import { PlaceAuthSourceQueryOptions } from '../auth-sources/interfaces';
2
- import { HashMap } from '../utilities/types';
3
2
  import { PlaceEdge } from './edge';
4
3
  /**
5
4
  * Query the available Edges
@@ -9,9 +8,8 @@ export declare function queryEdges(query_params?: PlaceAuthSourceQueryOptions):
9
8
  /**
10
9
  * Get the data for an Edge
11
10
  * @param id ID of the Edge to retrieve
12
- * @param query_params Query parameters to add the to request URL
13
11
  */
14
- export declare function showEdge(id: string, query_params?: HashMap): import('rxjs').Observable<PlaceEdge>;
12
+ export declare function showEdge(id: string): import('rxjs').Observable<PlaceEdge>;
15
13
  /**
16
14
  * Update the Edge in the database
17
15
  * @param id ID of the Edge
@@ -29,14 +27,17 @@ export declare function addEdge(form_data: Partial<PlaceEdge>): import('rxjs').O
29
27
  /**
30
28
  * Remove an Edge node from the database
31
29
  * @param id ID of the Edge
32
- * @param query_params Query parameters to add the to request URL
33
30
  */
34
- export declare function removeEdge(id: string, query_params?: HashMap): import('rxjs').Observable<HashMap<any>>;
31
+ export declare function removeEdge(id: string): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
35
32
  /**
36
33
  * Generate token for Edge connection
37
34
  * @param id ID of the Edge
38
- * @param query_params Query parameters to add the to request URL
39
35
  */
40
- export declare function retrieveEdgeToken(id: string, query_params?: HashMap): import('rxjs').Observable<{
36
+ export declare function retrieveEdgeToken(id: string): import('rxjs').Observable<{
41
37
  token: string;
42
38
  }>;
39
+ /**
40
+ * Get the edge control websocket URL.
41
+ * This is the endpoint that edge devices use to connect to the cluster.
42
+ */
43
+ export declare function edgeControlUrl(): string;