@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.
- package/dist/alerts/functions.d.ts +7 -10
- package/dist/alerts/interfaces.d.ts +22 -0
- package/dist/api.d.ts +32 -19
- package/dist/applications/functions.d.ts +2 -5
- package/dist/applications/interfaces.d.ts +5 -11
- package/dist/assets/assets.class.d.ts +62 -0
- package/dist/assets/functions.d.ts +146 -0
- package/dist/assets/interfaces.d.ts +38 -0
- package/dist/clusters/functions.d.ts +16 -7
- package/dist/clusters/interfaces.d.ts +18 -3
- package/dist/domains/functions.d.ts +10 -6
- package/dist/drivers/functions.d.ts +3 -5
- package/dist/drivers/interfaces.d.ts +9 -7
- package/dist/edge/functions.d.ts +8 -7
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2695 -2081
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/ldap-sources/functions.d.ts +2 -5
- package/dist/metadata/functions.d.ts +8 -9
- package/dist/metadata/interfaces.d.ts +18 -4
- package/dist/modules/functions.d.ts +10 -4
- package/dist/modules/interfaces.d.ts +14 -12
- package/dist/oauth-sources/functions.d.ts +2 -5
- package/dist/repositories/functions.d.ts +17 -29
- package/dist/repositories/interfaces.d.ts +31 -3
- package/dist/resources/interface.d.ts +9 -4
- package/dist/saml-sources/functions.d.ts +4 -7
- package/dist/settings/functions.d.ts +6 -8
- package/dist/settings/interfaces.d.ts +7 -0
- package/dist/short-url/functions.d.ts +60 -0
- package/dist/short-url/interfaces.d.ts +22 -0
- package/dist/short-url/short-url.class.d.ts +17 -0
- package/dist/signage/interfaces.d.ts +9 -1
- package/dist/storages/functions.d.ts +31 -0
- package/dist/storages/interfaces.d.ts +6 -0
- package/dist/storages/storage.class.d.ts +18 -0
- package/dist/systems/functions.d.ts +38 -10
- package/dist/systems/interfaces.d.ts +58 -5
- package/dist/triggers/functions.d.ts +5 -7
- package/dist/triggers/interfaces.d.ts +9 -0
- package/dist/users/functions.d.ts +50 -10
- package/dist/users/interfaces.d.ts +35 -2
- package/dist/webrtc/functions.d.ts +52 -0
- package/dist/webrtc/interfaces.d.ts +73 -0
- package/dist/zones/functions.d.ts +12 -6
- package/dist/zones/interfaces.d.ts +9 -4
- package/package.json +1 -1
- package/src/alerts/functions.ts +14 -22
- package/src/alerts/interfaces.ts +25 -0
- package/src/api.ts +148 -3
- package/src/applications/functions.ts +4 -7
- package/src/applications/interfaces.ts +6 -12
- package/src/assets/assets.class.ts +123 -0
- package/src/assets/functions.ts +440 -0
- package/src/assets/interfaces.ts +41 -0
- package/src/clusters/functions.ts +39 -8
- package/src/clusters/interfaces.ts +21 -3
- package/src/domains/functions.ts +17 -6
- package/src/drivers/functions.ts +4 -6
- package/src/drivers/interfaces.ts +11 -7
- package/src/edge/functions.ts +18 -10
- package/src/ldap-sources/functions.ts +4 -7
- package/src/metadata/functions.ts +16 -10
- package/src/metadata/interfaces.ts +20 -4
- package/src/modules/functions.ts +29 -7
- package/src/modules/interfaces.ts +15 -12
- package/src/oauth-sources/functions.ts +4 -7
- package/src/repositories/functions.ts +35 -35
- package/src/repositories/interfaces.ts +35 -3
- package/src/resources/interface.ts +9 -4
- package/src/saml-sources/functions.ts +6 -9
- package/src/settings/functions.ts +14 -10
- package/src/settings/interfaces.ts +8 -0
- package/src/short-url/functions.ts +155 -0
- package/src/short-url/interfaces.ts +25 -0
- package/src/short-url/short-url.class.ts +33 -0
- package/src/signage/interfaces.ts +10 -1
- package/src/storages/functions.ts +88 -0
- package/src/storages/interfaces.ts +7 -0
- package/src/storages/storage.class.ts +34 -0
- package/src/systems/functions.ts +113 -13
- package/src/systems/interfaces.ts +65 -5
- package/src/triggers/functions.ts +9 -8
- package/src/triggers/interfaces.ts +10 -0
- package/src/users/functions.ts +104 -9
- package/src/users/interfaces.ts +40 -2
- package/src/webrtc/functions.ts +120 -0
- package/src/webrtc/interfaces.ts +77 -0
- package/src/zones/functions.ts +28 -7
- package/src/zones/interfaces.ts +10 -4
|
@@ -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?:
|
|
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
|
|
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
|
|
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?:
|
|
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?:
|
|
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
|
|
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';
|
|
@@ -76,3 +78,14 @@ export { SurveyQuestion } from './staff/questions/model';
|
|
|
76
78
|
export { addSurvey, querySurveys, removeSurvey, showSurvey, updateSurvey, } from './staff/surveys/functions';
|
|
77
79
|
export type { SurveyQueryOptions, SurveyShowOptions, } from './staff/surveys/interfaces';
|
|
78
80
|
export { Survey, type SurveyPage } from './staff/surveys/model';
|
|
81
|
+
export { PlaceAsset, PlaceAssetCategory, PlaceAssetPurchaseOrder, PlaceAssetType, } from './assets/assets.class';
|
|
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
|
|
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
|
|
31
|
+
export declare function removeApplication(id: string): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare class PlaceAssetCategory {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly parent_category_id: string;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly description: string;
|
|
6
|
+
readonly hidden: boolean;
|
|
7
|
+
readonly created_at: number;
|
|
8
|
+
readonly updated_at: number;
|
|
9
|
+
constructor(data: Partial<PlaceAssetCategory>);
|
|
10
|
+
}
|
|
11
|
+
export declare class PlaceAssetPurchaseOrder {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly purchase_order_number: string;
|
|
14
|
+
readonly invoice_number: string;
|
|
15
|
+
readonly supplier_details: Record<string, string>;
|
|
16
|
+
readonly purchase_date: number;
|
|
17
|
+
readonly unit_price: number;
|
|
18
|
+
readonly expected_service_start_date: number;
|
|
19
|
+
readonly expected_service_end_date: number;
|
|
20
|
+
readonly created_at: number;
|
|
21
|
+
readonly updated_at: number;
|
|
22
|
+
constructor(data: Partial<PlaceAssetPurchaseOrder>);
|
|
23
|
+
}
|
|
24
|
+
export declare class PlaceAssetType {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly category_id: string;
|
|
27
|
+
readonly name: string;
|
|
28
|
+
readonly brand: string;
|
|
29
|
+
readonly description: string;
|
|
30
|
+
readonly model_number: string;
|
|
31
|
+
readonly images: string[];
|
|
32
|
+
readonly created_at: number;
|
|
33
|
+
readonly updated_at: number;
|
|
34
|
+
constructor(data: Partial<PlaceAssetType>);
|
|
35
|
+
}
|
|
36
|
+
export declare class PlaceAsset {
|
|
37
|
+
readonly id: string;
|
|
38
|
+
readonly parent_id: string;
|
|
39
|
+
readonly asset_type_id: string;
|
|
40
|
+
readonly purchase_order_id: string;
|
|
41
|
+
readonly zone_id: string;
|
|
42
|
+
readonly identifier: string;
|
|
43
|
+
readonly serial_number: string;
|
|
44
|
+
readonly other_data: Record<string, string>;
|
|
45
|
+
readonly barcode: string;
|
|
46
|
+
readonly name: string;
|
|
47
|
+
readonly client_ids: Record<string, string>;
|
|
48
|
+
readonly map_id: string;
|
|
49
|
+
readonly bookable: boolean;
|
|
50
|
+
readonly accessible: boolean;
|
|
51
|
+
readonly zones: string[];
|
|
52
|
+
readonly place_groups: string[];
|
|
53
|
+
readonly assigned_to: string;
|
|
54
|
+
readonly assigned_name: string;
|
|
55
|
+
readonly features: string[];
|
|
56
|
+
readonly images: string[];
|
|
57
|
+
readonly notes: string;
|
|
58
|
+
readonly security_system_groups: string[];
|
|
59
|
+
readonly created_at: number;
|
|
60
|
+
readonly updated_at: number;
|
|
61
|
+
constructor(data: Partial<PlaceAsset>);
|
|
62
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { PlaceAsset, PlaceAssetCategory, PlaceAssetPurchaseOrder, PlaceAssetType } from './assets.class';
|
|
2
|
+
import { PlaceAssetCategoryQueryOptions, PlaceAssetPurchaseOrderQueryOptions, PlaceAssetQueryOptions, PlaceAssetTypeQueryOptions } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Query the available assets
|
|
5
|
+
* @param query_params Query parameters to add the to request URL
|
|
6
|
+
*/
|
|
7
|
+
export declare function queryAssets(query_params?: PlaceAssetQueryOptions): import('..').QueryResponse<PlaceAsset>;
|
|
8
|
+
/**
|
|
9
|
+
* Get the data for an asset
|
|
10
|
+
* @param id ID of the asset to retrieve
|
|
11
|
+
* @param query_params Query parameters to add the to request URL
|
|
12
|
+
*/
|
|
13
|
+
export declare function showAsset(id: string, query_params?: Record<string, any>): import('rxjs').Observable<PlaceAsset>;
|
|
14
|
+
/**
|
|
15
|
+
* Update the asset in the database
|
|
16
|
+
* @param id ID of the asset
|
|
17
|
+
* @param form_data New values for the asset
|
|
18
|
+
* @param query_params Query parameters to add the to request URL
|
|
19
|
+
* @param method HTTP verb to use on request. Defaults to `patch`
|
|
20
|
+
*/
|
|
21
|
+
export declare function updateAsset(id: string, form_data: Partial<PlaceAsset>, method?: 'put' | 'patch'): import('rxjs').Observable<PlaceAsset>;
|
|
22
|
+
/**
|
|
23
|
+
* Add a new asset to the database
|
|
24
|
+
* @param form_data Application data
|
|
25
|
+
* @param query_params Query parameters to add the to request URL
|
|
26
|
+
*/
|
|
27
|
+
export declare function addAsset(form_data: Partial<PlaceAsset>): import('rxjs').Observable<PlaceAsset>;
|
|
28
|
+
/**
|
|
29
|
+
* Remove an asset from the database
|
|
30
|
+
* @param id ID of the asset
|
|
31
|
+
* @param query_params Query parameters to add the to request URL
|
|
32
|
+
*/
|
|
33
|
+
export declare function removeAsset(id: string, query_params?: Record<string, any>): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
|
|
34
|
+
/**
|
|
35
|
+
* Add a list of new assets to the database
|
|
36
|
+
* @param form_data List of asset data
|
|
37
|
+
* @param query_params Query parameters to add the to request URL
|
|
38
|
+
*/
|
|
39
|
+
export declare function addAssets(form_data: Partial<PlaceAsset>[]): import('rxjs').Observable<any>;
|
|
40
|
+
/**
|
|
41
|
+
* Update a list of assets in the database
|
|
42
|
+
* @param id ID of the asset
|
|
43
|
+
* @param form_data New values for the asset
|
|
44
|
+
* @param query_params Query parameters to add the to request URL
|
|
45
|
+
* @param method HTTP verb to use on request. Defaults to `patch`
|
|
46
|
+
*/
|
|
47
|
+
export declare function updateAssets(form_data: Partial<PlaceAsset>[], method?: 'put' | 'patch'): import('rxjs').Observable<any>;
|
|
48
|
+
/**
|
|
49
|
+
* Remove an asset from the database
|
|
50
|
+
* @param id ID of the asset
|
|
51
|
+
* @param query_params Query parameters to add the to request URL
|
|
52
|
+
*/
|
|
53
|
+
export declare function removeAssets(id_list: string[], query_params?: Record<string, any>): import('rxjs').Observable<any>;
|
|
54
|
+
/**
|
|
55
|
+
* Query the available asset types
|
|
56
|
+
* @param query_params Query parameters to add the to request URL
|
|
57
|
+
*/
|
|
58
|
+
export declare function queryAssetTypes(query_params?: PlaceAssetTypeQueryOptions): import('..').QueryResponse<PlaceAssetType>;
|
|
59
|
+
/**
|
|
60
|
+
* Get the data for an asset type
|
|
61
|
+
* @param id ID of the asset type to retrieve
|
|
62
|
+
* @param query_params Query parameters to add the to request URL
|
|
63
|
+
*/
|
|
64
|
+
export declare function showAssetType(id: string, query_params?: Record<string, any>): import('rxjs').Observable<PlaceAssetType>;
|
|
65
|
+
/**
|
|
66
|
+
* Update the asset type in the database
|
|
67
|
+
* @param id ID of the asset type
|
|
68
|
+
* @param form_data New values for the asset
|
|
69
|
+
* @param query_params Query parameters to add the to request URL
|
|
70
|
+
* @param method HTTP verb to use on request. Defaults to `patch`
|
|
71
|
+
*/
|
|
72
|
+
export declare function updateAssetType(id: string, form_data: Partial<PlaceAssetType>, method?: 'put' | 'patch'): import('rxjs').Observable<PlaceAssetType>;
|
|
73
|
+
/**
|
|
74
|
+
* Add a new asset type to the database
|
|
75
|
+
* @param form_data Application data
|
|
76
|
+
* @param query_params Query parameters to add the to request URL
|
|
77
|
+
*/
|
|
78
|
+
export declare function addAssetType(form_data: Partial<PlaceAssetType>): import('rxjs').Observable<PlaceAssetType>;
|
|
79
|
+
/**
|
|
80
|
+
* Remove an asset type from the database
|
|
81
|
+
* @param id ID of the asset type
|
|
82
|
+
* @param query_params Query parameters to add the to request URL
|
|
83
|
+
*/
|
|
84
|
+
export declare function removeAssetType(id: string, query_params?: Record<string, any>): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
|
|
85
|
+
/**
|
|
86
|
+
* Query the available asset categories
|
|
87
|
+
* @param query_params Query parameters to add the to request URL
|
|
88
|
+
*/
|
|
89
|
+
export declare function queryAssetCategories(query_params?: PlaceAssetCategoryQueryOptions): import('..').QueryResponse<PlaceAssetCategory>;
|
|
90
|
+
/**
|
|
91
|
+
* Get the data for an asset category
|
|
92
|
+
* @param id ID of the asset category to retrieve
|
|
93
|
+
* @param query_params Query parameters to add the to request URL
|
|
94
|
+
*/
|
|
95
|
+
export declare function showAssetCategory(id: string, query_params?: Record<string, any>): import('rxjs').Observable<PlaceAssetCategory>;
|
|
96
|
+
/**
|
|
97
|
+
* Update the asset category in the database
|
|
98
|
+
* @param id ID of the asset category
|
|
99
|
+
* @param form_data New values for the asset category
|
|
100
|
+
* @param query_params Query parameters to add the to request URL
|
|
101
|
+
* @param method HTTP verb to use on request. Defaults to `patch`
|
|
102
|
+
*/
|
|
103
|
+
export declare function updateAssetCategory(id: string, form_data: Partial<PlaceAssetCategory>, method?: 'put' | 'patch'): import('rxjs').Observable<PlaceAssetCategory>;
|
|
104
|
+
/**
|
|
105
|
+
* Add a new asset category to the database
|
|
106
|
+
* @param form_data Asset category data
|
|
107
|
+
* @param query_params Query parameters to add the to request URL
|
|
108
|
+
*/
|
|
109
|
+
export declare function addAssetCategory(form_data: Partial<PlaceAssetCategory>): import('rxjs').Observable<PlaceAssetCategory>;
|
|
110
|
+
/**
|
|
111
|
+
* Remove an asset category from the database
|
|
112
|
+
* @param id ID of the asset category
|
|
113
|
+
* @param query_params Query parameters to add the to request URL
|
|
114
|
+
*/
|
|
115
|
+
export declare function removeAssetCategory(id: string, query_params?: Record<string, any>): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
|
|
116
|
+
/**
|
|
117
|
+
* Query the available asset purchase orders
|
|
118
|
+
* @param query_params Query parameters to add the to request URL
|
|
119
|
+
*/
|
|
120
|
+
export declare function queryAssetPurchaseOrders(query_params?: PlaceAssetPurchaseOrderQueryOptions): import('..').QueryResponse<PlaceAssetPurchaseOrder>;
|
|
121
|
+
/**
|
|
122
|
+
* Get the data for an asset purchase order
|
|
123
|
+
* @param id ID of the asset purchase order to retrieve
|
|
124
|
+
* @param query_params Query parameters to add the to request URL
|
|
125
|
+
*/
|
|
126
|
+
export declare function showAssetPurchaseOrder(id: string, query_params?: Record<string, any>): import('rxjs').Observable<PlaceAssetPurchaseOrder>;
|
|
127
|
+
/**
|
|
128
|
+
* Update the asset purchase order in the database
|
|
129
|
+
* @param id ID of the asset purchase order
|
|
130
|
+
* @param form_data New values for the asset purchase order
|
|
131
|
+
* @param query_params Query parameters to add the to request URL
|
|
132
|
+
* @param method HTTP verb to use on request. Defaults to `patch`
|
|
133
|
+
*/
|
|
134
|
+
export declare function updateAssetPurchaseOrder(id: string, form_data: Partial<PlaceAssetPurchaseOrder>, method?: 'put' | 'patch'): import('rxjs').Observable<PlaceAssetPurchaseOrder>;
|
|
135
|
+
/**
|
|
136
|
+
* Add a new asset purchase order to the database
|
|
137
|
+
* @param form_data Asset purchase order data
|
|
138
|
+
* @param query_params Query parameters to add the to request URL
|
|
139
|
+
*/
|
|
140
|
+
export declare function addAssetPurchaseOrder(form_data: Partial<PlaceAssetPurchaseOrder>): import('rxjs').Observable<PlaceAssetPurchaseOrder>;
|
|
141
|
+
/**
|
|
142
|
+
* Remove an asset purchase order from the database
|
|
143
|
+
* @param id ID of the asset purchase order
|
|
144
|
+
* @param query_params Query parameters to add the to request URL
|
|
145
|
+
*/
|
|
146
|
+
export declare function removeAssetPurchaseOrder(id: string, query_params?: Record<string, any>): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
|
|
@@ -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?:
|
|
15
|
+
export declare function showCluster(id: string, query_params?: PlaceClusterShowOptions): Observable<PlaceCluster>;
|
|
15
16
|
/**
|
|
16
|
-
* Query the available
|
|
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?:
|
|
21
|
+
export declare function queryProcesses(id: string, query_params?: PlaceClusterShowOptions): Observable<any>;
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
+
* Terminate a process in a cluster
|
|
23
24
|
* @param id ID of the cluster associated with the process
|
|
24
|
-
* @param
|
|
25
|
+
* @param query_params Query parameters including driver name (required)
|
|
25
26
|
*/
|
|
26
|
-
export declare function terminateProcess(id: string,
|
|
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
|
|
1
|
+
/** Mapping of available query parameters for the cluster index endpoint */
|
|
2
2
|
export interface PlaceClusterQueryOptions {
|
|
3
|
-
/**
|
|
4
|
-
include_status?:
|
|
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
|
|
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'):
|
|
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>):
|
|
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
|
|
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?:
|
|
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
|
|
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
|