@neilberkman/sidereon 0.33.1 → 0.34.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/pkg/sidereon.js CHANGED
@@ -17334,6 +17334,24 @@ export class Sp3ClockReferenceOffset {
17334
17334
  }
17335
17335
  if (Symbol.dispose) Sp3ClockReferenceOffset.prototype[Symbol.dispose] = Sp3ClockReferenceOffset.prototype.free;
17336
17336
 
17337
+ /**
17338
+ * Cataloged relationship between an SP3 filename epoch and its first content
17339
+ * epoch.
17340
+ *
17341
+ * New values may be appended in later interface releases.
17342
+ * @enum {0 | 1}
17343
+ */
17344
+ export const Sp3ContentStartConvention = Object.freeze({
17345
+ /**
17346
+ * The first content epoch equals the filename epoch.
17347
+ */
17348
+ FilenameEpoch: 0, "0": "FilenameEpoch",
17349
+ /**
17350
+ * The first content epoch is exactly 24 hours before the filename epoch.
17351
+ */
17352
+ FilenameEpochMinusOneDay: 1, "1": "FilenameEpochMinusOneDay",
17353
+ });
17354
+
17337
17355
  /**
17338
17356
  * One coordinate-label reconciliation applied before SP3 merge consensus.
17339
17357
  */
@@ -29235,6 +29253,46 @@ export function sourceSolveModeToa() {
29235
29253
  }
29236
29254
  }
29237
29255
 
29256
+ /**
29257
+ * Return the cataloged relationship between an SP3 filename epoch and its
29258
+ * first content epoch.
29259
+ *
29260
+ * `issue` is required for ultra-rapid centers, must name a published issue,
29261
+ * and must be omitted for product lines without issue times. Exact requests
29262
+ * built with `ExactSp3Request.fromIdentity` apply this same catalog fact.
29263
+ * @param {string} center
29264
+ * @param {number} year
29265
+ * @param {number} month
29266
+ * @param {number} day
29267
+ * @param {string | null} [issue]
29268
+ * @returns {Sp3ContentStartConvention}
29269
+ */
29270
+ export function sp3ContentStartConvention(center, year, month, day, issue) {
29271
+ const ptr0 = passStringToWasm0(center, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
29272
+ const len0 = WASM_VECTOR_LEN;
29273
+ var ptr1 = isLikeNone(issue) ? 0 : passStringToWasm0(issue, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
29274
+ var len1 = WASM_VECTOR_LEN;
29275
+ const ret = wasm.sp3ContentStartConvention(ptr0, len0, year, month, day, ptr1, len1);
29276
+ if (ret[2]) {
29277
+ throw takeFromExternrefTable0(ret[1]);
29278
+ }
29279
+ return ret[0];
29280
+ }
29281
+
29282
+ /**
29283
+ * Return the signed whole seconds added to the filename epoch for a public
29284
+ * content-start convention.
29285
+ *
29286
+ * JavaScript receives the `i64` result as a `bigint`, consistent with other
29287
+ * exact integral values in this interface.
29288
+ * @param {Sp3ContentStartConvention} convention
29289
+ * @returns {bigint}
29290
+ */
29291
+ export function sp3ContentStartOffsetSeconds(convention) {
29292
+ const ret = wasm.sp3ContentStartOffsetSeconds(convention);
29293
+ return ret;
29294
+ }
29295
+
29238
29296
  /**
29239
29297
  * Validate complete exact artifact records and return their canonical merge
29240
29298
  * input identity.
@@ -29556,6 +29614,39 @@ export function sunMoonEci(epochs_unix_us) {
29556
29614
  return SunMoon.__wrap(ret[0]);
29557
29615
  }
29558
29616
 
29617
+ /**
29618
+ * Return every officially cataloged sampling token for a product date and
29619
+ * issue.
29620
+ *
29621
+ * Syntax alone is not publication evidence: this is the complete catalog set
29622
+ * enforced by [`productIdentity`](product_identity). For issue-based product
29623
+ * lines, omitting `issue` selects `0000`, matching
29624
+ * [`defaultSampleForDate`](default_sample_for_date). Product construction
29625
+ * itself still requires an explicit issue.
29626
+ * @param {string} center
29627
+ * @param {string} family
29628
+ * @param {number} year
29629
+ * @param {number} month
29630
+ * @param {number} day
29631
+ * @param {string | null} [issue]
29632
+ * @returns {string[]}
29633
+ */
29634
+ export function supportedSamples(center, family, year, month, day, issue) {
29635
+ const ptr0 = passStringToWasm0(center, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
29636
+ const len0 = WASM_VECTOR_LEN;
29637
+ const ptr1 = passStringToWasm0(family, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
29638
+ const len1 = WASM_VECTOR_LEN;
29639
+ var ptr2 = isLikeNone(issue) ? 0 : passStringToWasm0(issue, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
29640
+ var len2 = WASM_VECTOR_LEN;
29641
+ const ret = wasm.supportedSamples(ptr0, len0, ptr1, len1, year, month, day, ptr2, len2);
29642
+ if (ret[3]) {
29643
+ throw takeFromExternrefTable0(ret[2]);
29644
+ }
29645
+ var v4 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
29646
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
29647
+ return v4;
29648
+ }
29649
+
29559
29650
  /**
29560
29651
  * TAI-UTC (cumulative leap seconds) in effect on a UTC calendar date.
29561
29652
  *
Binary file