ord-schema 0.3.94 → 0.3.95

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/index.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright 2024 Open Reaction Database Project Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import * as Dataset from './proto/dataset_pb';
18
+ import * as Reaction from './proto/reaction_pb';
19
+
20
+ export default {
21
+ ...Dataset,
22
+ ...Reaction,
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ord-schema",
3
- "version": "0.3.94",
3
+ "version": "0.3.95",
4
4
  "description": "Schema for the Open Reaction Database",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,7 +21,9 @@
21
21
  "google-protobuf": "<3.20"
22
22
  },
23
23
  "devDependencies": {
24
+ "@types/google-protobuf": "^3.15.12",
24
25
  "jest": "^29.3.1",
26
+ "ts-protoc-gen": "^0.15.0",
25
27
  "webpack": "^5.75.0",
26
28
  "webpack-cli": "^5.0.1"
27
29
  }
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Copyright 2024 Open Reaction Database Project Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ // package: ord
18
+ // file: ord-schema/proto/dataset.proto
19
+
20
+ import * as jspb from "google-protobuf";
21
+ import * as ord_schema_proto_reaction_pb from "../../ord-schema/proto/reaction_pb";
22
+
23
+ export class Dataset extends jspb.Message {
24
+ getName(): string;
25
+ setName(value: string): void;
26
+
27
+ getDescription(): string;
28
+ setDescription(value: string): void;
29
+
30
+ clearReactionsList(): void;
31
+ getReactionsList(): Array<ord_schema_proto_reaction_pb.Reaction>;
32
+ setReactionsList(value: Array<ord_schema_proto_reaction_pb.Reaction>): void;
33
+ addReactions(value?: ord_schema_proto_reaction_pb.Reaction, index?: number): ord_schema_proto_reaction_pb.Reaction;
34
+
35
+ clearReactionIdsList(): void;
36
+ getReactionIdsList(): Array<string>;
37
+ setReactionIdsList(value: Array<string>): void;
38
+ addReactionIds(value: string, index?: number): string;
39
+
40
+ getDatasetId(): string;
41
+ setDatasetId(value: string): void;
42
+
43
+ serializeBinary(): Uint8Array;
44
+ toObject(includeInstance?: boolean): Dataset.AsObject;
45
+ static toObject(includeInstance: boolean, msg: Dataset): Dataset.AsObject;
46
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
47
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
48
+ static serializeBinaryToWriter(message: Dataset, writer: jspb.BinaryWriter): void;
49
+ static deserializeBinary(bytes: Uint8Array): Dataset;
50
+ static deserializeBinaryFromReader(message: Dataset, reader: jspb.BinaryReader): Dataset;
51
+ }
52
+
53
+ export namespace Dataset {
54
+ export type AsObject = {
55
+ name: string,
56
+ description: string,
57
+ reactionsList: Array<ord_schema_proto_reaction_pb.Reaction.AsObject>,
58
+ reactionIdsList: Array<string>,
59
+ datasetId: string,
60
+ }
61
+ }
62
+
63
+ export class DatasetExample extends jspb.Message {
64
+ getDatasetId(): string;
65
+ setDatasetId(value: string): void;
66
+
67
+ getDescription(): string;
68
+ setDescription(value: string): void;
69
+
70
+ getUrl(): string;
71
+ setUrl(value: string): void;
72
+
73
+ hasCreated(): boolean;
74
+ clearCreated(): void;
75
+ getCreated(): ord_schema_proto_reaction_pb.RecordEvent | undefined;
76
+ setCreated(value?: ord_schema_proto_reaction_pb.RecordEvent): void;
77
+
78
+ serializeBinary(): Uint8Array;
79
+ toObject(includeInstance?: boolean): DatasetExample.AsObject;
80
+ static toObject(includeInstance: boolean, msg: DatasetExample): DatasetExample.AsObject;
81
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
82
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
83
+ static serializeBinaryToWriter(message: DatasetExample, writer: jspb.BinaryWriter): void;
84
+ static deserializeBinary(bytes: Uint8Array): DatasetExample;
85
+ static deserializeBinaryFromReader(message: DatasetExample, reader: jspb.BinaryReader): DatasetExample;
86
+ }
87
+
88
+ export namespace DatasetExample {
89
+ export type AsObject = {
90
+ datasetId: string,
91
+ description: string,
92
+ url: string,
93
+ created?: ord_schema_proto_reaction_pb.RecordEvent.AsObject,
94
+ }
95
+ }
96
+