@placeos/ts-client 4.6.0 → 4.7.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 (97) hide show
  1. package/dist/alerts/alert.d.ts +1 -0
  2. package/dist/alerts/functions.d.ts +7 -10
  3. package/dist/alerts/interfaces.d.ts +22 -0
  4. package/dist/api.d.ts +30 -19
  5. package/dist/applications/functions.d.ts +2 -5
  6. package/dist/applications/interfaces.d.ts +5 -11
  7. package/dist/assets/functions.d.ts +5 -5
  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 +2238 -1897
  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/triggers/trigger.d.ts +1 -0
  45. package/dist/users/functions.d.ts +50 -10
  46. package/dist/users/interfaces.d.ts +35 -2
  47. package/dist/webrtc/functions.d.ts +52 -0
  48. package/dist/webrtc/interfaces.d.ts +73 -0
  49. package/dist/zones/functions.d.ts +12 -6
  50. package/dist/zones/interfaces.d.ts +9 -4
  51. package/package.json +1 -1
  52. package/src/alerts/alert.ts +3 -0
  53. package/src/alerts/functions.ts +14 -22
  54. package/src/alerts/interfaces.ts +25 -0
  55. package/src/api.ts +116 -3
  56. package/src/applications/functions.ts +4 -7
  57. package/src/applications/interfaces.ts +6 -12
  58. package/src/assets/functions.ts +10 -5
  59. package/src/assets/interfaces.ts +41 -0
  60. package/src/clusters/functions.ts +39 -8
  61. package/src/clusters/interfaces.ts +21 -3
  62. package/src/domains/functions.ts +17 -6
  63. package/src/drivers/functions.ts +4 -6
  64. package/src/drivers/interfaces.ts +11 -7
  65. package/src/edge/functions.ts +18 -10
  66. package/src/ldap-sources/functions.ts +4 -7
  67. package/src/metadata/functions.ts +16 -10
  68. package/src/metadata/interfaces.ts +20 -4
  69. package/src/modules/functions.ts +29 -7
  70. package/src/modules/interfaces.ts +15 -12
  71. package/src/oauth-sources/functions.ts +4 -7
  72. package/src/repositories/functions.ts +35 -35
  73. package/src/repositories/interfaces.ts +35 -3
  74. package/src/resources/interface.ts +9 -4
  75. package/src/saml-sources/functions.ts +6 -9
  76. package/src/settings/functions.ts +14 -10
  77. package/src/settings/interfaces.ts +8 -0
  78. package/src/short-url/functions.ts +155 -0
  79. package/src/short-url/interfaces.ts +25 -0
  80. package/src/short-url/short-url.class.ts +33 -0
  81. package/src/signage/interfaces.ts +10 -1
  82. package/src/storages/functions.ts +88 -0
  83. package/src/storages/interfaces.ts +7 -0
  84. package/src/storages/storage.class.ts +34 -0
  85. package/src/systems/functions.ts +113 -13
  86. package/src/systems/interfaces.ts +65 -5
  87. package/src/triggers/functions.ts +9 -8
  88. package/src/triggers/interfaces.ts +10 -0
  89. package/src/triggers/trigger.ts +3 -0
  90. package/src/users/functions.ts +104 -9
  91. package/src/users/interfaces.ts +40 -2
  92. package/src/webrtc/functions.ts +120 -0
  93. package/src/webrtc/interfaces.ts +77 -0
  94. package/src/zones/functions.ts +28 -7
  95. package/src/zones/interfaces.ts +10 -4
  96. package/dist/assets/types.d.ts +0 -1
  97. package/src/assets/types.ts +0 -0
@@ -13,5 +13,6 @@ export declare class PlaceAlert extends PlaceResource {
13
13
  readonly severity: AlertSeverity;
14
14
  readonly alert_type: AlertType;
15
15
  readonly debounce_period: number;
16
+ readonly any_match: boolean;
16
17
  constructor(data: Partial<PlaceAlert>);
17
18
  }
@@ -1,17 +1,16 @@
1
- import { PlaceResourceQueryOptions } from '../resources/interface';
2
1
  import { PlaceAlert } from './alert';
3
2
  import { PlaceAlertDashboard } from './dashboard';
3
+ import { PlaceAlertDashboardQueryOptions, PlaceAlertQueryOptions, PlaceAlertShowOptions } from './interfaces';
4
4
  /**
5
5
  * Query the available alert dashboards
6
6
  * @param query_params Query parameters to add the to request URL
7
7
  */
8
- export declare function queryAlertDashboards(query_params?: PlaceResourceQueryOptions): import('..').QueryResponse<PlaceAlertDashboard>;
8
+ export declare function queryAlertDashboards(query_params?: PlaceAlertDashboardQueryOptions): import('..').QueryResponse<PlaceAlertDashboard>;
9
9
  /**
10
10
  * Get the data for an alert dashboard
11
11
  * @param id ID of the alert dashboard to retrieve
12
- * @param query_params Query parameters to add the to request URL
13
12
  */
