@rise-maritime/keelson-js 0.6.0-alpha.202.dev.1 → 0.6.0-alpha.202.dev.2
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.
|
@@ -28,7 +28,7 @@ export interface ChecklistItemEvidence {
|
|
|
28
28
|
/** When the image was TAKEN, which is not necessarily when it was attached. */
|
|
29
29
|
capturedAt: Date | undefined;
|
|
30
30
|
author: string;
|
|
31
|
-
|
|
31
|
+
authorSite: string;
|
|
32
32
|
/**
|
|
33
33
|
* Full media type, e.g. "image/jpeg". Drives the Blob the receiver builds, and is echoed into
|
|
34
34
|
* the CompressedImage's own `format` so a recovered blob is self-describing.
|
|
@@ -65,7 +65,7 @@ function createBaseChecklistItemEvidence() {
|
|
|
65
65
|
caption: "",
|
|
66
66
|
capturedAt: undefined,
|
|
67
67
|
author: "",
|
|
68
|
-
|
|
68
|
+
authorSite: "",
|
|
69
69
|
mediaType: "",
|
|
70
70
|
byteSize: 0,
|
|
71
71
|
width: 0,
|
|
@@ -88,8 +88,8 @@ exports.ChecklistItemEvidence = {
|
|
|
88
88
|
if (message.author !== "") {
|
|
89
89
|
writer.uint32(34).string(message.author);
|
|
90
90
|
}
|
|
91
|
-
if (message.
|
|
92
|
-
writer.uint32(42).string(message.
|
|
91
|
+
if (message.authorSite !== "") {
|
|
92
|
+
writer.uint32(42).string(message.authorSite);
|
|
93
93
|
}
|
|
94
94
|
if (message.mediaType !== "") {
|
|
95
95
|
writer.uint32(50).string(message.mediaType);
|
|
@@ -147,7 +147,7 @@ exports.ChecklistItemEvidence = {
|
|
|
147
147
|
if (tag !== 42) {
|
|
148
148
|
break;
|
|
149
149
|
}
|
|
150
|
-
message.
|
|
150
|
+
message.authorSite = reader.string();
|
|
151
151
|
continue;
|
|
152
152
|
}
|
|
153
153
|
case 6: {
|
|
@@ -200,7 +200,7 @@ exports.ChecklistItemEvidence = {
|
|
|
200
200
|
caption: isSet(object.caption) ? globalThis.String(object.caption) : "",
|
|
201
201
|
capturedAt: isSet(object.capturedAt) ? fromJsonTimestamp(object.capturedAt) : undefined,
|
|
202
202
|
author: isSet(object.author) ? globalThis.String(object.author) : "",
|
|
203
|
-
|
|
203
|
+
authorSite: isSet(object.authorSite) ? globalThis.String(object.authorSite) : "",
|
|
204
204
|
mediaType: isSet(object.mediaType) ? globalThis.String(object.mediaType) : "",
|
|
205
205
|
byteSize: isSet(object.byteSize) ? globalThis.Number(object.byteSize) : 0,
|
|
206
206
|
width: isSet(object.width) ? globalThis.Number(object.width) : 0,
|
|
@@ -222,8 +222,8 @@ exports.ChecklistItemEvidence = {
|
|
|
222
222
|
if (message.author !== "") {
|
|
223
223
|
obj.author = message.author;
|
|
224
224
|
}
|
|
225
|
-
if (message.
|
|
226
|
-
obj.
|
|
225
|
+
if (message.authorSite !== "") {
|
|
226
|
+
obj.authorSite = message.authorSite;
|
|
227
227
|
}
|
|
228
228
|
if (message.mediaType !== "") {
|
|
229
229
|
obj.mediaType = message.mediaType;
|
|
@@ -251,7 +251,7 @@ exports.ChecklistItemEvidence = {
|
|
|
251
251
|
message.caption = object.caption ?? "";
|
|
252
252
|
message.capturedAt = object.capturedAt ?? undefined;
|
|
253
253
|
message.author = object.author ?? "";
|
|
254
|
-
message.
|
|
254
|
+
message.authorSite = object.authorSite ?? "";
|
|
255
255
|
message.mediaType = object.mediaType ?? "";
|
|
256
256
|
message.byteSize = object.byteSize ?? 0;
|
|
257
257
|
message.width = object.width ?? 0;
|
|
@@ -16,7 +16,7 @@ export interface ChecklistState {
|
|
|
16
16
|
timestamp: Date | undefined;
|
|
17
17
|
procedureId: string;
|
|
18
18
|
publishedByOperator: string;
|
|
19
|
-
|
|
19
|
+
publishedBySite: string;
|
|
20
20
|
/**
|
|
21
21
|
* Number of events this snapshot has incorporated. Used as a version guard: a snapshot
|
|
22
22
|
* carrying fewer events than a receiver has already applied is stale and must be ignored.
|
|
@@ -75,6 +75,31 @@ export interface ChecklistState {
|
|
|
75
75
|
* versus "reason lost".
|
|
76
76
|
*/
|
|
77
77
|
abandonReason: string;
|
|
78
|
+
/**
|
|
79
|
+
* WHO CREATED THIS RUN, AND WHERE — as opposed to who last republished the snapshot.
|
|
80
|
+
*
|
|
81
|
+
* Without these a receiver has nothing to attribute a run to, and the obvious substitute is
|
|
82
|
+
* wrong in a way that is hard to see: `published_by_operator` / `published_by_site` name whoever
|
|
83
|
+
* ticked the 30 s timer. Crowsnest did exactly that, so authorship flipped to the last
|
|
84
|
+
* republisher on every snapshot — and because that station also used the field to decide which
|
|
85
|
+
* runs it republishes and who announces a run's end, the publish duty silently migrated with it.
|
|
86
|
+
* A wrong label is a display bug; a wrong publisher is a convergence bug.
|
|
87
|
+
*
|
|
88
|
+
* Empty from a publisher that predates these fields. A receiver MUST render that as unknown
|
|
89
|
+
* rather than falling back to the publisher — an absence is an absence, and naming the wrong
|
|
90
|
+
* operator on a safety record is worse than naming none.
|
|
91
|
+
*/
|
|
92
|
+
createdBy: string;
|
|
93
|
+
createdBySite: string;
|
|
94
|
+
/**
|
|
95
|
+
* When the run was created, which is NOT when it started.
|
|
96
|
+
*
|
|
97
|
+
* A PLANNED run has no `started_at` by definition, so a receiver with only that field has to
|
|
98
|
+
* reach for the snapshot's own `timestamp` — the publish tick — and a run queued last watch then
|
|
99
|
+
* sorts as if it were created moments ago. Carried separately so a planned board orders by when
|
|
100
|
+
* work was actually queued.
|
|
101
|
+
*/
|
|
102
|
+
createdAt: Date | undefined;
|
|
78
103
|
}
|
|
79
104
|
export declare enum ChecklistState_RunStatus {
|
|
80
105
|
RUN_STATUS_UNKNOWN = 0,
|
|
@@ -98,7 +123,7 @@ export interface ChecklistState_ItemNote {
|
|
|
98
123
|
text: string;
|
|
99
124
|
createdAt: Date | undefined;
|
|
100
125
|
author: string;
|
|
101
|
-
|
|
126
|
+
authorSite: string;
|
|
102
127
|
}
|
|
103
128
|
export interface ChecklistState_ItemState {
|
|
104
129
|
$type: "keelson.ChecklistState.ItemState";
|
|
@@ -106,15 +131,15 @@ export interface ChecklistState_ItemState {
|
|
|
106
131
|
status: ChecklistState_ItemState_ItemStatus;
|
|
107
132
|
startedAt: Date | undefined;
|
|
108
133
|
startedBy: string;
|
|
109
|
-
|
|
134
|
+
startedBySite: string;
|
|
110
135
|
completedAt: Date | undefined;
|
|
111
136
|
completedBy: string;
|
|
112
|
-
|
|
137
|
+
completedBySite: string;
|
|
113
138
|
notes: ChecklistState_ItemNote[];
|
|
114
139
|
flagged: boolean;
|
|
115
140
|
flagReason: string;
|
|
116
141
|
flaggedBy: string;
|
|
117
|
-
|
|
142
|
+
flaggedBySite: string;
|
|
118
143
|
/**
|
|
119
144
|
* Photos attached to this item — METADATA only; the bytes live on their own keys. See
|
|
120
145
|
* ChecklistEvidence.proto for why they are not inlined here.
|
|
@@ -121,7 +121,7 @@ function createBaseChecklistState() {
|
|
|
121
121
|
timestamp: undefined,
|
|
122
122
|
procedureId: "",
|
|
123
123
|
publishedByOperator: "",
|
|
124
|
-
|
|
124
|
+
publishedBySite: "",
|
|
125
125
|
eventCount: 0,
|
|
126
126
|
items: [],
|
|
127
127
|
runId: "",
|
|
@@ -133,6 +133,9 @@ function createBaseChecklistState() {
|
|
|
133
133
|
procedureVersion: "",
|
|
134
134
|
itemsSnapshot: [],
|
|
135
135
|
abandonReason: "",
|
|
136
|
+
createdBy: "",
|
|
137
|
+
createdBySite: "",
|
|
138
|
+
createdAt: undefined,
|
|
136
139
|
};
|
|
137
140
|
}
|
|
138
141
|
exports.ChecklistState = {
|
|
@@ -147,8 +150,8 @@ exports.ChecklistState = {
|
|
|
147
150
|
if (message.publishedByOperator !== "") {
|
|
148
151
|
writer.uint32(26).string(message.publishedByOperator);
|
|
149
152
|
}
|
|
150
|
-
if (message.
|
|
151
|
-
writer.uint32(34).string(message.
|
|
153
|
+
if (message.publishedBySite !== "") {
|
|
154
|
+
writer.uint32(34).string(message.publishedBySite);
|
|
152
155
|
}
|
|
153
156
|
if (message.eventCount !== 0) {
|
|
154
157
|
writer.uint32(40).int32(message.eventCount);
|
|
@@ -183,6 +186,15 @@ exports.ChecklistState = {
|
|
|
183
186
|
if (message.abandonReason !== "") {
|
|
184
187
|
writer.uint32(122).string(message.abandonReason);
|
|
185
188
|
}
|
|
189
|
+
if (message.createdBy !== "") {
|
|
190
|
+
writer.uint32(130).string(message.createdBy);
|
|
191
|
+
}
|
|
192
|
+
if (message.createdBySite !== "") {
|
|
193
|
+
writer.uint32(138).string(message.createdBySite);
|
|
194
|
+
}
|
|
195
|
+
if (message.createdAt !== undefined) {
|
|
196
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(146).fork()).join();
|
|
197
|
+
}
|
|
186
198
|
return writer;
|
|
187
199
|
},
|
|
188
200
|
decode(input, length) {
|
|
@@ -217,7 +229,7 @@ exports.ChecklistState = {
|
|
|
217
229
|
if (tag !== 34) {
|
|
218
230
|
break;
|
|
219
231
|
}
|
|
220
|
-
message.
|
|
232
|
+
message.publishedBySite = reader.string();
|
|
221
233
|
continue;
|
|
222
234
|
}
|
|
223
235
|
case 5: {
|
|
@@ -297,6 +309,27 @@ exports.ChecklistState = {
|
|
|
297
309
|
message.abandonReason = reader.string();
|
|
298
310
|
continue;
|
|
299
311
|
}
|
|
312
|
+
case 16: {
|
|
313
|
+
if (tag !== 130) {
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
message.createdBy = reader.string();
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
case 17: {
|
|
320
|
+
if (tag !== 138) {
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
message.createdBySite = reader.string();
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
case 18: {
|
|
327
|
+
if (tag !== 146) {
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
300
333
|
}
|
|
301
334
|
if ((tag & 7) === 4 || tag === 0) {
|
|
302
335
|
break;
|
|
@@ -311,7 +344,7 @@ exports.ChecklistState = {
|
|
|
311
344
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
312
345
|
procedureId: isSet(object.procedureId) ? globalThis.String(object.procedureId) : "",
|
|
313
346
|
publishedByOperator: isSet(object.publishedByOperator) ? globalThis.String(object.publishedByOperator) : "",
|
|
314
|
-
|
|
347
|
+
publishedBySite: isSet(object.publishedBySite) ? globalThis.String(object.publishedBySite) : "",
|
|
315
348
|
eventCount: isSet(object.eventCount) ? globalThis.Number(object.eventCount) : 0,
|
|
316
349
|
items: globalThis.Array.isArray(object?.items)
|
|
317
350
|
? object.items.map((e) => exports.ChecklistState_ItemState.fromJSON(e))
|
|
@@ -327,6 +360,9 @@ exports.ChecklistState = {
|
|
|
327
360
|
? object.itemsSnapshot.map((e) => ChecklistProcedure_1.ChecklistProcedure_Item.fromJSON(e))
|
|
328
361
|
: [],
|
|
329
362
|
abandonReason: isSet(object.abandonReason) ? globalThis.String(object.abandonReason) : "",
|
|
363
|
+
createdBy: isSet(object.createdBy) ? globalThis.String(object.createdBy) : "",
|
|
364
|
+
createdBySite: isSet(object.createdBySite) ? globalThis.String(object.createdBySite) : "",
|
|
365
|
+
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
|
330
366
|
};
|
|
331
367
|
},
|
|
332
368
|
toJSON(message) {
|
|
@@ -340,8 +376,8 @@ exports.ChecklistState = {
|
|
|
340
376
|
if (message.publishedByOperator !== "") {
|
|
341
377
|
obj.publishedByOperator = message.publishedByOperator;
|
|
342
378
|
}
|
|
343
|
-
if (message.
|
|
344
|
-
obj.
|
|
379
|
+
if (message.publishedBySite !== "") {
|
|
380
|
+
obj.publishedBySite = message.publishedBySite;
|
|
345
381
|
}
|
|
346
382
|
if (message.eventCount !== 0) {
|
|
347
383
|
obj.eventCount = Math.round(message.eventCount);
|
|
@@ -376,6 +412,15 @@ exports.ChecklistState = {
|
|
|
376
412
|
if (message.abandonReason !== "") {
|
|
377
413
|
obj.abandonReason = message.abandonReason;
|
|
378
414
|
}
|
|
415
|
+
if (message.createdBy !== "") {
|
|
416
|
+
obj.createdBy = message.createdBy;
|
|
417
|
+
}
|
|
418
|
+
if (message.createdBySite !== "") {
|
|
419
|
+
obj.createdBySite = message.createdBySite;
|
|
420
|
+
}
|
|
421
|
+
if (message.createdAt !== undefined) {
|
|
422
|
+
obj.createdAt = message.createdAt.toISOString();
|
|
423
|
+
}
|
|
379
424
|
return obj;
|
|
380
425
|
},
|
|
381
426
|
create(base) {
|
|
@@ -386,7 +431,7 @@ exports.ChecklistState = {
|
|
|
386
431
|
message.timestamp = object.timestamp ?? undefined;
|
|
387
432
|
message.procedureId = object.procedureId ?? "";
|
|
388
433
|
message.publishedByOperator = object.publishedByOperator ?? "";
|
|
389
|
-
message.
|
|
434
|
+
message.publishedBySite = object.publishedBySite ?? "";
|
|
390
435
|
message.eventCount = object.eventCount ?? 0;
|
|
391
436
|
message.items = object.items?.map((e) => exports.ChecklistState_ItemState.fromPartial(e)) || [];
|
|
392
437
|
message.runId = object.runId ?? "";
|
|
@@ -398,6 +443,9 @@ exports.ChecklistState = {
|
|
|
398
443
|
message.procedureVersion = object.procedureVersion ?? "";
|
|
399
444
|
message.itemsSnapshot = object.itemsSnapshot?.map((e) => ChecklistProcedure_1.ChecklistProcedure_Item.fromPartial(e)) || [];
|
|
400
445
|
message.abandonReason = object.abandonReason ?? "";
|
|
446
|
+
message.createdBy = object.createdBy ?? "";
|
|
447
|
+
message.createdBySite = object.createdBySite ?? "";
|
|
448
|
+
message.createdAt = object.createdAt ?? undefined;
|
|
401
449
|
return message;
|
|
402
450
|
},
|
|
403
451
|
};
|
|
@@ -409,7 +457,7 @@ function createBaseChecklistState_ItemNote() {
|
|
|
409
457
|
text: "",
|
|
410
458
|
createdAt: undefined,
|
|
411
459
|
author: "",
|
|
412
|
-
|
|
460
|
+
authorSite: "",
|
|
413
461
|
};
|
|
414
462
|
}
|
|
415
463
|
exports.ChecklistState_ItemNote = {
|
|
@@ -427,8 +475,8 @@ exports.ChecklistState_ItemNote = {
|
|
|
427
475
|
if (message.author !== "") {
|
|
428
476
|
writer.uint32(34).string(message.author);
|
|
429
477
|
}
|
|
430
|
-
if (message.
|
|
431
|
-
writer.uint32(42).string(message.
|
|
478
|
+
if (message.authorSite !== "") {
|
|
479
|
+
writer.uint32(42).string(message.authorSite);
|
|
432
480
|
}
|
|
433
481
|
return writer;
|
|
434
482
|
},
|
|
@@ -471,7 +519,7 @@ exports.ChecklistState_ItemNote = {
|
|
|
471
519
|
if (tag !== 42) {
|
|
472
520
|
break;
|
|
473
521
|
}
|
|
474
|
-
message.
|
|
522
|
+
message.authorSite = reader.string();
|
|
475
523
|
continue;
|
|
476
524
|
}
|
|
477
525
|
}
|
|
@@ -489,7 +537,7 @@ exports.ChecklistState_ItemNote = {
|
|
|
489
537
|
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
490
538
|
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
|
491
539
|
author: isSet(object.author) ? globalThis.String(object.author) : "",
|
|
492
|
-
|
|
540
|
+
authorSite: isSet(object.authorSite) ? globalThis.String(object.authorSite) : "",
|
|
493
541
|
};
|
|
494
542
|
},
|
|
495
543
|
toJSON(message) {
|
|
@@ -506,8 +554,8 @@ exports.ChecklistState_ItemNote = {
|
|
|
506
554
|
if (message.author !== "") {
|
|
507
555
|
obj.author = message.author;
|
|
508
556
|
}
|
|
509
|
-
if (message.
|
|
510
|
-
obj.
|
|
557
|
+
if (message.authorSite !== "") {
|
|
558
|
+
obj.authorSite = message.authorSite;
|
|
511
559
|
}
|
|
512
560
|
return obj;
|
|
513
561
|
},
|
|
@@ -520,7 +568,7 @@ exports.ChecklistState_ItemNote = {
|
|
|
520
568
|
message.text = object.text ?? "";
|
|
521
569
|
message.createdAt = object.createdAt ?? undefined;
|
|
522
570
|
message.author = object.author ?? "";
|
|
523
|
-
message.
|
|
571
|
+
message.authorSite = object.authorSite ?? "";
|
|
524
572
|
return message;
|
|
525
573
|
},
|
|
526
574
|
};
|
|
@@ -532,15 +580,15 @@ function createBaseChecklistState_ItemState() {
|
|
|
532
580
|
status: 0,
|
|
533
581
|
startedAt: undefined,
|
|
534
582
|
startedBy: "",
|
|
535
|
-
|
|
583
|
+
startedBySite: "",
|
|
536
584
|
completedAt: undefined,
|
|
537
585
|
completedBy: "",
|
|
538
|
-
|
|
586
|
+
completedBySite: "",
|
|
539
587
|
notes: [],
|
|
540
588
|
flagged: false,
|
|
541
589
|
flagReason: "",
|
|
542
590
|
flaggedBy: "",
|
|
543
|
-
|
|
591
|
+
flaggedBySite: "",
|
|
544
592
|
evidence: [],
|
|
545
593
|
flaggedAt: undefined,
|
|
546
594
|
};
|
|
@@ -560,8 +608,8 @@ exports.ChecklistState_ItemState = {
|
|
|
560
608
|
if (message.startedBy !== "") {
|
|
561
609
|
writer.uint32(34).string(message.startedBy);
|
|
562
610
|
}
|
|
563
|
-
if (message.
|
|
564
|
-
writer.uint32(42).string(message.
|
|
611
|
+
if (message.startedBySite !== "") {
|
|
612
|
+
writer.uint32(42).string(message.startedBySite);
|
|
565
613
|
}
|
|
566
614
|
if (message.completedAt !== undefined) {
|
|
567
615
|
timestamp_1.Timestamp.encode(toTimestamp(message.completedAt), writer.uint32(50).fork()).join();
|
|
@@ -569,8 +617,8 @@ exports.ChecklistState_ItemState = {
|
|
|
569
617
|
if (message.completedBy !== "") {
|
|
570
618
|
writer.uint32(58).string(message.completedBy);
|
|
571
619
|
}
|
|
572
|
-
if (message.
|
|
573
|
-
writer.uint32(66).string(message.
|
|
620
|
+
if (message.completedBySite !== "") {
|
|
621
|
+
writer.uint32(66).string(message.completedBySite);
|
|
574
622
|
}
|
|
575
623
|
for (const v of message.notes) {
|
|
576
624
|
exports.ChecklistState_ItemNote.encode(v, writer.uint32(74).fork()).join();
|
|
@@ -584,8 +632,8 @@ exports.ChecklistState_ItemState = {
|
|
|
584
632
|
if (message.flaggedBy !== "") {
|
|
585
633
|
writer.uint32(98).string(message.flaggedBy);
|
|
586
634
|
}
|
|
587
|
-
if (message.
|
|
588
|
-
writer.uint32(106).string(message.
|
|
635
|
+
if (message.flaggedBySite !== "") {
|
|
636
|
+
writer.uint32(106).string(message.flaggedBySite);
|
|
589
637
|
}
|
|
590
638
|
for (const v of message.evidence) {
|
|
591
639
|
ChecklistEvidence_1.ChecklistItemEvidence.encode(v, writer.uint32(114).fork()).join();
|
|
@@ -634,7 +682,7 @@ exports.ChecklistState_ItemState = {
|
|
|
634
682
|
if (tag !== 42) {
|
|
635
683
|
break;
|
|
636
684
|
}
|
|
637
|
-
message.
|
|
685
|
+
message.startedBySite = reader.string();
|
|
638
686
|
continue;
|
|
639
687
|
}
|
|
640
688
|
case 6: {
|
|
@@ -655,7 +703,7 @@ exports.ChecklistState_ItemState = {
|
|
|
655
703
|
if (tag !== 66) {
|
|
656
704
|
break;
|
|
657
705
|
}
|
|
658
|
-
message.
|
|
706
|
+
message.completedBySite = reader.string();
|
|
659
707
|
continue;
|
|
660
708
|
}
|
|
661
709
|
case 9: {
|
|
@@ -690,7 +738,7 @@ exports.ChecklistState_ItemState = {
|
|
|
690
738
|
if (tag !== 106) {
|
|
691
739
|
break;
|
|
692
740
|
}
|
|
693
|
-
message.
|
|
741
|
+
message.flaggedBySite = reader.string();
|
|
694
742
|
continue;
|
|
695
743
|
}
|
|
696
744
|
case 14: {
|
|
@@ -722,17 +770,17 @@ exports.ChecklistState_ItemState = {
|
|
|
722
770
|
status: isSet(object.status) ? checklistState_ItemState_ItemStatusFromJSON(object.status) : 0,
|
|
723
771
|
startedAt: isSet(object.startedAt) ? fromJsonTimestamp(object.startedAt) : undefined,
|
|
724
772
|
startedBy: isSet(object.startedBy) ? globalThis.String(object.startedBy) : "",
|
|
725
|
-
|
|
773
|
+
startedBySite: isSet(object.startedBySite) ? globalThis.String(object.startedBySite) : "",
|
|
726
774
|
completedAt: isSet(object.completedAt) ? fromJsonTimestamp(object.completedAt) : undefined,
|
|
727
775
|
completedBy: isSet(object.completedBy) ? globalThis.String(object.completedBy) : "",
|
|
728
|
-
|
|
776
|
+
completedBySite: isSet(object.completedBySite) ? globalThis.String(object.completedBySite) : "",
|
|
729
777
|
notes: globalThis.Array.isArray(object?.notes)
|
|
730
778
|
? object.notes.map((e) => exports.ChecklistState_ItemNote.fromJSON(e))
|
|
731
779
|
: [],
|
|
732
780
|
flagged: isSet(object.flagged) ? globalThis.Boolean(object.flagged) : false,
|
|
733
781
|
flagReason: isSet(object.flagReason) ? globalThis.String(object.flagReason) : "",
|
|
734
782
|
flaggedBy: isSet(object.flaggedBy) ? globalThis.String(object.flaggedBy) : "",
|
|
735
|
-
|
|
783
|
+
flaggedBySite: isSet(object.flaggedBySite) ? globalThis.String(object.flaggedBySite) : "",
|
|
736
784
|
evidence: globalThis.Array.isArray(object?.evidence)
|
|
737
785
|
? object.evidence.map((e) => ChecklistEvidence_1.ChecklistItemEvidence.fromJSON(e))
|
|
738
786
|
: [],
|
|
@@ -753,8 +801,8 @@ exports.ChecklistState_ItemState = {
|
|
|
753
801
|
if (message.startedBy !== "") {
|
|
754
802
|
obj.startedBy = message.startedBy;
|
|
755
803
|
}
|
|
756
|
-
if (message.
|
|
757
|
-
obj.
|
|
804
|
+
if (message.startedBySite !== "") {
|
|
805
|
+
obj.startedBySite = message.startedBySite;
|
|
758
806
|
}
|
|
759
807
|
if (message.completedAt !== undefined) {
|
|
760
808
|
obj.completedAt = message.completedAt.toISOString();
|
|
@@ -762,8 +810,8 @@ exports.ChecklistState_ItemState = {
|
|
|
762
810
|
if (message.completedBy !== "") {
|
|
763
811
|
obj.completedBy = message.completedBy;
|
|
764
812
|
}
|
|
765
|
-
if (message.
|
|
766
|
-
obj.
|
|
813
|
+
if (message.completedBySite !== "") {
|
|
814
|
+
obj.completedBySite = message.completedBySite;
|
|
767
815
|
}
|
|
768
816
|
if (message.notes?.length) {
|
|
769
817
|
obj.notes = message.notes.map((e) => exports.ChecklistState_ItemNote.toJSON(e));
|
|
@@ -777,8 +825,8 @@ exports.ChecklistState_ItemState = {
|
|
|
777
825
|
if (message.flaggedBy !== "") {
|
|
778
826
|
obj.flaggedBy = message.flaggedBy;
|
|
779
827
|
}
|
|
780
|
-
if (message.
|
|
781
|
-
obj.
|
|
828
|
+
if (message.flaggedBySite !== "") {
|
|
829
|
+
obj.flaggedBySite = message.flaggedBySite;
|
|
782
830
|
}
|
|
783
831
|
if (message.evidence?.length) {
|
|
784
832
|
obj.evidence = message.evidence.map((e) => ChecklistEvidence_1.ChecklistItemEvidence.toJSON(e));
|
|
@@ -797,15 +845,15 @@ exports.ChecklistState_ItemState = {
|
|
|
797
845
|
message.status = object.status ?? 0;
|
|
798
846
|
message.startedAt = object.startedAt ?? undefined;
|
|
799
847
|
message.startedBy = object.startedBy ?? "";
|
|
800
|
-
message.
|
|
848
|
+
message.startedBySite = object.startedBySite ?? "";
|
|
801
849
|
message.completedAt = object.completedAt ?? undefined;
|
|
802
850
|
message.completedBy = object.completedBy ?? "";
|
|
803
|
-
message.
|
|
851
|
+
message.completedBySite = object.completedBySite ?? "";
|
|
804
852
|
message.notes = object.notes?.map((e) => exports.ChecklistState_ItemNote.fromPartial(e)) || [];
|
|
805
853
|
message.flagged = object.flagged ?? false;
|
|
806
854
|
message.flagReason = object.flagReason ?? "";
|
|
807
855
|
message.flaggedBy = object.flaggedBy ?? "";
|
|
808
|
-
message.
|
|
856
|
+
message.flaggedBySite = object.flaggedBySite ?? "";
|
|
809
857
|
message.evidence = object.evidence?.map((e) => ChecklistEvidence_1.ChecklistItemEvidence.fromPartial(e)) || [];
|
|
810
858
|
message.flaggedAt = object.flaggedAt ?? undefined;
|
|
811
859
|
return message;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rise-maritime/keelson-js",
|
|
3
3
|
"//version": "NOT the published version. The release workflow overwrites it from the release tag (npm version --no-git-tag-version), so tag and artifact cannot disagree. Only matters for local installs; do not hand-bump before tagging — that manual step is what broke release 0.5.4.",
|
|
4
|
-
"version": "0.6.0-alpha.202.dev.
|
|
4
|
+
"version": "0.6.0-alpha.202.dev.2",
|
|
5
5
|
"description": "Keelson JavaScript SDK with Node-RED nodes",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"files": [
|