@alis-build/alis-open-operations-v1 1.2.0 → 1.4.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.
@@ -1,11 +1,11 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts"
1
+ // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/open/operations/v1/operations.proto (package alis.open.operations.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
5
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
6
  import type { Message } from "@bufbuild/protobuf";
7
- import type { Any, Timestamp } from "@bufbuild/protobuf/wkt";
8
- import type { Status } from "@alis-build/google-rpc/google/rpc/status_pb";
7
+ import type { Any, AnyJson, Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
8
+ import type { Status, StatusJson } from "@alis-build/google-rpc/google/rpc/status_pb.js";
9
9
 
10
10
  /**
11
11
  * Describes the file alis/open/operations/v1/operations.proto.
@@ -85,11 +85,71 @@ export declare type Operation = Message<"alis.open.operations.v1.Operation"> & {
85
85
  updateTime?: Timestamp | undefined;
86
86
  };
87
87
 
88
+ /**
89
+ * @generated from message alis.open.operations.v1.Operation
90
+ */
91
+ export declare type OperationJson = {
92
+ /**
93
+ * @generated from field: string name = 1;
94
+ */
95
+ name?: string;
96
+
97
+ /**
98
+ * @generated from field: google.protobuf.Any metadata = 2;
99
+ */
100
+ metadata?: AnyJson;
101
+
102
+ /**
103
+ * @generated from field: bool done = 3;
104
+ */
105
+ done?: boolean;
106
+
107
+ /**
108
+ * @generated from field: google.rpc.Status error = 4;
109
+ */
110
+ error?: StatusJson;
111
+
112
+ /**
113
+ * @generated from field: google.protobuf.Any response = 5;
114
+ */
115
+ response?: AnyJson;
116
+
117
+ /**
118
+ * @generated from field: string method = 6;
119
+ */
120
+ method?: string;
121
+
122
+ /**
123
+ * @generated from field: string checkpoint = 9;
124
+ */
125
+ checkpoint?: string;
126
+
127
+ /**
128
+ * @generated from field: bytes internal_state = 10;
129
+ */
130
+ internalState?: string;
131
+
132
+ /**
133
+ * @generated from field: alis.open.operations.v1.Operation.CloudTask cloud_task = 11;
134
+ */
135
+ cloudTask?: Operation_CloudTaskJson;
136
+
137
+ /**
138
+ * @generated from field: google.protobuf.Timestamp create_time = 98;
139
+ */
140
+ createTime?: TimestampJson;
141
+
142
+ /**
143
+ * @generated from field: google.protobuf.Timestamp update_time = 99;
144
+ */
145
+ updateTime?: TimestampJson;
146
+ };
147
+
88
148
  /**
89
149
  * Describes the message alis.open.operations.v1.Operation.
90
150
  * Use `create(OperationSchema)` to create a new message.
91
151
  */
92
- export declare const OperationSchema: GenMessage<Operation>;
152
+ export declare const OperationSchema: GenMessage<Operation, {jsonType: OperationJson}>;
93
153
 
94
154
  /**
95
155
  * @generated from message alis.open.operations.v1.Operation.CloudTask
@@ -121,9 +181,39 @@ export declare type Operation_CloudTask = Message<"alis.open.operations.v1.Opera
121
181
  targetHost: string;
122
182
  };
123
183
 
184
+ /**
185
+ * @generated from message alis.open.operations.v1.Operation.CloudTask
186
+ */
187
+ export declare type Operation_CloudTaskJson = {
188
+ /**
189
+ * @generated from field: string name = 1;
190
+ */
191
+ name?: string;
192
+
193
+ /**
194
+ * @generated from field: google.protobuf.Timestamp schedule_time = 2;
195
+ */
196
+ scheduleTime?: TimestampJson;
197
+
198
+ /**
199
+ * @generated from field: google.protobuf.Timestamp create_time = 3;
200
+ */
201
+ createTime?: TimestampJson;
202
+
203
+ /**
204
+ * @generated from field: bool running = 4;
205
+ */
206
+ running?: boolean;
207
+
208
+ /**
209
+ * @generated from field: string target_host = 5;
210
+ */
211
+ targetHost?: string;
212
+ };
213
+
124
214
  /**
125
215
  * Describes the message alis.open.operations.v1.Operation.CloudTask.
126
216
  * Use `create(Operation_CloudTaskSchema)` to create a new message.
127
217
  */
128
- export declare const Operation_CloudTaskSchema: GenMessage<Operation_CloudTask>;
218
+ export declare const Operation_CloudTaskSchema: GenMessage<Operation_CloudTask, {jsonType: Operation_CloudTaskJson}>;
129
219
 
@@ -1,10 +1,10 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts"
1
+ // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/open/operations/v1/operations.proto (package alis.open.operations.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
5
  import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
6
  import { file_google_protobuf_any, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
7
- import { file_google_rpc_status } from "@alis-build/google-rpc/google/rpc/status_pb";
7
+ import { file_google_rpc_status } from "@alis-build/google-rpc/google/rpc/status_pb.js";
8
8
 
9
9
  /**
10
10
  * Describes the file alis/open/operations/v1/operations.proto.
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./alis/open/operations/v1/operations_pb.js";
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./alis/open/operations/v1/operations_pb.js";
package/package.json CHANGED
@@ -1,11 +1,29 @@
1
1
  {
2
2
  "dependencies": {
3
- "@alis-build/google-rpc": "*",
4
- "@bufbuild/protobuf": "^2.11.0",
5
- "@connectrpc/connect": "^2.1.1",
6
- "@connectrpc/connect-web": "^2.1.1"
3
+ "@alis-build/google-rpc": "*"
7
4
  },
8
- "description": "Ecmascript and Connect-Web stubs generated by Alis Build",
5
+ "description": "Ecmascript and Connect-Web stubs generated by Alis Build for alis.open.operations.v1",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./index.d.ts",
9
+ "import": "./index.js"
10
+ },
11
+ "./*": "./*",
12
+ "./*_pb": {
13
+ "types": "./*_pb.d.ts",
14
+ "default": "./*_pb.js"
15
+ },
16
+ "./package.json": "./package.json"
17
+ },
18
+ "license": "Apache-2.0",
19
+ "main": "./index.js",
9
20
  "name": "@alis-build/alis-open-operations-v1",
10
- "version": "1.2.0"
21
+ "peerDependencies": {
22
+ "@bufbuild/protobuf": "^2.13.0",
23
+ "@connectrpc/connect": "^2.1.2",
24
+ "@connectrpc/connect-web": "^2.1.2"
25
+ },
26
+ "type": "module",
27
+ "types": "./index.d.ts",
28
+ "version": "1.4.0"
11
29
  }