quiver-protobuf-typescript 1.0.1685640116 → 1.0.1685710565
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/merchant/user.ts +1 -1
- package/object/object.ts +32 -64
- package/object/object_assignment.ts +378 -80
- package/package.json +1 -1
- package/google/protobuf/field_mask.ts +0 -290
- package/google/protobuf/struct.ts +0 -541
- package/merchant/merchant.ts +0 -759
package/merchant/user.ts
CHANGED
package/object/object.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import Long from "long";
|
|
3
2
|
import _m0 from "protobufjs/minimal.js";
|
|
4
3
|
import { Timestamp } from "../google/protobuf/timestamp.js";
|
|
5
4
|
|
|
6
5
|
export const protobufPackage = "object";
|
|
7
6
|
|
|
8
|
-
export interface
|
|
7
|
+
export interface QueryObjectsRequest {
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
export interface
|
|
10
|
+
export interface QueryObjectsResponse {
|
|
12
11
|
objects: Object[];
|
|
13
12
|
}
|
|
14
13
|
|
|
@@ -37,19 +36,19 @@ export interface Object {
|
|
|
37
36
|
name: string;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
function
|
|
39
|
+
function createBaseQueryObjectsRequest(): QueryObjectsRequest {
|
|
41
40
|
return {};
|
|
42
41
|
}
|
|
43
42
|
|
|
44
|
-
export const
|
|
45
|
-
encode(_:
|
|
43
|
+
export const QueryObjectsRequest = {
|
|
44
|
+
encode(_: QueryObjectsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
46
45
|
return writer;
|
|
47
46
|
},
|
|
48
47
|
|
|
49
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryObjectsRequest {
|
|
50
49
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
51
50
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
52
|
-
const message =
|
|
51
|
+
const message = createBaseQueryObjectsRequest();
|
|
53
52
|
while (reader.pos < end) {
|
|
54
53
|
const tag = reader.uint32();
|
|
55
54
|
switch (tag >>> 3) {
|
|
@@ -62,41 +61,41 @@ export const ListObjectRequest = {
|
|
|
62
61
|
return message;
|
|
63
62
|
},
|
|
64
63
|
|
|
65
|
-
fromJSON(_: any):
|
|
64
|
+
fromJSON(_: any): QueryObjectsRequest {
|
|
66
65
|
return {};
|
|
67
66
|
},
|
|
68
67
|
|
|
69
|
-
toJSON(_:
|
|
68
|
+
toJSON(_: QueryObjectsRequest): unknown {
|
|
70
69
|
const obj: any = {};
|
|
71
70
|
return obj;
|
|
72
71
|
},
|
|
73
72
|
|
|
74
|
-
create<I extends Exact<DeepPartial<
|
|
75
|
-
return
|
|
73
|
+
create<I extends Exact<DeepPartial<QueryObjectsRequest>, I>>(base?: I): QueryObjectsRequest {
|
|
74
|
+
return QueryObjectsRequest.fromPartial(base ?? {});
|
|
76
75
|
},
|
|
77
76
|
|
|
78
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
79
|
-
const message =
|
|
77
|
+
fromPartial<I extends Exact<DeepPartial<QueryObjectsRequest>, I>>(_: I): QueryObjectsRequest {
|
|
78
|
+
const message = createBaseQueryObjectsRequest();
|
|
80
79
|
return message;
|
|
81
80
|
},
|
|
82
81
|
};
|
|
83
82
|
|
|
84
|
-
function
|
|
83
|
+
function createBaseQueryObjectsResponse(): QueryObjectsResponse {
|
|
85
84
|
return { objects: [] };
|
|
86
85
|
}
|
|
87
86
|
|
|
88
|
-
export const
|
|
89
|
-
encode(message:
|
|
87
|
+
export const QueryObjectsResponse = {
|
|
88
|
+
encode(message: QueryObjectsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
90
89
|
for (const v of message.objects) {
|
|
91
90
|
Object.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
92
91
|
}
|
|
93
92
|
return writer;
|
|
94
93
|
},
|
|
95
94
|
|
|
96
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
95
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryObjectsResponse {
|
|
97
96
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
98
97
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
99
|
-
const message =
|
|
98
|
+
const message = createBaseQueryObjectsResponse();
|
|
100
99
|
while (reader.pos < end) {
|
|
101
100
|
const tag = reader.uint32();
|
|
102
101
|
switch (tag >>> 3) {
|
|
@@ -116,11 +115,11 @@ export const ListObjectResponse = {
|
|
|
116
115
|
return message;
|
|
117
116
|
},
|
|
118
117
|
|
|
119
|
-
fromJSON(object: any):
|
|
118
|
+
fromJSON(object: any): QueryObjectsResponse {
|
|
120
119
|
return { objects: Array.isArray(object?.objects) ? object.objects.map((e: any) => Object.fromJSON(e)) : [] };
|
|
121
120
|
},
|
|
122
121
|
|
|
123
|
-
toJSON(message:
|
|
122
|
+
toJSON(message: QueryObjectsResponse): unknown {
|
|
124
123
|
const obj: any = {};
|
|
125
124
|
if (message.objects) {
|
|
126
125
|
obj.objects = message.objects.map((e) => e ? Object.toJSON(e) : undefined);
|
|
@@ -130,12 +129,12 @@ export const ListObjectResponse = {
|
|
|
130
129
|
return obj;
|
|
131
130
|
},
|
|
132
131
|
|
|
133
|
-
create<I extends Exact<DeepPartial<
|
|
134
|
-
return
|
|
132
|
+
create<I extends Exact<DeepPartial<QueryObjectsResponse>, I>>(base?: I): QueryObjectsResponse {
|
|
133
|
+
return QueryObjectsResponse.fromPartial(base ?? {});
|
|
135
134
|
},
|
|
136
135
|
|
|
137
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
138
|
-
const message =
|
|
136
|
+
fromPartial<I extends Exact<DeepPartial<QueryObjectsResponse>, I>>(object: I): QueryObjectsResponse {
|
|
137
|
+
const message = createBaseQueryObjectsResponse();
|
|
139
138
|
message.objects = object.objects?.map((e) => Object.fromPartial(e)) || [];
|
|
140
139
|
return message;
|
|
141
140
|
},
|
|
@@ -204,7 +203,7 @@ function createBaseGetObjectRequest(): GetObjectRequest {
|
|
|
204
203
|
export const GetObjectRequest = {
|
|
205
204
|
encode(message: GetObjectRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
206
205
|
if (message.objectId !== 0) {
|
|
207
|
-
writer.uint32(8).
|
|
206
|
+
writer.uint32(8).int32(message.objectId);
|
|
208
207
|
}
|
|
209
208
|
return writer;
|
|
210
209
|
},
|
|
@@ -221,7 +220,7 @@ export const GetObjectRequest = {
|
|
|
221
220
|
break;
|
|
222
221
|
}
|
|
223
222
|
|
|
224
|
-
message.objectId =
|
|
223
|
+
message.objectId = reader.int32();
|
|
225
224
|
continue;
|
|
226
225
|
}
|
|
227
226
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -260,7 +259,7 @@ function createBaseUpdateObjectRequest(): UpdateObjectRequest {
|
|
|
260
259
|
export const UpdateObjectRequest = {
|
|
261
260
|
encode(message: UpdateObjectRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
262
261
|
if (message.objectId !== 0) {
|
|
263
|
-
writer.uint32(8).
|
|
262
|
+
writer.uint32(8).int32(message.objectId);
|
|
264
263
|
}
|
|
265
264
|
if (message.name !== undefined) {
|
|
266
265
|
writer.uint32(18).string(message.name);
|
|
@@ -280,7 +279,7 @@ export const UpdateObjectRequest = {
|
|
|
280
279
|
break;
|
|
281
280
|
}
|
|
282
281
|
|
|
283
|
-
message.objectId =
|
|
282
|
+
message.objectId = reader.int32();
|
|
284
283
|
continue;
|
|
285
284
|
case 2:
|
|
286
285
|
if (tag !== 18) {
|
|
@@ -331,7 +330,7 @@ function createBaseDeleteObjectRequest(): DeleteObjectRequest {
|
|
|
331
330
|
export const DeleteObjectRequest = {
|
|
332
331
|
encode(message: DeleteObjectRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
333
332
|
if (message.objectId !== 0) {
|
|
334
|
-
writer.uint32(8).
|
|
333
|
+
writer.uint32(8).int32(message.objectId);
|
|
335
334
|
}
|
|
336
335
|
return writer;
|
|
337
336
|
},
|
|
@@ -348,7 +347,7 @@ export const DeleteObjectRequest = {
|
|
|
348
347
|
break;
|
|
349
348
|
}
|
|
350
349
|
|
|
351
|
-
message.objectId =
|
|
350
|
+
message.objectId = reader.int32();
|
|
352
351
|
continue;
|
|
353
352
|
}
|
|
354
353
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -387,7 +386,7 @@ function createBaseObject(): Object {
|
|
|
387
386
|
export const Object = {
|
|
388
387
|
encode(message: Object, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
389
388
|
if (message.objectId !== 0) {
|
|
390
|
-
writer.uint32(8).
|
|
389
|
+
writer.uint32(8).int32(message.objectId);
|
|
391
390
|
}
|
|
392
391
|
if (message.createdAt !== undefined) {
|
|
393
392
|
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).ldelim();
|
|
@@ -416,7 +415,7 @@ export const Object = {
|
|
|
416
415
|
break;
|
|
417
416
|
}
|
|
418
417
|
|
|
419
|
-
message.objectId =
|
|
418
|
+
message.objectId = reader.int32();
|
|
420
419
|
continue;
|
|
421
420
|
case 2:
|
|
422
421
|
if (tag !== 18) {
|
|
@@ -490,25 +489,6 @@ export const Object = {
|
|
|
490
489
|
},
|
|
491
490
|
};
|
|
492
491
|
|
|
493
|
-
declare var self: any | undefined;
|
|
494
|
-
declare var window: any | undefined;
|
|
495
|
-
declare var global: any | undefined;
|
|
496
|
-
var tsProtoGlobalThis: any = (() => {
|
|
497
|
-
if (typeof globalThis !== "undefined") {
|
|
498
|
-
return globalThis;
|
|
499
|
-
}
|
|
500
|
-
if (typeof self !== "undefined") {
|
|
501
|
-
return self;
|
|
502
|
-
}
|
|
503
|
-
if (typeof window !== "undefined") {
|
|
504
|
-
return window;
|
|
505
|
-
}
|
|
506
|
-
if (typeof global !== "undefined") {
|
|
507
|
-
return global;
|
|
508
|
-
}
|
|
509
|
-
throw "Unable to locate global object";
|
|
510
|
-
})();
|
|
511
|
-
|
|
512
492
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
513
493
|
|
|
514
494
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
@@ -533,18 +513,6 @@ function fromTimestamp(t: Timestamp): string {
|
|
|
533
513
|
return new Date(millis).toISOString();
|
|
534
514
|
}
|
|
535
515
|
|
|
536
|
-
function longToNumber(long: Long): number {
|
|
537
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
538
|
-
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
539
|
-
}
|
|
540
|
-
return long.toNumber();
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
if (_m0.util.Long !== Long) {
|
|
544
|
-
_m0.util.Long = Long as any;
|
|
545
|
-
_m0.configure();
|
|
546
|
-
}
|
|
547
|
-
|
|
548
516
|
function isSet(value: any): boolean {
|
|
549
517
|
return value !== null && value !== undefined;
|
|
550
518
|
}
|