spotcharge-types 1.0.468 → 1.0.470
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/consts/in-out-event.const.d.ts +56 -0
- package/dist/consts/in-out-event.const.d.ts.map +1 -0
- package/dist/consts/in-out-event.const.js +52 -0
- package/dist/consts/in-out-event.const.js.map +1 -0
- package/dist/consts/index.d.ts +1 -0
- package/dist/consts/index.d.ts.map +1 -1
- package/dist/consts/index.js +9 -1
- package/dist/consts/index.js.map +1 -1
- package/dist/models/api/fleet/in-out-event.api.model.d.ts +24 -7
- package/dist/models/api/fleet/in-out-event.api.model.d.ts.map +1 -1
- package/dist/models/api/fleet/in-out-event.api.model.js.map +1 -1
- package/dist/models/api/fleet/index.d.ts +1 -1
- package/dist/models/api/fleet/index.d.ts.map +1 -1
- package/dist/models/api/fleet/index.js.map +1 -1
- package/package.json +1 -1
- package/src/consts/in-out-event.const.ts +68 -0
- package/src/consts/index.ts +9 -0
- package/src/models/api/fleet/in-out-event.api.model.ts +34 -17
- package/src/models/api/fleet/index.ts +2 -6
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/** Gate direction. Matches `fleet.fleet_vehicle_in_out_status`. */
|
|
2
|
+
export declare const InOutDirection: {
|
|
3
|
+
readonly In: "IN";
|
|
4
|
+
readonly Out: "OUT";
|
|
5
|
+
};
|
|
6
|
+
export type InOutDirection = (typeof InOutDirection)[keyof typeof InOutDirection];
|
|
7
|
+
/** What moved. Matches `fleet.in_out_subject_type`. */
|
|
8
|
+
export declare const InOutSubjectType: {
|
|
9
|
+
readonly Vehicle: "vehicle";
|
|
10
|
+
readonly Asset: "asset";
|
|
11
|
+
};
|
|
12
|
+
export type InOutSubjectType = (typeof InOutSubjectType)[keyof typeof InOutSubjectType];
|
|
13
|
+
/** Why it moved. Matches `fleet.in_out_purpose`. */
|
|
14
|
+
export declare const InOutPurpose: {
|
|
15
|
+
readonly General: "general";
|
|
16
|
+
readonly Delivery: "delivery";
|
|
17
|
+
readonly Maintenance: "maintenance";
|
|
18
|
+
readonly Charging: "charging";
|
|
19
|
+
readonly Parking: "parking";
|
|
20
|
+
readonly Inspection: "inspection";
|
|
21
|
+
readonly Emergency: "emergency";
|
|
22
|
+
};
|
|
23
|
+
export type InOutPurpose = (typeof InOutPurpose)[keyof typeof InOutPurpose];
|
|
24
|
+
/** Asset kind. Matches `fleet.fleet_asset_type`. */
|
|
25
|
+
export declare const FleetAssetType: {
|
|
26
|
+
readonly Electrical: "electrical";
|
|
27
|
+
readonly Furniture: "furniture";
|
|
28
|
+
readonly Tools: "tools";
|
|
29
|
+
readonly Safety: "safety";
|
|
30
|
+
readonly Other: "other";
|
|
31
|
+
};
|
|
32
|
+
export type FleetAssetType = (typeof FleetAssetType)[keyof typeof FleetAssetType];
|
|
33
|
+
/** Asset lifecycle. Separate from in/out direction. Matches `fleet.fleet_asset_lifecycle_status`. */
|
|
34
|
+
export declare const FleetAssetLifecycleStatus: {
|
|
35
|
+
readonly Active: "active";
|
|
36
|
+
readonly Damaged: "damaged";
|
|
37
|
+
readonly InUse: "in use";
|
|
38
|
+
readonly Disposed: "disposed";
|
|
39
|
+
readonly Other: "other";
|
|
40
|
+
};
|
|
41
|
+
export type FleetAssetLifecycleStatus = (typeof FleetAssetLifecycleStatus)[keyof typeof FleetAssetLifecycleStatus];
|
|
42
|
+
/** Position-board phrase. The screen shows `whereLabel`, not this key. */
|
|
43
|
+
export declare const InOutPositionPhrase: {
|
|
44
|
+
readonly AtStation: "at_station";
|
|
45
|
+
readonly OutFromStation: "out_from_station";
|
|
46
|
+
readonly StationUnknown: "station_unknown";
|
|
47
|
+
readonly NotRecorded: "not_recorded";
|
|
48
|
+
};
|
|
49
|
+
export type InOutPositionPhrase = (typeof InOutPositionPhrase)[keyof typeof InOutPositionPhrase];
|
|
50
|
+
/** Photo role. Matches `fleet.in_out_photo_kind`. */
|
|
51
|
+
export declare const InOutPhotoKind: {
|
|
52
|
+
readonly Evidence: "evidence";
|
|
53
|
+
readonly Profile: "profile";
|
|
54
|
+
};
|
|
55
|
+
export type InOutPhotoKind = (typeof InOutPhotoKind)[keyof typeof InOutPhotoKind];
|
|
56
|
+
//# sourceMappingURL=in-out-event.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"in-out-event.const.d.ts","sourceRoot":"","sources":["../../src/consts/in-out-event.const.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAElF,uDAAuD;AACvD,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAExF,oDAAoD;AACpD,eAAO,MAAM,YAAY;;;;;;;;CAQf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAElF,qGAAqG;AACrG,eAAO,MAAM,yBAAyB;;;;;;CAM5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAEnH,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjG,qDAAqD;AACrD,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InOutPhotoKind = exports.InOutPositionPhrase = exports.FleetAssetLifecycleStatus = exports.FleetAssetType = exports.InOutPurpose = exports.InOutSubjectType = exports.InOutDirection = void 0;
|
|
4
|
+
/** Gate direction. Matches `fleet.fleet_vehicle_in_out_status`. */
|
|
5
|
+
exports.InOutDirection = {
|
|
6
|
+
In: 'IN',
|
|
7
|
+
Out: 'OUT',
|
|
8
|
+
};
|
|
9
|
+
/** What moved. Matches `fleet.in_out_subject_type`. */
|
|
10
|
+
exports.InOutSubjectType = {
|
|
11
|
+
Vehicle: 'vehicle',
|
|
12
|
+
Asset: 'asset',
|
|
13
|
+
};
|
|
14
|
+
/** Why it moved. Matches `fleet.in_out_purpose`. */
|
|
15
|
+
exports.InOutPurpose = {
|
|
16
|
+
General: 'general',
|
|
17
|
+
Delivery: 'delivery',
|
|
18
|
+
Maintenance: 'maintenance',
|
|
19
|
+
Charging: 'charging',
|
|
20
|
+
Parking: 'parking',
|
|
21
|
+
Inspection: 'inspection',
|
|
22
|
+
Emergency: 'emergency',
|
|
23
|
+
};
|
|
24
|
+
/** Asset kind. Matches `fleet.fleet_asset_type`. */
|
|
25
|
+
exports.FleetAssetType = {
|
|
26
|
+
Electrical: 'electrical',
|
|
27
|
+
Furniture: 'furniture',
|
|
28
|
+
Tools: 'tools',
|
|
29
|
+
Safety: 'safety',
|
|
30
|
+
Other: 'other',
|
|
31
|
+
};
|
|
32
|
+
/** Asset lifecycle. Separate from in/out direction. Matches `fleet.fleet_asset_lifecycle_status`. */
|
|
33
|
+
exports.FleetAssetLifecycleStatus = {
|
|
34
|
+
Active: 'active',
|
|
35
|
+
Damaged: 'damaged',
|
|
36
|
+
InUse: 'in use',
|
|
37
|
+
Disposed: 'disposed',
|
|
38
|
+
Other: 'other',
|
|
39
|
+
};
|
|
40
|
+
/** Position-board phrase. The screen shows `whereLabel`, not this key. */
|
|
41
|
+
exports.InOutPositionPhrase = {
|
|
42
|
+
AtStation: 'at_station',
|
|
43
|
+
OutFromStation: 'out_from_station',
|
|
44
|
+
StationUnknown: 'station_unknown',
|
|
45
|
+
NotRecorded: 'not_recorded',
|
|
46
|
+
};
|
|
47
|
+
/** Photo role. Matches `fleet.in_out_photo_kind`. */
|
|
48
|
+
exports.InOutPhotoKind = {
|
|
49
|
+
Evidence: 'evidence',
|
|
50
|
+
Profile: 'profile',
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=in-out-event.const.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"in-out-event.const.js","sourceRoot":"","sources":["../../src/consts/in-out-event.const.ts"],"names":[],"mappings":";;;AAAA,mEAAmE;AACtD,QAAA,cAAc,GAAG;IAC5B,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;CACF,CAAC;AAIX,uDAAuD;AAC1C,QAAA,gBAAgB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AAIX,oDAAoD;AACvC,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;CACd,CAAC;AAIX,oDAAoD;AACvC,QAAA,cAAc,GAAG;IAC5B,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAIX,qGAAqG;AACxF,QAAA,yBAAyB,GAAG;IACvC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,QAAQ;IACf,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAIX,0EAA0E;AAC7D,QAAA,mBAAmB,GAAG;IACjC,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,kBAAkB;IAClC,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;CACnB,CAAC;AAIX,qDAAqD;AACxC,QAAA,cAAc,GAAG;IAC5B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACV,CAAC"}
|
package/dist/consts/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { VehiclePurpose, VehiclePurposeType, VehiclePurposeDetailType } from './vehicle-purpose.const';
|
|
2
2
|
export { InOutStatusType, InOutStatus } from './in-out-status.const';
|
|
3
3
|
export { InOutType, InOutKeys } from './in-out-type.const';
|
|
4
|
+
export { InOutDirection, InOutSubjectType, InOutPurpose, FleetAssetType, FleetAssetLifecycleStatus, InOutPositionPhrase, InOutPhotoKind, } from './in-out-event.const';
|
|
4
5
|
export { VehicleInspectionChecklist, VehicleInspectionChecklistType } from './vehicle-inspection-check-list.const';
|
|
5
6
|
export { Notifications, NotificationType } from './notifications.const';
|
|
6
7
|
export { permissionConfig, Permission, PermissionKeys } from './permission-config';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,kBAAkB,EAAE,wBAAwB,EAAC,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAAC,eAAe,EAAE,WAAW,EAAC,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAC,0BAA0B,EAAE,8BAA8B,EAAC,MAAM,uCAAuC,CAAC;AACjH,OAAO,EA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AAsB,CAAC;AAC9B,OAAO,EAAC,0BAA0B,EAAE,8BAA8B,EAAC,MAAM,uCAAuC,CAAC;AACjH,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAE,UAAU,EAAE,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACjF,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,8BAA8B,EAC9B,qBAAqB,EACrB,cAAc,EACd,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,8BAA8B,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,eAAe,EACf,qBAAqB,GACtB,MAAM,SAAS,CAAC"}
|
package/dist/consts/index.js
CHANGED
|
@@ -14,13 +14,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.FleetOrderMeterHealth = exports.FleetOrderActor = exports.LIVE_FLEET_ORDER_STATES = exports.FleetOrderState = exports.FleetOrderEntry = exports.CatalogErrorCode = exports.VehicleTypeCatalog = exports.RfidSightingStatus = exports.RfidCardStatus = exports.ChargingSessionMethod = exports.LIVE_CHARGING_SESSION_STATUSES = exports.ChargingSessionStatus = exports.ChargingBookingTaxType = exports.ChargingBookingPayMethod = exports.ChargingBookingStatus = exports.ChargingBookingKind = exports.CampaignAudienceType = exports.CampaignScopeType = exports.PromotionScopeType = exports.PromotionAppliesTo = exports.PromotionAdjustmentType = exports.permissionConfig = exports.Notifications = exports.VehicleInspectionChecklist = exports.InOutType = exports.InOutStatus = exports.VehiclePurpose = void 0;
|
|
17
|
+
exports.FleetOrderMeterHealth = exports.FleetOrderActor = exports.LIVE_FLEET_ORDER_STATES = exports.FleetOrderState = exports.FleetOrderEntry = exports.CatalogErrorCode = exports.VehicleTypeCatalog = exports.RfidSightingStatus = exports.RfidCardStatus = exports.ChargingSessionMethod = exports.LIVE_CHARGING_SESSION_STATUSES = exports.ChargingSessionStatus = exports.ChargingBookingTaxType = exports.ChargingBookingPayMethod = exports.ChargingBookingStatus = exports.ChargingBookingKind = exports.CampaignAudienceType = exports.CampaignScopeType = exports.PromotionScopeType = exports.PromotionAppliesTo = exports.PromotionAdjustmentType = exports.permissionConfig = exports.Notifications = exports.VehicleInspectionChecklist = exports.InOutPhotoKind = exports.InOutPositionPhrase = exports.FleetAssetLifecycleStatus = exports.FleetAssetType = exports.InOutPurpose = exports.InOutSubjectType = exports.InOutDirection = exports.InOutType = exports.InOutStatus = exports.VehiclePurpose = void 0;
|
|
18
18
|
var vehicle_purpose_const_1 = require("./vehicle-purpose.const");
|
|
19
19
|
Object.defineProperty(exports, "VehiclePurpose", { enumerable: true, get: function () { return vehicle_purpose_const_1.VehiclePurpose; } });
|
|
20
20
|
var in_out_status_const_1 = require("./in-out-status.const");
|
|
21
21
|
Object.defineProperty(exports, "InOutStatus", { enumerable: true, get: function () { return in_out_status_const_1.InOutStatus; } });
|
|
22
22
|
var in_out_type_const_1 = require("./in-out-type.const");
|
|
23
23
|
Object.defineProperty(exports, "InOutType", { enumerable: true, get: function () { return in_out_type_const_1.InOutType; } });
|
|
24
|
+
var in_out_event_const_1 = require("./in-out-event.const");
|
|
25
|
+
Object.defineProperty(exports, "InOutDirection", { enumerable: true, get: function () { return in_out_event_const_1.InOutDirection; } });
|
|
26
|
+
Object.defineProperty(exports, "InOutSubjectType", { enumerable: true, get: function () { return in_out_event_const_1.InOutSubjectType; } });
|
|
27
|
+
Object.defineProperty(exports, "InOutPurpose", { enumerable: true, get: function () { return in_out_event_const_1.InOutPurpose; } });
|
|
28
|
+
Object.defineProperty(exports, "FleetAssetType", { enumerable: true, get: function () { return in_out_event_const_1.FleetAssetType; } });
|
|
29
|
+
Object.defineProperty(exports, "FleetAssetLifecycleStatus", { enumerable: true, get: function () { return in_out_event_const_1.FleetAssetLifecycleStatus; } });
|
|
30
|
+
Object.defineProperty(exports, "InOutPositionPhrase", { enumerable: true, get: function () { return in_out_event_const_1.InOutPositionPhrase; } });
|
|
31
|
+
Object.defineProperty(exports, "InOutPhotoKind", { enumerable: true, get: function () { return in_out_event_const_1.InOutPhotoKind; } });
|
|
24
32
|
var vehicle_inspection_check_list_const_1 = require("./vehicle-inspection-check-list.const");
|
|
25
33
|
Object.defineProperty(exports, "VehicleInspectionChecklist", { enumerable: true, get: function () { return vehicle_inspection_check_list_const_1.VehicleInspectionChecklist; } });
|
|
26
34
|
var notifications_const_1 = require("./notifications.const");
|
package/dist/consts/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iEAAqG;AAA7F,uHAAA,cAAc,OAAA;AACtB,6DAAmE;AAA1C,kHAAA,WAAW,OAAA;AACpC,yDAAyD;AAAjD,8GAAA,SAAS,OAAA;AACjB,6FAAiH;AAAzG,iJAAA,0BAA0B,OAAA;AAClC,6DAAsE;AAA9D,oHAAA,aA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AA,0BAA0B,OAAA;AAClC,6DAAsE;AAA9D,oHAAA,aAAa,OAAA;AACrB,yDAAiF;AAAzE,qHAAA,gBAAgB,OAAA;AACxB,qCAImB;AAHjB,kHAAA,uBAAuB,OAAA;AACvB,6GAAA,kBAAkB,OAAA;AAClB,6GAAA,kBAAkB,OAAA;AAEpB,yCAAsE;AAA7D,8GAAA,iBAAiB,OAAA;AAAE,iHAAA,oBAAoB,OAAA;AAChD,uCAUoB;AATlB,+GAAA,mBAAmB,OAAA;AACnB,iHAAA,qBAAqB,OAAA;AACrB,oHAAA,wBAAwB,OAAA;AACxB,kHAAA,sBAAsB,OAAA;AACtB,iHAAA,qBAAqB,OAAA;AACrB,0HAAA,8BAA8B,OAAA;AAC9B,iHAAA,qBAAqB,OAAA;AACrB,0GAAA,cAAc,OAAA;AACd,8GAAA,kBAAkB,OAAA;AAGpB,mEAAkE;AAAzD,wHAAA,kBAAkB,OAAA;AAC3B,qEAAiE;AAAxD,uHAAA,gBAAgB,OAAA;AACzB,0EAAwD;AACxD,+EAA6D;AAC7D,gEAA8C;AAC9C,yEAAuD;AACvD,gDAA8B;AAC9B,iCAMiB;AALf,wGAAA,eAAe,OAAA;AACf,wGAAA,eAAe,OAAA;AACf,gHAAA,uBAAuB,OAAA;AACvB,wGAAA,eAAe,OAAA;AACf,8GAAA,qBAAqB,OAAA"}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
+
import { FleetAssetLifecycleStatus, FleetAssetType, InOutDirection, InOutPhotoKind, InOutPositionPhrase, InOutPurpose, InOutSubjectType } from '../../../consts/in-out-event.const';
|
|
1
2
|
import { IsoDateTime } from '../users/shared.api.model';
|
|
2
|
-
export type InOutSubjectType = 'vehicle' | 'asset';
|
|
3
|
-
export type InOutDirection = 'IN' | 'OUT';
|
|
4
|
-
export type InOutPurpose = 'general' | 'delivery' | 'maintenance' | 'charging' | 'parking' | 'inspection' | 'emergency';
|
|
5
3
|
export declare const IN_OUT_CHECK_ITEMS: readonly ["auxiliaryBattery", "fireExtinguisher", "spareWheel", "hydraulicJack", "rightSideMirror", "leftSideMirror", "vehicleKey", "toolKit"];
|
|
6
4
|
export type InOutCheckItem = (typeof IN_OUT_CHECK_ITEMS)[number];
|
|
7
5
|
export type InOutChecklist = Partial<Record<InOutCheckItem, boolean>>;
|
|
8
|
-
export type FleetAssetType = 'electrical' | 'furniture' | 'tools' | 'safety' | 'other';
|
|
9
|
-
export type FleetAssetLifecycleStatus = 'active' | 'damaged' | 'in use' | 'disposed' | 'other';
|
|
10
|
-
export type InOutPositionPhrase = 'at_station' | 'out_from_station' | 'station_unknown' | 'not_recorded';
|
|
11
6
|
export interface InOutStationRefApiModel {
|
|
12
7
|
id: string;
|
|
13
8
|
name: string;
|
|
14
9
|
code: string;
|
|
15
10
|
}
|
|
16
11
|
export interface InOutPhotoRequest {
|
|
17
|
-
kind:
|
|
12
|
+
kind: InOutPhotoKind;
|
|
18
13
|
storageKey: string;
|
|
19
14
|
title?: string | null;
|
|
20
15
|
sortOrder?: number;
|
|
@@ -191,4 +186,26 @@ export interface InOutDifferenceListApiModel {
|
|
|
191
186
|
pageIndex: number;
|
|
192
187
|
pageSize: number;
|
|
193
188
|
}
|
|
189
|
+
/** One yard card: the vehicle or asset and the event `current_in_out_event_id` points at. */
|
|
190
|
+
export interface FleetCurrentInOutRowApiModel {
|
|
191
|
+
eventId: string;
|
|
192
|
+
subjectType: InOutSubjectType;
|
|
193
|
+
subjectId: string;
|
|
194
|
+
label: string;
|
|
195
|
+
vehicleSubtitle: string | null;
|
|
196
|
+
identificationNumber: string | null;
|
|
197
|
+
direction: InOutDirection;
|
|
198
|
+
occurredAt: IsoDateTime;
|
|
199
|
+
driverName: string | null;
|
|
200
|
+
purpose: InOutPurpose;
|
|
201
|
+
station: InOutStationRefApiModel | null;
|
|
202
|
+
fleetId: string;
|
|
203
|
+
fleetName: string;
|
|
204
|
+
}
|
|
205
|
+
export interface FleetCurrentInOutListApiModel {
|
|
206
|
+
rows: FleetCurrentInOutRowApiModel[];
|
|
207
|
+
totalCount: number;
|
|
208
|
+
pageIndex: number;
|
|
209
|
+
pageSize: number;
|
|
210
|
+
}
|
|
194
211
|
//# sourceMappingURL=in-out-event.api.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-out-event.api.model.d.ts","sourceRoot":"","sources":["../../../../src/models/api/fleet/in-out-event.api.model.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"in-out-event.api.model.d.ts","sourceRoot":"","sources":["../../../../src/models/api/fleet/in-out-event.api.model.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,eAAO,MAAM,kBAAkB,gJASrB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AACjE,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC;AAEtE,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAA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,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,0BAA0B,EAAE,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,6FAA6F;AAC7F,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,SAAS,EAAE,cAAc,CAAC;IAC1B,UAAU,EAAE,WAAW,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,4BAA4B,EAAE,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-out-event.api.model.js","sourceRoot":"","sources":["../../../../src/models/api/fleet/in-out-event.api.model.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"in-out-event.api.model.js","sourceRoot":"","sources":["../../../../src/models/api/fleet/in-out-event.api.model.ts"],"names":[],"mappings":";;;AAWa,QAAA,kBAAkB,GAAG;IAChC,kBAAkB;IAClB,kBAAkB;IAClB,YAAY;IACZ,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,YAAY;IACZ,SAAS;CACD,CAAC"}
|
|
@@ -2,5 +2,5 @@ export { FLEET_ID_HEADER, FleetStationListItemApiModel, FleetStationDetailApiMod
|
|
|
2
2
|
export { FleetListOrderBy, FleetBusinessUnitRefApiModel, FleetFranchiseRefApiModel, FleetListItemApiModel, FleetListApiModel, FleetDetailApiModel, CreateFleetRequest, UpdateFleetRequest, FleetUserListOrderBy, FleetUserListItemApiModel, FleetUserListApiModel, FleetUserDetailApiModel, CreateFleetUserRequest, CreateFleetUserResponse, UpdateFleetUserRequest, SetFleetUserStatusMatchApiModel, SetFleetUserStatusRequest, SetFleetUserStatusResponse, FleetUserAccessListItemApiModel, GrantFleetUserAccessRequest, GrantFleetUserFleetAccessRequest, FleetUserFleetAccessListItemApiModel, FleetStationVisibilityListItemApiModel, SetFleetStationVisibilityRequest, FleetMeProfileApiModel, FleetMeMembershipApiModel, FleetMeApiModel, UpdateFleetMeRequest, FleetMeFleetItemApiModel, FleetMeFleetsApiModel, } from './fleet-master.api.model';
|
|
3
3
|
export { FleetVehicleInOutStatus, FleetVehicleListOrderBy, FleetVehicleCatalogBrandRefApiModel, FleetVehicleCatalogRefApiModel, FleetVehicleListItemApiModel, FleetVehicleListApiModel, FleetVehicleDetailApiModel, CreateFleetVehicleRequest, UpdateFleetVehicleRequest, PatchFleetVehicleInOutStateRequest, CheckFleetVehicleByNumberApiModel, CheckFleetVehicleByNumberExistsApiModel, CheckFleetVehicleByNumberResponseApiModel, SetFleetVehicleActiveStatusMatchApiModel, SetFleetVehicleActiveStatusRequest, SetFleetVehicleActiveStatusResponse, } from './fleet-vehicle.api.model';
|
|
4
4
|
export { FleetOrderAttemptApiModel, FleetOrderApiModel, FleetOrderSummaryDayApiModel, FleetOrderSummaryApiModel, CreateOfflineFleetOrderRequest, StopOfflineFleetOrderRequest, } from './fleet-order.api.model';
|
|
5
|
-
export {
|
|
5
|
+
export { IN_OUT_CHECK_ITEMS, InOutCheckItem, InOutChecklist, InOutStationRefApiModel, InOutPhotoRequest, CreateInOutEventRequest, CreateFleetAssetRequest, FleetAssetApiModel, FleetAssetListApiModel, LatestInOutEventApiModel, InOutChecklistDiffApiModel, InOutEventDetailApiModel, InOutLogListApiModel, VehiclePositionRowApiModel, PositionStationCountApiModel, VehiclePositionListApiModel, AssetPositionRowApiModel, AssetPositionListApiModel, InOutSummaryRowApiModel, InOutSummaryListApiModel, InOutDifferenceRowApiModel, InOutDifferenceListApiModel, FleetCurrentInOutRowApiModel, FleetCurrentInOutListApiModel, } from './in-out-event.api.model';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/api/fleet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,+BAA+B,EAC/B,yBAAyB,EACzB,0BAA0B,EAC1B,+BAA+B,EAC/B,2BAA2B,EAC3B,gCAAgC,EAChC,oCAAoC,EACpC,sCAAsC,EACtC,gCAAgC,EAChC,sBAAsB,EACtB,yBAAyB,EACzB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,mCAAmC,EACnC,8BAA8B,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,kCAAkC,EAClC,iCAAiC,EACjC,uCAAuC,EACvC,yCAAyC,EACzC,wCAAwC,EACxC,kCAAkC,EAClC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,4BAA4B,EAC5B,yBAAyB,EACzB,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/api/fleet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,+BAA+B,EAC/B,yBAAyB,EACzB,0BAA0B,EAC1B,+BAA+B,EAC/B,2BAA2B,EAC3B,gCAAgC,EAChC,oCAAoC,EACpC,sCAAsC,EACtC,gCAAgC,EAChC,sBAAsB,EACtB,yBAAyB,EACzB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,mCAAmC,EACnC,8BAA8B,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,kCAAkC,EAClC,iCAAiC,EACjC,uCAAuC,EACvC,yCAAyC,EACzC,wCAAwC,EACxC,kCAAkC,EAClC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,4BAA4B,EAC5B,yBAAyB,EACzB,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,EAC5B,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/api/fleet/index.ts"],"names":[],"mappings":";;;AAAA,qEAImC;AAHjC,0HAAA,eAAe,OAAA;AA8DjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/api/fleet/index.ts"],"names":[],"mappings":";;;AAAA,qEAImC;AAHjC,0HAAA,eAAe,OAAA;AA8DjB,mEAyBkC;AAxBhC,4HAAA,kBAAkB,OAAA"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/** Gate direction. Matches `fleet.fleet_vehicle_in_out_status`. */
|
|
2
|
+
export const InOutDirection = {
|
|
3
|
+
In: 'IN',
|
|
4
|
+
Out: 'OUT',
|
|
5
|
+
} as const;
|
|
6
|
+
|
|
7
|
+
export type InOutDirection = (typeof InOutDirection)[keyof typeof InOutDirection];
|
|
8
|
+
|
|
9
|
+
/** What moved. Matches `fleet.in_out_subject_type`. */
|
|
10
|
+
export const InOutSubjectType = {
|
|
11
|
+
Vehicle: 'vehicle',
|
|
12
|
+
Asset: 'asset',
|
|
13
|
+
} as const;
|
|
14
|
+
|
|
15
|
+
export type InOutSubjectType = (typeof InOutSubjectType)[keyof typeof InOutSubjectType];
|
|
16
|
+
|
|
17
|
+
/** Why it moved. Matches `fleet.in_out_purpose`. */
|
|
18
|
+
export const InOutPurpose = {
|
|
19
|
+
General: 'general',
|
|
20
|
+
Delivery: 'delivery',
|
|
21
|
+
Maintenance: 'maintenance',
|
|
22
|
+
Charging: 'charging',
|
|
23
|
+
Parking: 'parking',
|
|
24
|
+
Inspection: 'inspection',
|
|
25
|
+
Emergency: 'emergency',
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type InOutPurpose = (typeof InOutPurpose)[keyof typeof InOutPurpose];
|
|
29
|
+
|
|
30
|
+
/** Asset kind. Matches `fleet.fleet_asset_type`. */
|
|
31
|
+
export const FleetAssetType = {
|
|
32
|
+
Electrical: 'electrical',
|
|
33
|
+
Furniture: 'furniture',
|
|
34
|
+
Tools: 'tools',
|
|
35
|
+
Safety: 'safety',
|
|
36
|
+
Other: 'other',
|
|
37
|
+
} as const;
|
|
38
|
+
|
|
39
|
+
export type FleetAssetType = (typeof FleetAssetType)[keyof typeof FleetAssetType];
|
|
40
|
+
|
|
41
|
+
/** Asset lifecycle. Separate from in/out direction. Matches `fleet.fleet_asset_lifecycle_status`. */
|
|
42
|
+
export const FleetAssetLifecycleStatus = {
|
|
43
|
+
Active: 'active',
|
|
44
|
+
Damaged: 'damaged',
|
|
45
|
+
InUse: 'in use',
|
|
46
|
+
Disposed: 'disposed',
|
|
47
|
+
Other: 'other',
|
|
48
|
+
} as const;
|
|
49
|
+
|
|
50
|
+
export type FleetAssetLifecycleStatus = (typeof FleetAssetLifecycleStatus)[keyof typeof FleetAssetLifecycleStatus];
|
|
51
|
+
|
|
52
|
+
/** Position-board phrase. The screen shows `whereLabel`, not this key. */
|
|
53
|
+
export const InOutPositionPhrase = {
|
|
54
|
+
AtStation: 'at_station',
|
|
55
|
+
OutFromStation: 'out_from_station',
|
|
56
|
+
StationUnknown: 'station_unknown',
|
|
57
|
+
NotRecorded: 'not_recorded',
|
|
58
|
+
} as const;
|
|
59
|
+
|
|
60
|
+
export type InOutPositionPhrase = (typeof InOutPositionPhrase)[keyof typeof InOutPositionPhrase];
|
|
61
|
+
|
|
62
|
+
/** Photo role. Matches `fleet.in_out_photo_kind`. */
|
|
63
|
+
export const InOutPhotoKind = {
|
|
64
|
+
Evidence: 'evidence',
|
|
65
|
+
Profile: 'profile',
|
|
66
|
+
} as const;
|
|
67
|
+
|
|
68
|
+
export type InOutPhotoKind = (typeof InOutPhotoKind)[keyof typeof InOutPhotoKind];
|
package/src/consts/index.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export {VehiclePurpose, VehiclePurposeType, VehiclePurposeDetailType} from './vehicle-purpose.const';
|
|
2
2
|
export {InOutStatusType, InOutStatus} from './in-out-status.const';
|
|
3
3
|
export {InOutType, InOutKeys} from './in-out-type.const';
|
|
4
|
+
export {
|
|
5
|
+
InOutDirection,
|
|
6
|
+
InOutSubjectType,
|
|
7
|
+
InOutPurpose,
|
|
8
|
+
FleetAssetType,
|
|
9
|
+
FleetAssetLifecycleStatus,
|
|
10
|
+
InOutPositionPhrase,
|
|
11
|
+
InOutPhotoKind,
|
|
12
|
+
} from './in-out-event.const';
|
|
4
13
|
export {VehicleInspectionChecklist, VehicleInspectionChecklistType} from './vehicle-inspection-check-list.const';
|
|
5
14
|
export {Notifications, NotificationType} from './notifications.const';
|
|
6
15
|
export {permissionConfig, Permission, PermissionKeys} from './permission-config';
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FleetAssetLifecycleStatus,
|
|
3
|
+
FleetAssetType,
|
|
4
|
+
InOutDirection,
|
|
5
|
+
InOutPhotoKind,
|
|
6
|
+
InOutPositionPhrase,
|
|
7
|
+
InOutPurpose,
|
|
8
|
+
InOutSubjectType,
|
|
9
|
+
} from '../../../consts/in-out-event.const';
|
|
1
10
|
import { IsoDateTime } from '../users/shared.api.model';
|
|
2
11
|
|
|
3
|
-
export type InOutSubjectType = 'vehicle' | 'asset';
|
|
4
|
-
export type InOutDirection = 'IN' | 'OUT';
|
|
5
|
-
export type InOutPurpose =
|
|
6
|
-
| 'general'
|
|
7
|
-
| 'delivery'
|
|
8
|
-
| 'maintenance'
|
|
9
|
-
| 'charging'
|
|
10
|
-
| 'parking'
|
|
11
|
-
| 'inspection'
|
|
12
|
-
| 'emergency';
|
|
13
|
-
|
|
14
12
|
export const IN_OUT_CHECK_ITEMS = [
|
|
15
13
|
'auxiliaryBattery',
|
|
16
14
|
'fireExtinguisher',
|
|
@@ -25,11 +23,6 @@ export const IN_OUT_CHECK_ITEMS = [
|
|
|
25
23
|
export type InOutCheckItem = (typeof IN_OUT_CHECK_ITEMS)[number];
|
|
26
24
|
export type InOutChecklist = Partial<Record<InOutCheckItem, boolean>>;
|
|
27
25
|
|
|
28
|
-
export type FleetAssetType = 'electrical' | 'furniture' | 'tools' | 'safety' | 'other';
|
|
29
|
-
export type FleetAssetLifecycleStatus = 'active' | 'damaged' | 'in use' | 'disposed' | 'other';
|
|
30
|
-
|
|
31
|
-
export type InOutPositionPhrase = 'at_station' | 'out_from_station' | 'station_unknown' | 'not_recorded';
|
|
32
|
-
|
|
33
26
|
export interface InOutStationRefApiModel {
|
|
34
27
|
id: string;
|
|
35
28
|
name: string;
|
|
@@ -37,7 +30,7 @@ export interface InOutStationRefApiModel {
|
|
|
37
30
|
}
|
|
38
31
|
|
|
39
32
|
export interface InOutPhotoRequest {
|
|
40
|
-
kind:
|
|
33
|
+
kind: InOutPhotoKind;
|
|
41
34
|
storageKey: string;
|
|
42
35
|
title?: string | null;
|
|
43
36
|
sortOrder?: number;
|
|
@@ -231,3 +224,27 @@ export interface InOutDifferenceListApiModel {
|
|
|
231
224
|
pageIndex: number;
|
|
232
225
|
pageSize: number;
|
|
233
226
|
}
|
|
227
|
+
|
|
228
|
+
/** One yard card: the vehicle or asset and the event `current_in_out_event_id` points at. */
|
|
229
|
+
export interface FleetCurrentInOutRowApiModel {
|
|
230
|
+
eventId: string;
|
|
231
|
+
subjectType: InOutSubjectType;
|
|
232
|
+
subjectId: string;
|
|
233
|
+
label: string;
|
|
234
|
+
vehicleSubtitle: string | null;
|
|
235
|
+
identificationNumber: string | null;
|
|
236
|
+
direction: InOutDirection;
|
|
237
|
+
occurredAt: IsoDateTime;
|
|
238
|
+
driverName: string | null;
|
|
239
|
+
purpose: InOutPurpose;
|
|
240
|
+
station: InOutStationRefApiModel | null;
|
|
241
|
+
fleetId: string;
|
|
242
|
+
fleetName: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface FleetCurrentInOutListApiModel {
|
|
246
|
+
rows: FleetCurrentInOutRowApiModel[];
|
|
247
|
+
totalCount: number;
|
|
248
|
+
pageIndex: number;
|
|
249
|
+
pageSize: number;
|
|
250
|
+
}
|
|
@@ -62,15 +62,9 @@ export {
|
|
|
62
62
|
StopOfflineFleetOrderRequest,
|
|
63
63
|
} from './fleet-order.api.model';
|
|
64
64
|
export {
|
|
65
|
-
InOutSubjectType,
|
|
66
|
-
InOutDirection,
|
|
67
|
-
InOutPurpose,
|
|
68
65
|
IN_OUT_CHECK_ITEMS,
|
|
69
66
|
InOutCheckItem,
|
|
70
67
|
InOutChecklist,
|
|
71
|
-
FleetAssetType,
|
|
72
|
-
FleetAssetLifecycleStatus,
|
|
73
|
-
InOutPositionPhrase,
|
|
74
68
|
InOutStationRefApiModel,
|
|
75
69
|
InOutPhotoRequest,
|
|
76
70
|
CreateInOutEventRequest,
|
|
@@ -90,4 +84,6 @@ export {
|
|
|
90
84
|
InOutSummaryListApiModel,
|
|
91
85
|
InOutDifferenceRowApiModel,
|
|
92
86
|
InOutDifferenceListApiModel,
|
|
87
|
+
FleetCurrentInOutRowApiModel,
|
|
88
|
+
FleetCurrentInOutListApiModel,
|
|
93
89
|
} from './in-out-event.api.model';
|