space-data-module-sdk 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -2
- package/package.json +6 -2
- package/schemas/orbpro/BaseTypes.fbs +7 -0
- package/schemas/orbpro/CatalogQueryBase.fbs +8 -0
- package/schemas/orbpro/CatalogQueryRequest.fbs +14 -0
- package/schemas/orbpro/CatalogQueryResult.fbs +17 -0
- package/schemas/orbpro/EntityMetadata.fbs +53 -0
- package/schemas/orbpro/EntityStandardsLink.fbs +18 -0
- package/schemas/orbpro/Plugin.fbs +8 -0
- package/schemas/orbpro/Propagator.fbs +89 -0
- package/schemas/orbpro/StandardsRecordIndex.fbs +15 -0
- package/src/browser.js +1 -0
- package/src/generated/orbpro/entity/entity-kind.js +15 -0
- package/src/generated/orbpro/entity/entity-kind.ts +15 -0
- package/src/generated/orbpro/entity/entity-metadata.js +322 -0
- package/src/generated/orbpro/entity/entity-metadata.ts +426 -0
- package/src/generated/orbpro/entity/entity-standards-link.js +143 -0
- package/src/generated/orbpro/entity/entity-standards-link.ts +183 -0
- package/src/generated/orbpro/entity/standards-record-index.js +115 -0
- package/src/generated/orbpro/entity/standards-record-index.ts +147 -0
- package/src/generated/orbpro/entity.js +10 -0
- package/src/generated/orbpro/entity.ts +5 -0
- package/src/generated/orbpro/plugin/raw-data-payload.js +79 -0
- package/src/generated/orbpro/plugin/raw-data-payload.ts +92 -0
- package/src/generated/orbpro/plugin.js +4 -0
- package/src/generated/orbpro/plugin.ts +5 -0
- package/src/generated/orbpro/propagator/propagator-describe-sources-batch-request.js +79 -0
- package/src/generated/orbpro/propagator/propagator-describe-sources-batch-request.ts +95 -0
- package/src/generated/orbpro/propagator/propagator-describe-sources-batch-result.js +70 -0
- package/src/generated/orbpro/propagator/propagator-describe-sources-batch-result.ts +78 -0
- package/src/generated/orbpro/propagator/propagator-sample-trajectory-states-request.js +97 -0
- package/src/generated/orbpro/propagator/propagator-sample-trajectory-states-request.ts +117 -0
- package/src/generated/orbpro/propagator/propagator-sample-trajectory-states-result.js +140 -0
- package/src/generated/orbpro/propagator/propagator-sample-trajectory-states-result.ts +175 -0
- package/src/generated/orbpro/propagator/propagator-source-description.js +208 -0
- package/src/generated/orbpro/propagator/propagator-source-description.ts +257 -0
- package/src/generated/orbpro/propagator/propagator-source-kind.js +8 -0
- package/src/generated/orbpro/propagator/propagator-source-kind.ts +8 -0
- package/src/generated/orbpro/propagator/reference-frame.js +12 -0
- package/src/generated/orbpro/propagator/reference-frame.ts +12 -0
- package/src/generated/orbpro/propagator/state-flags.js +13 -0
- package/src/generated/orbpro/propagator/state-flags.ts +13 -0
- package/src/generated/orbpro/propagator/state-vector.js +55 -0
- package/src/generated/orbpro/propagator/state-vector.ts +61 -0
- package/src/generated/orbpro/propagator.js +20 -0
- package/src/generated/orbpro/propagator.ts +13 -0
- package/src/generated/orbpro/query/catalog-query-kind.js +10 -0
- package/src/generated/orbpro/query/catalog-query-kind.ts +10 -0
- package/src/generated/orbpro/query/catalog-query-request.js +89 -0
- package/src/generated/orbpro/query/catalog-query-request.ts +105 -0
- package/src/generated/orbpro/query/catalog-query-result.js +145 -0
- package/src/generated/orbpro/query/catalog-query-result.ts +179 -0
- package/src/generated/orbpro/query.js +8 -0
- package/src/generated/orbpro/query.ts +4 -0
- package/src/generated/orbpro/vec3.js +39 -0
- package/src/generated/orbpro/vec3.ts +40 -0
- package/src/host/abi.js +158 -0
- package/src/host/browserEdgeShims.js +17 -4
- package/src/host/browserHost.js +260 -48
- package/src/host/isomorphicLoader.js +3 -2
- package/src/host/nodeHost.js +168 -71
- package/src/index.d.ts +287 -3
- package/src/index.js +1 -0
- package/src/licensing/index.d.ts +20 -0
- package/src/licensing/index.js +11 -0
- package/src/licensing/records.js +858 -0
- package/src/runtime-host/index.js +34 -0
- package/src/testing/browserModuleHarness.js +16 -3
- package/src/testing/index.d.ts +1 -0
- package/src/testing/index.js +5 -4
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
4
|
+
|
|
5
|
+
import * as flatbuffers from 'flatbuffers';
|
|
6
|
+
|
|
7
|
+
import { EntityKind } from '../../orbpro/entity/entity-kind.js';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export class EntityMetadata {
|
|
11
|
+
bb: flatbuffers.ByteBuffer|null = null;
|
|
12
|
+
bb_pos = 0;
|
|
13
|
+
__init(i:number, bb:flatbuffers.ByteBuffer):EntityMetadata {
|
|
14
|
+
this.bb_pos = i;
|
|
15
|
+
this.bb = bb;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static getRootAsEntityMetadata(bb:flatbuffers.ByteBuffer, obj?:EntityMetadata):EntityMetadata {
|
|
20
|
+
return (obj || new EntityMetadata()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static getSizePrefixedRootAsEntityMetadata(bb:flatbuffers.ByteBuffer, obj?:EntityMetadata):EntityMetadata {
|
|
24
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
25
|
+
return (obj || new EntityMetadata()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static bufferHasIdentifier(bb:flatbuffers.ByteBuffer):boolean {
|
|
29
|
+
return bb.__has_identifier('ENTM');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
entityId():string|null
|
|
33
|
+
entityId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
34
|
+
entityId(optionalEncoding?:any):string|Uint8Array|null {
|
|
35
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
36
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
name():string|null
|
|
40
|
+
name(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
41
|
+
name(optionalEncoding?:any):string|Uint8Array|null {
|
|
42
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
43
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
entityKind():EntityKind {
|
|
47
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
48
|
+
return offset ? this.bb!.readUint8(this.bb_pos + offset) : EntityKind.ENTITY;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
subtype():string|null
|
|
52
|
+
subtype(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
53
|
+
subtype(optionalEncoding?:any):string|Uint8Array|null {
|
|
54
|
+
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
55
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
parentEntityId():string|null
|
|
59
|
+
parentEntityId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
60
|
+
parentEntityId(optionalEncoding?:any):string|Uint8Array|null {
|
|
61
|
+
const offset = this.bb!.__offset(this.bb_pos, 12);
|
|
62
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
primarySchemaFileId():string|null
|
|
66
|
+
primarySchemaFileId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
67
|
+
primarySchemaFileId(optionalEncoding?:any):string|Uint8Array|null {
|
|
68
|
+
const offset = this.bb!.__offset(this.bb_pos, 14);
|
|
69
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
primaryRowId():number {
|
|
73
|
+
const offset = this.bb!.__offset(this.bb_pos, 16);
|
|
74
|
+
return offset ? this.bb!.readFloat64(this.bb_pos + offset) : 0.0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
wasmHandle():number {
|
|
78
|
+
const offset = this.bb!.__offset(this.bb_pos, 18);
|
|
79
|
+
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
positionRegionId():number {
|
|
83
|
+
const offset = this.bb!.__offset(this.bb_pos, 20);
|
|
84
|
+
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
positionRecordIndex():number {
|
|
88
|
+
const offset = this.bb!.__offset(this.bb_pos, 22);
|
|
89
|
+
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
velocityRegionId():number {
|
|
93
|
+
const offset = this.bb!.__offset(this.bb_pos, 24);
|
|
94
|
+
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
velocityRecordIndex():number {
|
|
98
|
+
const offset = this.bb!.__offset(this.bb_pos, 26);
|
|
99
|
+
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
visibilityRegionId():number {
|
|
103
|
+
const offset = this.bb!.__offset(this.bb_pos, 28);
|
|
104
|
+
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
visibilityRecordIndex():number {
|
|
108
|
+
const offset = this.bb!.__offset(this.bb_pos, 30);
|
|
109
|
+
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
noradCatId():number {
|
|
113
|
+
const offset = this.bb!.__offset(this.bb_pos, 32);
|
|
114
|
+
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
objectName():string|null
|
|
118
|
+
objectName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
119
|
+
objectName(optionalEncoding?:any):string|Uint8Array|null {
|
|
120
|
+
const offset = this.bb!.__offset(this.bb_pos, 34);
|
|
121
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
objectId():string|null
|
|
125
|
+
objectId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
126
|
+
objectId(optionalEncoding?:any):string|Uint8Array|null {
|
|
127
|
+
const offset = this.bb!.__offset(this.bb_pos, 36);
|
|
128
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
catObjectName():string|null
|
|
132
|
+
catObjectName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
133
|
+
catObjectName(optionalEncoding?:any):string|Uint8Array|null {
|
|
134
|
+
const offset = this.bb!.__offset(this.bb_pos, 38);
|
|
135
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
catObjectId():string|null
|
|
139
|
+
catObjectId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
140
|
+
catObjectId(optionalEncoding?:any):string|Uint8Array|null {
|
|
141
|
+
const offset = this.bb!.__offset(this.bb_pos, 40);
|
|
142
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
facilityType():string|null
|
|
146
|
+
facilityType(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
147
|
+
facilityType(optionalEncoding?:any):string|Uint8Array|null {
|
|
148
|
+
const offset = this.bb!.__offset(this.bb_pos, 42);
|
|
149
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
searchText():string|null
|
|
153
|
+
searchText(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
154
|
+
searchText(optionalEncoding?:any):string|Uint8Array|null {
|
|
155
|
+
const offset = this.bb!.__offset(this.bb_pos, 44);
|
|
156
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
owner():string|null
|
|
160
|
+
owner(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
161
|
+
owner(optionalEncoding?:any):string|Uint8Array|null {
|
|
162
|
+
const offset = this.bb!.__offset(this.bb_pos, 46);
|
|
163
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
statusCode():string|null
|
|
167
|
+
statusCode(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
168
|
+
statusCode(optionalEncoding?:any):string|Uint8Array|null {
|
|
169
|
+
const offset = this.bb!.__offset(this.bb_pos, 48);
|
|
170
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
launchDate():string|null
|
|
174
|
+
launchDate(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
175
|
+
launchDate(optionalEncoding?:any):string|Uint8Array|null {
|
|
176
|
+
const offset = this.bb!.__offset(this.bb_pos, 50);
|
|
177
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
launchYear():string|null
|
|
181
|
+
launchYear(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
182
|
+
launchYear(optionalEncoding?:any):string|Uint8Array|null {
|
|
183
|
+
const offset = this.bb!.__offset(this.bb_pos, 52);
|
|
184
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
orbitRegime():string|null
|
|
188
|
+
orbitRegime(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
189
|
+
orbitRegime(optionalEncoding?:any):string|Uint8Array|null {
|
|
190
|
+
const offset = this.bb!.__offset(this.bb_pos, 54);
|
|
191
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
period():number {
|
|
195
|
+
const offset = this.bb!.__offset(this.bb_pos, 56);
|
|
196
|
+
return offset ? this.bb!.readFloat64(this.bb_pos + offset) : 0.0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
inclination():number {
|
|
200
|
+
const offset = this.bb!.__offset(this.bb_pos, 58);
|
|
201
|
+
return offset ? this.bb!.readFloat64(this.bb_pos + offset) : 0.0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
apogee():number {
|
|
205
|
+
const offset = this.bb!.__offset(this.bb_pos, 60);
|
|
206
|
+
return offset ? this.bb!.readFloat64(this.bb_pos + offset) : 0.0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
perigee():number {
|
|
210
|
+
const offset = this.bb!.__offset(this.bb_pos, 62);
|
|
211
|
+
return offset ? this.bb!.readFloat64(this.bb_pos + offset) : 0.0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
meanMotion():number {
|
|
215
|
+
const offset = this.bb!.__offset(this.bb_pos, 64);
|
|
216
|
+
return offset ? this.bb!.readFloat64(this.bb_pos + offset) : 0.0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
eccentricity():number {
|
|
220
|
+
const offset = this.bb!.__offset(this.bb_pos, 66);
|
|
221
|
+
return offset ? this.bb!.readFloat64(this.bb_pos + offset) : 0.0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
bstar():number {
|
|
225
|
+
const offset = this.bb!.__offset(this.bb_pos, 68);
|
|
226
|
+
return offset ? this.bb!.readFloat64(this.bb_pos + offset) : 0.0;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
hasGp():boolean {
|
|
230
|
+
const offset = this.bb!.__offset(this.bb_pos, 70);
|
|
231
|
+
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
static startEntityMetadata(builder:flatbuffers.Builder) {
|
|
235
|
+
builder.startObject(34);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
static addEntityId(builder:flatbuffers.Builder, entityIdOffset:flatbuffers.Offset) {
|
|
239
|
+
builder.addFieldOffset(0, entityIdOffset, 0);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
|
|
243
|
+
builder.addFieldOffset(1, nameOffset, 0);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
static addEntityKind(builder:flatbuffers.Builder, entityKind:EntityKind) {
|
|
247
|
+
builder.addFieldInt8(2, entityKind, EntityKind.ENTITY);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
static addSubtype(builder:flatbuffers.Builder, subtypeOffset:flatbuffers.Offset) {
|
|
251
|
+
builder.addFieldOffset(3, subtypeOffset, 0);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
static addParentEntityId(builder:flatbuffers.Builder, parentEntityIdOffset:flatbuffers.Offset) {
|
|
255
|
+
builder.addFieldOffset(4, parentEntityIdOffset, 0);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
static addPrimarySchemaFileId(builder:flatbuffers.Builder, primarySchemaFileIdOffset:flatbuffers.Offset) {
|
|
259
|
+
builder.addFieldOffset(5, primarySchemaFileIdOffset, 0);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
static addPrimaryRowId(builder:flatbuffers.Builder, primaryRowId:number) {
|
|
263
|
+
builder.addFieldFloat64(6, primaryRowId, 0.0);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
static addWasmHandle(builder:flatbuffers.Builder, wasmHandle:number) {
|
|
267
|
+
builder.addFieldInt32(7, wasmHandle, 0);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
static addPositionRegionId(builder:flatbuffers.Builder, positionRegionId:number) {
|
|
271
|
+
builder.addFieldInt32(8, positionRegionId, 0);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
static addPositionRecordIndex(builder:flatbuffers.Builder, positionRecordIndex:number) {
|
|
275
|
+
builder.addFieldInt32(9, positionRecordIndex, 0);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
static addVelocityRegionId(builder:flatbuffers.Builder, velocityRegionId:number) {
|
|
279
|
+
builder.addFieldInt32(10, velocityRegionId, 0);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
static addVelocityRecordIndex(builder:flatbuffers.Builder, velocityRecordIndex:number) {
|
|
283
|
+
builder.addFieldInt32(11, velocityRecordIndex, 0);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
static addVisibilityRegionId(builder:flatbuffers.Builder, visibilityRegionId:number) {
|
|
287
|
+
builder.addFieldInt32(12, visibilityRegionId, 0);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
static addVisibilityRecordIndex(builder:flatbuffers.Builder, visibilityRecordIndex:number) {
|
|
291
|
+
builder.addFieldInt32(13, visibilityRecordIndex, 0);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
static addNoradCatId(builder:flatbuffers.Builder, noradCatId:number) {
|
|
295
|
+
builder.addFieldInt32(14, noradCatId, 0);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
static addObjectName(builder:flatbuffers.Builder, objectNameOffset:flatbuffers.Offset) {
|
|
299
|
+
builder.addFieldOffset(15, objectNameOffset, 0);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
static addObjectId(builder:flatbuffers.Builder, objectIdOffset:flatbuffers.Offset) {
|
|
303
|
+
builder.addFieldOffset(16, objectIdOffset, 0);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
static addCatObjectName(builder:flatbuffers.Builder, catObjectNameOffset:flatbuffers.Offset) {
|
|
307
|
+
builder.addFieldOffset(17, catObjectNameOffset, 0);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
static addCatObjectId(builder:flatbuffers.Builder, catObjectIdOffset:flatbuffers.Offset) {
|
|
311
|
+
builder.addFieldOffset(18, catObjectIdOffset, 0);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
static addFacilityType(builder:flatbuffers.Builder, facilityTypeOffset:flatbuffers.Offset) {
|
|
315
|
+
builder.addFieldOffset(19, facilityTypeOffset, 0);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
static addSearchText(builder:flatbuffers.Builder, searchTextOffset:flatbuffers.Offset) {
|
|
319
|
+
builder.addFieldOffset(20, searchTextOffset, 0);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
static addOwner(builder:flatbuffers.Builder, ownerOffset:flatbuffers.Offset) {
|
|
323
|
+
builder.addFieldOffset(21, ownerOffset, 0);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
static addStatusCode(builder:flatbuffers.Builder, statusCodeOffset:flatbuffers.Offset) {
|
|
327
|
+
builder.addFieldOffset(22, statusCodeOffset, 0);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
static addLaunchDate(builder:flatbuffers.Builder, launchDateOffset:flatbuffers.Offset) {
|
|
331
|
+
builder.addFieldOffset(23, launchDateOffset, 0);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
static addLaunchYear(builder:flatbuffers.Builder, launchYearOffset:flatbuffers.Offset) {
|
|
335
|
+
builder.addFieldOffset(24, launchYearOffset, 0);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
static addOrbitRegime(builder:flatbuffers.Builder, orbitRegimeOffset:flatbuffers.Offset) {
|
|
339
|
+
builder.addFieldOffset(25, orbitRegimeOffset, 0);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
static addPeriod(builder:flatbuffers.Builder, period:number) {
|
|
343
|
+
builder.addFieldFloat64(26, period, 0.0);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
static addInclination(builder:flatbuffers.Builder, inclination:number) {
|
|
347
|
+
builder.addFieldFloat64(27, inclination, 0.0);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
static addApogee(builder:flatbuffers.Builder, apogee:number) {
|
|
351
|
+
builder.addFieldFloat64(28, apogee, 0.0);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
static addPerigee(builder:flatbuffers.Builder, perigee:number) {
|
|
355
|
+
builder.addFieldFloat64(29, perigee, 0.0);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
static addMeanMotion(builder:flatbuffers.Builder, meanMotion:number) {
|
|
359
|
+
builder.addFieldFloat64(30, meanMotion, 0.0);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
static addEccentricity(builder:flatbuffers.Builder, eccentricity:number) {
|
|
363
|
+
builder.addFieldFloat64(31, eccentricity, 0.0);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
static addBstar(builder:flatbuffers.Builder, bstar:number) {
|
|
367
|
+
builder.addFieldFloat64(32, bstar, 0.0);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
static addHasGp(builder:flatbuffers.Builder, hasGp:boolean) {
|
|
371
|
+
builder.addFieldInt8(33, +hasGp, +false);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
static endEntityMetadata(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
375
|
+
const offset = builder.endObject();
|
|
376
|
+
builder.requiredField(offset, 4) // entity_id
|
|
377
|
+
return offset;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
static finishEntityMetadataBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
|
|
381
|
+
builder.finish(offset, 'ENTM');
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
static finishSizePrefixedEntityMetadataBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
|
|
385
|
+
builder.finish(offset, 'ENTM', true);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
static createEntityMetadata(builder:flatbuffers.Builder, entityIdOffset:flatbuffers.Offset, nameOffset:flatbuffers.Offset, entityKind:EntityKind, subtypeOffset:flatbuffers.Offset, parentEntityIdOffset:flatbuffers.Offset, primarySchemaFileIdOffset:flatbuffers.Offset, primaryRowId:number, wasmHandle:number, positionRegionId:number, positionRecordIndex:number, velocityRegionId:number, velocityRecordIndex:number, visibilityRegionId:number, visibilityRecordIndex:number, noradCatId:number, objectNameOffset:flatbuffers.Offset, objectIdOffset:flatbuffers.Offset, catObjectNameOffset:flatbuffers.Offset, catObjectIdOffset:flatbuffers.Offset, facilityTypeOffset:flatbuffers.Offset, searchTextOffset:flatbuffers.Offset, ownerOffset:flatbuffers.Offset, statusCodeOffset:flatbuffers.Offset, launchDateOffset:flatbuffers.Offset, launchYearOffset:flatbuffers.Offset, orbitRegimeOffset:flatbuffers.Offset, period:number, inclination:number, apogee:number, perigee:number, meanMotion:number, eccentricity:number, bstar:number, hasGp:boolean):flatbuffers.Offset {
|
|
389
|
+
EntityMetadata.startEntityMetadata(builder);
|
|
390
|
+
EntityMetadata.addEntityId(builder, entityIdOffset);
|
|
391
|
+
EntityMetadata.addName(builder, nameOffset);
|
|
392
|
+
EntityMetadata.addEntityKind(builder, entityKind);
|
|
393
|
+
EntityMetadata.addSubtype(builder, subtypeOffset);
|
|
394
|
+
EntityMetadata.addParentEntityId(builder, parentEntityIdOffset);
|
|
395
|
+
EntityMetadata.addPrimarySchemaFileId(builder, primarySchemaFileIdOffset);
|
|
396
|
+
EntityMetadata.addPrimaryRowId(builder, primaryRowId);
|
|
397
|
+
EntityMetadata.addWasmHandle(builder, wasmHandle);
|
|
398
|
+
EntityMetadata.addPositionRegionId(builder, positionRegionId);
|
|
399
|
+
EntityMetadata.addPositionRecordIndex(builder, positionRecordIndex);
|
|
400
|
+
EntityMetadata.addVelocityRegionId(builder, velocityRegionId);
|
|
401
|
+
EntityMetadata.addVelocityRecordIndex(builder, velocityRecordIndex);
|
|
402
|
+
EntityMetadata.addVisibilityRegionId(builder, visibilityRegionId);
|
|
403
|
+
EntityMetadata.addVisibilityRecordIndex(builder, visibilityRecordIndex);
|
|
404
|
+
EntityMetadata.addNoradCatId(builder, noradCatId);
|
|
405
|
+
EntityMetadata.addObjectName(builder, objectNameOffset);
|
|
406
|
+
EntityMetadata.addObjectId(builder, objectIdOffset);
|
|
407
|
+
EntityMetadata.addCatObjectName(builder, catObjectNameOffset);
|
|
408
|
+
EntityMetadata.addCatObjectId(builder, catObjectIdOffset);
|
|
409
|
+
EntityMetadata.addFacilityType(builder, facilityTypeOffset);
|
|
410
|
+
EntityMetadata.addSearchText(builder, searchTextOffset);
|
|
411
|
+
EntityMetadata.addOwner(builder, ownerOffset);
|
|
412
|
+
EntityMetadata.addStatusCode(builder, statusCodeOffset);
|
|
413
|
+
EntityMetadata.addLaunchDate(builder, launchDateOffset);
|
|
414
|
+
EntityMetadata.addLaunchYear(builder, launchYearOffset);
|
|
415
|
+
EntityMetadata.addOrbitRegime(builder, orbitRegimeOffset);
|
|
416
|
+
EntityMetadata.addPeriod(builder, period);
|
|
417
|
+
EntityMetadata.addInclination(builder, inclination);
|
|
418
|
+
EntityMetadata.addApogee(builder, apogee);
|
|
419
|
+
EntityMetadata.addPerigee(builder, perigee);
|
|
420
|
+
EntityMetadata.addMeanMotion(builder, meanMotion);
|
|
421
|
+
EntityMetadata.addEccentricity(builder, eccentricity);
|
|
422
|
+
EntityMetadata.addBstar(builder, bstar);
|
|
423
|
+
EntityMetadata.addHasGp(builder, hasGp);
|
|
424
|
+
return EntityMetadata.endEntityMetadata(builder);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import * as flatbuffers from "flatbuffers";
|
|
8
|
+
class EntityStandardsLink {
|
|
9
|
+
constructor() {
|
|
10
|
+
__publicField(this, "bb", null);
|
|
11
|
+
__publicField(this, "bb_pos", 0);
|
|
12
|
+
}
|
|
13
|
+
__init(i, bb) {
|
|
14
|
+
this.bb_pos = i;
|
|
15
|
+
this.bb = bb;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
static getRootAsEntityStandardsLink(bb, obj) {
|
|
19
|
+
return (obj || new EntityStandardsLink()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
20
|
+
}
|
|
21
|
+
static getSizePrefixedRootAsEntityStandardsLink(bb, obj) {
|
|
22
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
23
|
+
return (obj || new EntityStandardsLink()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
24
|
+
}
|
|
25
|
+
static bufferHasIdentifier(bb) {
|
|
26
|
+
return bb.__has_identifier("ESTL");
|
|
27
|
+
}
|
|
28
|
+
linkKey(optionalEncoding) {
|
|
29
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
30
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
31
|
+
}
|
|
32
|
+
entityId(optionalEncoding) {
|
|
33
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
34
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
35
|
+
}
|
|
36
|
+
entityRecordKey(optionalEncoding) {
|
|
37
|
+
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
38
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
39
|
+
}
|
|
40
|
+
entitySchemaFileId(optionalEncoding) {
|
|
41
|
+
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
42
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
43
|
+
}
|
|
44
|
+
entityRowId() {
|
|
45
|
+
const offset = this.bb.__offset(this.bb_pos, 12);
|
|
46
|
+
return offset ? this.bb.readFloat64(this.bb_pos + offset) : 0;
|
|
47
|
+
}
|
|
48
|
+
recordKey(optionalEncoding) {
|
|
49
|
+
const offset = this.bb.__offset(this.bb_pos, 14);
|
|
50
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
51
|
+
}
|
|
52
|
+
schemaName(optionalEncoding) {
|
|
53
|
+
const offset = this.bb.__offset(this.bb_pos, 16);
|
|
54
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
55
|
+
}
|
|
56
|
+
recordSchemaFileId(optionalEncoding) {
|
|
57
|
+
const offset = this.bb.__offset(this.bb_pos, 18);
|
|
58
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
59
|
+
}
|
|
60
|
+
recordRowId() {
|
|
61
|
+
const offset = this.bb.__offset(this.bb_pos, 20);
|
|
62
|
+
return offset ? this.bb.readFloat64(this.bb_pos + offset) : 0;
|
|
63
|
+
}
|
|
64
|
+
cascadeDelete() {
|
|
65
|
+
const offset = this.bb.__offset(this.bb_pos, 22);
|
|
66
|
+
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : true;
|
|
67
|
+
}
|
|
68
|
+
updatedAtMs() {
|
|
69
|
+
const offset = this.bb.__offset(this.bb_pos, 24);
|
|
70
|
+
return offset ? this.bb.readFloat64(this.bb_pos + offset) : 0;
|
|
71
|
+
}
|
|
72
|
+
static startEntityStandardsLink(builder) {
|
|
73
|
+
builder.startObject(11);
|
|
74
|
+
}
|
|
75
|
+
static addLinkKey(builder, linkKeyOffset) {
|
|
76
|
+
builder.addFieldOffset(0, linkKeyOffset, 0);
|
|
77
|
+
}
|
|
78
|
+
static addEntityId(builder, entityIdOffset) {
|
|
79
|
+
builder.addFieldOffset(1, entityIdOffset, 0);
|
|
80
|
+
}
|
|
81
|
+
static addEntityRecordKey(builder, entityRecordKeyOffset) {
|
|
82
|
+
builder.addFieldOffset(2, entityRecordKeyOffset, 0);
|
|
83
|
+
}
|
|
84
|
+
static addEntitySchemaFileId(builder, entitySchemaFileIdOffset) {
|
|
85
|
+
builder.addFieldOffset(3, entitySchemaFileIdOffset, 0);
|
|
86
|
+
}
|
|
87
|
+
static addEntityRowId(builder, entityRowId) {
|
|
88
|
+
builder.addFieldFloat64(4, entityRowId, 0);
|
|
89
|
+
}
|
|
90
|
+
static addRecordKey(builder, recordKeyOffset) {
|
|
91
|
+
builder.addFieldOffset(5, recordKeyOffset, 0);
|
|
92
|
+
}
|
|
93
|
+
static addSchemaName(builder, schemaNameOffset) {
|
|
94
|
+
builder.addFieldOffset(6, schemaNameOffset, 0);
|
|
95
|
+
}
|
|
96
|
+
static addRecordSchemaFileId(builder, recordSchemaFileIdOffset) {
|
|
97
|
+
builder.addFieldOffset(7, recordSchemaFileIdOffset, 0);
|
|
98
|
+
}
|
|
99
|
+
static addRecordRowId(builder, recordRowId) {
|
|
100
|
+
builder.addFieldFloat64(8, recordRowId, 0);
|
|
101
|
+
}
|
|
102
|
+
static addCascadeDelete(builder, cascadeDelete) {
|
|
103
|
+
builder.addFieldInt8(9, +cascadeDelete, 1);
|
|
104
|
+
}
|
|
105
|
+
static addUpdatedAtMs(builder, updatedAtMs) {
|
|
106
|
+
builder.addFieldFloat64(10, updatedAtMs, 0);
|
|
107
|
+
}
|
|
108
|
+
static endEntityStandardsLink(builder) {
|
|
109
|
+
const offset = builder.endObject();
|
|
110
|
+
builder.requiredField(offset, 4);
|
|
111
|
+
builder.requiredField(offset, 6);
|
|
112
|
+
builder.requiredField(offset, 8);
|
|
113
|
+
builder.requiredField(offset, 10);
|
|
114
|
+
builder.requiredField(offset, 14);
|
|
115
|
+
builder.requiredField(offset, 16);
|
|
116
|
+
builder.requiredField(offset, 18);
|
|
117
|
+
return offset;
|
|
118
|
+
}
|
|
119
|
+
static finishEntityStandardsLinkBuffer(builder, offset) {
|
|
120
|
+
builder.finish(offset, "ESTL");
|
|
121
|
+
}
|
|
122
|
+
static finishSizePrefixedEntityStandardsLinkBuffer(builder, offset) {
|
|
123
|
+
builder.finish(offset, "ESTL", true);
|
|
124
|
+
}
|
|
125
|
+
static createEntityStandardsLink(builder, linkKeyOffset, entityIdOffset, entityRecordKeyOffset, entitySchemaFileIdOffset, entityRowId, recordKeyOffset, schemaNameOffset, recordSchemaFileIdOffset, recordRowId, cascadeDelete, updatedAtMs) {
|
|
126
|
+
EntityStandardsLink.startEntityStandardsLink(builder);
|
|
127
|
+
EntityStandardsLink.addLinkKey(builder, linkKeyOffset);
|
|
128
|
+
EntityStandardsLink.addEntityId(builder, entityIdOffset);
|
|
129
|
+
EntityStandardsLink.addEntityRecordKey(builder, entityRecordKeyOffset);
|
|
130
|
+
EntityStandardsLink.addEntitySchemaFileId(builder, entitySchemaFileIdOffset);
|
|
131
|
+
EntityStandardsLink.addEntityRowId(builder, entityRowId);
|
|
132
|
+
EntityStandardsLink.addRecordKey(builder, recordKeyOffset);
|
|
133
|
+
EntityStandardsLink.addSchemaName(builder, schemaNameOffset);
|
|
134
|
+
EntityStandardsLink.addRecordSchemaFileId(builder, recordSchemaFileIdOffset);
|
|
135
|
+
EntityStandardsLink.addRecordRowId(builder, recordRowId);
|
|
136
|
+
EntityStandardsLink.addCascadeDelete(builder, cascadeDelete);
|
|
137
|
+
EntityStandardsLink.addUpdatedAtMs(builder, updatedAtMs);
|
|
138
|
+
return EntityStandardsLink.endEntityStandardsLink(builder);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
export {
|
|
142
|
+
EntityStandardsLink
|
|
143
|
+
};
|