@chrt-inc/typescript-sdk 1.702.0 → 1.704.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/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +17 -5
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +9 -0
- package/dist/cjs/api/types/Session1.d.ts +2 -0
- package/dist/cjs/api/types/SessionSortByEnum.d.ts +2 -1
- package/dist/cjs/api/types/SessionSortByEnum.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +17 -5
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +9 -0
- package/dist/esm/api/types/Session1.d.mts +2 -0
- package/dist/esm/api/types/SessionSortByEnum.d.mts +2 -1
- package/dist/esm/api/types/SessionSortByEnum.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +3 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -56,8 +56,8 @@ class ChrtClient {
|
|
|
56
56
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "1.
|
|
60
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
59
|
+
"X-Fern-SDK-Version": "1.704.0",
|
|
60
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.704.0",
|
|
61
61
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
62
62
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
63
63
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -53,8 +53,11 @@ export declare class Sessions {
|
|
|
53
53
|
* filter_flight_number: "filter_flight_number",
|
|
54
54
|
* filter_fa_flight_id: "filter_fa_flight_id",
|
|
55
55
|
* filter_flight_loaded_status: "filter_flight_loaded_status",
|
|
56
|
+
* filter_has_last_seen: true,
|
|
56
57
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
57
58
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
59
|
+
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
60
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
58
61
|
* filter_termination_scheduled_for_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
59
62
|
* filter_termination_scheduled_for_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
60
63
|
* filter_terminated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -89,8 +89,11 @@ class Sessions {
|
|
|
89
89
|
* filter_flight_number: "filter_flight_number",
|
|
90
90
|
* filter_fa_flight_id: "filter_fa_flight_id",
|
|
91
91
|
* filter_flight_loaded_status: "filter_flight_loaded_status",
|
|
92
|
+
* filter_has_last_seen: true,
|
|
92
93
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
93
94
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
95
|
+
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
96
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
94
97
|
* filter_termination_scheduled_for_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
95
98
|
* filter_termination_scheduled_for_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
96
99
|
* filter_terminated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -102,8 +105,8 @@ class Sessions {
|
|
|
102
105
|
}
|
|
103
106
|
__listV1() {
|
|
104
107
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
105
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
106
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_terminated: filterTerminated, filter_public: filterPublic, filter_device_id: filterDeviceId, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_flight_number: filterFlightNumber, filter_fa_flight_id: filterFaFlightId, filter_flight_loaded_status: filterFlightLoadedStatus, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_termination_scheduled_for_timestamp_gte: filterTerminationScheduledForTimestampGte, filter_termination_scheduled_for_timestamp_lte: filterTerminationScheduledForTimestampLte, filter_terminated_at_timestamp_gte: filterTerminatedAtTimestampGte, filter_terminated_at_timestamp_lte: filterTerminatedAtTimestampLte, } = request;
|
|
108
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
109
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_terminated: filterTerminated, filter_public: filterPublic, filter_device_id: filterDeviceId, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_flight_number: filterFlightNumber, filter_fa_flight_id: filterFaFlightId, filter_flight_loaded_status: filterFlightLoadedStatus, filter_has_last_seen: filterHasLastSeen, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_termination_scheduled_for_timestamp_gte: filterTerminationScheduledForTimestampGte, filter_termination_scheduled_for_timestamp_lte: filterTerminationScheduledForTimestampLte, filter_terminated_at_timestamp_gte: filterTerminatedAtTimestampGte, filter_terminated_at_timestamp_lte: filterTerminatedAtTimestampLte, } = request;
|
|
107
110
|
const _queryParams = {};
|
|
108
111
|
if (sortBy !== undefined) {
|
|
109
112
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -144,12 +147,21 @@ class Sessions {
|
|
|
144
147
|
if (filterFlightLoadedStatus !== undefined) {
|
|
145
148
|
_queryParams["filter_flight_loaded_status"] = filterFlightLoadedStatus;
|
|
146
149
|
}
|
|
150
|
+
if (filterHasLastSeen !== undefined) {
|
|
151
|
+
_queryParams["filter_has_last_seen"] = (_e = filterHasLastSeen === null || filterHasLastSeen === void 0 ? void 0 : filterHasLastSeen.toString()) !== null && _e !== void 0 ? _e : null;
|
|
152
|
+
}
|
|
147
153
|
if (filterCreatedAtTimestampGte !== undefined) {
|
|
148
154
|
_queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
|
|
149
155
|
}
|
|
150
156
|
if (filterCreatedAtTimestampLte !== undefined) {
|
|
151
157
|
_queryParams["filter_created_at_timestamp_lte"] = filterCreatedAtTimestampLte;
|
|
152
158
|
}
|
|
159
|
+
if (filterLastSeenAtTimestampGte !== undefined) {
|
|
160
|
+
_queryParams["filter_last_seen_at_timestamp_gte"] = filterLastSeenAtTimestampGte;
|
|
161
|
+
}
|
|
162
|
+
if (filterLastSeenAtTimestampLte !== undefined) {
|
|
163
|
+
_queryParams["filter_last_seen_at_timestamp_lte"] = filterLastSeenAtTimestampLte;
|
|
164
|
+
}
|
|
153
165
|
if (filterTerminationScheduledForTimestampGte !== undefined) {
|
|
154
166
|
_queryParams["filter_termination_scheduled_for_timestamp_gte"] = filterTerminationScheduledForTimestampGte;
|
|
155
167
|
}
|
|
@@ -162,9 +174,9 @@ class Sessions {
|
|
|
162
174
|
if (filterTerminatedAtTimestampLte !== undefined) {
|
|
163
175
|
_queryParams["filter_terminated_at_timestamp_lte"] = filterTerminatedAtTimestampLte;
|
|
164
176
|
}
|
|
165
|
-
let _headers = (0, headers_js_1.mergeHeaders)((
|
|
166
|
-
const _response = yield ((
|
|
167
|
-
url: core.url.join((
|
|
177
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_f = this._options) === null || _f === void 0 ? void 0 : _f.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
178
|
+
const _response = yield ((_g = this._options.fetcher) !== null && _g !== void 0 ? _g : core.fetcher)({
|
|
179
|
+
url: core.url.join((_j = (_h = (yield core.Supplier.get(this._options.baseUrl))) !== null && _h !== void 0 ? _h : (yield core.Supplier.get(this._options.environment))) !== null && _j !== void 0 ? _j : environments.ChrtEnvironment.Local, "tracking/sessions/list/v1"),
|
|
168
180
|
method: "GET",
|
|
169
181
|
headers: _headers,
|
|
170
182
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -18,8 +18,11 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
18
18
|
* filter_flight_number: "filter_flight_number",
|
|
19
19
|
* filter_fa_flight_id: "filter_fa_flight_id",
|
|
20
20
|
* filter_flight_loaded_status: "filter_flight_loaded_status",
|
|
21
|
+
* filter_has_last_seen: true,
|
|
21
22
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
22
23
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
24
|
+
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
23
26
|
* filter_termination_scheduled_for_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
24
27
|
* filter_termination_scheduled_for_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
25
28
|
* filter_terminated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -51,10 +54,16 @@ export interface SessionsListV1Request {
|
|
|
51
54
|
filter_fa_flight_id?: string | null;
|
|
52
55
|
/** Filter by flight loaded status (exact match) */
|
|
53
56
|
filter_flight_loaded_status?: string | null;
|
|
57
|
+
/** Filter by whether both last_seen_at_location and last_seen_at_timestamp are set */
|
|
58
|
+
filter_has_last_seen?: boolean | null;
|
|
54
59
|
/** Filter by created_at_timestamp >= value */
|
|
55
60
|
filter_created_at_timestamp_gte?: string | null;
|
|
56
61
|
/** Filter by created_at_timestamp <= value */
|
|
57
62
|
filter_created_at_timestamp_lte?: string | null;
|
|
63
|
+
/** Filter by last_seen_at_timestamp >= value */
|
|
64
|
+
filter_last_seen_at_timestamp_gte?: string | null;
|
|
65
|
+
/** Filter by last_seen_at_timestamp <= value */
|
|
66
|
+
filter_last_seen_at_timestamp_lte?: string | null;
|
|
58
67
|
/** Filter by termination_scheduled_for_timestamp >= value */
|
|
59
68
|
filter_termination_scheduled_for_timestamp_gte?: string | null;
|
|
60
69
|
/** Filter by termination_scheduled_for_timestamp <= value */
|
|
@@ -20,6 +20,8 @@ export interface Session1 {
|
|
|
20
20
|
created_at_timestamp: string;
|
|
21
21
|
terminated?: boolean;
|
|
22
22
|
terminated_at_timestamp?: string | null;
|
|
23
|
+
last_seen_at_location?: Chrt.LocationFeature | null;
|
|
24
|
+
last_seen_at_timestamp?: string | null;
|
|
23
25
|
fa_alert_ids?: number[];
|
|
24
26
|
flight_loaded_statuses?: string[];
|
|
25
27
|
fa_alert_id_by_flight_number?: Record<string, number>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type SessionSortByEnum = "created_at_timestamp" | "termination_scheduled_for_timestamp" | "terminated_at_timestamp";
|
|
4
|
+
export type SessionSortByEnum = "created_at_timestamp" | "last_seen_at_timestamp" | "termination_scheduled_for_timestamp" | "terminated_at_timestamp";
|
|
5
5
|
export declare const SessionSortByEnum: {
|
|
6
6
|
readonly CreatedAtTimestamp: "created_at_timestamp";
|
|
7
|
+
readonly LastSeenAtTimestamp: "last_seen_at_timestamp";
|
|
7
8
|
readonly TerminationScheduledForTimestamp: "termination_scheduled_for_timestamp";
|
|
8
9
|
readonly TerminatedAtTimestamp: "terminated_at_timestamp";
|
|
9
10
|
};
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.SessionSortByEnum = void 0;
|
|
7
7
|
exports.SessionSortByEnum = {
|
|
8
8
|
CreatedAtTimestamp: "created_at_timestamp",
|
|
9
|
+
LastSeenAtTimestamp: "last_seen_at_timestamp",
|
|
9
10
|
TerminationScheduledForTimestamp: "termination_scheduled_for_timestamp",
|
|
10
11
|
TerminatedAtTimestamp: "terminated_at_timestamp",
|
|
11
12
|
};
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.704.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -20,8 +20,8 @@ export class ChrtClient {
|
|
|
20
20
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
21
21
|
"X-Fern-Language": "JavaScript",
|
|
22
22
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
23
|
-
"X-Fern-SDK-Version": "1.
|
|
24
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
23
|
+
"X-Fern-SDK-Version": "1.704.0",
|
|
24
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.704.0",
|
|
25
25
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
26
26
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
27
27
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -53,8 +53,11 @@ export declare class Sessions {
|
|
|
53
53
|
* filter_flight_number: "filter_flight_number",
|
|
54
54
|
* filter_fa_flight_id: "filter_fa_flight_id",
|
|
55
55
|
* filter_flight_loaded_status: "filter_flight_loaded_status",
|
|
56
|
+
* filter_has_last_seen: true,
|
|
56
57
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
57
58
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
59
|
+
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
60
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
58
61
|
* filter_termination_scheduled_for_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
59
62
|
* filter_termination_scheduled_for_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
60
63
|
* filter_terminated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -53,8 +53,11 @@ export class Sessions {
|
|
|
53
53
|
* filter_flight_number: "filter_flight_number",
|
|
54
54
|
* filter_fa_flight_id: "filter_fa_flight_id",
|
|
55
55
|
* filter_flight_loaded_status: "filter_flight_loaded_status",
|
|
56
|
+
* filter_has_last_seen: true,
|
|
56
57
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
57
58
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
59
|
+
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
60
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
58
61
|
* filter_termination_scheduled_for_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
59
62
|
* filter_termination_scheduled_for_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
60
63
|
* filter_terminated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -66,8 +69,8 @@ export class Sessions {
|
|
|
66
69
|
}
|
|
67
70
|
__listV1() {
|
|
68
71
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
69
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
70
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_terminated: filterTerminated, filter_public: filterPublic, filter_device_id: filterDeviceId, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_flight_number: filterFlightNumber, filter_fa_flight_id: filterFaFlightId, filter_flight_loaded_status: filterFlightLoadedStatus, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_termination_scheduled_for_timestamp_gte: filterTerminationScheduledForTimestampGte, filter_termination_scheduled_for_timestamp_lte: filterTerminationScheduledForTimestampLte, filter_terminated_at_timestamp_gte: filterTerminatedAtTimestampGte, filter_terminated_at_timestamp_lte: filterTerminatedAtTimestampLte, } = request;
|
|
72
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
73
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_terminated: filterTerminated, filter_public: filterPublic, filter_device_id: filterDeviceId, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_flight_number: filterFlightNumber, filter_fa_flight_id: filterFaFlightId, filter_flight_loaded_status: filterFlightLoadedStatus, filter_has_last_seen: filterHasLastSeen, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_termination_scheduled_for_timestamp_gte: filterTerminationScheduledForTimestampGte, filter_termination_scheduled_for_timestamp_lte: filterTerminationScheduledForTimestampLte, filter_terminated_at_timestamp_gte: filterTerminatedAtTimestampGte, filter_terminated_at_timestamp_lte: filterTerminatedAtTimestampLte, } = request;
|
|
71
74
|
const _queryParams = {};
|
|
72
75
|
if (sortBy !== undefined) {
|
|
73
76
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -108,12 +111,21 @@ export class Sessions {
|
|
|
108
111
|
if (filterFlightLoadedStatus !== undefined) {
|
|
109
112
|
_queryParams["filter_flight_loaded_status"] = filterFlightLoadedStatus;
|
|
110
113
|
}
|
|
114
|
+
if (filterHasLastSeen !== undefined) {
|
|
115
|
+
_queryParams["filter_has_last_seen"] = (_e = filterHasLastSeen === null || filterHasLastSeen === void 0 ? void 0 : filterHasLastSeen.toString()) !== null && _e !== void 0 ? _e : null;
|
|
116
|
+
}
|
|
111
117
|
if (filterCreatedAtTimestampGte !== undefined) {
|
|
112
118
|
_queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
|
|
113
119
|
}
|
|
114
120
|
if (filterCreatedAtTimestampLte !== undefined) {
|
|
115
121
|
_queryParams["filter_created_at_timestamp_lte"] = filterCreatedAtTimestampLte;
|
|
116
122
|
}
|
|
123
|
+
if (filterLastSeenAtTimestampGte !== undefined) {
|
|
124
|
+
_queryParams["filter_last_seen_at_timestamp_gte"] = filterLastSeenAtTimestampGte;
|
|
125
|
+
}
|
|
126
|
+
if (filterLastSeenAtTimestampLte !== undefined) {
|
|
127
|
+
_queryParams["filter_last_seen_at_timestamp_lte"] = filterLastSeenAtTimestampLte;
|
|
128
|
+
}
|
|
117
129
|
if (filterTerminationScheduledForTimestampGte !== undefined) {
|
|
118
130
|
_queryParams["filter_termination_scheduled_for_timestamp_gte"] = filterTerminationScheduledForTimestampGte;
|
|
119
131
|
}
|
|
@@ -126,9 +138,9 @@ export class Sessions {
|
|
|
126
138
|
if (filterTerminatedAtTimestampLte !== undefined) {
|
|
127
139
|
_queryParams["filter_terminated_at_timestamp_lte"] = filterTerminatedAtTimestampLte;
|
|
128
140
|
}
|
|
129
|
-
let _headers = mergeHeaders((
|
|
130
|
-
const _response = yield ((
|
|
131
|
-
url: core.url.join((
|
|
141
|
+
let _headers = mergeHeaders((_f = this._options) === null || _f === void 0 ? void 0 : _f.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
142
|
+
const _response = yield ((_g = this._options.fetcher) !== null && _g !== void 0 ? _g : core.fetcher)({
|
|
143
|
+
url: core.url.join((_j = (_h = (yield core.Supplier.get(this._options.baseUrl))) !== null && _h !== void 0 ? _h : (yield core.Supplier.get(this._options.environment))) !== null && _j !== void 0 ? _j : environments.ChrtEnvironment.Local, "tracking/sessions/list/v1"),
|
|
132
144
|
method: "GET",
|
|
133
145
|
headers: _headers,
|
|
134
146
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -18,8 +18,11 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
18
18
|
* filter_flight_number: "filter_flight_number",
|
|
19
19
|
* filter_fa_flight_id: "filter_fa_flight_id",
|
|
20
20
|
* filter_flight_loaded_status: "filter_flight_loaded_status",
|
|
21
|
+
* filter_has_last_seen: true,
|
|
21
22
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
22
23
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
24
|
+
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
23
26
|
* filter_termination_scheduled_for_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
24
27
|
* filter_termination_scheduled_for_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
25
28
|
* filter_terminated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -51,10 +54,16 @@ export interface SessionsListV1Request {
|
|
|
51
54
|
filter_fa_flight_id?: string | null;
|
|
52
55
|
/** Filter by flight loaded status (exact match) */
|
|
53
56
|
filter_flight_loaded_status?: string | null;
|
|
57
|
+
/** Filter by whether both last_seen_at_location and last_seen_at_timestamp are set */
|
|
58
|
+
filter_has_last_seen?: boolean | null;
|
|
54
59
|
/** Filter by created_at_timestamp >= value */
|
|
55
60
|
filter_created_at_timestamp_gte?: string | null;
|
|
56
61
|
/** Filter by created_at_timestamp <= value */
|
|
57
62
|
filter_created_at_timestamp_lte?: string | null;
|
|
63
|
+
/** Filter by last_seen_at_timestamp >= value */
|
|
64
|
+
filter_last_seen_at_timestamp_gte?: string | null;
|
|
65
|
+
/** Filter by last_seen_at_timestamp <= value */
|
|
66
|
+
filter_last_seen_at_timestamp_lte?: string | null;
|
|
58
67
|
/** Filter by termination_scheduled_for_timestamp >= value */
|
|
59
68
|
filter_termination_scheduled_for_timestamp_gte?: string | null;
|
|
60
69
|
/** Filter by termination_scheduled_for_timestamp <= value */
|
|
@@ -20,6 +20,8 @@ export interface Session1 {
|
|
|
20
20
|
created_at_timestamp: string;
|
|
21
21
|
terminated?: boolean;
|
|
22
22
|
terminated_at_timestamp?: string | null;
|
|
23
|
+
last_seen_at_location?: Chrt.LocationFeature | null;
|
|
24
|
+
last_seen_at_timestamp?: string | null;
|
|
23
25
|
fa_alert_ids?: number[];
|
|
24
26
|
flight_loaded_statuses?: string[];
|
|
25
27
|
fa_alert_id_by_flight_number?: Record<string, number>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type SessionSortByEnum = "created_at_timestamp" | "termination_scheduled_for_timestamp" | "terminated_at_timestamp";
|
|
4
|
+
export type SessionSortByEnum = "created_at_timestamp" | "last_seen_at_timestamp" | "termination_scheduled_for_timestamp" | "terminated_at_timestamp";
|
|
5
5
|
export declare const SessionSortByEnum: {
|
|
6
6
|
readonly CreatedAtTimestamp: "created_at_timestamp";
|
|
7
|
+
readonly LastSeenAtTimestamp: "last_seen_at_timestamp";
|
|
7
8
|
readonly TerminationScheduledForTimestamp: "termination_scheduled_for_timestamp";
|
|
8
9
|
readonly TerminatedAtTimestamp: "terminated_at_timestamp";
|
|
9
10
|
};
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.704.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.704.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -25606,8 +25606,11 @@ await client.tracking.sessions.listV1({
|
|
|
25606
25606
|
filter_flight_number: "filter_flight_number",
|
|
25607
25607
|
filter_fa_flight_id: "filter_fa_flight_id",
|
|
25608
25608
|
filter_flight_loaded_status: "filter_flight_loaded_status",
|
|
25609
|
+
filter_has_last_seen: true,
|
|
25609
25610
|
filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25610
25611
|
filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
25612
|
+
filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25613
|
+
filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
25611
25614
|
filter_termination_scheduled_for_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25612
25615
|
filter_termination_scheduled_for_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
25613
25616
|
filter_terminated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|