quiver-protobuf-typescript 1.0.1686822621 → 1.0.1686828126
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.
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Timestamp } from "../google/protobuf/timestamp";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "object";
|
|
6
|
+
|
|
7
|
+
export enum ObjectStatus {
|
|
8
|
+
OBJECT_STATUS_UNSPECIFIED = "OBJECT_STATUS_UNSPECIFIED",
|
|
9
|
+
ACTIVE = "ACTIVE",
|
|
10
|
+
INACTIVE = "INACTIVE",
|
|
11
|
+
UNRECOGNIZED = "UNRECOGNIZED",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function objectStatusFromJSON(object: any): ObjectStatus {
|
|
15
|
+
switch (object) {
|
|
16
|
+
case 0:
|
|
17
|
+
case "OBJECT_STATUS_UNSPECIFIED":
|
|
18
|
+
return ObjectStatus.OBJECT_STATUS_UNSPECIFIED;
|
|
19
|
+
case 1:
|
|
20
|
+
case "ACTIVE":
|
|
21
|
+
return ObjectStatus.ACTIVE;
|
|
22
|
+
case 2:
|
|
23
|
+
case "INACTIVE":
|
|
24
|
+
return ObjectStatus.INACTIVE;
|
|
25
|
+
case -1:
|
|
26
|
+
case "UNRECOGNIZED":
|
|
27
|
+
default:
|
|
28
|
+
return ObjectStatus.UNRECOGNIZED;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function objectStatusToJSON(object: ObjectStatus): string {
|
|
33
|
+
switch (object) {
|
|
34
|
+
case ObjectStatus.OBJECT_STATUS_UNSPECIFIED:
|
|
35
|
+
return "OBJECT_STATUS_UNSPECIFIED";
|
|
36
|
+
case ObjectStatus.ACTIVE:
|
|
37
|
+
return "ACTIVE";
|
|
38
|
+
case ObjectStatus.INACTIVE:
|
|
39
|
+
return "INACTIVE";
|
|
40
|
+
case ObjectStatus.UNRECOGNIZED:
|
|
41
|
+
default:
|
|
42
|
+
return "UNRECOGNIZED";
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function objectStatusToNumber(object: ObjectStatus): number {
|
|
47
|
+
switch (object) {
|
|
48
|
+
case ObjectStatus.OBJECT_STATUS_UNSPECIFIED:
|
|
49
|
+
return 0;
|
|
50
|
+
case ObjectStatus.ACTIVE:
|
|
51
|
+
return 1;
|
|
52
|
+
case ObjectStatus.INACTIVE:
|
|
53
|
+
return 2;
|
|
54
|
+
case ObjectStatus.UNRECOGNIZED:
|
|
55
|
+
default:
|
|
56
|
+
return -1;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface QueryObjectStatusUpdates {
|
|
61
|
+
objectId: number;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface QueryObjectStatusUpdatesResponse {
|
|
65
|
+
objectStatusUpdates: ObjectStatusUpdate[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface CreateObjectStatusUpdate {
|
|
69
|
+
objectId: number;
|
|
70
|
+
status: ObjectStatus;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface UpdateObjectStatusUpdate {
|
|
74
|
+
objectId: number;
|
|
75
|
+
status: ObjectStatus;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ObjectStatusUpdate {
|
|
79
|
+
objectStatusId: number;
|
|
80
|
+
objectId: number;
|
|
81
|
+
createdAt: string | undefined;
|
|
82
|
+
updatedAt: string | undefined;
|
|
83
|
+
status: ObjectStatus;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function createBaseQueryObjectStatusUpdates(): QueryObjectStatusUpdates {
|
|
87
|
+
return { objectId: 0 };
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export const QueryObjectStatusUpdates = {
|
|
91
|
+
encode(message: QueryObjectStatusUpdates, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
92
|
+
if (message.objectId !== 0) {
|
|
93
|
+
writer.uint32(8).int32(message.objectId);
|
|
94
|
+
}
|
|
95
|
+
return writer;
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryObjectStatusUpdates {
|
|
99
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
100
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
101
|
+
const message = createBaseQueryObjectStatusUpdates();
|
|
102
|
+
while (reader.pos < end) {
|
|
103
|
+
const tag = reader.uint32();
|
|
104
|
+
switch (tag >>> 3) {
|
|
105
|
+
case 1:
|
|
106
|
+
if (tag !== 8) {
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message.objectId = reader.int32();
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
reader.skipType(tag & 7);
|
|
117
|
+
}
|
|
118
|
+
return message;
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
fromJSON(object: any): QueryObjectStatusUpdates {
|
|
122
|
+
return { objectId: isSet(object.objectId) ? Number(object.objectId) : 0 };
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
toJSON(message: QueryObjectStatusUpdates): unknown {
|
|
126
|
+
const obj: any = {};
|
|
127
|
+
message.objectId !== undefined && (obj.objectId = Math.round(message.objectId));
|
|
128
|
+
return obj;
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
create<I extends Exact<DeepPartial<QueryObjectStatusUpdates>, I>>(base?: I): QueryObjectStatusUpdates {
|
|
132
|
+
return QueryObjectStatusUpdates.fromPartial(base ?? {});
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
fromPartial<I extends Exact<DeepPartial<QueryObjectStatusUpdates>, I>>(object: I): QueryObjectStatusUpdates {
|
|
136
|
+
const message = createBaseQueryObjectStatusUpdates();
|
|
137
|
+
message.objectId = object.objectId ?? 0;
|
|
138
|
+
return message;
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
function createBaseQueryObjectStatusUpdatesResponse(): QueryObjectStatusUpdatesResponse {
|
|
143
|
+
return { objectStatusUpdates: [] };
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export const QueryObjectStatusUpdatesResponse = {
|
|
147
|
+
encode(message: QueryObjectStatusUpdatesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
148
|
+
for (const v of message.objectStatusUpdates) {
|
|
149
|
+
ObjectStatusUpdate.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
150
|
+
}
|
|
151
|
+
return writer;
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryObjectStatusUpdatesResponse {
|
|
155
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
156
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
157
|
+
const message = createBaseQueryObjectStatusUpdatesResponse();
|
|
158
|
+
while (reader.pos < end) {
|
|
159
|
+
const tag = reader.uint32();
|
|
160
|
+
switch (tag >>> 3) {
|
|
161
|
+
case 1:
|
|
162
|
+
if (tag !== 10) {
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
message.objectStatusUpdates.push(ObjectStatusUpdate.decode(reader, reader.uint32()));
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
reader.skipType(tag & 7);
|
|
173
|
+
}
|
|
174
|
+
return message;
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
fromJSON(object: any): QueryObjectStatusUpdatesResponse {
|
|
178
|
+
return {
|
|
179
|
+
objectStatusUpdates: Array.isArray(object?.objectStatusUpdates)
|
|
180
|
+
? object.objectStatusUpdates.map((e: any) => ObjectStatusUpdate.fromJSON(e))
|
|
181
|
+
: [],
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
toJSON(message: QueryObjectStatusUpdatesResponse): unknown {
|
|
186
|
+
const obj: any = {};
|
|
187
|
+
if (message.objectStatusUpdates) {
|
|
188
|
+
obj.objectStatusUpdates = message.objectStatusUpdates.map((e) => e ? ObjectStatusUpdate.toJSON(e) : undefined);
|
|
189
|
+
} else {
|
|
190
|
+
obj.objectStatusUpdates = [];
|
|
191
|
+
}
|
|
192
|
+
return obj;
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
create<I extends Exact<DeepPartial<QueryObjectStatusUpdatesResponse>, I>>(
|
|
196
|
+
base?: I,
|
|
197
|
+
): QueryObjectStatusUpdatesResponse {
|
|
198
|
+
return QueryObjectStatusUpdatesResponse.fromPartial(base ?? {});
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
fromPartial<I extends Exact<DeepPartial<QueryObjectStatusUpdatesResponse>, I>>(
|
|
202
|
+
object: I,
|
|
203
|
+
): QueryObjectStatusUpdatesResponse {
|
|
204
|
+
const message = createBaseQueryObjectStatusUpdatesResponse();
|
|
205
|
+
message.objectStatusUpdates = object.objectStatusUpdates?.map((e) => ObjectStatusUpdate.fromPartial(e)) || [];
|
|
206
|
+
return message;
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
function createBaseCreateObjectStatusUpdate(): CreateObjectStatusUpdate {
|
|
211
|
+
return { objectId: 0, status: ObjectStatus.OBJECT_STATUS_UNSPECIFIED };
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export const CreateObjectStatusUpdate = {
|
|
215
|
+
encode(message: CreateObjectStatusUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
216
|
+
if (message.objectId !== 0) {
|
|
217
|
+
writer.uint32(8).int32(message.objectId);
|
|
218
|
+
}
|
|
219
|
+
if (message.status !== ObjectStatus.OBJECT_STATUS_UNSPECIFIED) {
|
|
220
|
+
writer.uint32(16).int32(objectStatusToNumber(message.status));
|
|
221
|
+
}
|
|
222
|
+
return writer;
|
|
223
|
+
},
|
|
224
|
+
|
|
225
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CreateObjectStatusUpdate {
|
|
226
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
227
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
228
|
+
const message = createBaseCreateObjectStatusUpdate();
|
|
229
|
+
while (reader.pos < end) {
|
|
230
|
+
const tag = reader.uint32();
|
|
231
|
+
switch (tag >>> 3) {
|
|
232
|
+
case 1:
|
|
233
|
+
if (tag !== 8) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
message.objectId = reader.int32();
|
|
238
|
+
continue;
|
|
239
|
+
case 2:
|
|
240
|
+
if (tag !== 16) {
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
message.status = objectStatusFromJSON(reader.int32());
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
reader.skipType(tag & 7);
|
|
251
|
+
}
|
|
252
|
+
return message;
|
|
253
|
+
},
|
|
254
|
+
|
|
255
|
+
fromJSON(object: any): CreateObjectStatusUpdate {
|
|
256
|
+
return {
|
|
257
|
+
objectId: isSet(object.objectId) ? Number(object.objectId) : 0,
|
|
258
|
+
status: isSet(object.status) ? objectStatusFromJSON(object.status) : ObjectStatus.OBJECT_STATUS_UNSPECIFIED,
|
|
259
|
+
};
|
|
260
|
+
},
|
|
261
|
+
|
|
262
|
+
toJSON(message: CreateObjectStatusUpdate): unknown {
|
|
263
|
+
const obj: any = {};
|
|
264
|
+
message.objectId !== undefined && (obj.objectId = Math.round(message.objectId));
|
|
265
|
+
message.status !== undefined && (obj.status = objectStatusToJSON(message.status));
|
|
266
|
+
return obj;
|
|
267
|
+
},
|
|
268
|
+
|
|
269
|
+
create<I extends Exact<DeepPartial<CreateObjectStatusUpdate>, I>>(base?: I): CreateObjectStatusUpdate {
|
|
270
|
+
return CreateObjectStatusUpdate.fromPartial(base ?? {});
|
|
271
|
+
},
|
|
272
|
+
|
|
273
|
+
fromPartial<I extends Exact<DeepPartial<CreateObjectStatusUpdate>, I>>(object: I): CreateObjectStatusUpdate {
|
|
274
|
+
const message = createBaseCreateObjectStatusUpdate();
|
|
275
|
+
message.objectId = object.objectId ?? 0;
|
|
276
|
+
message.status = object.status ?? ObjectStatus.OBJECT_STATUS_UNSPECIFIED;
|
|
277
|
+
return message;
|
|
278
|
+
},
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
function createBaseUpdateObjectStatusUpdate(): UpdateObjectStatusUpdate {
|
|
282
|
+
return { objectId: 0, status: ObjectStatus.OBJECT_STATUS_UNSPECIFIED };
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export const UpdateObjectStatusUpdate = {
|
|
286
|
+
encode(message: UpdateObjectStatusUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
287
|
+
if (message.objectId !== 0) {
|
|
288
|
+
writer.uint32(8).int32(message.objectId);
|
|
289
|
+
}
|
|
290
|
+
if (message.status !== ObjectStatus.OBJECT_STATUS_UNSPECIFIED) {
|
|
291
|
+
writer.uint32(16).int32(objectStatusToNumber(message.status));
|
|
292
|
+
}
|
|
293
|
+
return writer;
|
|
294
|
+
},
|
|
295
|
+
|
|
296
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateObjectStatusUpdate {
|
|
297
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
298
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
299
|
+
const message = createBaseUpdateObjectStatusUpdate();
|
|
300
|
+
while (reader.pos < end) {
|
|
301
|
+
const tag = reader.uint32();
|
|
302
|
+
switch (tag >>> 3) {
|
|
303
|
+
case 1:
|
|
304
|
+
if (tag !== 8) {
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
message.objectId = reader.int32();
|
|
309
|
+
continue;
|
|
310
|
+
case 2:
|
|
311
|
+
if (tag !== 16) {
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
message.status = objectStatusFromJSON(reader.int32());
|
|
316
|
+
continue;
|
|
317
|
+
}
|
|
318
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
319
|
+
break;
|
|
320
|
+
}
|
|
321
|
+
reader.skipType(tag & 7);
|
|
322
|
+
}
|
|
323
|
+
return message;
|
|
324
|
+
},
|
|
325
|
+
|
|
326
|
+
fromJSON(object: any): UpdateObjectStatusUpdate {
|
|
327
|
+
return {
|
|
328
|
+
objectId: isSet(object.objectId) ? Number(object.objectId) : 0,
|
|
329
|
+
status: isSet(object.status) ? objectStatusFromJSON(object.status) : ObjectStatus.OBJECT_STATUS_UNSPECIFIED,
|
|
330
|
+
};
|
|
331
|
+
},
|
|
332
|
+
|
|
333
|
+
toJSON(message: UpdateObjectStatusUpdate): unknown {
|
|
334
|
+
const obj: any = {};
|
|
335
|
+
message.objectId !== undefined && (obj.objectId = Math.round(message.objectId));
|
|
336
|
+
message.status !== undefined && (obj.status = objectStatusToJSON(message.status));
|
|
337
|
+
return obj;
|
|
338
|
+
},
|
|
339
|
+
|
|
340
|
+
create<I extends Exact<DeepPartial<UpdateObjectStatusUpdate>, I>>(base?: I): UpdateObjectStatusUpdate {
|
|
341
|
+
return UpdateObjectStatusUpdate.fromPartial(base ?? {});
|
|
342
|
+
},
|
|
343
|
+
|
|
344
|
+
fromPartial<I extends Exact<DeepPartial<UpdateObjectStatusUpdate>, I>>(object: I): UpdateObjectStatusUpdate {
|
|
345
|
+
const message = createBaseUpdateObjectStatusUpdate();
|
|
346
|
+
message.objectId = object.objectId ?? 0;
|
|
347
|
+
message.status = object.status ?? ObjectStatus.OBJECT_STATUS_UNSPECIFIED;
|
|
348
|
+
return message;
|
|
349
|
+
},
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
function createBaseObjectStatusUpdate(): ObjectStatusUpdate {
|
|
353
|
+
return {
|
|
354
|
+
objectStatusId: 0,
|
|
355
|
+
objectId: 0,
|
|
356
|
+
createdAt: undefined,
|
|
357
|
+
updatedAt: undefined,
|
|
358
|
+
status: ObjectStatus.OBJECT_STATUS_UNSPECIFIED,
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export const ObjectStatusUpdate = {
|
|
363
|
+
encode(message: ObjectStatusUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
364
|
+
if (message.objectStatusId !== 0) {
|
|
365
|
+
writer.uint32(8).int32(message.objectStatusId);
|
|
366
|
+
}
|
|
367
|
+
if (message.objectId !== 0) {
|
|
368
|
+
writer.uint32(16).int32(message.objectId);
|
|
369
|
+
}
|
|
370
|
+
if (message.createdAt !== undefined) {
|
|
371
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(26).fork()).ldelim();
|
|
372
|
+
}
|
|
373
|
+
if (message.updatedAt !== undefined) {
|
|
374
|
+
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(34).fork()).ldelim();
|
|
375
|
+
}
|
|
376
|
+
if (message.status !== ObjectStatus.OBJECT_STATUS_UNSPECIFIED) {
|
|
377
|
+
writer.uint32(40).int32(objectStatusToNumber(message.status));
|
|
378
|
+
}
|
|
379
|
+
return writer;
|
|
380
|
+
},
|
|
381
|
+
|
|
382
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ObjectStatusUpdate {
|
|
383
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
384
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
385
|
+
const message = createBaseObjectStatusUpdate();
|
|
386
|
+
while (reader.pos < end) {
|
|
387
|
+
const tag = reader.uint32();
|
|
388
|
+
switch (tag >>> 3) {
|
|
389
|
+
case 1:
|
|
390
|
+
if (tag !== 8) {
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
message.objectStatusId = reader.int32();
|
|
395
|
+
continue;
|
|
396
|
+
case 2:
|
|
397
|
+
if (tag !== 16) {
|
|
398
|
+
break;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
message.objectId = reader.int32();
|
|
402
|
+
continue;
|
|
403
|
+
case 3:
|
|
404
|
+
if (tag !== 26) {
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
409
|
+
continue;
|
|
410
|
+
case 4:
|
|
411
|
+
if (tag !== 34) {
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
416
|
+
continue;
|
|
417
|
+
case 5:
|
|
418
|
+
if (tag !== 40) {
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
message.status = objectStatusFromJSON(reader.int32());
|
|
423
|
+
continue;
|
|
424
|
+
}
|
|
425
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
reader.skipType(tag & 7);
|
|
429
|
+
}
|
|
430
|
+
return message;
|
|
431
|
+
},
|
|
432
|
+
|
|
433
|
+
fromJSON(object: any): ObjectStatusUpdate {
|
|
434
|
+
return {
|
|
435
|
+
objectStatusId: isSet(object.objectStatusId) ? Number(object.objectStatusId) : 0,
|
|
436
|
+
objectId: isSet(object.objectId) ? Number(object.objectId) : 0,
|
|
437
|
+
createdAt: isSet(object.createdAt) ? String(object.createdAt) : undefined,
|
|
438
|
+
updatedAt: isSet(object.updatedAt) ? String(object.updatedAt) : undefined,
|
|
439
|
+
status: isSet(object.status) ? objectStatusFromJSON(object.status) : ObjectStatus.OBJECT_STATUS_UNSPECIFIED,
|
|
440
|
+
};
|
|
441
|
+
},
|
|
442
|
+
|
|
443
|
+
toJSON(message: ObjectStatusUpdate): unknown {
|
|
444
|
+
const obj: any = {};
|
|
445
|
+
message.objectStatusId !== undefined && (obj.objectStatusId = Math.round(message.objectStatusId));
|
|
446
|
+
message.objectId !== undefined && (obj.objectId = Math.round(message.objectId));
|
|
447
|
+
message.createdAt !== undefined && (obj.createdAt = message.createdAt);
|
|
448
|
+
message.updatedAt !== undefined && (obj.updatedAt = message.updatedAt);
|
|
449
|
+
message.status !== undefined && (obj.status = objectStatusToJSON(message.status));
|
|
450
|
+
return obj;
|
|
451
|
+
},
|
|
452
|
+
|
|
453
|
+
create<I extends Exact<DeepPartial<ObjectStatusUpdate>, I>>(base?: I): ObjectStatusUpdate {
|
|
454
|
+
return ObjectStatusUpdate.fromPartial(base ?? {});
|
|
455
|
+
},
|
|
456
|
+
|
|
457
|
+
fromPartial<I extends Exact<DeepPartial<ObjectStatusUpdate>, I>>(object: I): ObjectStatusUpdate {
|
|
458
|
+
const message = createBaseObjectStatusUpdate();
|
|
459
|
+
message.objectStatusId = object.objectStatusId ?? 0;
|
|
460
|
+
message.objectId = object.objectId ?? 0;
|
|
461
|
+
message.createdAt = object.createdAt ?? undefined;
|
|
462
|
+
message.updatedAt = object.updatedAt ?? undefined;
|
|
463
|
+
message.status = object.status ?? ObjectStatus.OBJECT_STATUS_UNSPECIFIED;
|
|
464
|
+
return message;
|
|
465
|
+
},
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
469
|
+
|
|
470
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
471
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
472
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
473
|
+
: Partial<T>;
|
|
474
|
+
|
|
475
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
476
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
477
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
478
|
+
|
|
479
|
+
function toTimestamp(dateStr: string): Timestamp {
|
|
480
|
+
const date = new Date(dateStr);
|
|
481
|
+
const seconds = date.getTime() / 1_000;
|
|
482
|
+
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
483
|
+
return { seconds, nanos };
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
function fromTimestamp(t: Timestamp): string {
|
|
487
|
+
let millis = (t.seconds || 0) * 1_000;
|
|
488
|
+
millis += (t.nanos || 0) / 1_000_000;
|
|
489
|
+
return new Date(millis).toISOString();
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
function isSet(value: any): boolean {
|
|
493
|
+
return value !== null && value !== undefined;
|
|
494
|
+
}
|
package/package.json
CHANGED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Timestamp } from "../google/protobuf/timestamp";
|
|
4
|
-
import {
|
|
5
|
-
CourierJobStatus,
|
|
6
|
-
courierJobStatusFromJSON,
|
|
7
|
-
courierJobStatusToJSON,
|
|
8
|
-
courierJobStatusToNumber,
|
|
9
|
-
CourierJobSubstatus,
|
|
10
|
-
courierJobSubstatusFromJSON,
|
|
11
|
-
courierJobSubstatusToJSON,
|
|
12
|
-
courierJobSubstatusToNumber,
|
|
13
|
-
} from "../shared/courier_job_status";
|
|
14
|
-
|
|
15
|
-
export const protobufPackage = "controller";
|
|
16
|
-
|
|
17
|
-
export interface CourierJobStatusUpdate {
|
|
18
|
-
courierJobId: number;
|
|
19
|
-
createdAt: string | undefined;
|
|
20
|
-
value: CourierJobStatus;
|
|
21
|
-
subvalue?: CourierJobSubstatus | undefined;
|
|
22
|
-
note?: string | undefined;
|
|
23
|
-
consignmentIds: number[];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function createBaseCourierJobStatusUpdate(): CourierJobStatusUpdate {
|
|
27
|
-
return {
|
|
28
|
-
courierJobId: 0,
|
|
29
|
-
createdAt: undefined,
|
|
30
|
-
value: CourierJobStatus.COURIER_JOB_STATUS_UNSPECIFIED,
|
|
31
|
-
subvalue: undefined,
|
|
32
|
-
note: undefined,
|
|
33
|
-
consignmentIds: [],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const CourierJobStatusUpdate = {
|
|
38
|
-
encode(message: CourierJobStatusUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
39
|
-
if (message.courierJobId !== 0) {
|
|
40
|
-
writer.uint32(8).int32(message.courierJobId);
|
|
41
|
-
}
|
|
42
|
-
if (message.createdAt !== undefined) {
|
|
43
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).ldelim();
|
|
44
|
-
}
|
|
45
|
-
if (message.value !== CourierJobStatus.COURIER_JOB_STATUS_UNSPECIFIED) {
|
|
46
|
-
writer.uint32(24).int32(courierJobStatusToNumber(message.value));
|
|
47
|
-
}
|
|
48
|
-
if (message.subvalue !== undefined) {
|
|
49
|
-
writer.uint32(32).int32(courierJobSubstatusToNumber(message.subvalue));
|
|
50
|
-
}
|
|
51
|
-
if (message.note !== undefined) {
|
|
52
|
-
writer.uint32(42).string(message.note);
|
|
53
|
-
}
|
|
54
|
-
writer.uint32(50).fork();
|
|
55
|
-
for (const v of message.consignmentIds) {
|
|
56
|
-
writer.int32(v);
|
|
57
|
-
}
|
|
58
|
-
writer.ldelim();
|
|
59
|
-
return writer;
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CourierJobStatusUpdate {
|
|
63
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
64
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
-
const message = createBaseCourierJobStatusUpdate();
|
|
66
|
-
while (reader.pos < end) {
|
|
67
|
-
const tag = reader.uint32();
|
|
68
|
-
switch (tag >>> 3) {
|
|
69
|
-
case 1:
|
|
70
|
-
if (tag !== 8) {
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
message.courierJobId = reader.int32();
|
|
75
|
-
continue;
|
|
76
|
-
case 2:
|
|
77
|
-
if (tag !== 18) {
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
82
|
-
continue;
|
|
83
|
-
case 3:
|
|
84
|
-
if (tag !== 24) {
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
message.value = courierJobStatusFromJSON(reader.int32());
|
|
89
|
-
continue;
|
|
90
|
-
case 4:
|
|
91
|
-
if (tag !== 32) {
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
message.subvalue = courierJobSubstatusFromJSON(reader.int32());
|
|
96
|
-
continue;
|
|
97
|
-
case 5:
|
|
98
|
-
if (tag !== 42) {
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
message.note = reader.string();
|
|
103
|
-
continue;
|
|
104
|
-
case 6:
|
|
105
|
-
if (tag === 48) {
|
|
106
|
-
message.consignmentIds.push(reader.int32());
|
|
107
|
-
|
|
108
|
-
continue;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
if (tag === 50) {
|
|
112
|
-
const end2 = reader.uint32() + reader.pos;
|
|
113
|
-
while (reader.pos < end2) {
|
|
114
|
-
message.consignmentIds.push(reader.int32());
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
continue;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
reader.skipType(tag & 7);
|
|
126
|
-
}
|
|
127
|
-
return message;
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
fromJSON(object: any): CourierJobStatusUpdate {
|
|
131
|
-
return {
|
|
132
|
-
courierJobId: isSet(object.courierJobId) ? Number(object.courierJobId) : 0,
|
|
133
|
-
createdAt: isSet(object.createdAt) ? String(object.createdAt) : undefined,
|
|
134
|
-
value: isSet(object.value)
|
|
135
|
-
? courierJobStatusFromJSON(object.value)
|
|
136
|
-
: CourierJobStatus.COURIER_JOB_STATUS_UNSPECIFIED,
|
|
137
|
-
subvalue: isSet(object.subvalue) ? courierJobSubstatusFromJSON(object.subvalue) : undefined,
|
|
138
|
-
note: isSet(object.note) ? String(object.note) : undefined,
|
|
139
|
-
consignmentIds: Array.isArray(object?.consignmentIds) ? object.consignmentIds.map((e: any) => Number(e)) : [],
|
|
140
|
-
};
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
toJSON(message: CourierJobStatusUpdate): unknown {
|
|
144
|
-
const obj: any = {};
|
|
145
|
-
message.courierJobId !== undefined && (obj.courierJobId = Math.round(message.courierJobId));
|
|
146
|
-
message.createdAt !== undefined && (obj.createdAt = message.createdAt);
|
|
147
|
-
message.value !== undefined && (obj.value = courierJobStatusToJSON(message.value));
|
|
148
|
-
message.subvalue !== undefined &&
|
|
149
|
-
(obj.subvalue = message.subvalue !== undefined ? courierJobSubstatusToJSON(message.subvalue) : undefined);
|
|
150
|
-
message.note !== undefined && (obj.note = message.note);
|
|
151
|
-
if (message.consignmentIds) {
|
|
152
|
-
obj.consignmentIds = message.consignmentIds.map((e) => Math.round(e));
|
|
153
|
-
} else {
|
|
154
|
-
obj.consignmentIds = [];
|
|
155
|
-
}
|
|
156
|
-
return obj;
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
create<I extends Exact<DeepPartial<CourierJobStatusUpdate>, I>>(base?: I): CourierJobStatusUpdate {
|
|
160
|
-
return CourierJobStatusUpdate.fromPartial(base ?? {});
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
fromPartial<I extends Exact<DeepPartial<CourierJobStatusUpdate>, I>>(object: I): CourierJobStatusUpdate {
|
|
164
|
-
const message = createBaseCourierJobStatusUpdate();
|
|
165
|
-
message.courierJobId = object.courierJobId ?? 0;
|
|
166
|
-
message.createdAt = object.createdAt ?? undefined;
|
|
167
|
-
message.value = object.value ?? CourierJobStatus.COURIER_JOB_STATUS_UNSPECIFIED;
|
|
168
|
-
message.subvalue = object.subvalue ?? undefined;
|
|
169
|
-
message.note = object.note ?? undefined;
|
|
170
|
-
message.consignmentIds = object.consignmentIds?.map((e) => e) || [];
|
|
171
|
-
return message;
|
|
172
|
-
},
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
176
|
-
|
|
177
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
178
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
179
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
180
|
-
: Partial<T>;
|
|
181
|
-
|
|
182
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
183
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
184
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
185
|
-
|
|
186
|
-
function toTimestamp(dateStr: string): Timestamp {
|
|
187
|
-
const date = new Date(dateStr);
|
|
188
|
-
const seconds = date.getTime() / 1_000;
|
|
189
|
-
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
190
|
-
return { seconds, nanos };
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
function fromTimestamp(t: Timestamp): string {
|
|
194
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
195
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
196
|
-
return new Date(millis).toISOString();
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
function isSet(value: any): boolean {
|
|
200
|
-
return value !== null && value !== undefined;
|
|
201
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
|
|
3
|
-
export const protobufPackage = "shared";
|
|
4
|
-
|
|
5
|
-
export enum CourierJobStatus {
|
|
6
|
-
COURIER_JOB_STATUS_UNSPECIFIED = "COURIER_JOB_STATUS_UNSPECIFIED",
|
|
7
|
-
UNASSIGNED = "UNASSIGNED",
|
|
8
|
-
QUEUED = "QUEUED",
|
|
9
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
10
|
-
COMPLETED = "COMPLETED",
|
|
11
|
-
FAILED = "FAILED",
|
|
12
|
-
UNRECOGNIZED = "UNRECOGNIZED",
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function courierJobStatusFromJSON(object: any): CourierJobStatus {
|
|
16
|
-
switch (object) {
|
|
17
|
-
case 0:
|
|
18
|
-
case "COURIER_JOB_STATUS_UNSPECIFIED":
|
|
19
|
-
return CourierJobStatus.COURIER_JOB_STATUS_UNSPECIFIED;
|
|
20
|
-
case 1:
|
|
21
|
-
case "UNASSIGNED":
|
|
22
|
-
return CourierJobStatus.UNASSIGNED;
|
|
23
|
-
case 2:
|
|
24
|
-
case "QUEUED":
|
|
25
|
-
return CourierJobStatus.QUEUED;
|
|
26
|
-
case 3:
|
|
27
|
-
case "IN_PROGRESS":
|
|
28
|
-
return CourierJobStatus.IN_PROGRESS;
|
|
29
|
-
case 4:
|
|
30
|
-
case "COMPLETED":
|
|
31
|
-
return CourierJobStatus.COMPLETED;
|
|
32
|
-
case 5:
|
|
33
|
-
case "FAILED":
|
|
34
|
-
return CourierJobStatus.FAILED;
|
|
35
|
-
case -1:
|
|
36
|
-
case "UNRECOGNIZED":
|
|
37
|
-
default:
|
|
38
|
-
return CourierJobStatus.UNRECOGNIZED;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function courierJobStatusToJSON(object: CourierJobStatus): string {
|
|
43
|
-
switch (object) {
|
|
44
|
-
case CourierJobStatus.COURIER_JOB_STATUS_UNSPECIFIED:
|
|
45
|
-
return "COURIER_JOB_STATUS_UNSPECIFIED";
|
|
46
|
-
case CourierJobStatus.UNASSIGNED:
|
|
47
|
-
return "UNASSIGNED";
|
|
48
|
-
case CourierJobStatus.QUEUED:
|
|
49
|
-
return "QUEUED";
|
|
50
|
-
case CourierJobStatus.IN_PROGRESS:
|
|
51
|
-
return "IN_PROGRESS";
|
|
52
|
-
case CourierJobStatus.COMPLETED:
|
|
53
|
-
return "COMPLETED";
|
|
54
|
-
case CourierJobStatus.FAILED:
|
|
55
|
-
return "FAILED";
|
|
56
|
-
case CourierJobStatus.UNRECOGNIZED:
|
|
57
|
-
default:
|
|
58
|
-
return "UNRECOGNIZED";
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function courierJobStatusToNumber(object: CourierJobStatus): number {
|
|
63
|
-
switch (object) {
|
|
64
|
-
case CourierJobStatus.COURIER_JOB_STATUS_UNSPECIFIED:
|
|
65
|
-
return 0;
|
|
66
|
-
case CourierJobStatus.UNASSIGNED:
|
|
67
|
-
return 1;
|
|
68
|
-
case CourierJobStatus.QUEUED:
|
|
69
|
-
return 2;
|
|
70
|
-
case CourierJobStatus.IN_PROGRESS:
|
|
71
|
-
return 3;
|
|
72
|
-
case CourierJobStatus.COMPLETED:
|
|
73
|
-
return 4;
|
|
74
|
-
case CourierJobStatus.FAILED:
|
|
75
|
-
return 5;
|
|
76
|
-
case CourierJobStatus.UNRECOGNIZED:
|
|
77
|
-
default:
|
|
78
|
-
return -1;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export enum CourierJobSubstatus {
|
|
83
|
-
COURIER_JOB_SUBSTATUS_UNSPECIFIED = "COURIER_JOB_SUBSTATUS_UNSPECIFIED",
|
|
84
|
-
CUSTOMER = "CUSTOMER",
|
|
85
|
-
LETTER_BOX = "LETTER_BOX",
|
|
86
|
-
RECEPTION = "RECEPTION",
|
|
87
|
-
POST_ROOM = "POST_ROOM",
|
|
88
|
-
NEIGHBOUR = "NEIGHBOUR",
|
|
89
|
-
SAFE_PLACE = "SAFE_PLACE",
|
|
90
|
-
OTHER = "OTHER",
|
|
91
|
-
UNRECOGNIZED = "UNRECOGNIZED",
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export function courierJobSubstatusFromJSON(object: any): CourierJobSubstatus {
|
|
95
|
-
switch (object) {
|
|
96
|
-
case 0:
|
|
97
|
-
case "COURIER_JOB_SUBSTATUS_UNSPECIFIED":
|
|
98
|
-
return CourierJobSubstatus.COURIER_JOB_SUBSTATUS_UNSPECIFIED;
|
|
99
|
-
case 1:
|
|
100
|
-
case "CUSTOMER":
|
|
101
|
-
return CourierJobSubstatus.CUSTOMER;
|
|
102
|
-
case 2:
|
|
103
|
-
case "LETTER_BOX":
|
|
104
|
-
return CourierJobSubstatus.LETTER_BOX;
|
|
105
|
-
case 3:
|
|
106
|
-
case "RECEPTION":
|
|
107
|
-
return CourierJobSubstatus.RECEPTION;
|
|
108
|
-
case 4:
|
|
109
|
-
case "POST_ROOM":
|
|
110
|
-
return CourierJobSubstatus.POST_ROOM;
|
|
111
|
-
case 5:
|
|
112
|
-
case "NEIGHBOUR":
|
|
113
|
-
return CourierJobSubstatus.NEIGHBOUR;
|
|
114
|
-
case 6:
|
|
115
|
-
case "SAFE_PLACE":
|
|
116
|
-
return CourierJobSubstatus.SAFE_PLACE;
|
|
117
|
-
case 7:
|
|
118
|
-
case "OTHER":
|
|
119
|
-
return CourierJobSubstatus.OTHER;
|
|
120
|
-
case -1:
|
|
121
|
-
case "UNRECOGNIZED":
|
|
122
|
-
default:
|
|
123
|
-
return CourierJobSubstatus.UNRECOGNIZED;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export function courierJobSubstatusToJSON(object: CourierJobSubstatus): string {
|
|
128
|
-
switch (object) {
|
|
129
|
-
case CourierJobSubstatus.COURIER_JOB_SUBSTATUS_UNSPECIFIED:
|
|
130
|
-
return "COURIER_JOB_SUBSTATUS_UNSPECIFIED";
|
|
131
|
-
case CourierJobSubstatus.CUSTOMER:
|
|
132
|
-
return "CUSTOMER";
|
|
133
|
-
case CourierJobSubstatus.LETTER_BOX:
|
|
134
|
-
return "LETTER_BOX";
|
|
135
|
-
case CourierJobSubstatus.RECEPTION:
|
|
136
|
-
return "RECEPTION";
|
|
137
|
-
case CourierJobSubstatus.POST_ROOM:
|
|
138
|
-
return "POST_ROOM";
|
|
139
|
-
case CourierJobSubstatus.NEIGHBOUR:
|
|
140
|
-
return "NEIGHBOUR";
|
|
141
|
-
case CourierJobSubstatus.SAFE_PLACE:
|
|
142
|
-
return "SAFE_PLACE";
|
|
143
|
-
case CourierJobSubstatus.OTHER:
|
|
144
|
-
return "OTHER";
|
|
145
|
-
case CourierJobSubstatus.UNRECOGNIZED:
|
|
146
|
-
default:
|
|
147
|
-
return "UNRECOGNIZED";
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export function courierJobSubstatusToNumber(object: CourierJobSubstatus): number {
|
|
152
|
-
switch (object) {
|
|
153
|
-
case CourierJobSubstatus.COURIER_JOB_SUBSTATUS_UNSPECIFIED:
|
|
154
|
-
return 0;
|
|
155
|
-
case CourierJobSubstatus.CUSTOMER:
|
|
156
|
-
return 1;
|
|
157
|
-
case CourierJobSubstatus.LETTER_BOX:
|
|
158
|
-
return 2;
|
|
159
|
-
case CourierJobSubstatus.RECEPTION:
|
|
160
|
-
return 3;
|
|
161
|
-
case CourierJobSubstatus.POST_ROOM:
|
|
162
|
-
return 4;
|
|
163
|
-
case CourierJobSubstatus.NEIGHBOUR:
|
|
164
|
-
return 5;
|
|
165
|
-
case CourierJobSubstatus.SAFE_PLACE:
|
|
166
|
-
return 6;
|
|
167
|
-
case CourierJobSubstatus.OTHER:
|
|
168
|
-
return 7;
|
|
169
|
-
case CourierJobSubstatus.UNRECOGNIZED:
|
|
170
|
-
default:
|
|
171
|
-
return -1;
|
|
172
|
-
}
|
|
173
|
-
}
|