@dashevo/dapi-grpc 4.2.0-dev.7 → 4.2.0-dev.9
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/build.rs +11 -0
- package/clients/drive/v0/nodejs/drive_pbjs.js +5944 -3630
- package/clients/platform/v0/nodejs/platform_pbjs.js +5944 -3630
- package/clients/platform/v0/nodejs/platform_protoc.js +4881 -2517
- package/clients/platform/v0/web/platform_pb.d.ts +310 -0
- package/clients/platform/v0/web/platform_pb.js +4881 -2517
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +221 -9
package/build.rs
CHANGED
|
@@ -10,6 +10,7 @@ use tonic_prost_build::Builder;
|
|
|
10
10
|
const SERDE_WITH_BYTES: &str = r#"#[cfg_attr(feature = "serde", serde(with = "serde_bytes"))]"#;
|
|
11
11
|
const SERDE_WITH_BASE64: &str =
|
|
12
12
|
r#"#[cfg_attr(feature = "serde", serde(with = "crate::deserialization::vec_base64string"))]"#;
|
|
13
|
+
const SERDE_DEFAULT: &str = r#"#[cfg_attr(feature = "serde", serde(default))]"#;
|
|
13
14
|
const SERDE_WITH_STRING: &str =
|
|
14
15
|
r#"#[cfg_attr(feature = "serde", serde(with = "crate::deserialization::from_to_string"))]"#;
|
|
15
16
|
|
|
@@ -335,6 +336,16 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
|
|
|
335
336
|
.field_attribute("id", SERDE_WITH_BYTES)
|
|
336
337
|
.field_attribute("identity_id", SERDE_WITH_BYTES)
|
|
337
338
|
.field_attribute("ids", SERDE_WITH_BASE64)
|
|
339
|
+
// Wire-format compat for mock vectors captured before the chained
|
|
340
|
+
// surface existed: the field deserializes to its default when
|
|
341
|
+
// absent (same pattern DocumentQuery's own serde defaults follow
|
|
342
|
+
// for pre-SQL-surface fixtures).
|
|
343
|
+
.field_attribute("GetDocumentsRequestV1.chained", SERDE_DEFAULT)
|
|
344
|
+
.field_attribute("GetDocumentsRequestV1.sub_queries", SERDE_DEFAULT)
|
|
345
|
+
// Same compat rule for the typed IN_TIME_RANGE operand: mock
|
|
346
|
+
// vectors captured while the operand still rode `value` carry no
|
|
347
|
+
// `time_range` key.
|
|
348
|
+
.field_attribute("GetDocumentsRequest.WhereClause.time_range", SERDE_DEFAULT)
|
|
338
349
|
.field_attribute("ResponseMetadata.height", SERDE_WITH_STRING)
|
|
339
350
|
.field_attribute("ResponseMetadata.time_ms", SERDE_WITH_STRING)
|
|
340
351
|
.field_attribute("start_at_ms", SERDE_WITH_STRING)
|