@fivenet-app/gen 0.9.3-1 → 0.9.3-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.
- package/package.json +1 -1
- package/perms.ts +2 -0
- package/resources/internet/domain.ts +27 -15
- package/resources/internet/page.ts +4 -0
- package/resources/sync/data.ts +1 -1
- package/resources/users/activity.ts +966 -23
- package/resources/users/job_props.ts +3 -708
- package/resources/users/job_settings.ts +721 -0
- package/resources/users/licenses.ts +148 -0
- package/resources/users/users.ts +1 -136
- package/services/docstore/docstore.ts +9 -9
- package/svcs.ts +2 -0
package/package.json
CHANGED
package/perms.ts
CHANGED
|
@@ -57,8 +57,10 @@
|
|
|
57
57
|
// source: resources/timestamp/timestamp.proto
|
|
58
58
|
// source: resources/users/activity.proto
|
|
59
59
|
// source: resources/users/job_props.proto
|
|
60
|
+
// source: resources/users/job_settings.proto
|
|
60
61
|
// source: resources/users/jobs.proto
|
|
61
62
|
// source: resources/users/labels.proto
|
|
63
|
+
// source: resources/users/licenses.proto
|
|
62
64
|
// source: resources/users/props.proto
|
|
63
65
|
// source: resources/users/users.proto
|
|
64
66
|
// source: resources/vehicles/vehicles.proto
|
|
@@ -32,15 +32,19 @@ export interface Domain {
|
|
|
32
32
|
*/
|
|
33
33
|
deletedAt?: Timestamp;
|
|
34
34
|
/**
|
|
35
|
-
* @generated from protobuf field:
|
|
35
|
+
* @generated from protobuf field: bool online = 5;
|
|
36
|
+
*/
|
|
37
|
+
online: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: string name = 6;
|
|
36
40
|
*/
|
|
37
41
|
name: string;
|
|
38
42
|
/**
|
|
39
|
-
* @generated from protobuf field: optional string creator_job =
|
|
43
|
+
* @generated from protobuf field: optional string creator_job = 7;
|
|
40
44
|
*/
|
|
41
45
|
creatorJob?: string;
|
|
42
46
|
/**
|
|
43
|
-
* @generated from protobuf field: optional int32 creator_id =
|
|
47
|
+
* @generated from protobuf field: optional int32 creator_id = 8;
|
|
44
48
|
*/
|
|
45
49
|
creatorId?: number;
|
|
46
50
|
}
|
|
@@ -52,14 +56,16 @@ class Domain$Type extends MessageType<Domain> {
|
|
|
52
56
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
53
57
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
54
58
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
55
|
-
{ no: 5, name: "
|
|
56
|
-
{ no: 6, name: "
|
|
57
|
-
{ no: 7, name: "
|
|
59
|
+
{ no: 5, name: "online", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
60
|
+
{ no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
|
|
61
|
+
{ no: 7, name: "creator_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
62
|
+
{ no: 8, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
58
63
|
]);
|
|
59
64
|
}
|
|
60
65
|
create(value?: PartialMessage<Domain>): Domain {
|
|
61
66
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
62
67
|
message.id = "0";
|
|
68
|
+
message.online = false;
|
|
63
69
|
message.name = "";
|
|
64
70
|
if (value !== undefined)
|
|
65
71
|
reflectionMergePartial<Domain>(this, message, value);
|
|
@@ -82,13 +88,16 @@ class Domain$Type extends MessageType<Domain> {
|
|
|
82
88
|
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
83
89
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
84
90
|
break;
|
|
85
|
-
case /*
|
|
91
|
+
case /* bool online */ 5:
|
|
92
|
+
message.online = reader.bool();
|
|
93
|
+
break;
|
|
94
|
+
case /* string name */ 6:
|
|
86
95
|
message.name = reader.string();
|
|
87
96
|
break;
|
|
88
|
-
case /* optional string creator_job */
|
|
97
|
+
case /* optional string creator_job */ 7:
|
|
89
98
|
message.creatorJob = reader.string();
|
|
90
99
|
break;
|
|
91
|
-
case /* optional int32 creator_id */
|
|
100
|
+
case /* optional int32 creator_id */ 8:
|
|
92
101
|
message.creatorId = reader.int32();
|
|
93
102
|
break;
|
|
94
103
|
default:
|
|
@@ -115,15 +124,18 @@ class Domain$Type extends MessageType<Domain> {
|
|
|
115
124
|
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
116
125
|
if (message.deletedAt)
|
|
117
126
|
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
118
|
-
/*
|
|
127
|
+
/* bool online = 5; */
|
|
128
|
+
if (message.online !== false)
|
|
129
|
+
writer.tag(5, WireType.Varint).bool(message.online);
|
|
130
|
+
/* string name = 6; */
|
|
119
131
|
if (message.name !== "")
|
|
120
|
-
writer.tag(
|
|
121
|
-
/* optional string creator_job =
|
|
132
|
+
writer.tag(6, WireType.LengthDelimited).string(message.name);
|
|
133
|
+
/* optional string creator_job = 7; */
|
|
122
134
|
if (message.creatorJob !== undefined)
|
|
123
|
-
writer.tag(
|
|
124
|
-
/* optional int32 creator_id =
|
|
135
|
+
writer.tag(7, WireType.LengthDelimited).string(message.creatorJob);
|
|
136
|
+
/* optional int32 creator_id = 8; */
|
|
125
137
|
if (message.creatorId !== undefined)
|
|
126
|
-
writer.tag(
|
|
138
|
+
writer.tag(8, WireType.Varint).int32(message.creatorId);
|
|
127
139
|
let u = options.writeUnknownFields;
|
|
128
140
|
if (u !== false)
|
|
129
141
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -67,6 +67,8 @@ export interface Page {
|
|
|
67
67
|
creatorId?: number;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
+
* TODO
|
|
71
|
+
*
|
|
70
72
|
* @generated from protobuf message resources.internet.PageData
|
|
71
73
|
*/
|
|
72
74
|
export interface PageData {
|
|
@@ -84,6 +86,8 @@ export enum PageLayoutType {
|
|
|
84
86
|
*/
|
|
85
87
|
LANDING = 1,
|
|
86
88
|
/**
|
|
89
|
+
* TODO
|
|
90
|
+
*
|
|
87
91
|
* @generated from protobuf enum value: PAGE_LAYOUT_TYPE_BASIC_PAGE = 2;
|
|
88
92
|
*/
|
|
89
93
|
BASIC_PAGE = 2
|
package/resources/sync/data.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
13
|
import { Coords } from "../livemap/livemap";
|
|
14
|
-
import { License } from "../users/
|
|
14
|
+
import { License } from "../users/licenses";
|
|
15
15
|
import { Vehicle } from "../vehicles/vehicles";
|
|
16
16
|
import { User } from "../users/users";
|
|
17
17
|
import { Job } from "../users/jobs";
|