14
- export declare function showAlertDashboard(id: string, query_params?: Record<string, any>): import('rxjs').Observable<PlaceAlertDashboard>;
13
+ export declare function showAlertDashboard(id: string): import('rxjs').Observable<PlaceAlertDashboard>;
15
14
  /**
16
15
  * Update the alert dashboard in the database
17
16
  * @param id ID of the alert dashboard
@@ -29,9 +28,8 @@ export declare function addAlertDashboard(form_data: Partial<PlaceAlertDashboard
29
28
  /**
30
29
  * Remove an alert dashboard from the database
31
30
  * @param id ID of the alert dashboard
32
- * @param query_params Query parameters to add the to request URL
33
31
  */
34
- export declare function removeAlertDashboard(id: string, query_params?: Record<string, any>): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
32
+ export declare function removeAlertDashboard(id: string): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
35
33
  /**
36
34
  * Get list of alerts for dashbaord
37
35
  * @param id Alert dashboard ID
@@ -41,13 +39,13 @@ export declare function listDashboardAlerts(id: string): import('..').QueryRespo
41
39
  * Query the available alerts
42
40
  * @param query_params Query parameters to add the to request URL
43
41
  */
44
- export declare function queryAlerts(query_params?: PlaceResourceQueryOptions): import('..').QueryResponse<PlaceAlert>;
42
+ export declare function queryAlerts(query_params?: PlaceAlertQueryOptions): import('..').QueryResponse<PlaceAlert>;
45
43
  /**
46
44
  * Get the data for an alert
47
45
  * @param id ID of the alert to retrieve
48
46
  * @param query_params Query parameters to add the to request URL
49
47
  */
50
- export declare function showAlert(id: string, query_params?: Record<string, any>): import('rxjs').Observable<PlaceAlert>;
48
+ export declare function showAlert(id: string, query_params?: PlaceAlertShowOptions): import('rxjs').Observable<PlaceAlert>;
51
49
  /**
52
50
  * Update the alert in the database
53
51
  * @param id ID of the alert
@@ -65,6 +63,5 @@ export declare function addAlert(form_data: Partial<PlaceAlert>): import('rxjs')
65
63
  /**
66
64
  * Remove an alert from the database
67
65
  * @param id ID of the alert
68
- * @param query_params Query parameters to add the to request URL
69
66
  */
70
- export declare function removeAlert(id: string, query_params?: Record<string, any>): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
67
+ export declare function removeAlert(id: string): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
@@ -0,0 +1,22 @@
1
+ import { PlaceResourceQueryOptions } from '../resources/interface';
2
+ /** Mapping of available query parameters for the alert dashboards index endpoint */
3
+ export interface PlaceAlertDashboardQueryOptions extends PlaceResourceQueryOptions {
4
+ /** Return dashboards for a specific authority */
5
+ authority_id?: string;
6
+ }
7
+ /** Mapping of available query parameters for the alerts index endpoint */
8
+ export interface PlaceAlertQueryOptions extends PlaceResourceQueryOptions {
9
+ /** Return alerts for a specific dashboard */
10
+ alert_dashboard_id?: string;
11
+ /** Filter by alert severity */
12
+ severity?: string;
13
+ /** Filter by alert type */
14
+ alert_type?: string;
15
+ /** Filter by enabled status */
16
+ enabled?: boolean;
17
+ }
18
+ /** Mapping of available query parameters for the alerts show endpoint */
19
+ export interface PlaceAlertShowOptions {
20
+ /** Return the dashboard associated with this alert */
21
+ dashboard?: boolean;
22
+ }
package/dist/api.d.ts CHANGED
@@ -4,6 +4,7 @@ export { deregisterMockEndpoint, registerMockEndpoint, setMockNotFoundHandler, }
4
4
  export { PlaceAlert } from './alerts/alert';
5
5
  export { PlaceAlertDashboard } from './alerts/dashboard';
6
6
  export { addAlert, addAlertDashboard, listDashboardAlerts, queryAlertDashboards, queryAlerts, removeAlert, removeAlertDashboard, showAlert, showAlertDashboard, updateAlert, updateAlertDashboard, } from './alerts/functions';
7
+ export type { PlaceAlertDashboardQueryOptions, PlaceAlertQueryOptions, PlaceAlertShowOptions, } from './alerts/interfaces';
7
8
  export { PlaceApplication } from './applications/application';
8
9
  export { addApplication, queryApplications, removeApplication, showApplication, updateApplication, } from './applications/functions';
9
10
  export type { PlaceApplicationQueryOptions } from './applications/interfaces';
@@ -11,57 +12,58 @@ export type { PlaceAuthSourceQueryOptions } from './auth-sources/interfaces';
11
12
  export { AuthType, PlaceMQTTBroker } from './broker/broker';
