@trakit/objects 0.0.9 → 0.0.11
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/API/Geography/Functions.d.ts +237 -0
- package/API/Geography/Interfaces.d.ts +151 -0
- package/API/Geography/LatLng.d.ts +87 -0
- package/API/Geography/LatLngBounds.d.ts +147 -0
- package/API/Geography/Position.d.ts +75 -0
- package/API/Geography/StreetAddress.d.ts +60 -0
- package/API/Geometry/Functions.d.ts +115 -0
- package/API/Geometry/Interfaces.d.ts +112 -0
- package/API/Geometry/Point.d.ts +82 -0
- package/API/Geometry/Radial.d.ts +111 -0
- package/API/Geometry/Rectangle.d.ts +160 -0
- package/API/Geometry/Size.d.ts +59 -0
- package/API/Interfaces/IAmCompany.d.ts +12 -0
- package/API/Interfaces/IBelongAsset.d.ts +16 -0
- package/API/Interfaces/IBelongBillingProfile.d.ts +16 -0
- package/API/Interfaces/IBelongCompany.d.ts +16 -0
- package/API/Interfaces/IDeserializable.d.ts +14 -0
- package/API/Interfaces/IEnabled.d.ts +11 -0
- package/API/Interfaces/IFileSize.d.ts +10 -0
- package/API/Interfaces/IGlobal.d.ts +12 -0
- package/API/Interfaces/IHavePermissions.d.ts +21 -0
- package/API/Interfaces/IHavePreferences.d.ts +30 -0
- package/API/Interfaces/IIconic.d.ts +16 -0
- package/API/Interfaces/IIdUlong.d.ts +11 -0
- package/API/Interfaces/ILabelled.d.ts +11 -0
- package/API/Interfaces/INamed.d.ts +14 -0
- package/API/Interfaces/IPictured.d.ts +16 -0
- package/API/Interfaces/IRequestable.d.ts +23 -0
- package/API/Interfaces/ISerializable.d.ts +11 -0
- package/API/Interfaces/ISuspendable.d.ts +17 -0
- package/API/Interfaces/IVisual.d.ts +19 -0
- package/Accounts/Permissions/Authorizer.d.ts +205 -0
- package/Accounts/Permissions/Permission.d.ts +57 -0
- package/Accounts/Permissions/PermissionEscalation.d.ts +42 -0
- package/Accounts/Permissions/PermissionEscalationState.d.ts +20 -0
- package/Accounts/Permissions/PermissionEscalationType.d.ts +14 -0
- package/Accounts/Permissions/PermissionLevel.d.ts +18 -0
- package/Accounts/Permissions/PermissionMethod.d.ts +14 -0
- package/Accounts/Permissions/PermissionType.d.ts +281 -0
- package/Billing/Hosting/BillableHostingBase.d.ts +42 -0
- package/Billing/Hosting/BillableHostingLicense.d.ts +31 -0
- package/Billing/Hosting/BillableHostingLicenseType.d.ts +21 -0
- package/Billing/Hosting/BillableHostingRule.d.ts +31 -0
- package/Billing/Hosting/BillableHostingType.d.ts +42 -0
- package/Billing/Report/BillingReport.d.ts +113 -0
- package/Billing/Report/BillingReportBreakdown.d.ts +35 -0
- package/Billing/Report/BillingReportHostingSummary.d.ts +37 -0
- package/Billing/Report/BillingReportLicenseBreakdown.d.ts +80 -0
- package/Billing/Report/BillingReportServiceBreakdown.d.ts +125 -0
- package/Billing/Report/BillingReportStatus.d.ts +26 -0
- package/Billing/Report/BillingReportSummary.d.ts +50 -0
- package/Hosting/Fields/FormFieldAttachments.d.ts +32 -0
- package/Hosting/Fields/FormFieldBase.d.ts +57 -0
- package/Hosting/Fields/FormFieldBase_fromJSON.d.ts +2 -0
- package/Hosting/Fields/FormFieldBoolean.d.ts +39 -0
- package/Hosting/Fields/FormFieldChoice.d.ts +47 -0
- package/Hosting/Fields/FormFieldDate.d.ts +27 -0
- package/Hosting/Fields/FormFieldNumeric.d.ts +55 -0
- package/Hosting/Fields/FormFieldNumericSize.d.ts +33 -0
- package/Hosting/Fields/FormFieldSignature.d.ts +18 -0
- package/Hosting/Fields/FormFieldText.d.ts +33 -0
- package/Hosting/Fields/FormFieldTime.d.ts +38 -0
- package/Hosting/Fields/FormFieldTimezone.d.ts +15 -0
- package/Providers/Config/ProviderConfig.d.ts +71 -0
- package/Providers/Config/ProviderRegistration.d.ts +120 -0
- package/Providers/Config/ProviderScript.d.ts +87 -0
- package/Providers/Config/ProviderScriptBlock.d.ts +42 -0
- package/Providers/Config/ProviderScriptParameter.d.ts +50 -0
- package/Providers/Config/ProviderScriptParameterType.d.ts +18 -0
- package/Providers/Configuration/ProviderConfiguration.d.ts +67 -0
- package/Providers/Configuration/ProviderConfigurationNode.d.ts +67 -0
- package/Providers/Configuration/ProviderConfigurationType.d.ts +63 -0
- package/Providers/Configuration/ProviderGeofenceBase.d.ts +30 -0
- package/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +2 -0
- package/Providers/Configuration/ProviderGeofenceCircular.d.ts +29 -0
- package/Providers/Configuration/ProviderGeofencePoint.d.ts +13 -0
- package/Providers/Configuration/ProviderGeofencePolygon.d.ts +24 -0
- package/Providers/Configuration/ProviderGeofenceRectangle.d.ts +29 -0
- package/index.d.ts +1 -1
- package/package.json +5 -7
- package/trakit-objects.min.js +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Definition for the kinds of permission escalations.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PermissionEscalationType {
|
|
5
|
+
/**
|
|
6
|
+
* Increase in privileges.
|
|
7
|
+
*/
|
|
8
|
+
vertical = "vertical",
|
|
9
|
+
/**
|
|
10
|
+
* Increase in access to an object.
|
|
11
|
+
*/
|
|
12
|
+
horizontal = "horizontal"
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=PermissionEscalationType.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The levels of permission available.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PermissionLevel {
|
|
5
|
+
/**
|
|
6
|
+
* Read-only access, no changes allowed.
|
|
7
|
+
*/
|
|
8
|
+
read = "read",
|
|
9
|
+
/**
|
|
10
|
+
* Read and write access, but things cannot be deleted or new things created.
|
|
11
|
+
*/
|
|
12
|
+
update = "update",
|
|
13
|
+
/**
|
|
14
|
+
* Full control to read, write, delete and create things.
|
|
15
|
+
*/
|
|
16
|
+
full = "full"
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=PermissionLevel.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a permission is applied.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PermissionMethod {
|
|
5
|
+
/**
|
|
6
|
+
* Permission is given.
|
|
7
|
+
*/
|
|
8
|
+
grant = "grant",
|
|
9
|
+
/**
|
|
10
|
+
* Permission is taken away.
|
|
11
|
+
*/
|
|
12
|
+
revoke = "revoke"
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=PermissionMethod.d.ts.map
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kinds of permissions available for a UserPermission.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PermissionType {
|
|
5
|
+
/**
|
|
6
|
+
* Basic information about a {@link Company}.
|
|
7
|
+
* This permissions is required to have access to other aspects of the company.
|
|
8
|
+
* {@link Company}
|
|
9
|
+
* {@link CompanyGeneral}
|
|
10
|
+
*/
|
|
11
|
+
companyGeneral = "companyGeneral",
|
|
12
|
+
/**
|
|
13
|
+
* Updating the company's {@link CompanyDirectory|directory} of {@link Contact}s. Not the same as {@link PermissionType.contact}.
|
|
14
|
+
* {@link CompanyDirectory}
|
|
15
|
+
*/
|
|
16
|
+
companyDirectory = "companyDirectory",
|
|
17
|
+
/**
|
|
18
|
+
* Company's {@link CompanyStyles|label and tag styles}.
|
|
19
|
+
* {@link CompanyStyles}
|
|
20
|
+
*/
|
|
21
|
+
companyLabels = "companyLabels",
|
|
22
|
+
/**
|
|
23
|
+
* Company's {@link SessionPolicy} and {@link PasswordPolicy}.
|
|
24
|
+
* {@link CompanyPolicies}
|
|
25
|
+
*/
|
|
26
|
+
companyPolicies = "companyPolicies",
|
|
27
|
+
/**
|
|
28
|
+
* {@link CompanyReseller|White-labeler} specific settings.
|
|
29
|
+
* {@link CompanyReseller}
|
|
30
|
+
*/
|
|
31
|
+
companyReseller = "companyReseller",
|
|
32
|
+
/**
|
|
33
|
+
* Access to add a new child {@link Company}.
|
|
34
|
+
* {@link CompanyGeneral}
|
|
35
|
+
*/
|
|
36
|
+
companyCreate = "companyCreate",
|
|
37
|
+
/**
|
|
38
|
+
* Assets' {@link AssetGeneral|general properties} such as name = "* Assets' {@link AssetGeneral|general properties} such as name", icon, and labels.
|
|
39
|
+
* {@link Asset}
|
|
40
|
+
* {@link AssetGeneral}
|
|
41
|
+
* {@link Person}
|
|
42
|
+
* {@link PersonGeneral}
|
|
43
|
+
* {@link Vehicle}
|
|
44
|
+
* {@link VehicleGeneral}
|
|
45
|
+
* {@link Trailer}
|
|
46
|
+
* {@link TrailerGeneral}
|
|
47
|
+
*/
|
|
48
|
+
assetGeneral = "assetGeneral",
|
|
49
|
+
/**
|
|
50
|
+
* Assets' {@link AssetAdvanced|advanced properties} such as position = "* Assets' {@link AssetAdvanced|advanced properties} such as position", attributes, and status tags.
|
|
51
|
+
* {@link AssetAdvanced}
|
|
52
|
+
* {@link VehicleAdvanced}
|
|
53
|
+
*/
|
|
54
|
+
assetAdvanced = "assetAdvanced",
|
|
55
|
+
/**
|
|
56
|
+
* {@link AssetMessage}s from assets and {@link AssetAlert}s.
|
|
57
|
+
* {@link AssetMessage}
|
|
58
|
+
* {@link PndMessage}
|
|
59
|
+
*/
|
|
60
|
+
assetMessage = "assetMessage",
|
|
61
|
+
/**
|
|
62
|
+
* {@link Asset}'s {@link DispatchTask} order = "* {@link Asset}'s {@link DispatchTask} order", turn by turn directions, and required route.
|
|
63
|
+
* {@link AssetDispatch}
|
|
64
|
+
*/
|
|
65
|
+
assetDispatch = "assetDispatch",
|
|
66
|
+
/**
|
|
67
|
+
* {@link Place} information.
|
|
68
|
+
* {@link Place}
|
|
69
|
+
* {@link Place}
|
|
70
|
+
*/
|
|
71
|
+
placeGeneral = "placeGeneral",
|
|
72
|
+
/**
|
|
73
|
+
* {@link Provider} information like name = "* {@link Provider} information like name", notes, and selected asset.
|
|
74
|
+
* {@link Provider}
|
|
75
|
+
* {@link ProviderGeneral}
|
|
76
|
+
*/
|
|
77
|
+
providerGeneral = "providerGeneral",
|
|
78
|
+
/**
|
|
79
|
+
* Raw {@link Provider} data like GPS coordinates and parsed ODB-II values.
|
|
80
|
+
* {@link ProviderAdvanced}
|
|
81
|
+
*/
|
|
82
|
+
providerAdvanced = "providerAdvanced",
|
|
83
|
+
/**
|
|
84
|
+
* Sending and reading {@link Provider} commands.
|
|
85
|
+
* {@link ProviderControl}
|
|
86
|
+
*/
|
|
87
|
+
providerControl = "providerControl",
|
|
88
|
+
/**
|
|
89
|
+
* {@link Provider} configurations.
|
|
90
|
+
* {@link ProviderConfig}
|
|
91
|
+
* {@link ProviderConfiguration}
|
|
92
|
+
* {@link ProviderConfigurationType}
|
|
93
|
+
*/
|
|
94
|
+
providerConfiguration = "providerConfiguration",
|
|
95
|
+
/**
|
|
96
|
+
* Legacy {@link Provider} configuration types.
|
|
97
|
+
* {@link ProviderConfigurationType}
|
|
98
|
+
* @deprecated Use {@link providerConfiguration} instead
|
|
99
|
+
*/
|
|
100
|
+
providerConfigType = "providerConfigType",
|
|
101
|
+
/**
|
|
102
|
+
* Allows access to {@link Provider} logic scripts.
|
|
103
|
+
* {@link ProviderScript}
|
|
104
|
+
*/
|
|
105
|
+
providerScript = "providerScript",
|
|
106
|
+
/**
|
|
107
|
+
* Sending and reading {@link Provider} commands.
|
|
108
|
+
* {@link ProviderCommand}
|
|
109
|
+
* @deprecated Use {@link providerControl} instead
|
|
110
|
+
*/
|
|
111
|
+
providerCommand = "providerCommand",
|
|
112
|
+
/**
|
|
113
|
+
* Historical {@link Asset} details like breadcrumb trails.
|
|
114
|
+
* {@link ReportResult}
|
|
115
|
+
*/
|
|
116
|
+
reportResult = "reportResult",
|
|
117
|
+
/**
|
|
118
|
+
* {@link ReportTemplate} configurations.
|
|
119
|
+
* {@link ReportTemplate}
|
|
120
|
+
*/
|
|
121
|
+
reportTemplate = "reportTemplate",
|
|
122
|
+
/**
|
|
123
|
+
* {@link ReportSchedule}s used to automatically create {@link ReportResult}s overnight.
|
|
124
|
+
* {@link ReportSchedule}
|
|
125
|
+
*/
|
|
126
|
+
reportSchedule = "reportSchedule",
|
|
127
|
+
/**
|
|
128
|
+
* General {@link UserGeneral|user information} such as name = "* General {@link UserGeneral|user information} such as name", contact information, and preferences.
|
|
129
|
+
* {@link UserGeneral}
|
|
130
|
+
*/
|
|
131
|
+
userGeneral = "userGeneral",
|
|
132
|
+
/**
|
|
133
|
+
* {@link UserAdvanced|User information} such as permissions and group membership.
|
|
134
|
+
* {@link UserAdvanced}
|
|
135
|
+
*/
|
|
136
|
+
userAdvanced = "userAdvanced",
|
|
137
|
+
/**
|
|
138
|
+
* {@link UserGroup} information for easy access control.
|
|
139
|
+
* {@link UserGroup}
|
|
140
|
+
*/
|
|
141
|
+
userGroup = "userGroup",
|
|
142
|
+
/**
|
|
143
|
+
* {@link Machine} information and permissions.
|
|
144
|
+
* {@link Machine}
|
|
145
|
+
*/
|
|
146
|
+
machine = "machine",
|
|
147
|
+
/**
|
|
148
|
+
* Access to retrieve a list of active sessions and kill sessions.
|
|
149
|
+
* {@link Tentacles.RespSession}
|
|
150
|
+
* {@link Tentacles.RespSessionFull}
|
|
151
|
+
*/
|
|
152
|
+
session = "session",
|
|
153
|
+
/**
|
|
154
|
+
* Configured {@link Behaviour}.
|
|
155
|
+
* {@link Behaviour}
|
|
156
|
+
*/
|
|
157
|
+
behaviour = "behaviour",
|
|
158
|
+
/**
|
|
159
|
+
* View and clear the log of debug messages for a {@link BehaviourScript} or {@link Behaviour}.
|
|
160
|
+
* {@link BehaviourLog}
|
|
161
|
+
*/
|
|
162
|
+
behaviourLog = "behaviourLog",
|
|
163
|
+
/**
|
|
164
|
+
* {@link BehaviourScript} logic.
|
|
165
|
+
* {@link BehaviourScript}
|
|
166
|
+
*/
|
|
167
|
+
behaviourScript = "behaviourScript",
|
|
168
|
+
/**
|
|
169
|
+
* {@link Asset}'s tasks information.
|
|
170
|
+
* {@link DispatchTask}
|
|
171
|
+
*/
|
|
172
|
+
dispatchTask = "dispatchTask",
|
|
173
|
+
/**
|
|
174
|
+
* Pre-set routes = "* Pre-set routes", lists of {@link DispatchJob}s, and driving directions.
|
|
175
|
+
* {@link DispatchTemplate}
|
|
176
|
+
*/
|
|
177
|
+
dispatchTemplate = "dispatchTemplate",
|
|
178
|
+
/**
|
|
179
|
+
* {@link Contact} information.
|
|
180
|
+
* {@link Contact}
|
|
181
|
+
*/
|
|
182
|
+
contact = "contact",
|
|
183
|
+
/**
|
|
184
|
+
* Hours of Service {@link HosCarrier|Carrier}s.
|
|
185
|
+
* {@link HosCarrier}
|
|
186
|
+
* @deprecated Feature retired
|
|
187
|
+
*/
|
|
188
|
+
hosCarrier = "hosCarrier",
|
|
189
|
+
/**
|
|
190
|
+
* Driver's {@link HosEvent|E-log event} records.
|
|
191
|
+
* {@link HosEvent}
|
|
192
|
+
* @deprecated Feature retired
|
|
193
|
+
*/
|
|
194
|
+
hosEvent = "hosEvent",
|
|
195
|
+
/**
|
|
196
|
+
* Driver {@link HosInspection|vehicle inspection} reports.
|
|
197
|
+
* {@link HosInspection}
|
|
198
|
+
* @deprecated Feature retired
|
|
199
|
+
*/
|
|
200
|
+
hosInspection = "hosInspection",
|
|
201
|
+
/**
|
|
202
|
+
* Historical {@link Vehicle} and {@link Trailer} maintenance work.
|
|
203
|
+
* {@link MaintenanceJob}
|
|
204
|
+
*/
|
|
205
|
+
maintenanceJob = "maintenanceJob",
|
|
206
|
+
/**
|
|
207
|
+
* Recurring {@link MaintenanceJob}s for {@link Vehicle} and {@link Trailer}.
|
|
208
|
+
* {@link MaintenanceSchedule}
|
|
209
|
+
*/
|
|
210
|
+
maintenanceSchedule = "maintenanceSchedule",
|
|
211
|
+
/**
|
|
212
|
+
* Rules definiting real-time analytic calculations.
|
|
213
|
+
* {@link AnalyticRule}
|
|
214
|
+
* @deprecated Feature retired
|
|
215
|
+
*/
|
|
216
|
+
analyticRule = "analyticRule",
|
|
217
|
+
/**
|
|
218
|
+
* Updates to the calculations of real-time analytics.
|
|
219
|
+
* {@link AnalyticSummary}
|
|
220
|
+
* @deprecated Feature retired
|
|
221
|
+
*/
|
|
222
|
+
analyticSummary = "analyticSummary",
|
|
223
|
+
/**
|
|
224
|
+
* {@link Icon} information.
|
|
225
|
+
* {@link Icon}
|
|
226
|
+
*/
|
|
227
|
+
icon = "icon",
|
|
228
|
+
/**
|
|
229
|
+
* {@link Picture} information.
|
|
230
|
+
* {@link Picture}
|
|
231
|
+
*/
|
|
232
|
+
picture = "picture",
|
|
233
|
+
/**
|
|
234
|
+
* Hosted {@link Document} information.
|
|
235
|
+
* {@link Document}
|
|
236
|
+
*/
|
|
237
|
+
document = "document",
|
|
238
|
+
/**
|
|
239
|
+
* Profile used to generate {@link BillingReport} for a customer.
|
|
240
|
+
* {@link BillingProfile}
|
|
241
|
+
*/
|
|
242
|
+
billingProfile = "billingProfile",
|
|
243
|
+
/**
|
|
244
|
+
* Billing rule for {@link Asset}s.
|
|
245
|
+
* {@link BillableHostingRule}
|
|
246
|
+
*/
|
|
247
|
+
billingHosting = "billingHosting",
|
|
248
|
+
/**
|
|
249
|
+
* Discount rule for {@link Asset}s.
|
|
250
|
+
* {@link BillableHostingDiscount}
|
|
251
|
+
* @deprecated Feature retired
|
|
252
|
+
*/
|
|
253
|
+
billingDiscount = "billingDiscount",
|
|
254
|
+
/**
|
|
255
|
+
* Hardware License for {@link Provider}s.
|
|
256
|
+
* {@link BillableHostingLicense}
|
|
257
|
+
*/
|
|
258
|
+
billingLicense = "billingLicense",
|
|
259
|
+
/**
|
|
260
|
+
* Generated bill for a {@link Company|customer}.
|
|
261
|
+
* {@link BillingReport}
|
|
262
|
+
*/
|
|
263
|
+
billingReport = "billingReport",
|
|
264
|
+
/**
|
|
265
|
+
* Custom {@link FormTemplate|forms} to be filled.
|
|
266
|
+
* {@link FormTemplate}
|
|
267
|
+
*/
|
|
268
|
+
formTemplate = "formTemplate",
|
|
269
|
+
/**
|
|
270
|
+
* Filled out {@link FormResult|forms}.
|
|
271
|
+
* {@link FormResult}
|
|
272
|
+
*/
|
|
273
|
+
formResult = "formResult",
|
|
274
|
+
/**
|
|
275
|
+
* Some work that needs to be completed by an {@link Asset}.
|
|
276
|
+
* Like a multi-step {@link DispatchTask}.
|
|
277
|
+
* {@link DispatchJob}
|
|
278
|
+
*/
|
|
279
|
+
dispatchJob = "dispatchJob"
|
|
280
|
+
}
|
|
281
|
+
//# sourceMappingURL=PermissionType.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IBelongBillingProfile } from '../../API/Interfaces/IBelongBillingProfile';
|
|
2
|
+
import { IBelongCompany } from '../../API/Interfaces/IBelongCompany';
|
|
3
|
+
import { IIdUlong } from '../../API/Interfaces/IIdUlong';
|
|
4
|
+
import { SearchPattern } from '../../API/SearchPattern';
|
|
5
|
+
import { JsonObject, uint } from '../../API/Types';
|
|
6
|
+
import { BillableBase } from '../BillableBase';
|
|
7
|
+
/**
|
|
8
|
+
* Hosted things share a lot of common attributes.
|
|
9
|
+
*/
|
|
10
|
+
export declare abstract class BillableHostingBase extends BillableBase implements IIdUlong, IBelongBillingProfile, IBelongCompany {
|
|
11
|
+
/**
|
|
12
|
+
* The number of units to which this billing rule applies.
|
|
13
|
+
* Should be a non-zero value; NaN means unlimited.
|
|
14
|
+
*/
|
|
15
|
+
limit: uint;
|
|
16
|
+
/**
|
|
17
|
+
* Which assets are targeted by this hosting rule.
|
|
18
|
+
*/
|
|
19
|
+
targets: SearchPattern[] | null;
|
|
20
|
+
/**
|
|
21
|
+
* Does this hosting rule apply to suspended resources.
|
|
22
|
+
*/
|
|
23
|
+
suspended: boolean;
|
|
24
|
+
toJSON(): {
|
|
25
|
+
limit: number | null;
|
|
26
|
+
targets: string | null;
|
|
27
|
+
suspended: boolean;
|
|
28
|
+
id: number | null;
|
|
29
|
+
v: number[];
|
|
30
|
+
company: number;
|
|
31
|
+
profile: number;
|
|
32
|
+
name: string;
|
|
33
|
+
notes: string;
|
|
34
|
+
reference: string;
|
|
35
|
+
sku: string;
|
|
36
|
+
start: string | null;
|
|
37
|
+
end: string | null;
|
|
38
|
+
amount: number | null;
|
|
39
|
+
};
|
|
40
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=BillableHostingBase.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { JsonObject } from '../../API/Types';
|
|
2
|
+
import { BillableHostingBase } from './BillableHostingBase';
|
|
3
|
+
import { BillableHostingLicenseType } from './BillableHostingLicenseType';
|
|
4
|
+
/**
|
|
5
|
+
* A hardware license for providers
|
|
6
|
+
*/
|
|
7
|
+
export declare class BillableHostingLicense extends BillableHostingBase {
|
|
8
|
+
/**
|
|
9
|
+
* The type of hardware license
|
|
10
|
+
*/
|
|
11
|
+
kind: BillableHostingLicenseType;
|
|
12
|
+
toJSON(): {
|
|
13
|
+
kind: BillableHostingLicenseType;
|
|
14
|
+
limit: number | null;
|
|
15
|
+
targets: string | null;
|
|
16
|
+
suspended: boolean;
|
|
17
|
+
id: number | null;
|
|
18
|
+
v: number[];
|
|
19
|
+
company: number;
|
|
20
|
+
profile: number;
|
|
21
|
+
name: string;
|
|
22
|
+
notes: string;
|
|
23
|
+
reference: string;
|
|
24
|
+
sku: string;
|
|
25
|
+
start: string | null;
|
|
26
|
+
end: string | null;
|
|
27
|
+
amount: number | null;
|
|
28
|
+
};
|
|
29
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=BillableHostingLicense.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kind of license being billed.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum BillableHostingLicenseType {
|
|
5
|
+
/**
|
|
6
|
+
* SmartWitness data hosting fee
|
|
7
|
+
* {@link ProviderType.smartwitness}
|
|
8
|
+
*/
|
|
9
|
+
smartwitness = "smartwitness",
|
|
10
|
+
/**
|
|
11
|
+
* BeWhere license fee
|
|
12
|
+
* {@link ProviderType.bewhere}
|
|
13
|
+
*/
|
|
14
|
+
bewhere = "bewhere",
|
|
15
|
+
/**
|
|
16
|
+
* CalAmp PULS fee
|
|
17
|
+
* {@link ProviderType.calamp}
|
|
18
|
+
*/
|
|
19
|
+
calamp = "calamp"
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=BillableHostingLicenseType.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { JsonObject } from '../../API/Types';
|
|
2
|
+
import { BillableHostingBase } from './BillableHostingBase';
|
|
3
|
+
import { BillableHostingType } from './BillableHostingType';
|
|
4
|
+
/**
|
|
5
|
+
* A billing rule for assets
|
|
6
|
+
*/
|
|
7
|
+
export declare class BillableHostingRule extends BillableHostingBase {
|
|
8
|
+
/**
|
|
9
|
+
* The type of service being billed.
|
|
10
|
+
*/
|
|
11
|
+
service: BillableHostingType;
|
|
12
|
+
toJSON(): {
|
|
13
|
+
service: BillableHostingType;
|
|
14
|
+
limit: number | null;
|
|
15
|
+
targets: string | null;
|
|
16
|
+
suspended: boolean;
|
|
17
|
+
id: number | null;
|
|
18
|
+
v: number[];
|
|
19
|
+
company: number;
|
|
20
|
+
profile: number;
|
|
21
|
+
name: string;
|
|
22
|
+
notes: string;
|
|
23
|
+
reference: string;
|
|
24
|
+
sku: string;
|
|
25
|
+
start: string | null;
|
|
26
|
+
end: string | null;
|
|
27
|
+
amount: number | null;
|
|
28
|
+
};
|
|
29
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=BillableHostingRule.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kind of service being billed.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum BillableHostingType {
|
|
5
|
+
/**
|
|
6
|
+
* Employee/driver tracking.
|
|
7
|
+
*/
|
|
8
|
+
mobile = "mobile",
|
|
9
|
+
/**
|
|
10
|
+
* Vehicle tracking (includes VBus data, and engine hours).
|
|
11
|
+
*/
|
|
12
|
+
vehicle = "vehicle",
|
|
13
|
+
/**
|
|
14
|
+
* Generic dot-on-a-map tracking.
|
|
15
|
+
*/
|
|
16
|
+
asset = "asset",
|
|
17
|
+
/**
|
|
18
|
+
* Tasks assignable to vehicles or persons.
|
|
19
|
+
*/
|
|
20
|
+
dispatch = "dispatch",
|
|
21
|
+
/**
|
|
22
|
+
* FMCSA compliant E-Logs and Hours of Service.
|
|
23
|
+
*/
|
|
24
|
+
elogs = "elogs",
|
|
25
|
+
/**
|
|
26
|
+
* Inventory management.
|
|
27
|
+
*/
|
|
28
|
+
inventory = "inventory",
|
|
29
|
+
/**
|
|
30
|
+
* Cargo and delivery audit.
|
|
31
|
+
*/
|
|
32
|
+
cargo = "cargo",
|
|
33
|
+
/**
|
|
34
|
+
* Mobile forms.
|
|
35
|
+
*/
|
|
36
|
+
forms = "forms",
|
|
37
|
+
/**
|
|
38
|
+
* Dashcam and live images hosting.
|
|
39
|
+
*/
|
|
40
|
+
streetview = "streetview"
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=BillableHostingType.d.ts.map
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { BaseComponent } from '../../API/BaseComponent';
|
|
2
|
+
import { IBelongBillingProfile } from '../../API/Interfaces/IBelongBillingProfile';
|
|
3
|
+
import { IBelongCompany } from '../../API/Interfaces/IBelongCompany';
|
|
4
|
+
import { IIdUlong } from '../../API/Interfaces/IIdUlong';
|
|
5
|
+
import { INamed } from '../../API/Interfaces/INamed';
|
|
6
|
+
import { double, JsonObject, ulong } from '../../API/Types';
|
|
7
|
+
import { Company } from '../../Companies/Company';
|
|
8
|
+
import { BillingCurrency } from '../BillingCurrency';
|
|
9
|
+
import { BillingProfile } from '../BillingProfile';
|
|
10
|
+
import { BillingReportBreakdown } from "./BillingReportBreakdown";
|
|
11
|
+
import { BillingReportStatus } from "./BillingReportStatus";
|
|
12
|
+
import { BillingReportSummary } from "./BillingReportSummary";
|
|
13
|
+
/**
|
|
14
|
+
* Report generated per billee company.
|
|
15
|
+
*/
|
|
16
|
+
export declare class BillingReport extends BaseComponent implements IIdUlong, INamed, IBelongCompany, IBelongBillingProfile {
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier
|
|
19
|
+
*/
|
|
20
|
+
id: ulong;
|
|
21
|
+
/**
|
|
22
|
+
* The company to which this report belongs and is sending the bill.
|
|
23
|
+
* {@link Company.id}
|
|
24
|
+
*/
|
|
25
|
+
companyId: ulong;
|
|
26
|
+
/**
|
|
27
|
+
* The {@link Company} to which this report belongs and is sending the bill.
|
|
28
|
+
*/
|
|
29
|
+
get company(): Company;
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier of the Company receiving the bill.
|
|
32
|
+
* {@link Company.id}
|
|
33
|
+
*/
|
|
34
|
+
billeeId: ulong;
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier of the {@link Company} receiving the bill.
|
|
37
|
+
*/
|
|
38
|
+
get billee(): Company;
|
|
39
|
+
/**
|
|
40
|
+
* The profile to which this report belongs
|
|
41
|
+
* {@link BillingProfile.id}
|
|
42
|
+
*/
|
|
43
|
+
profileId: ulong;
|
|
44
|
+
/**
|
|
45
|
+
* The profile to which this report belongs
|
|
46
|
+
* {@link BillingProfile.id}
|
|
47
|
+
*/
|
|
48
|
+
get profile(): BillingProfile;
|
|
49
|
+
/**
|
|
50
|
+
* Name of this report.
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* Notes about this report.
|
|
55
|
+
*/
|
|
56
|
+
notes: string;
|
|
57
|
+
/**
|
|
58
|
+
* First day of the billing cycle
|
|
59
|
+
*/
|
|
60
|
+
startDate: Date;
|
|
61
|
+
/**
|
|
62
|
+
* Last day of the billing cycle
|
|
63
|
+
*/
|
|
64
|
+
endDate: Date;
|
|
65
|
+
/**
|
|
66
|
+
* Total amount being billed.
|
|
67
|
+
*/
|
|
68
|
+
total: double;
|
|
69
|
+
/**
|
|
70
|
+
* Currency being billed in
|
|
71
|
+
*/
|
|
72
|
+
currency: BillingCurrency;
|
|
73
|
+
/**
|
|
74
|
+
* The processing status of this report.
|
|
75
|
+
*/
|
|
76
|
+
status: BillingReportStatus;
|
|
77
|
+
/**
|
|
78
|
+
* A field which contains report error details if the {@link status} is {@link BillingReportStatus.failed}.
|
|
79
|
+
* {@link BillingReportStatus}
|
|
80
|
+
*/
|
|
81
|
+
error: string;
|
|
82
|
+
/**
|
|
83
|
+
* Summary contains totals per target for this billee
|
|
84
|
+
*/
|
|
85
|
+
summary: BillingReportSummary[];
|
|
86
|
+
/**
|
|
87
|
+
* Individual amounts per company, used to calculate the results of the report.
|
|
88
|
+
*/
|
|
89
|
+
breakdown: BillingReportBreakdown[];
|
|
90
|
+
toJSON(): {
|
|
91
|
+
id: number | null;
|
|
92
|
+
v: number[];
|
|
93
|
+
company: number;
|
|
94
|
+
billee: number;
|
|
95
|
+
profile: number;
|
|
96
|
+
name: string;
|
|
97
|
+
notes: string;
|
|
98
|
+
startDate: string | null;
|
|
99
|
+
endDate: string | null;
|
|
100
|
+
total: number;
|
|
101
|
+
currency: BillingCurrency;
|
|
102
|
+
status: BillingReportStatus;
|
|
103
|
+
error: string;
|
|
104
|
+
summary: any[];
|
|
105
|
+
breakdown: any[];
|
|
106
|
+
};
|
|
107
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* The {@link id} is the key.
|
|
110
|
+
*/
|
|
111
|
+
getKey(): number;
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=BillingReport.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
2
|
+
import { JsonObject, ulong } from "../../API/Types";
|
|
3
|
+
import { Company } from "../../Companies/Company";
|
|
4
|
+
import { BillingReportLicenseBreakdown } from "./BillingReportLicenseBreakdown";
|
|
5
|
+
import { BillingReportServiceBreakdown } from "./BillingReportServiceBreakdown";
|
|
6
|
+
/**
|
|
7
|
+
* Billing breakdown per target company.
|
|
8
|
+
*/
|
|
9
|
+
export declare class BillingReportBreakdown implements ISerializable {
|
|
10
|
+
static fromJSON(json: JsonObject): BillingReportBreakdown;
|
|
11
|
+
/**
|
|
12
|
+
* The target company to which this breakdown instance belongs.
|
|
13
|
+
* {@link Company.id}
|
|
14
|
+
*/
|
|
15
|
+
targetId: ulong;
|
|
16
|
+
/**
|
|
17
|
+
* The target {@link Company} to which this breakdown instance belongs.
|
|
18
|
+
*/
|
|
19
|
+
get target(): Company;
|
|
20
|
+
/**
|
|
21
|
+
* Individual amounts billed per targeted assets.
|
|
22
|
+
*/
|
|
23
|
+
services: BillingReportServiceBreakdown[];
|
|
24
|
+
/**
|
|
25
|
+
* Individual amounts for licensing per targeted providers.
|
|
26
|
+
*/
|
|
27
|
+
licenses: BillingReportLicenseBreakdown[];
|
|
28
|
+
constructor(target?: ulong, services?: BillingReportServiceBreakdown[], licenses?: BillingReportLicenseBreakdown[]);
|
|
29
|
+
toJSON(): {
|
|
30
|
+
target: number | null;
|
|
31
|
+
services: BillingReportServiceBreakdown[];
|
|
32
|
+
licenses: BillingReportLicenseBreakdown[];
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=BillingReportBreakdown.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
2
|
+
import { double, JsonObject } from "../../API/Types";
|
|
3
|
+
/**
|
|
4
|
+
* Amount billed for a type of hosting (service or license) per target company.
|
|
5
|
+
*/
|
|
6
|
+
export declare class BillingReportHostingSummary implements ISerializable {
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param json
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
static fromJSON(json: JsonObject): BillingReportHostingSummary;
|
|
13
|
+
/**
|
|
14
|
+
* SKU being billed
|
|
15
|
+
*/
|
|
16
|
+
sku: string;
|
|
17
|
+
/**
|
|
18
|
+
* Cost per billing cycle for this SKU.
|
|
19
|
+
*/
|
|
20
|
+
cost: double;
|
|
21
|
+
/**
|
|
22
|
+
* Number of items for this SKU.
|
|
23
|
+
*/
|
|
24
|
+
count: double;
|
|
25
|
+
/**
|
|
26
|
+
* Total amount being billed for this SKU.
|
|
27
|
+
*/
|
|
28
|
+
total: double;
|
|
29
|
+
constructor(sku?: string, cost?: double, count?: double, total?: double);
|
|
30
|
+
toJSON(): {
|
|
31
|
+
sku: string;
|
|
32
|
+
cost: number | null;
|
|
33
|
+
count: number | null;
|
|
34
|
+
total: number | null;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=BillingReportHostingSummary.d.ts.map
|