@placeos/ts-client 4.4.4 → 4.6.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/api.d.ts CHANGED
@@ -76,3 +76,5 @@ export { SurveyQuestion } from './staff/questions/model';
76
76
  export { addSurvey, querySurveys, removeSurvey, showSurvey, updateSurvey, } from './staff/surveys/functions';
77
77
  export type { SurveyQueryOptions, SurveyShowOptions, } from './staff/surveys/interfaces';
78
78
  export { Survey, type SurveyPage } from './staff/surveys/model';
79
+ export { PlaceAsset, PlaceAssetCategory, PlaceAssetPurchaseOrder, PlaceAssetType, } from './assets/assets.class';
80
+ 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';
@@ -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 { PlaceResourceQueryOptions } from '../resources/interface';
2
+ import { PlaceAsset, PlaceAssetCategory, PlaceAssetPurchaseOrder, PlaceAssetType } from './assets.class';
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?: PlaceResourceQueryOptions): 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?: PlaceResourceQueryOptions): 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?: PlaceResourceQueryOptions): 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?: PlaceResourceQueryOptions): 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 @@
1
+ export {};