12
13
  export { addBroker, queryBrokers, removeBroker, showBroker, updateBroker, } from './broker/functions';
13
14
  export { PlaceCluster } from './clusters/cluster';
14
- export { queryClusters, queryProcesses, showCluster, terminateProcess, } from './clusters/functions';
15
- export type { PlaceClusterQueryOptions } from './clusters/interfaces';
15
+ export { clusterRebalance, clusterVersions, queryClusters, queryProcesses, showCluster, terminateProcess, } from './clusters/functions';
16
+ export type { PlaceClusterQueryOptions, PlaceClusterShowOptions, PlaceClusterTerminateOptions, PlaceClusterVersions, } from './clusters/interfaces';
16
17
  export { PlaceProcess } from './clusters/process';
17
18
  export { PlaceDomain } from './domains/domain';
18
- export { addDomain, queryDomains, removeDomain, showDomain, updateDomain, } from './domains/functions';
19
+ export { addDomain, lookupDomainByEmail, queryDomains, removeDomain, showDomain, updateDomain, } from './domains/functions';
19
20
  export { PlaceDriver } from './drivers/driver';
20
21
  export { PlaceDriverRole } from './drivers/enums';
21
22
  export { addDriver, driverReadme, isDriverCompiled, queryDrivers, recompileDriver, reloadDriver, removeDriver, showDriver, updateDriver, } from './drivers/functions';
22
- export type { PlaceDriverDetails, PlaceDriverQueryOptions, } from './drivers/interfaces';
23
+ export type { PlaceDriverDetails, PlaceDriverQueryOptions, PlaceDriverShowOptions, } from './drivers/interfaces';
23
24
  export { PlaceEdge } from './edge/edge';
24
- export { addEdge, queryEdges, removeEdge, retrieveEdgeToken, showEdge, updateEdge, } from './edge/functions';
25
+ export { addEdge, edgeControlUrl, queryEdges, removeEdge, retrieveEdgeToken, showEdge, updateEdge, } from './edge/functions';
25
26
  export { addLDAPSource, queryLDAPSources, removeLDAPSource, showLDAPSource, updateLDAPSource, } from './ldap-sources/functions';
26
27
  export { PlaceLDAPSource } from './ldap-sources/ldap-source';
27
28
  export { addMetadata, listChildMetadata, listMetadata, listMetadataHistory, removeMetadata, showMetadata, updateMetadata, } from './metadata/functions';
28
- export type { PlaceMetadataOptions, PlaceZoneMetadataOptions, } from './metadata/interfaces';
29
+ export type { PlaceMetadataDeleteOptions, PlaceMetadataHistoryOptions, PlaceMetadataOptions, PlaceZoneMetadataOptions, } from './metadata/interfaces';
29
30
  export { PlaceMetadata } from './metadata/metadata';
30
31
  export { PlaceZoneMetadata } from './metadata/zone-metadata';
31
- export { addModule, loadModule, lookupModuleState, moduleRuntimeError, moduleSettings, moduleState, queryModules, removeModule, showModule, startModule, stopModule, updateModule, } from './modules/functions';
32
- export type { PlaceModulePingOptions, PlaceModuleQueryOptions, } from './modules/interfaces';
32
+ export { addModule, executeOnModule, loadModule, lookupModuleState, moduleRuntimeError, moduleSettings, moduleState, queryModules, removeModule, showModule, startModule, stopModule, updateModule, } from './modules/functions';
33
+ export type { PlaceModulePingOptions, PlaceModuleQueryOptions, PlaceModuleShowOptions, } from './modules/interfaces';
33
34
  export { PlaceModule } from './modules/module';
34
35
  export { addOAuthSource, queryOAuthSources, removeOAuthSource, showOAuthSource, updateOAuthSource, } from './oauth-sources/functions';
35
36
  export { PlaceOAuthSource } from './oauth-sources/oauth-source';
36
- export { addRepository, listInterfaceRepositories, listRemoteRepositoryBranches, listRemoteRepositoryCommits, listRemoteRepositoryDefaultBranch, listRepositoryBranches, listRepositoryCommits, listRepositoryDefaultBranch, listRepositoryDriverDetails, listRepositoryDrivers, pullRepositoryChanges, queryRepositories, removeRepository, showRepository, updateRepository, } from './repositories/functions';
37
+ export { addRepository, listInterfaceRepositories, listRemoteRepositoryBranches, listRemoteRepositoryCommits, listRemoteRepositoryDefaultBranch, listRepositoryBranches, listRepositoryCommits, listRepositoryDefaultBranch, listRepositoryDriverDetails, listRepositoryDrivers, listRepositoryFolders, pullRepositoryChanges, queryRepositories, removeRepository, showRepository, updateRepository, } from './repositories/functions';
37
38
  export { PlaceRepositoryType } from './repositories/interfaces';
38
- export type { GitCommitDetails, PlaceRepositoryCommit, PlaceRepositoryCommitQuery, PlaceRepositoryDetailsQuery, PlaceRepositoryPullQuery, } from './repositories/interfaces';
39
+ export type { GitCommitDetails, PlaceRemoteRepositoryCommitsQuery, PlaceRemoteRepositoryQuery, PlaceRepositoryCommit, PlaceRepositoryCommitQuery, PlaceRepositoryDetailsQuery, PlaceRepositoryFoldersQuery, PlaceRepositoryPullQuery, PlaceRepositoryQueryOptions, } from './repositories/interfaces';
39
40
  export { PlaceRepository } from './repositories/repository';
40
41
  export { create, lastRequestTotal, query, remove, requestTotal, show, update, type QueryResponse, } from './resources/functions';
42
+ export type { PlaceResourceQueryOptions } from './resources/interface';
41
43
  export { PlaceResource } from './resources/resource';
42
44
  export { addSAMLSource, querySAMLSources, removeSAMLSource, showSAMLSource, updateSAMLSource, } from './saml-sources/functions';
43
45
  export { PlaceSAMLSource } from './saml-sources/saml-source';
44
46
  export type { PlaceSamlRequestAttribute } from './saml-sources/saml-source';
45
47
  export { addSettings, querySettings, removeSettings, settingsHistory, showSettings, updateSettings, } from './settings/functions';
46
48
  export { EncryptionLevel } from './settings/interfaces';
47
- export type { PlaceSettingsQueryOptions } from './settings/interfaces';
49
+ export type { PlaceSettingsHistoryOptions, PlaceSettingsQueryOptions, } from './settings/interfaces';
48
50
  export { PlaceSettings } from './settings/settings';
49
- export { addSystem, addSystemModule, addSystemTrigger, executeOnSystem, functionList, listSystemTriggers, listSystemZones, lookupSystemModuleState, querySystems, querySystemsWithEmails, removeSystem, removeSystemModule, removeSystemTrigger, showSystem, startSystem, stopSystem, systemModuleState, systemSettings, updateSystem, } from './systems/functions';
50
- export type { PlaceModuleFunction, PlaceModuleFunctionMap, PlaceSystemShowOptions, PlaceSystemsQueryOptions, } from './systems/interfaces';
51
+ export { addSystem, addSystemModule, addSystemTrigger, executeOnSystem, functionList, listSystemTriggers, listSystemZones, lookupSystemModuleState, querySystems, querySystemsWithEmails, removeSystem, removeSystemModule, removeSystemTrigger, showSystem, showSystemTrigger, startSystem, stopSystem, systemControlUrl, systemMetadata, systemModuleState, systemSettings, updateSystem, updateSystemTrigger, } from './systems/functions';
52
+ export type { PlaceModuleFunction, PlaceModuleFunctionMap, PlaceSystemControlOptions, PlaceSystemMetadataOptions, PlaceSystemShowOptions, PlaceSystemStartStopOptions, PlaceSystemTriggerShowOptions, PlaceSystemTriggersQueryOptions, PlaceSystemUpdateOptions, PlaceSystemsQueryOptions, PlaceSystemsWithEmailsOptions, } from './systems/interfaces';
51
53
  export { PlaceSystem } from './systems/system';
52
54
  export { addTrigger, listTriggerInstances, queryTriggers, removeTrigger, showTrigger, updateTrigger, } from './triggers/functions';
53
55
  export { TriggerConditionOperator, TriggerTimeConditionType, TriggerWebhookType, } from './triggers/interfaces';
54
- export type { ExecuteArgs, TriggerActions, TriggerAtTimeCondition, TriggerComparison, TriggerConditionConstant, TriggerConditionValue, TriggerConditions, TriggerCronTimeCondition, TriggerFunction, TriggerMailer, TriggerStatusVariable, TriggerTimeCondition, TriggerWebhook, } from './triggers/interfaces';
56
+ export type { ExecuteArgs, PlaceTriggerQueryOptions, PlaceTriggerShowOptions, TriggerActions, TriggerAtTimeCondition, TriggerComparison, TriggerConditionConstant, TriggerConditionValue, TriggerConditions, TriggerCronTimeCondition, TriggerFunction, TriggerMailer, TriggerStatusVariable, TriggerTimeCondition, TriggerWebhook, } from './triggers/interfaces';
55
57
  export { PlaceTrigger } from './triggers/trigger';
56
- export { addUser, currentUser, queryUsers, removeUser, showUser, updateUser, } from './users/functions';
57
- export type { PlaceUserQueryOptions } from './users/interfaces';
58
+ export { addUser, currentUser, currentUserResourceToken, queryUserGroups, queryUsers, removeUser, removeUserResourceToken, reviveUser, searchUserMetadata, showUser, updateUser, userMetadata, userResourceToken, } from './users/functions';
59
+ export type { PlaceUserDeleteOptions, PlaceUserGroupsOptions, PlaceUserMetadataOptions, PlaceUserMetadataSearchOptions, PlaceUserQueryOptions, PlaceUserShowOptions, } from './users/interfaces';
58
60
  export { PlaceUser } from './users/user';
59
61
  export type { WorktimePreference } from './users/user';
60
- export { addZone, executeOnZone, listZoneTags, listZoneTriggers, queryZones, removeZone, showZone, updateZone, } from './zones/functions';
61
- export type { PlaceZoneQueryOptions, PlaceZoneShowOptions, } from './zones/interfaces';
62
+ export { addZone, executeOnZone, listZoneTags, listZoneTriggers, queryZones, removeZone, showZone, updateZone, zoneMetadata, } from './zones/functions';
63
+ export type { PlaceZoneMetadataQueryOptions, PlaceZoneQueryOptions, PlaceZoneShowOptions, } from './zones/interfaces';
62
64
  export { PlaceZone } from './zones/zone';
63
65
  export { addSignageMedia, addSignagePlaylist, approveSignagePlaylist, listSignagePlaylistMedia, listSignagePlaylistMediaRevisions, querySignageMedia, querySignagePlaylists, removeSignageMedia, removeSignagePlaylist, showSignage, showSignageMedia, showSignageMetrics, showSignagePlaylist, updateSignageMedia, updateSignagePlaylist, updateSignagePlaylistMedia, } from './signage/functions';
64
- export type { SignageMediaQueryOptions, SignageMetrics, } from './signage/interfaces';
66
+ export type { SignageMediaQueryOptions, SignageMetrics, SignagePlaylistQueryOptions, SignagePlaylistRevisionsOptions, } from './signage/interfaces';
65
67
  export { MediaAnimation, SignageMedia, type MediaOrientation, } from './signage/media.class';
66
68
  export { SignagePlaylist, SignagePlaylistMedia, } from './signage/playlist.class';
67
69
  export { addAnswer, queryAnswers } from './staff/answers/functions';
@@ -78,3 +80,12 @@ export type { SurveyQueryOptions, SurveyShowOptions, } from './staff/surveys/int
78
80
  export { Survey, type SurveyPage } from './staff/surveys/model';
79
81
  export { PlaceAsset, PlaceAssetCategory, PlaceAssetPurchaseOrder, PlaceAssetType, } from './assets/assets.class';
80
82
  export { addAsset, addAssetCategory, addAssetPurchaseOrder, addAssetType, addAssets, queryAssetCategories, queryAssetPurchaseOrders, queryAssetTypes, queryAssets, removeAsset, removeAssetCategory, removeAssetPurchaseOrder, removeAssetType, removeAssets, showAsset, showAssetCategory, showAssetPurchaseOrder, showAssetType, updateAsset, updateAssetCategory, updateAssetPurchaseOrder, updateAssetType, updateAssets, } from './assets/functions';
83
+ export type { PlaceAssetCategoryQueryOptions, PlaceAssetPurchaseOrderQueryOptions, PlaceAssetQueryOptions, PlaceAssetTypeQueryOptions, } from './assets/interfaces';
84
+ export { PlaceShortUrl } from './short-url/short-url.class';
85
+ export { addShortUrl, generateQrCode, getShortUrlQrCodeSvg, qrCodeUrl, queryShortUrls, removeShortUrl, shortUrlQrCodePngUrl, shortUrlRedirectUrl, showShortUrl, updateShortUrl, } from './short-url/functions';
86
+ export type { PlaceQrCodeOptions, PlaceShortUrlPngQrOptions, PlaceShortUrlQueryOptions, QrCodeFormat, } from './short-url/interfaces';
87
+ export { PlaceStorage, type StorageType } from './storages/storage.class';
88
+ export { addStorage, queryStorages, removeStorage, showStorage, updateStorage, } from './storages/functions';
89
+ export type { PlaceStorageQueryOptions } from './storages/interfaces';
90
+ export { queryWebrtcRooms, showWebrtcRoom, webrtcGuestEntry, webrtcGuestExit, webrtcKickUser, webrtcSessionMembers, webrtcSignallerUrl, webrtcTransferUser, } from './webrtc/functions';
91
+ export type { PlaceGuestParticipant, PlaceKickReason, PlaceWebrtcMember, PlaceWebrtcRoomDetails, PlaceWebrtcRoomsQueryOptions, } from './webrtc/interfaces';
@@ -1,4 +1,3 @@
1
- import { HashMap } from '../utilities/types';
2
1
  import { PlaceApplication } from './application';
3
2
  import { PlaceApplicationQueryOptions } from './interfaces';
4
3
  /**
@@ -9,9 +8,8 @@ export declare function queryApplications(query_params?: PlaceApplicationQueryOp
9
8
  /**
10
9
  * Get the data for an application
11
10
  * @param id ID of the application to retrieve
12
- * @param query_params Query parameters to add the to request URL
13
11
  */
14
- export declare function showApplication(id: string, query_params?: HashMap): import('rxjs').Observable<PlaceApplication>;
12
+ export declare function showApplication(id: string): import('rxjs').Observable<PlaceApplication>;
15
13
  /**
16
14
  * Update the application in the database
17
15
  * @param id ID of the application
@@ -29,6 +27,5 @@ export declare function addApplication(form_data: Partial<PlaceApplication>): im
29
27
  /**
30
28
  * Remove an application from the database
31
29
  * @param id ID of the application
32
- * @param query_params Query parameters to add the to request URL
33
30
  */
34
- export declare function removeApplication(id: string, query_params?: HashMap): import('rxjs').Observable<HashMap<any>>;
31
+ export declare function removeApplication(id: string): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
@@ -1,12 +1,6 @@
1
- /** Mapping of available query paramters for the application index endpoint */
2
- export interface PlaceApplicationQueryOptions {
3
- /**
4
- * Search filter supporting the following syntax
5
- * https://www.elastic.co/guide/en/elasticsearch/reference/5.5/query-dsl-simple-query-string-query.html
6
- */
7
- q?: string;
8
- /** Number of results to return. Defaults to `20`. Max `500` */
9
- limit?: number;
10
- /** Offset the page of results. Max `10000` */
11
- offset?: number;
1
+ import { PlaceResourceQueryOptions } from '../resources/interface';
2
+ /** Mapping of available query parameters for the OAuth apps index endpoint */
3
+ export interface PlaceApplicationQueryOptions extends PlaceResourceQueryOptions {
4
+ /** The ID of the domain to list applications for */
5
+ authority_id?: string;
12
6
  }
@@ -1,10 +1,10 @@
1
- import { PlaceResourceQueryOptions } from '../resources/interface';
2
1
  import { PlaceAsset, PlaceAssetCategory, PlaceAssetPurchaseOrder, PlaceAssetType } from './assets.class';
2
+ import { PlaceAssetCategoryQueryOptions, PlaceAssetPurchaseOrderQueryOptions, PlaceAssetQueryOptions, PlaceAssetTypeQueryOptions } from './interfaces';
3
3
  /**
4
4
  * Query the available assets
5
5
  * @param query_params Query parameters to add the to request URL
6
6
  */
7
- export declare function queryAssets(query_params?: PlaceResourceQueryOptions): import('..').QueryResponse<PlaceAsset>;
7
+ export declare function queryAssets(query_params?: PlaceAssetQueryOptions): import('..').QueryResponse<PlaceAsset>;
8
8
  /**
9
9
  * Get the data for an asset
10
10
  * @param id ID of the asset to retrieve
@@ -55,7 +55,7 @@ export declare function removeAssets(id_list: string[], query_params?: Record<st
55
55
  * Query the available asset types
56
56
  * @param query_params Query parameters to add the to request URL
57
57
  */
58
- export declare function queryAssetTypes(query_params?: PlaceResourceQueryOptions): import('..').QueryResponse<PlaceAssetType>;
58
+ export declare function queryAssetTypes(query_params?: PlaceAssetTypeQueryOptions): import('..').QueryResponse<PlaceAssetType>;
59
59
  /**
60
60
  * Get the data for an asset type
61
61
  * @param id ID of the asset type to retrieve
@@ -86,7 +86,7 @@ export declare function removeAssetType(id: string, query_params?: Record<string
86
86
  * Query the available asset categories
87
87
  * @param query_params Query parameters to add the to request URL
88
88
  */
89
- export declare function queryAssetCategories(query_params?: PlaceResourceQueryOptions): import('..').QueryResponse<PlaceAssetCategory>;
89
+ export declare function queryAssetCategories(query_params?: PlaceAssetCategoryQueryOptions): import('..').QueryResponse<PlaceAssetCategory>;
90
90
  /**
91
91
  * Get the data for an asset category
92
92
  * @param id ID of the asset category to retrieve
@@ -117,7 +117,7 @@ export declare function removeAssetCategory(id: string, query_params?: Record<st
117
117
  * Query the available asset purchase orders
118
118
  * @param query_params Query parameters to add the to request URL
119
119
  */
120
- export declare function queryAssetPurchaseOrders(query_params?: PlaceResourceQueryOptions): import('..').QueryResponse<PlaceAssetPurchaseOrder>;
120
+ export declare function queryAssetPurchaseOrders(query_params?: PlaceAssetPurchaseOrderQueryOptions): import('..').QueryResponse<PlaceAssetPurchaseOrder>;
121
121
  /**
122
122
  * Get the data for an asset purchase order
123
123
  * @param id ID of the asset purchase order to retrieve
@@ -0,0 +1,38 @@
1
+ import { PlaceResourceQueryOptions } from '../resources/interface';
2
+ /** Mapping of available query parameters for the assets index endpoint */
3
+ export interface PlaceAssetQueryOptions extends PlaceResourceQueryOptions {
4
+ /** Return assets which are in the zone provided */
5
+ zone_id?: string;
6
+ /** Return assets that match the asset type ID provided */
7
+ type_id?: string;
8
+ /** Return assets that match the purchase order ID provided */
9
+ order_id?: string;
10
+ /** Return assets that have a matching barcode */
11
+ barcode?: string;
12
+ /** Return assets that have a matching serial number */
13
+ serial_number?: string;
14
+ }
15
+ /** Mapping of available query parameters for the asset types index endpoint */
16
+ export interface PlaceAssetTypeQueryOptions extends PlaceResourceQueryOptions {
17
+ /** Return assets with the provided brand name */
18
+ brand?: string;
19
+ /** Return assets with the provided model number */
20
+ model_number?: string;
21
+ /** Return asset types in the category provided */
22
+ category_id?: string;
23
+ /** Filters the asset count to the zone provided */
24
+ zone_id?: string;
25
+ }
26
+ /** Mapping of available query parameters for the asset categories index endpoint */
27
+ export interface PlaceAssetCategoryQueryOptions extends PlaceResourceQueryOptions {
28
+ /**
29
+ * Filter categories by hidden status.
30
+ * `true` returns only hidden categories,
31
+ * `false` returns only non-hidden categories,
32
+ * `undefined` returns all categories.
33
+ */
34
+ hidden?: boolean;
35
+ }
36
+ /** Mapping of available query parameters for the asset purchase orders index endpoint */
37
+ export interface PlaceAssetPurchaseOrderQueryOptions extends PlaceResourceQueryOptions {
38
+ }
@@ -1,6 +1,7 @@
1
+ import { Observable } from 'rxjs';
1
2
  import { HashMap } from '../utilities/types';
2
3
  import { PlaceCluster } from './cluster';
3
- import { PlaceClusterQueryOptions } from './interfaces';
4
+ import { PlaceClusterQueryOptions, PlaceClusterShowOptions, PlaceClusterTerminateOptions, PlaceClusterVersions } from './interfaces';
4
5
  /**
5
6
  * Query the available clusters
6
7
  * @param query_params Query parameters to add the to request URL
@@ -11,16 +12,24 @@ export declare function queryClusters(query_params?: PlaceClusterQueryOptions):
11
12
  * @param id ID of the cluster to query
12
13
  * @param query_params Query parameters to add the to request URL
13
14
  */
14
- export declare function showCluster(id: string, query_params?: PlaceClusterQueryOptions): import('rxjs').Observable<PlaceCluster>;
15
+ export declare function showCluster(id: string, query_params?: PlaceClusterShowOptions): Observable<PlaceCluster>;
15
16
  /**
16
- * Query the available process for a cluster
17
+ * Query the available processes for a cluster
17
18
  * @param id ID of the cluster to query
18
19
  * @param query_params Query parameters to add the to request URL
19
20
  */
20
- export declare function queryProcesses(id: string, query_params?: HashMap): import('rxjs').Observable<any>;
21
+ export declare function queryProcesses(id: string, query_params?: PlaceClusterShowOptions): Observable<any>;
21
22
  /**
22
- * Terminal a process in a cluster
23
+ * Terminate a process in a cluster
23
24
  * @param id ID of the cluster associated with the process
24
- * @param driver Name of the process to kill
25
+ * @param query_params Query parameters including driver name (required)
25
26
  */
26
- export declare function terminateProcess(id: string, driver: string): import('rxjs').Observable<HashMap<any>>;
27
+ export declare function terminateProcess(id: string, query_params: PlaceClusterTerminateOptions): Observable<HashMap<any>>;
28
+ /**
29
+ * Force the core nodes to perform a cluster rebalance
30
+ */
31
+ export declare function clusterRebalance(): Observable<void>;
32
+ /**
33
+ * Get the core node versions
34
+ */
35
+ export declare function clusterVersions(): Observable<PlaceClusterVersions>;
@@ -1,9 +1,24 @@
1
- /** Mapping of available query paramters for the application index endpoint */
1
+ /** Mapping of available query parameters for the cluster index endpoint */
2
2
  export interface PlaceClusterQueryOptions {
3
- /** Whether the cluster status details should be included */
4
- include_status?: string;
3
+ /** Return the detailed status of the node including memory and CPU usage */
4
+ include_status?: boolean;
5
5
  /** Number of results to return. Defaults to `20`. Max `500` */
6
6
  limit?: number;
7
7
  /** Offset the page of results. Max `10000` */
8
8
  offset?: number;
9
9
  }
10
+ /** Mapping of available query parameters for the cluster show endpoint */
11
+ export interface PlaceClusterShowOptions {
12
+ /** Return the detailed status of the drivers running on the node */
13
+ include_status?: boolean;
14
+ }
15
+ /** Mapping of available query parameters for the cluster delete endpoint (terminate process) */
16
+ export interface PlaceClusterTerminateOptions {
17
+ /** The name of the driver to terminate (required) */
18
+ driver: string;
19
+ }
20
+ /** Response from the cluster versions endpoint */
21
+ export interface PlaceClusterVersions {
22
+ /** Map of node ID to version string */
23
+ [nodeId: string]: string;
24
+ }
@@ -1,3 +1,4 @@
1
+ import { Observable } from 'rxjs';
1
2
  import { PlaceResourceQueryOptions } from '../resources/interface';
2
3
  import { HashMap } from '../utilities/types';
3
4
  import { PlaceDomain } from './domain';
@@ -9,9 +10,8 @@ export declare function queryDomains(query_params?: PlaceResourceQueryOptions):
9
10
  /**
10
11
  * Get the data for a domain
11
12
  * @param id ID of the domain to retrieve
12
- * @param query_params Query parameters to add the to request URL
13
13
  */
14
- export declare function showDomain(id: string, query_params?: HashMap): import('rxjs').Observable<PlaceDomain>;
14
+ export declare function showDomain(id: string): Observable<PlaceDomain>;
15
15
  /**
16
16
  * Update the domain in the database
17
17
  * @param id ID of the domain
@@ -19,16 +19,20 @@ export declare function showDomain(id: string, query_params?: HashMap): import('
19
19
  * @param query_params Query parameters to add the to request URL
20
20
  * @param method HTTP verb to use on request. Defaults to `patch`
21
21
  */
22
- export declare function updateDomain(id: string, form_data: Partial<PlaceDomain>, method?: 'put' | 'patch'): import('rxjs').Observable<PlaceDomain>;
22
+ export declare function updateDomain(id: string, form_data: Partial<PlaceDomain>, method?: 'put' | 'patch'): Observable<PlaceDomain>;
23
23
  /**
24
24
  * Add a new domain to the database
25
25
  * @param form_data Domain data
26
26
  * @param query_params Query parameters to add the to request URL
27
27
  */
28
- export declare function addDomain(form_data: Partial<PlaceDomain>): import('rxjs').Observable<PlaceDomain>;
28
+ export declare function addDomain(form_data: Partial<PlaceDomain>): Observable<PlaceDomain>;
29
29
  /**
30
30
  * Remove a domain from the database
31
31
  * @param id ID of the domain
32
- * @param query_params Query parameters to add the to request URL
33
32
  */
34
- export declare function removeDomain(id: string, query_params?: HashMap): import('rxjs').Observable<HashMap<any>>;
33
+ export declare function removeDomain(id: string): Observable<HashMap<any>>;
34
+ /**
35
+ * Find the domain name by looking into domain registered email domains
36
+ * @param email Email address to lookup
37
+ */
38
+ export declare function lookupDomainByEmail(email: string): Observable<PlaceDomain>;
@@ -1,6 +1,5 @@
1
- import { HashMap } from '../utilities/types';
2
1
  import { PlaceDriver } from './driver';
3
- import { PlaceDriverQueryOptions } from './interfaces';
2
+ import { PlaceDriverQueryOptions, PlaceDriverShowOptions } from './interfaces';
4
3
  /**
5
4
  * Query the available drivers
6
5
  * @param query_params Query parameters to add the to request URL
@@ -11,7 +10,7 @@ export declare function queryDrivers(query_params?: PlaceDriverQueryOptions): im
11
10
  * @param id ID of the driver to retrieve
12
11
  * @param query_params Query parameters to add the to request URL
13
12
  */
14
- export declare function showDriver(id: string, query_params?: HashMap): import('rxjs').Observable<PlaceDriver>;
13
+ export declare function showDriver(id: string, query_params?: PlaceDriverShowOptions): import('rxjs').Observable<PlaceDriver>;
15
14
  /**
16
15
  * Update the driver in the database
17
16
  * @param id ID of the driver
@@ -29,9 +28,8 @@ export declare function addDriver(form_data: Partial<PlaceDriver>): import('rxjs
29
28
  /**
30
29
  * Remove a driver from the database
31
30
  * @param id ID of the driver
32
- * @param query_params Query parameters to add the to request URL
33
31
  */
34
- export declare function removeDriver(id: string, query_params?: HashMap): import('rxjs').Observable<HashMap<any>>;
32
+ export declare function removeDriver(id: string): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
35
33
  /**
36
34
  * Request a recompilation of the driver's code
37
35
  * @param id ID of the driver
@@ -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;