@fraym/proto 0.28.2 → 0.29.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.
- package/freym/auth/management/migration.d.ts +46 -98
- package/freym/auth/management/migration.js +199 -172
- package/freym/auth/management/role_delete.d.ts +31 -0
- package/freym/auth/management/{delete_role.js → role_delete.js} +30 -13
- package/freym/auth/management/role_upsert.d.ts +33 -0
- package/freym/auth/management/{upsert_role.js → role_upsert.js} +39 -21
- package/freym/auth/management/roles_get.d.ts +35 -0
- package/freym/auth/management/{get_roles.js → roles_get.js} +25 -24
- package/freym/auth/management/service.d.ts +60 -74
- package/freym/auth/management/service.js +65 -74
- package/freym/auth/management/shared.d.ts +33 -0
- package/freym/auth/management/shared.js +176 -0
- package/freym/auth/management/user_create.d.ts +39 -0
- package/freym/auth/management/{create_user.js → user_create.js} +47 -29
- package/freym/auth/management/user_delete.d.ts +31 -0
- package/freym/auth/management/{delete_user.js → user_delete.js} +30 -13
- package/freym/auth/management/user_update.d.ts +38 -0
- package/freym/auth/management/{update_user.js → user_update.js} +45 -28
- package/freym/auth/management/users_get.d.ts +41 -0
- package/freym/auth/management/{get_users.js → users_get.js} +36 -36
- package/freym/auth/management.d.ts +9 -9
- package/freym/auth/management.js +37 -35
- package/freym/crud/delivery/clone.d.ts +58 -0
- package/freym/crud/delivery/{clone_entry.js → clone.js} +80 -69
- package/freym/crud/delivery/create.d.ts +57 -0
- package/freym/crud/delivery/{update_entry.js → create.js} +78 -68
- package/freym/crud/delivery/delete.d.ts +34 -0
- package/freym/crud/delivery/{delete_entries.js → delete.js} +34 -39
- package/freym/crud/delivery/get_data.d.ts +74 -0
- package/freym/crud/delivery/{get_entries.js → get_data.js} +247 -232
- package/freym/crud/delivery/service.d.ts +65 -66
- package/freym/crud/delivery/service.js +41 -41
- package/freym/crud/delivery/shared.d.ts +17 -49
- package/freym/crud/delivery/shared.js +86 -44
- package/freym/crud/delivery/update.d.ts +57 -0
- package/freym/crud/delivery/{create_entry.js → update.js} +78 -68
- package/freym/crud/delivery.d.ts +5 -5
- package/freym/crud/delivery.js +31 -29
- package/freym/crud/management/migration.d.ts +68 -181
- package/freym/crud/management/migration.js +503 -629
- package/freym/crud/management/service.d.ts +41 -55
- package/freym/crud/management/service.js +24 -33
- package/freym/crud/management.d.ts +1 -1
- package/freym/crud/management.js +11 -14
- package/freym/migrations/management/confirm.d.ts +28 -0
- package/freym/migrations/management/confirm.js +97 -0
- package/freym/migrations/management/create.d.ts +88 -0
- package/freym/migrations/management/{register.js → create.js} +362 -213
- package/freym/migrations/management/deployment.d.ts +34 -0
- package/freym/migrations/management/deployment.js +186 -0
- package/freym/migrations/management/rollback.d.ts +14 -20
- package/freym/migrations/management/rollback.js +29 -31
- package/freym/migrations/management/service.d.ts +45 -74
- package/freym/migrations/management/service.js +27 -47
- package/freym/migrations/management.d.ts +4 -6
- package/freym/migrations/management.js +21 -32
- package/freym/projections/delivery/delete.d.ts +34 -0
- package/freym/projections/delivery/{delete_projection_data.js → delete.js} +34 -39
- package/freym/projections/delivery/get_data.d.ts +58 -0
- package/freym/projections/delivery/{get_projection_data.js → get_data.js} +188 -320
- package/freym/projections/delivery/get_view_data.d.ts +18 -63
- package/freym/projections/delivery/get_view_data.js +109 -246
- package/freym/projections/delivery/service.d.ts +39 -40
- package/freym/projections/delivery/service.js +23 -23
- package/freym/projections/delivery/shared.d.ts +29 -57
- package/freym/projections/delivery/shared.js +236 -50
- package/freym/projections/delivery/upsert.d.ts +58 -0
- package/freym/projections/delivery/{upsert_projection_data.js → upsert.js} +80 -68
- package/freym/projections/delivery.d.ts +5 -5
- package/freym/projections/delivery.js +23 -25
- package/freym/projections/management/migration.d.ts +75 -214
- package/freym/projections/management/migration.js +577 -868
- package/freym/projections/management/service.d.ts +41 -55
- package/freym/projections/management/service.js +24 -33
- package/freym/projections/management.d.ts +1 -1
- package/freym/projections/management.js +12 -15
- package/freym/streams/management/backchannel.d.ts +12 -30
- package/freym/streams/management/backchannel.js +32 -94
- package/freym/streams/management/event.d.ts +19 -73
- package/freym/streams/management/event.js +110 -77
- package/freym/streams/management/gdpr.d.ts +15 -33
- package/freym/streams/management/gdpr.js +63 -28
- package/freym/streams/management/paginate.d.ts +17 -69
- package/freym/streams/management/paginate.js +99 -144
- package/freym/streams/management/publish.d.ts +27 -36
- package/freym/streams/management/publish.js +210 -46
- package/freym/streams/management/service.d.ts +1 -2
- package/freym/streams/management/snapshot.d.ts +12 -17
- package/freym/streams/management/snapshot.js +42 -18
- package/freym/streams/management/stream.d.ts +11 -17
- package/freym/streams/management/stream.js +15 -14
- package/freym/streams/management/subscribe.d.ts +17 -57
- package/freym/streams/management/subscribe.js +110 -69
- package/freym/streams/management.d.ts +3 -3
- package/freym/streams/management.js +6 -5
- package/freym/sync/management/lease.d.ts +17 -65
- package/freym/sync/management/lease.js +61 -47
- package/freym/sync/management/lock.d.ts +17 -65
- package/freym/sync/management/lock.js +53 -42
- package/freym/sync/management/peer_nodes.d.ts +11 -17
- package/freym/sync/management/peer_nodes.js +11 -12
- package/freym/sync/management/service.d.ts +1 -2
- package/package.json +6 -6
- package/freym/auth/management/create_user.d.ts +0 -43
- package/freym/auth/management/delete_role.d.ts +0 -35
- package/freym/auth/management/delete_user.d.ts +0 -35
- package/freym/auth/management/get_roles.d.ts +0 -48
- package/freym/auth/management/get_users.d.ts +0 -54
- package/freym/auth/management/role_scope.d.ts +0 -25
- package/freym/auth/management/role_scope.js +0 -78
- package/freym/auth/management/update_user.d.ts +0 -42
- package/freym/auth/management/upsert_role.d.ts +0 -38
- package/freym/crud/delivery/clone_entry.d.ts +0 -85
- package/freym/crud/delivery/create_entry.d.ts +0 -84
- package/freym/crud/delivery/delete_entries.d.ts +0 -40
- package/freym/crud/delivery/get_entries.d.ts +0 -122
- package/freym/crud/delivery/update_entry.d.ts +0 -84
- package/freym/migrations/management/apply.d.ts +0 -34
- package/freym/migrations/management/apply.js +0 -99
- package/freym/migrations/management/cleanup.d.ts +0 -49
- package/freym/migrations/management/cleanup.js +0 -212
- package/freym/migrations/management/register.d.ts +0 -118
- package/freym/migrations/management/start.d.ts +0 -137
- package/freym/migrations/management/start.js +0 -723
- package/freym/migrations/management/status.d.ts +0 -37
- package/freym/migrations/management/status.js +0 -143
- package/freym/projections/delivery/delete_projection_data.d.ts +0 -40
- package/freym/projections/delivery/get_projection_data.d.ts +0 -110
- package/freym/projections/delivery/upsert_projection_data.d.ts +0 -85
|
@@ -1,679 +1,376 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
|
|
3
|
+
exports.EnumType = exports.TypeArgument = exports.TypeField = exports.TypeDirective = exports.ObjectType = exports.DeploymentOptions = exports.GetSchemaDeploymentResponse = exports.GetSchemaDeploymentRequest = exports.RollbackSchemaResponse = exports.RollbackSchemaRequest = exports.ConfirmSchemaResponse = exports.ConfirmSchemaRequest = exports.DeploySchemaResponse = exports.DeploySchemaRequest = exports.DeploymentTarget = exports.protobufPackage = void 0;
|
|
4
|
+
exports.deploymentTargetFromJSON = deploymentTargetFromJSON;
|
|
5
|
+
exports.deploymentTargetToJSON = deploymentTargetToJSON;
|
|
6
|
+
exports.deploymentTargetToNumber = deploymentTargetToNumber;
|
|
7
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
8
8
|
exports.protobufPackage = "freym.crud.management";
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
exports.DeploymentTarget = {
|
|
10
|
+
DEPLOYMENT_TARGET_BLUE: "DEPLOYMENT_TARGET_BLUE",
|
|
11
|
+
DEPLOYMENT_TARGET_GREEN: "DEPLOYMENT_TARGET_GREEN",
|
|
12
|
+
};
|
|
13
|
+
function deploymentTargetFromJSON(object) {
|
|
14
|
+
switch (object) {
|
|
15
|
+
case 0:
|
|
16
|
+
case "DEPLOYMENT_TARGET_BLUE":
|
|
17
|
+
return exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE;
|
|
18
|
+
case 1:
|
|
19
|
+
case "DEPLOYMENT_TARGET_GREEN":
|
|
20
|
+
return exports.DeploymentTarget.DEPLOYMENT_TARGET_GREEN;
|
|
21
|
+
default:
|
|
22
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum DeploymentTarget");
|
|
23
|
+
}
|
|
11
24
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
message.values.push(reader.string());
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
reader.skipType(tag & 7);
|
|
25
|
+
function deploymentTargetToJSON(object) {
|
|
26
|
+
switch (object) {
|
|
27
|
+
case exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE:
|
|
28
|
+
return "DEPLOYMENT_TARGET_BLUE";
|
|
29
|
+
case exports.DeploymentTarget.DEPLOYMENT_TARGET_GREEN:
|
|
30
|
+
return "DEPLOYMENT_TARGET_GREEN";
|
|
31
|
+
default:
|
|
32
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum DeploymentTarget");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function deploymentTargetToNumber(object) {
|
|
36
|
+
switch (object) {
|
|
37
|
+
case exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE:
|
|
38
|
+
return 0;
|
|
39
|
+
case exports.DeploymentTarget.DEPLOYMENT_TARGET_GREEN:
|
|
40
|
+
return 1;
|
|
41
|
+
default:
|
|
42
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum DeploymentTarget");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function createBaseDeploySchemaRequest() {
|
|
46
|
+
return { namespace: "", projectionTypes: [], crudTypes: [], nestedTypes: [], enumTypes: [], options: undefined };
|
|
47
|
+
}
|
|
48
|
+
exports.DeploySchemaRequest = {
|
|
49
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
50
|
+
if (message.namespace !== "") {
|
|
51
|
+
writer.uint32(10).string(message.namespace);
|
|
46
52
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
fromJSON(object) {
|
|
50
|
-
return {
|
|
51
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
52
|
-
values: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.values) ? object.values.map((e) => globalThis.String(e)) : [],
|
|
53
|
-
};
|
|
54
|
-
},
|
|
55
|
-
toJSON(message) {
|
|
56
|
-
var _a;
|
|
57
|
-
const obj = {};
|
|
58
|
-
if (message.name !== "") {
|
|
59
|
-
obj.name = message.name;
|
|
53
|
+
for (const v of message.projectionTypes) {
|
|
54
|
+
exports.ObjectType.encode(v, writer.uint32(18).fork()).join();
|
|
60
55
|
}
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
for (const v of message.crudTypes) {
|
|
57
|
+
exports.ObjectType.encode(v, writer.uint32(26).fork()).join();
|
|
63
58
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
create(base) {
|
|
67
|
-
return exports.EnumType.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
68
|
-
},
|
|
69
|
-
fromPartial(object) {
|
|
70
|
-
var _a, _b;
|
|
71
|
-
const message = createBaseEnumType();
|
|
72
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
73
|
-
message.values = ((_b = object.values) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
74
|
-
return message;
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
|
-
function createBaseProjectionType() {
|
|
78
|
-
return { name: "", directives: [], fields: [] };
|
|
79
|
-
}
|
|
80
|
-
exports.ProjectionType = {
|
|
81
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
82
|
-
if (message.name !== "") {
|
|
83
|
-
writer.uint32(10).string(message.name);
|
|
59
|
+
for (const v of message.nestedTypes) {
|
|
60
|
+
exports.ObjectType.encode(v, writer.uint32(34).fork()).join();
|
|
84
61
|
}
|
|
85
|
-
for (const v of message.
|
|
86
|
-
exports.
|
|
62
|
+
for (const v of message.enumTypes) {
|
|
63
|
+
exports.EnumType.encode(v, writer.uint32(42).fork()).join();
|
|
87
64
|
}
|
|
88
|
-
|
|
89
|
-
exports.
|
|
65
|
+
if (message.options !== undefined) {
|
|
66
|
+
exports.DeploymentOptions.encode(message.options, writer.uint32(50).fork()).join();
|
|
90
67
|
}
|
|
91
68
|
return writer;
|
|
92
69
|
},
|
|
93
70
|
decode(input, length) {
|
|
94
|
-
const reader = input instanceof
|
|
71
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
95
72
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
96
|
-
const message =
|
|
73
|
+
const message = createBaseDeploySchemaRequest();
|
|
97
74
|
while (reader.pos < end) {
|
|
98
75
|
const tag = reader.uint32();
|
|
99
76
|
switch (tag >>> 3) {
|
|
100
|
-
case 1:
|
|
77
|
+
case 1: {
|
|
101
78
|
if (tag !== 10) {
|
|
102
79
|
break;
|
|
103
80
|
}
|
|
104
|
-
message.
|
|
81
|
+
message.namespace = reader.string();
|
|
105
82
|
continue;
|
|
106
|
-
|
|
83
|
+
}
|
|
84
|
+
case 2: {
|
|
107
85
|
if (tag !== 18) {
|
|
108
86
|
break;
|
|
109
87
|
}
|
|
110
|
-
message.
|
|
88
|
+
message.projectionTypes.push(exports.ObjectType.decode(reader, reader.uint32()));
|
|
111
89
|
continue;
|
|
112
|
-
|
|
90
|
+
}
|
|
91
|
+
case 3: {
|
|
113
92
|
if (tag !== 26) {
|
|
114
93
|
break;
|
|
115
94
|
}
|
|
116
|
-
message.
|
|
95
|
+
message.crudTypes.push(exports.ObjectType.decode(reader, reader.uint32()));
|
|
117
96
|
continue;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
reader.skipType(tag & 7);
|
|
123
|
-
}
|
|
124
|
-
return message;
|
|
125
|
-
},
|
|
126
|
-
fromJSON(object) {
|
|
127
|
-
return {
|
|
128
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
129
|
-
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
130
|
-
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
131
|
-
: [],
|
|
132
|
-
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
133
|
-
};
|
|
134
|
-
},
|
|
135
|
-
toJSON(message) {
|
|
136
|
-
var _a, _b;
|
|
137
|
-
const obj = {};
|
|
138
|
-
if (message.name !== "") {
|
|
139
|
-
obj.name = message.name;
|
|
140
|
-
}
|
|
141
|
-
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
142
|
-
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
143
|
-
}
|
|
144
|
-
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
145
|
-
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
146
|
-
}
|
|
147
|
-
return obj;
|
|
148
|
-
},
|
|
149
|
-
create(base) {
|
|
150
|
-
return exports.ProjectionType.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
151
|
-
},
|
|
152
|
-
fromPartial(object) {
|
|
153
|
-
var _a, _b, _c;
|
|
154
|
-
const message = createBaseProjectionType();
|
|
155
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
156
|
-
message.directives = ((_b = object.directives) === null || _b === void 0 ? void 0 : _b.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
157
|
-
message.fields = ((_c = object.fields) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeField.fromPartial(e))) || [];
|
|
158
|
-
return message;
|
|
159
|
-
},
|
|
160
|
-
};
|
|
161
|
-
function createBaseCrudType() {
|
|
162
|
-
return { name: "", directives: [], fields: [] };
|
|
163
|
-
}
|
|
164
|
-
exports.CrudType = {
|
|
165
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
166
|
-
if (message.name !== "") {
|
|
167
|
-
writer.uint32(10).string(message.name);
|
|
168
|
-
}
|
|
169
|
-
for (const v of message.directives) {
|
|
170
|
-
exports.TypeDirective.encode(v, writer.uint32(18).fork()).ldelim();
|
|
171
|
-
}
|
|
172
|
-
for (const v of message.fields) {
|
|
173
|
-
exports.TypeField.encode(v, writer.uint32(26).fork()).ldelim();
|
|
174
|
-
}
|
|
175
|
-
return writer;
|
|
176
|
-
},
|
|
177
|
-
decode(input, length) {
|
|
178
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
179
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
180
|
-
const message = createBaseCrudType();
|
|
181
|
-
while (reader.pos < end) {
|
|
182
|
-
const tag = reader.uint32();
|
|
183
|
-
switch (tag >>> 3) {
|
|
184
|
-
case 1:
|
|
185
|
-
if (tag !== 10) {
|
|
97
|
+
}
|
|
98
|
+
case 4: {
|
|
99
|
+
if (tag !== 34) {
|
|
186
100
|
break;
|
|
187
101
|
}
|
|
188
|
-
message.
|
|
102
|
+
message.nestedTypes.push(exports.ObjectType.decode(reader, reader.uint32()));
|
|
189
103
|
continue;
|
|
190
|
-
|
|
191
|
-
|
|
104
|
+
}
|
|
105
|
+
case 5: {
|
|
106
|
+
if (tag !== 42) {
|
|
192
107
|
break;
|
|
193
108
|
}
|
|
194
|
-
message.
|
|
109
|
+
message.enumTypes.push(exports.EnumType.decode(reader, reader.uint32()));
|
|
195
110
|
continue;
|
|
196
|
-
|
|
197
|
-
|
|
111
|
+
}
|
|
112
|
+
case 6: {
|
|
113
|
+
if (tag !== 50) {
|
|
198
114
|
break;
|
|
199
115
|
}
|
|
200
|
-
message.
|
|
116
|
+
message.options = exports.DeploymentOptions.decode(reader, reader.uint32());
|
|
201
117
|
continue;
|
|
118
|
+
}
|
|
202
119
|
}
|
|
203
120
|
if ((tag & 7) === 4 || tag === 0) {
|
|
204
121
|
break;
|
|
205
122
|
}
|
|
206
|
-
reader.
|
|
123
|
+
reader.skip(tag & 7);
|
|
207
124
|
}
|
|
208
125
|
return message;
|
|
209
126
|
},
|
|
210
127
|
fromJSON(object) {
|
|
211
128
|
return {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
? object.
|
|
129
|
+
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
130
|
+
projectionTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.projectionTypes)
|
|
131
|
+
? object.projectionTypes.map((e) => exports.ObjectType.fromJSON(e))
|
|
215
132
|
: [],
|
|
216
|
-
|
|
133
|
+
crudTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.crudTypes)
|
|
134
|
+
? object.crudTypes.map((e) => exports.ObjectType.fromJSON(e))
|
|
135
|
+
: [],
|
|
136
|
+
nestedTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.nestedTypes)
|
|
137
|
+
? object.nestedTypes.map((e) => exports.ObjectType.fromJSON(e))
|
|
138
|
+
: [],
|
|
139
|
+
enumTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.enumTypes)
|
|
140
|
+
? object.enumTypes.map((e) => exports.EnumType.fromJSON(e))
|
|
141
|
+
: [],
|
|
142
|
+
options: isSet(object.options) ? exports.DeploymentOptions.fromJSON(object.options) : undefined,
|
|
217
143
|
};
|
|
218
144
|
},
|
|
219
145
|
toJSON(message) {
|
|
220
|
-
var _a, _b;
|
|
146
|
+
var _a, _b, _c, _d;
|
|
221
147
|
const obj = {};
|
|
222
|
-
if (message.
|
|
223
|
-
obj.
|
|
224
|
-
}
|
|
225
|
-
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
226
|
-
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
227
|
-
}
|
|
228
|
-
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
229
|
-
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
230
|
-
}
|
|
231
|
-
return obj;
|
|
232
|
-
},
|
|
233
|
-
create(base) {
|
|
234
|
-
return exports.CrudType.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
235
|
-
},
|
|
236
|
-
fromPartial(object) {
|
|
237
|
-
var _a, _b, _c;
|
|
238
|
-
const message = createBaseCrudType();
|
|
239
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
240
|
-
message.directives = ((_b = object.directives) === null || _b === void 0 ? void 0 : _b.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
241
|
-
message.fields = ((_c = object.fields) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeField.fromPartial(e))) || [];
|
|
242
|
-
return message;
|
|
243
|
-
},
|
|
244
|
-
};
|
|
245
|
-
function createBaseNestedType() {
|
|
246
|
-
return { name: "", directives: [], fields: [] };
|
|
247
|
-
}
|
|
248
|
-
exports.NestedType = {
|
|
249
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
250
|
-
if (message.name !== "") {
|
|
251
|
-
writer.uint32(10).string(message.name);
|
|
252
|
-
}
|
|
253
|
-
for (const v of message.directives) {
|
|
254
|
-
exports.TypeDirective.encode(v, writer.uint32(18).fork()).ldelim();
|
|
148
|
+
if (message.namespace !== "") {
|
|
149
|
+
obj.namespace = message.namespace;
|
|
255
150
|
}
|
|
256
|
-
|
|
257
|
-
|
|
151
|
+
if ((_a = message.projectionTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
152
|
+
obj.projectionTypes = message.projectionTypes.map((e) => exports.ObjectType.toJSON(e));
|
|
258
153
|
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
decode(input, length) {
|
|
262
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
263
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
264
|
-
const message = createBaseNestedType();
|
|
265
|
-
while (reader.pos < end) {
|
|
266
|
-
const tag = reader.uint32();
|
|
267
|
-
switch (tag >>> 3) {
|
|
268
|
-
case 1:
|
|
269
|
-
if (tag !== 10) {
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
message.name = reader.string();
|
|
273
|
-
continue;
|
|
274
|
-
case 2:
|
|
275
|
-
if (tag !== 18) {
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
message.directives.push(exports.TypeDirective.decode(reader, reader.uint32()));
|
|
279
|
-
continue;
|
|
280
|
-
case 3:
|
|
281
|
-
if (tag !== 26) {
|
|
282
|
-
break;
|
|
283
|
-
}
|
|
284
|
-
message.fields.push(exports.TypeField.decode(reader, reader.uint32()));
|
|
285
|
-
continue;
|
|
286
|
-
}
|
|
287
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
288
|
-
break;
|
|
289
|
-
}
|
|
290
|
-
reader.skipType(tag & 7);
|
|
154
|
+
if ((_b = message.crudTypes) === null || _b === void 0 ? void 0 : _b.length) {
|
|
155
|
+
obj.crudTypes = message.crudTypes.map((e) => exports.ObjectType.toJSON(e));
|
|
291
156
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
fromJSON(object) {
|
|
295
|
-
return {
|
|
296
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
297
|
-
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
298
|
-
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
299
|
-
: [],
|
|
300
|
-
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
301
|
-
};
|
|
302
|
-
},
|
|
303
|
-
toJSON(message) {
|
|
304
|
-
var _a, _b;
|
|
305
|
-
const obj = {};
|
|
306
|
-
if (message.name !== "") {
|
|
307
|
-
obj.name = message.name;
|
|
157
|
+
if ((_c = message.nestedTypes) === null || _c === void 0 ? void 0 : _c.length) {
|
|
158
|
+
obj.nestedTypes = message.nestedTypes.map((e) => exports.ObjectType.toJSON(e));
|
|
308
159
|
}
|
|
309
|
-
if ((
|
|
310
|
-
obj.
|
|
160
|
+
if ((_d = message.enumTypes) === null || _d === void 0 ? void 0 : _d.length) {
|
|
161
|
+
obj.enumTypes = message.enumTypes.map((e) => exports.EnumType.toJSON(e));
|
|
311
162
|
}
|
|
312
|
-
if (
|
|
313
|
-
obj.
|
|
163
|
+
if (message.options !== undefined) {
|
|
164
|
+
obj.options = exports.DeploymentOptions.toJSON(message.options);
|
|
314
165
|
}
|
|
315
166
|
return obj;
|
|
316
167
|
},
|
|
317
168
|
create(base) {
|
|
318
|
-
return exports.
|
|
169
|
+
return exports.DeploySchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
319
170
|
},
|
|
320
171
|
fromPartial(object) {
|
|
321
|
-
var _a, _b, _c;
|
|
322
|
-
const message =
|
|
323
|
-
message.
|
|
324
|
-
message.
|
|
325
|
-
message.
|
|
172
|
+
var _a, _b, _c, _d, _e;
|
|
173
|
+
const message = createBaseDeploySchemaRequest();
|
|
174
|
+
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
175
|
+
message.projectionTypes = ((_b = object.projectionTypes) === null || _b === void 0 ? void 0 : _b.map((e) => exports.ObjectType.fromPartial(e))) || [];
|
|
176
|
+
message.crudTypes = ((_c = object.crudTypes) === null || _c === void 0 ? void 0 : _c.map((e) => exports.ObjectType.fromPartial(e))) || [];
|
|
177
|
+
message.nestedTypes = ((_d = object.nestedTypes) === null || _d === void 0 ? void 0 : _d.map((e) => exports.ObjectType.fromPartial(e))) || [];
|
|
178
|
+
message.enumTypes = ((_e = object.enumTypes) === null || _e === void 0 ? void 0 : _e.map((e) => exports.EnumType.fromPartial(e))) || [];
|
|
179
|
+
message.options = (object.options !== undefined && object.options !== null)
|
|
180
|
+
? exports.DeploymentOptions.fromPartial(object.options)
|
|
181
|
+
: undefined;
|
|
326
182
|
return message;
|
|
327
183
|
},
|
|
328
184
|
};
|
|
329
|
-
function
|
|
330
|
-
return {
|
|
185
|
+
function createBaseDeploySchemaResponse() {
|
|
186
|
+
return {};
|
|
331
187
|
}
|
|
332
|
-
exports.
|
|
333
|
-
encode(
|
|
334
|
-
if (message.name !== "") {
|
|
335
|
-
writer.uint32(10).string(message.name);
|
|
336
|
-
}
|
|
337
|
-
for (const v of message.type) {
|
|
338
|
-
writer.uint32(18).string(v);
|
|
339
|
-
}
|
|
340
|
-
for (const v of message.directives) {
|
|
341
|
-
exports.TypeDirective.encode(v, writer.uint32(26).fork()).ldelim();
|
|
342
|
-
}
|
|
188
|
+
exports.DeploySchemaResponse = {
|
|
189
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
343
190
|
return writer;
|
|
344
191
|
},
|
|
345
192
|
decode(input, length) {
|
|
346
|
-
const reader = input instanceof
|
|
193
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
347
194
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
348
|
-
const message =
|
|
195
|
+
const message = createBaseDeploySchemaResponse();
|
|
349
196
|
while (reader.pos < end) {
|
|
350
197
|
const tag = reader.uint32();
|
|
351
198
|
switch (tag >>> 3) {
|
|
352
|
-
case 1:
|
|
353
|
-
if (tag !== 10) {
|
|
354
|
-
break;
|
|
355
|
-
}
|
|
356
|
-
message.name = reader.string();
|
|
357
|
-
continue;
|
|
358
|
-
case 2:
|
|
359
|
-
if (tag !== 18) {
|
|
360
|
-
break;
|
|
361
|
-
}
|
|
362
|
-
message.type.push(reader.string());
|
|
363
|
-
continue;
|
|
364
|
-
case 3:
|
|
365
|
-
if (tag !== 26) {
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
message.directives.push(exports.TypeDirective.decode(reader, reader.uint32()));
|
|
369
|
-
continue;
|
|
370
199
|
}
|
|
371
200
|
if ((tag & 7) === 4 || tag === 0) {
|
|
372
201
|
break;
|
|
373
202
|
}
|
|
374
|
-
reader.
|
|
203
|
+
reader.skip(tag & 7);
|
|
375
204
|
}
|
|
376
205
|
return message;
|
|
377
206
|
},
|
|
378
|
-
fromJSON(
|
|
379
|
-
return {
|
|
380
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
381
|
-
type: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.type) ? object.type.map((e) => globalThis.String(e)) : [],
|
|
382
|
-
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
383
|
-
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
384
|
-
: [],
|
|
385
|
-
};
|
|
207
|
+
fromJSON(_) {
|
|
208
|
+
return {};
|
|
386
209
|
},
|
|
387
|
-
toJSON(
|
|
388
|
-
var _a, _b;
|
|
210
|
+
toJSON(_) {
|
|
389
211
|
const obj = {};
|
|
390
|
-
if (message.name !== "") {
|
|
391
|
-
obj.name = message.name;
|
|
392
|
-
}
|
|
393
|
-
if ((_a = message.type) === null || _a === void 0 ? void 0 : _a.length) {
|
|
394
|
-
obj.type = message.type;
|
|
395
|
-
}
|
|
396
|
-
if ((_b = message.directives) === null || _b === void 0 ? void 0 : _b.length) {
|
|
397
|
-
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
398
|
-
}
|
|
399
212
|
return obj;
|
|
400
213
|
},
|
|
401
214
|
create(base) {
|
|
402
|
-
return exports.
|
|
215
|
+
return exports.DeploySchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
403
216
|
},
|
|
404
|
-
fromPartial(
|
|
405
|
-
|
|
406
|
-
const message = createBaseTypeField();
|
|
407
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
408
|
-
message.type = ((_b = object.type) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
409
|
-
message.directives = ((_c = object.directives) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
217
|
+
fromPartial(_) {
|
|
218
|
+
const message = createBaseDeploySchemaResponse();
|
|
410
219
|
return message;
|
|
411
220
|
},
|
|
412
221
|
};
|
|
413
|
-
function
|
|
414
|
-
return {
|
|
222
|
+
function createBaseConfirmSchemaRequest() {
|
|
223
|
+
return { deploymentId: "0" };
|
|
415
224
|
}
|
|
416
|
-
exports.
|
|
417
|
-
encode(message, writer =
|
|
418
|
-
if (message.
|
|
419
|
-
writer.uint32(
|
|
420
|
-
}
|
|
421
|
-
for (const v of message.arguments) {
|
|
422
|
-
exports.TypeArgument.encode(v, writer.uint32(18).fork()).ldelim();
|
|
225
|
+
exports.ConfirmSchemaRequest = {
|
|
226
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
227
|
+
if (message.deploymentId !== "0") {
|
|
228
|
+
writer.uint32(8).int64(message.deploymentId);
|
|
423
229
|
}
|
|
424
230
|
return writer;
|
|
425
231
|
},
|
|
426
232
|
decode(input, length) {
|
|
427
|
-
const reader = input instanceof
|
|
233
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
428
234
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
429
|
-
const message =
|
|
235
|
+
const message = createBaseConfirmSchemaRequest();
|
|
430
236
|
while (reader.pos < end) {
|
|
431
237
|
const tag = reader.uint32();
|
|
432
238
|
switch (tag >>> 3) {
|
|
433
|
-
case 1:
|
|
434
|
-
if (tag !==
|
|
435
|
-
break;
|
|
436
|
-
}
|
|
437
|
-
message.name = reader.string();
|
|
438
|
-
continue;
|
|
439
|
-
case 2:
|
|
440
|
-
if (tag !== 18) {
|
|
239
|
+
case 1: {
|
|
240
|
+
if (tag !== 8) {
|
|
441
241
|
break;
|
|
442
242
|
}
|
|
443
|
-
message.
|
|
243
|
+
message.deploymentId = reader.int64().toString();
|
|
444
244
|
continue;
|
|
245
|
+
}
|
|
445
246
|
}
|
|
446
247
|
if ((tag & 7) === 4 || tag === 0) {
|
|
447
248
|
break;
|
|
448
249
|
}
|
|
449
|
-
reader.
|
|
250
|
+
reader.skip(tag & 7);
|
|
450
251
|
}
|
|
451
252
|
return message;
|
|
452
253
|
},
|
|
453
254
|
fromJSON(object) {
|
|
454
|
-
return {
|
|
455
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
456
|
-
arguments: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.arguments)
|
|
457
|
-
? object.arguments.map((e) => exports.TypeArgument.fromJSON(e))
|
|
458
|
-
: [],
|
|
459
|
-
};
|
|
255
|
+
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
460
256
|
},
|
|
461
257
|
toJSON(message) {
|
|
462
|
-
var _a;
|
|
463
258
|
const obj = {};
|
|
464
|
-
if (message.
|
|
465
|
-
obj.
|
|
466
|
-
}
|
|
467
|
-
if ((_a = message.arguments) === null || _a === void 0 ? void 0 : _a.length) {
|
|
468
|
-
obj.arguments = message.arguments.map((e) => exports.TypeArgument.toJSON(e));
|
|
259
|
+
if (message.deploymentId !== "0") {
|
|
260
|
+
obj.deploymentId = message.deploymentId;
|
|
469
261
|
}
|
|
470
262
|
return obj;
|
|
471
263
|
},
|
|
472
264
|
create(base) {
|
|
473
|
-
return exports.
|
|
265
|
+
return exports.ConfirmSchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
474
266
|
},
|
|
475
267
|
fromPartial(object) {
|
|
476
|
-
var _a
|
|
477
|
-
const message =
|
|
478
|
-
message.
|
|
479
|
-
message.arguments = ((_b = object.arguments) === null || _b === void 0 ? void 0 : _b.map((e) => exports.TypeArgument.fromPartial(e))) || [];
|
|
268
|
+
var _a;
|
|
269
|
+
const message = createBaseConfirmSchemaRequest();
|
|
270
|
+
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
480
271
|
return message;
|
|
481
272
|
},
|
|
482
273
|
};
|
|
483
|
-
function
|
|
484
|
-
return {
|
|
274
|
+
function createBaseConfirmSchemaResponse() {
|
|
275
|
+
return {};
|
|
485
276
|
}
|
|
486
|
-
exports.
|
|
487
|
-
encode(
|
|
488
|
-
if (message.name !== "") {
|
|
489
|
-
writer.uint32(10).string(message.name);
|
|
490
|
-
}
|
|
491
|
-
if (message.value !== "") {
|
|
492
|
-
writer.uint32(18).string(message.value);
|
|
493
|
-
}
|
|
277
|
+
exports.ConfirmSchemaResponse = {
|
|
278
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
494
279
|
return writer;
|
|
495
280
|
},
|
|
496
281
|
decode(input, length) {
|
|
497
|
-
const reader = input instanceof
|
|
282
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
498
283
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
499
|
-
const message =
|
|
284
|
+
const message = createBaseConfirmSchemaResponse();
|
|
500
285
|
while (reader.pos < end) {
|
|
501
286
|
const tag = reader.uint32();
|
|
502
287
|
switch (tag >>> 3) {
|
|
503
|
-
case 1:
|
|
504
|
-
if (tag !== 10) {
|
|
505
|
-
break;
|
|
506
|
-
}
|
|
507
|
-
message.name = reader.string();
|
|
508
|
-
continue;
|
|
509
|
-
case 2:
|
|
510
|
-
if (tag !== 18) {
|
|
511
|
-
break;
|
|
512
|
-
}
|
|
513
|
-
message.value = reader.string();
|
|
514
|
-
continue;
|
|
515
288
|
}
|
|
516
289
|
if ((tag & 7) === 4 || tag === 0) {
|
|
517
290
|
break;
|
|
518
291
|
}
|
|
519
|
-
reader.
|
|
292
|
+
reader.skip(tag & 7);
|
|
520
293
|
}
|
|
521
294
|
return message;
|
|
522
295
|
},
|
|
523
|
-
fromJSON(
|
|
524
|
-
return {
|
|
525
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
526
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
527
|
-
};
|
|
296
|
+
fromJSON(_) {
|
|
297
|
+
return {};
|
|
528
298
|
},
|
|
529
|
-
toJSON(
|
|
299
|
+
toJSON(_) {
|
|
530
300
|
const obj = {};
|
|
531
|
-
if (message.name !== "") {
|
|
532
|
-
obj.name = message.name;
|
|
533
|
-
}
|
|
534
|
-
if (message.value !== "") {
|
|
535
|
-
obj.value = message.value;
|
|
536
|
-
}
|
|
537
301
|
return obj;
|
|
538
302
|
},
|
|
539
303
|
create(base) {
|
|
540
|
-
return exports.
|
|
304
|
+
return exports.ConfirmSchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
541
305
|
},
|
|
542
|
-
fromPartial(
|
|
543
|
-
|
|
544
|
-
const message = createBaseTypeArgument();
|
|
545
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
546
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
306
|
+
fromPartial(_) {
|
|
307
|
+
const message = createBaseConfirmSchemaResponse();
|
|
547
308
|
return message;
|
|
548
309
|
},
|
|
549
310
|
};
|
|
550
|
-
function
|
|
551
|
-
return {
|
|
311
|
+
function createBaseRollbackSchemaRequest() {
|
|
312
|
+
return { deploymentId: "0" };
|
|
552
313
|
}
|
|
553
|
-
exports.
|
|
554
|
-
encode(message, writer =
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
}
|
|
558
|
-
for (const v of message.crudTypes) {
|
|
559
|
-
exports.CrudType.encode(v, writer.uint32(18).fork()).ldelim();
|
|
560
|
-
}
|
|
561
|
-
for (const v of message.enums) {
|
|
562
|
-
exports.EnumType.encode(v, writer.uint32(26).fork()).ldelim();
|
|
563
|
-
}
|
|
564
|
-
for (const v of message.nestedTypes) {
|
|
565
|
-
exports.NestedType.encode(v, writer.uint32(34).fork()).ldelim();
|
|
566
|
-
}
|
|
567
|
-
if (message.namespace !== "") {
|
|
568
|
-
writer.uint32(42).string(message.namespace);
|
|
314
|
+
exports.RollbackSchemaRequest = {
|
|
315
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
316
|
+
if (message.deploymentId !== "0") {
|
|
317
|
+
writer.uint32(8).int64(message.deploymentId);
|
|
569
318
|
}
|
|
570
319
|
return writer;
|
|
571
320
|
},
|
|
572
321
|
decode(input, length) {
|
|
573
|
-
const reader = input instanceof
|
|
322
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
574
323
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
575
|
-
const message =
|
|
324
|
+
const message = createBaseRollbackSchemaRequest();
|
|
576
325
|
while (reader.pos < end) {
|
|
577
326
|
const tag = reader.uint32();
|
|
578
327
|
switch (tag >>> 3) {
|
|
579
|
-
case 1:
|
|
580
|
-
if (tag !==
|
|
581
|
-
break;
|
|
582
|
-
}
|
|
583
|
-
message.projectionTypes.push(exports.ProjectionType.decode(reader, reader.uint32()));
|
|
584
|
-
continue;
|
|
585
|
-
case 2:
|
|
586
|
-
if (tag !== 18) {
|
|
587
|
-
break;
|
|
588
|
-
}
|
|
589
|
-
message.crudTypes.push(exports.CrudType.decode(reader, reader.uint32()));
|
|
590
|
-
continue;
|
|
591
|
-
case 3:
|
|
592
|
-
if (tag !== 26) {
|
|
593
|
-
break;
|
|
594
|
-
}
|
|
595
|
-
message.enums.push(exports.EnumType.decode(reader, reader.uint32()));
|
|
596
|
-
continue;
|
|
597
|
-
case 4:
|
|
598
|
-
if (tag !== 34) {
|
|
599
|
-
break;
|
|
600
|
-
}
|
|
601
|
-
message.nestedTypes.push(exports.NestedType.decode(reader, reader.uint32()));
|
|
602
|
-
continue;
|
|
603
|
-
case 5:
|
|
604
|
-
if (tag !== 42) {
|
|
328
|
+
case 1: {
|
|
329
|
+
if (tag !== 8) {
|
|
605
330
|
break;
|
|
606
331
|
}
|
|
607
|
-
message.
|
|
332
|
+
message.deploymentId = reader.int64().toString();
|
|
608
333
|
continue;
|
|
334
|
+
}
|
|
609
335
|
}
|
|
610
336
|
if ((tag & 7) === 4 || tag === 0) {
|
|
611
337
|
break;
|
|
612
338
|
}
|
|
613
|
-
reader.
|
|
339
|
+
reader.skip(tag & 7);
|
|
614
340
|
}
|
|
615
341
|
return message;
|
|
616
342
|
},
|
|
617
|
-
fromJSON(object) {
|
|
618
|
-
return {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
: [],
|
|
625
|
-
enums: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.enums) ? object.enums.map((e) => exports.EnumType.fromJSON(e)) : [],
|
|
626
|
-
nestedTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.nestedTypes)
|
|
627
|
-
? object.nestedTypes.map((e) => exports.NestedType.fromJSON(e))
|
|
628
|
-
: [],
|
|
629
|
-
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
630
|
-
};
|
|
631
|
-
},
|
|
632
|
-
toJSON(message) {
|
|
633
|
-
var _a, _b, _c, _d;
|
|
634
|
-
const obj = {};
|
|
635
|
-
if ((_a = message.projectionTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
636
|
-
obj.projectionTypes = message.projectionTypes.map((e) => exports.ProjectionType.toJSON(e));
|
|
637
|
-
}
|
|
638
|
-
if ((_b = message.crudTypes) === null || _b === void 0 ? void 0 : _b.length) {
|
|
639
|
-
obj.crudTypes = message.crudTypes.map((e) => exports.CrudType.toJSON(e));
|
|
640
|
-
}
|
|
641
|
-
if ((_c = message.enums) === null || _c === void 0 ? void 0 : _c.length) {
|
|
642
|
-
obj.enums = message.enums.map((e) => exports.EnumType.toJSON(e));
|
|
643
|
-
}
|
|
644
|
-
if ((_d = message.nestedTypes) === null || _d === void 0 ? void 0 : _d.length) {
|
|
645
|
-
obj.nestedTypes = message.nestedTypes.map((e) => exports.NestedType.toJSON(e));
|
|
646
|
-
}
|
|
647
|
-
if (message.namespace !== "") {
|
|
648
|
-
obj.namespace = message.namespace;
|
|
343
|
+
fromJSON(object) {
|
|
344
|
+
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
345
|
+
},
|
|
346
|
+
toJSON(message) {
|
|
347
|
+
const obj = {};
|
|
348
|
+
if (message.deploymentId !== "0") {
|
|
349
|
+
obj.deploymentId = message.deploymentId;
|
|
649
350
|
}
|
|
650
351
|
return obj;
|
|
651
352
|
},
|
|
652
353
|
create(base) {
|
|
653
|
-
return exports.
|
|
354
|
+
return exports.RollbackSchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
654
355
|
},
|
|
655
356
|
fromPartial(object) {
|
|
656
|
-
var _a
|
|
657
|
-
const message =
|
|
658
|
-
message.
|
|
659
|
-
message.crudTypes = ((_b = object.crudTypes) === null || _b === void 0 ? void 0 : _b.map((e) => exports.CrudType.fromPartial(e))) || [];
|
|
660
|
-
message.enums = ((_c = object.enums) === null || _c === void 0 ? void 0 : _c.map((e) => exports.EnumType.fromPartial(e))) || [];
|
|
661
|
-
message.nestedTypes = ((_d = object.nestedTypes) === null || _d === void 0 ? void 0 : _d.map((e) => exports.NestedType.fromPartial(e))) || [];
|
|
662
|
-
message.namespace = (_e = object.namespace) !== null && _e !== void 0 ? _e : "";
|
|
357
|
+
var _a;
|
|
358
|
+
const message = createBaseRollbackSchemaRequest();
|
|
359
|
+
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
663
360
|
return message;
|
|
664
361
|
},
|
|
665
362
|
};
|
|
666
|
-
function
|
|
363
|
+
function createBaseRollbackSchemaResponse() {
|
|
667
364
|
return {};
|
|
668
365
|
}
|
|
669
|
-
exports.
|
|
670
|
-
encode(_, writer =
|
|
366
|
+
exports.RollbackSchemaResponse = {
|
|
367
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
671
368
|
return writer;
|
|
672
369
|
},
|
|
673
370
|
decode(input, length) {
|
|
674
|
-
const reader = input instanceof
|
|
371
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
675
372
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
676
|
-
const message =
|
|
373
|
+
const message = createBaseRollbackSchemaResponse();
|
|
677
374
|
while (reader.pos < end) {
|
|
678
375
|
const tag = reader.uint32();
|
|
679
376
|
switch (tag >>> 3) {
|
|
@@ -681,7 +378,7 @@ exports.RegisterMigrationResponse = {
|
|
|
681
378
|
if ((tag & 7) === 4 || tag === 0) {
|
|
682
379
|
break;
|
|
683
380
|
}
|
|
684
|
-
reader.
|
|
381
|
+
reader.skip(tag & 7);
|
|
685
382
|
}
|
|
686
383
|
return message;
|
|
687
384
|
},
|
|
@@ -693,376 +390,553 @@ exports.RegisterMigrationResponse = {
|
|
|
693
390
|
return obj;
|
|
694
391
|
},
|
|
695
392
|
create(base) {
|
|
696
|
-
return exports.
|
|
393
|
+
return exports.RollbackSchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
697
394
|
},
|
|
698
395
|
fromPartial(_) {
|
|
699
|
-
const message =
|
|
396
|
+
const message = createBaseRollbackSchemaResponse();
|
|
700
397
|
return message;
|
|
701
398
|
},
|
|
702
399
|
};
|
|
703
|
-
function
|
|
704
|
-
return {
|
|
400
|
+
function createBaseGetSchemaDeploymentRequest() {
|
|
401
|
+
return { deploymentId: "0" };
|
|
705
402
|
}
|
|
706
|
-
exports.
|
|
707
|
-
encode(message, writer =
|
|
708
|
-
if (message.
|
|
709
|
-
writer.uint32(
|
|
403
|
+
exports.GetSchemaDeploymentRequest = {
|
|
404
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
405
|
+
if (message.deploymentId !== "0") {
|
|
406
|
+
writer.uint32(8).int64(message.deploymentId);
|
|
710
407
|
}
|
|
711
408
|
return writer;
|
|
712
409
|
},
|
|
713
410
|
decode(input, length) {
|
|
714
|
-
const reader = input instanceof
|
|
411
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
715
412
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
716
|
-
const message =
|
|
413
|
+
const message = createBaseGetSchemaDeploymentRequest();
|
|
717
414
|
while (reader.pos < end) {
|
|
718
415
|
const tag = reader.uint32();
|
|
719
416
|
switch (tag >>> 3) {
|
|
720
|
-
case 1:
|
|
721
|
-
if (tag !==
|
|
417
|
+
case 1: {
|
|
418
|
+
if (tag !== 8) {
|
|
722
419
|
break;
|
|
723
420
|
}
|
|
724
|
-
message.
|
|
421
|
+
message.deploymentId = reader.int64().toString();
|
|
725
422
|
continue;
|
|
423
|
+
}
|
|
726
424
|
}
|
|
727
425
|
if ((tag & 7) === 4 || tag === 0) {
|
|
728
426
|
break;
|
|
729
427
|
}
|
|
730
|
-
reader.
|
|
428
|
+
reader.skip(tag & 7);
|
|
731
429
|
}
|
|
732
430
|
return message;
|
|
733
431
|
},
|
|
734
432
|
fromJSON(object) {
|
|
735
|
-
return {
|
|
433
|
+
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
736
434
|
},
|
|
737
435
|
toJSON(message) {
|
|
738
436
|
const obj = {};
|
|
739
|
-
if (message.
|
|
740
|
-
obj.
|
|
437
|
+
if (message.deploymentId !== "0") {
|
|
438
|
+
obj.deploymentId = message.deploymentId;
|
|
741
439
|
}
|
|
742
440
|
return obj;
|
|
743
441
|
},
|
|
744
442
|
create(base) {
|
|
745
|
-
return exports.
|
|
443
|
+
return exports.GetSchemaDeploymentRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
746
444
|
},
|
|
747
445
|
fromPartial(object) {
|
|
748
446
|
var _a;
|
|
749
|
-
const message =
|
|
750
|
-
message.
|
|
447
|
+
const message = createBaseGetSchemaDeploymentRequest();
|
|
448
|
+
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
751
449
|
return message;
|
|
752
450
|
},
|
|
753
451
|
};
|
|
754
|
-
function
|
|
755
|
-
return {};
|
|
452
|
+
function createBaseGetSchemaDeploymentResponse() {
|
|
453
|
+
return { progress: 0 };
|
|
756
454
|
}
|
|
757
|
-
exports.
|
|
758
|
-
encode(
|
|
455
|
+
exports.GetSchemaDeploymentResponse = {
|
|
456
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
457
|
+
if (message.progress !== 0) {
|
|
458
|
+
writer.uint32(8).uint32(message.progress);
|
|
459
|
+
}
|
|
759
460
|
return writer;
|
|
760
461
|
},
|
|
761
462
|
decode(input, length) {
|
|
762
|
-
const reader = input instanceof
|
|
463
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
763
464
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
764
|
-
const message =
|
|
465
|
+
const message = createBaseGetSchemaDeploymentResponse();
|
|
765
466
|
while (reader.pos < end) {
|
|
766
467
|
const tag = reader.uint32();
|
|
767
468
|
switch (tag >>> 3) {
|
|
469
|
+
case 1: {
|
|
470
|
+
if (tag !== 8) {
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
message.progress = reader.uint32();
|
|
474
|
+
continue;
|
|
475
|
+
}
|
|
768
476
|
}
|
|
769
477
|
if ((tag & 7) === 4 || tag === 0) {
|
|
770
478
|
break;
|
|
771
479
|
}
|
|
772
|
-
reader.
|
|
480
|
+
reader.skip(tag & 7);
|
|
773
481
|
}
|
|
774
482
|
return message;
|
|
775
483
|
},
|
|
776
|
-
fromJSON(
|
|
777
|
-
return {};
|
|
484
|
+
fromJSON(object) {
|
|
485
|
+
return { progress: isSet(object.progress) ? globalThis.Number(object.progress) : 0 };
|
|
778
486
|
},
|
|
779
|
-
toJSON(
|
|
487
|
+
toJSON(message) {
|
|
780
488
|
const obj = {};
|
|
489
|
+
if (message.progress !== 0) {
|
|
490
|
+
obj.progress = Math.round(message.progress);
|
|
491
|
+
}
|
|
781
492
|
return obj;
|
|
782
493
|
},
|
|
783
494
|
create(base) {
|
|
784
|
-
return exports.
|
|
495
|
+
return exports.GetSchemaDeploymentResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
785
496
|
},
|
|
786
|
-
fromPartial(
|
|
787
|
-
|
|
497
|
+
fromPartial(object) {
|
|
498
|
+
var _a;
|
|
499
|
+
const message = createBaseGetSchemaDeploymentResponse();
|
|
500
|
+
message.progress = (_a = object.progress) !== null && _a !== void 0 ? _a : 0;
|
|
788
501
|
return message;
|
|
789
502
|
},
|
|
790
503
|
};
|
|
791
|
-
function
|
|
792
|
-
return {
|
|
504
|
+
function createBaseDeploymentOptions() {
|
|
505
|
+
return { target: exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE };
|
|
793
506
|
}
|
|
794
|
-
exports.
|
|
795
|
-
encode(message, writer =
|
|
796
|
-
if (message.
|
|
797
|
-
writer.uint32(
|
|
507
|
+
exports.DeploymentOptions = {
|
|
508
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
509
|
+
if (message.target !== exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE) {
|
|
510
|
+
writer.uint32(8).int32(deploymentTargetToNumber(message.target));
|
|
798
511
|
}
|
|
799
512
|
return writer;
|
|
800
513
|
},
|
|
801
514
|
decode(input, length) {
|
|
802
|
-
const reader = input instanceof
|
|
515
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
803
516
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
804
|
-
const message =
|
|
517
|
+
const message = createBaseDeploymentOptions();
|
|
805
518
|
while (reader.pos < end) {
|
|
806
519
|
const tag = reader.uint32();
|
|
807
520
|
switch (tag >>> 3) {
|
|
808
|
-
case 1:
|
|
809
|
-
if (tag !==
|
|
521
|
+
case 1: {
|
|
522
|
+
if (tag !== 8) {
|
|
810
523
|
break;
|
|
811
524
|
}
|
|
812
|
-
message.
|
|
525
|
+
message.target = deploymentTargetFromJSON(reader.int32());
|
|
813
526
|
continue;
|
|
527
|
+
}
|
|
814
528
|
}
|
|
815
529
|
if ((tag & 7) === 4 || tag === 0) {
|
|
816
530
|
break;
|
|
817
531
|
}
|
|
818
|
-
reader.
|
|
532
|
+
reader.skip(tag & 7);
|
|
819
533
|
}
|
|
820
534
|
return message;
|
|
821
535
|
},
|
|
822
536
|
fromJSON(object) {
|
|
823
|
-
return {
|
|
537
|
+
return {
|
|
538
|
+
target: isSet(object.target) ? deploymentTargetFromJSON(object.target) : exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE,
|
|
539
|
+
};
|
|
824
540
|
},
|
|
825
541
|
toJSON(message) {
|
|
826
542
|
const obj = {};
|
|
827
|
-
if (message.
|
|
828
|
-
obj.
|
|
543
|
+
if (message.target !== exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE) {
|
|
544
|
+
obj.target = deploymentTargetToJSON(message.target);
|
|
829
545
|
}
|
|
830
546
|
return obj;
|
|
831
547
|
},
|
|
832
548
|
create(base) {
|
|
833
|
-
return exports.
|
|
549
|
+
return exports.DeploymentOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
834
550
|
},
|
|
835
551
|
fromPartial(object) {
|
|
836
552
|
var _a;
|
|
837
|
-
const message =
|
|
838
|
-
message.
|
|
553
|
+
const message = createBaseDeploymentOptions();
|
|
554
|
+
message.target = (_a = object.target) !== null && _a !== void 0 ? _a : exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE;
|
|
839
555
|
return message;
|
|
840
556
|
},
|
|
841
557
|
};
|
|
842
|
-
function
|
|
843
|
-
return {};
|
|
558
|
+
function createBaseObjectType() {
|
|
559
|
+
return { name: "", directives: [], fields: [] };
|
|
844
560
|
}
|
|
845
|
-
exports.
|
|
846
|
-
encode(
|
|
561
|
+
exports.ObjectType = {
|
|
562
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
563
|
+
if (message.name !== "") {
|
|
564
|
+
writer.uint32(10).string(message.name);
|
|
565
|
+
}
|
|
566
|
+
for (const v of message.directives) {
|
|
567
|
+
exports.TypeDirective.encode(v, writer.uint32(18).fork()).join();
|
|
568
|
+
}
|
|
569
|
+
for (const v of message.fields) {
|
|
570
|
+
exports.TypeField.encode(v, writer.uint32(26).fork()).join();
|
|
571
|
+
}
|
|
847
572
|
return writer;
|
|
848
573
|
},
|
|
849
574
|
decode(input, length) {
|
|
850
|
-
const reader = input instanceof
|
|
575
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
851
576
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
852
|
-
const message =
|
|
577
|
+
const message = createBaseObjectType();
|
|
853
578
|
while (reader.pos < end) {
|
|
854
579
|
const tag = reader.uint32();
|
|
855
580
|
switch (tag >>> 3) {
|
|
581
|
+
case 1: {
|
|
582
|
+
if (tag !== 10) {
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
message.name = reader.string();
|
|
586
|
+
continue;
|
|
587
|
+
}
|
|
588
|
+
case 2: {
|
|
589
|
+
if (tag !== 18) {
|
|
590
|
+
break;
|
|
591
|
+
}
|
|
592
|
+
message.directives.push(exports.TypeDirective.decode(reader, reader.uint32()));
|
|
593
|
+
continue;
|
|
594
|
+
}
|
|
595
|
+
case 3: {
|
|
596
|
+
if (tag !== 26) {
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
599
|
+
message.fields.push(exports.TypeField.decode(reader, reader.uint32()));
|
|
600
|
+
continue;
|
|
601
|
+
}
|
|
856
602
|
}
|
|
857
603
|
if ((tag & 7) === 4 || tag === 0) {
|
|
858
604
|
break;
|
|
859
605
|
}
|
|
860
|
-
reader.
|
|
606
|
+
reader.skip(tag & 7);
|
|
861
607
|
}
|
|
862
608
|
return message;
|
|
863
609
|
},
|
|
864
|
-
fromJSON(
|
|
865
|
-
return {
|
|
610
|
+
fromJSON(object) {
|
|
611
|
+
return {
|
|
612
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
613
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
614
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
615
|
+
: [],
|
|
616
|
+
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
617
|
+
};
|
|
866
618
|
},
|
|
867
|
-
toJSON(
|
|
619
|
+
toJSON(message) {
|
|
620
|
+
var _a, _b;
|
|
868
621
|
const obj = {};
|
|
622
|
+
if (message.name !== "") {
|
|
623
|
+
obj.name = message.name;
|
|
624
|
+
}
|
|
625
|
+
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
626
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
627
|
+
}
|
|
628
|
+
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
629
|
+
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
630
|
+
}
|
|
869
631
|
return obj;
|
|
870
632
|
},
|
|
871
633
|
create(base) {
|
|
872
|
-
return exports.
|
|
634
|
+
return exports.ObjectType.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
873
635
|
},
|
|
874
|
-
fromPartial(
|
|
875
|
-
|
|
636
|
+
fromPartial(object) {
|
|
637
|
+
var _a, _b, _c;
|
|
638
|
+
const message = createBaseObjectType();
|
|
639
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
640
|
+
message.directives = ((_b = object.directives) === null || _b === void 0 ? void 0 : _b.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
641
|
+
message.fields = ((_c = object.fields) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeField.fromPartial(e))) || [];
|
|
876
642
|
return message;
|
|
877
643
|
},
|
|
878
644
|
};
|
|
879
|
-
function
|
|
880
|
-
return {
|
|
645
|
+
function createBaseTypeDirective() {
|
|
646
|
+
return { name: "", arguments: [] };
|
|
881
647
|
}
|
|
882
|
-
exports.
|
|
883
|
-
encode(message, writer =
|
|
884
|
-
if (message.
|
|
885
|
-
writer.uint32(10).string(message.
|
|
648
|
+
exports.TypeDirective = {
|
|
649
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
650
|
+
if (message.name !== "") {
|
|
651
|
+
writer.uint32(10).string(message.name);
|
|
652
|
+
}
|
|
653
|
+
for (const v of message.arguments) {
|
|
654
|
+
exports.TypeArgument.encode(v, writer.uint32(18).fork()).join();
|
|
886
655
|
}
|
|
887
656
|
return writer;
|
|
888
657
|
},
|
|
889
658
|
decode(input, length) {
|
|
890
|
-
const reader = input instanceof
|
|
659
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
891
660
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
892
|
-
const message =
|
|
661
|
+
const message = createBaseTypeDirective();
|
|
893
662
|
while (reader.pos < end) {
|
|
894
663
|
const tag = reader.uint32();
|
|
895
664
|
switch (tag >>> 3) {
|
|
896
|
-
case 1:
|
|
665
|
+
case 1: {
|
|
897
666
|
if (tag !== 10) {
|
|
898
667
|
break;
|
|
899
668
|
}
|
|
900
|
-
message.
|
|
669
|
+
message.name = reader.string();
|
|
670
|
+
continue;
|
|
671
|
+
}
|
|
672
|
+
case 2: {
|
|
673
|
+
if (tag !== 18) {
|
|
674
|
+
break;
|
|
675
|
+
}
|
|
676
|
+
message.arguments.push(exports.TypeArgument.decode(reader, reader.uint32()));
|
|
901
677
|
continue;
|
|
678
|
+
}
|
|
902
679
|
}
|
|
903
680
|
if ((tag & 7) === 4 || tag === 0) {
|
|
904
681
|
break;
|
|
905
682
|
}
|
|
906
|
-
reader.
|
|
683
|
+
reader.skip(tag & 7);
|
|
907
684
|
}
|
|
908
685
|
return message;
|
|
909
686
|
},
|
|
910
687
|
fromJSON(object) {
|
|
911
|
-
return {
|
|
688
|
+
return {
|
|
689
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
690
|
+
arguments: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.arguments)
|
|
691
|
+
? object.arguments.map((e) => exports.TypeArgument.fromJSON(e))
|
|
692
|
+
: [],
|
|
693
|
+
};
|
|
912
694
|
},
|
|
913
695
|
toJSON(message) {
|
|
696
|
+
var _a;
|
|
914
697
|
const obj = {};
|
|
915
|
-
if (message.
|
|
916
|
-
obj.
|
|
698
|
+
if (message.name !== "") {
|
|
699
|
+
obj.name = message.name;
|
|
700
|
+
}
|
|
701
|
+
if ((_a = message.arguments) === null || _a === void 0 ? void 0 : _a.length) {
|
|
702
|
+
obj.arguments = message.arguments.map((e) => exports.TypeArgument.toJSON(e));
|
|
917
703
|
}
|
|
918
704
|
return obj;
|
|
919
705
|
},
|
|
920
706
|
create(base) {
|
|
921
|
-
return exports.
|
|
707
|
+
return exports.TypeDirective.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
922
708
|
},
|
|
923
709
|
fromPartial(object) {
|
|
924
|
-
var _a;
|
|
925
|
-
const message =
|
|
926
|
-
message.
|
|
710
|
+
var _a, _b;
|
|
711
|
+
const message = createBaseTypeDirective();
|
|
712
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
713
|
+
message.arguments = ((_b = object.arguments) === null || _b === void 0 ? void 0 : _b.map((e) => exports.TypeArgument.fromPartial(e))) || [];
|
|
927
714
|
return message;
|
|
928
715
|
},
|
|
929
716
|
};
|
|
930
|
-
function
|
|
931
|
-
return {};
|
|
717
|
+
function createBaseTypeField() {
|
|
718
|
+
return { name: "", type: [], directives: [] };
|
|
932
719
|
}
|
|
933
|
-
exports.
|
|
934
|
-
encode(
|
|
720
|
+
exports.TypeField = {
|
|
721
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
722
|
+
if (message.name !== "") {
|
|
723
|
+
writer.uint32(10).string(message.name);
|
|
724
|
+
}
|
|
725
|
+
for (const v of message.type) {
|
|
726
|
+
writer.uint32(18).string(v);
|
|
727
|
+
}
|
|
728
|
+
for (const v of message.directives) {
|
|
729
|
+
exports.TypeDirective.encode(v, writer.uint32(26).fork()).join();
|
|
730
|
+
}
|
|
935
731
|
return writer;
|
|
936
732
|
},
|
|
937
733
|
decode(input, length) {
|
|
938
|
-
const reader = input instanceof
|
|
734
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
939
735
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
940
|
-
const message =
|
|
736
|
+
const message = createBaseTypeField();
|
|
941
737
|
while (reader.pos < end) {
|
|
942
738
|
const tag = reader.uint32();
|
|
943
739
|
switch (tag >>> 3) {
|
|
740
|
+
case 1: {
|
|
741
|
+
if (tag !== 10) {
|
|
742
|
+
break;
|
|
743
|
+
}
|
|
744
|
+
message.name = reader.string();
|
|
745
|
+
continue;
|
|
746
|
+
}
|
|
747
|
+
case 2: {
|
|
748
|
+
if (tag !== 18) {
|
|
749
|
+
break;
|
|
750
|
+
}
|
|
751
|
+
message.type.push(reader.string());
|
|
752
|
+
continue;
|
|
753
|
+
}
|
|
754
|
+
case 3: {
|
|
755
|
+
if (tag !== 26) {
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
message.directives.push(exports.TypeDirective.decode(reader, reader.uint32()));
|
|
759
|
+
continue;
|
|
760
|
+
}
|
|
944
761
|
}
|
|
945
762
|
if ((tag & 7) === 4 || tag === 0) {
|
|
946
763
|
break;
|
|
947
764
|
}
|
|
948
|
-
reader.
|
|
765
|
+
reader.skip(tag & 7);
|
|
949
766
|
}
|
|
950
767
|
return message;
|
|
951
768
|
},
|
|
952
|
-
fromJSON(
|
|
953
|
-
return {
|
|
769
|
+
fromJSON(object) {
|
|
770
|
+
return {
|
|
771
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
772
|
+
type: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.type) ? object.type.map((e) => globalThis.String(e)) : [],
|
|
773
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
774
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
775
|
+
: [],
|
|
776
|
+
};
|
|
954
777
|
},
|
|
955
|
-
toJSON(
|
|
778
|
+
toJSON(message) {
|
|
779
|
+
var _a, _b;
|
|
956
780
|
const obj = {};
|
|
781
|
+
if (message.name !== "") {
|
|
782
|
+
obj.name = message.name;
|
|
783
|
+
}
|
|
784
|
+
if ((_a = message.type) === null || _a === void 0 ? void 0 : _a.length) {
|
|
785
|
+
obj.type = message.type;
|
|
786
|
+
}
|
|
787
|
+
if ((_b = message.directives) === null || _b === void 0 ? void 0 : _b.length) {
|
|
788
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
789
|
+
}
|
|
957
790
|
return obj;
|
|
958
791
|
},
|
|
959
792
|
create(base) {
|
|
960
|
-
return exports.
|
|
793
|
+
return exports.TypeField.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
961
794
|
},
|
|
962
|
-
fromPartial(
|
|
963
|
-
|
|
795
|
+
fromPartial(object) {
|
|
796
|
+
var _a, _b, _c;
|
|
797
|
+
const message = createBaseTypeField();
|
|
798
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
799
|
+
message.type = ((_b = object.type) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
800
|
+
message.directives = ((_c = object.directives) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
964
801
|
return message;
|
|
965
802
|
},
|
|
966
803
|
};
|
|
967
|
-
function
|
|
968
|
-
return {
|
|
804
|
+
function createBaseTypeArgument() {
|
|
805
|
+
return { name: "", value: "" };
|
|
969
806
|
}
|
|
970
|
-
exports.
|
|
971
|
-
encode(message, writer =
|
|
972
|
-
if (message.
|
|
973
|
-
writer.uint32(10).string(message.
|
|
807
|
+
exports.TypeArgument = {
|
|
808
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
809
|
+
if (message.name !== "") {
|
|
810
|
+
writer.uint32(10).string(message.name);
|
|
811
|
+
}
|
|
812
|
+
if (message.value !== "") {
|
|
813
|
+
writer.uint32(18).string(message.value);
|
|
974
814
|
}
|
|
975
815
|
return writer;
|
|
976
816
|
},
|
|
977
817
|
decode(input, length) {
|
|
978
|
-
const reader = input instanceof
|
|
818
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
979
819
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
980
|
-
const message =
|
|
820
|
+
const message = createBaseTypeArgument();
|
|
981
821
|
while (reader.pos < end) {
|
|
982
822
|
const tag = reader.uint32();
|
|
983
823
|
switch (tag >>> 3) {
|
|
984
|
-
case 1:
|
|
824
|
+
case 1: {
|
|
985
825
|
if (tag !== 10) {
|
|
986
826
|
break;
|
|
987
827
|
}
|
|
988
|
-
message.
|
|
828
|
+
message.name = reader.string();
|
|
989
829
|
continue;
|
|
830
|
+
}
|
|
831
|
+
case 2: {
|
|
832
|
+
if (tag !== 18) {
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
message.value = reader.string();
|
|
836
|
+
continue;
|
|
837
|
+
}
|
|
990
838
|
}
|
|
991
839
|
if ((tag & 7) === 4 || tag === 0) {
|
|
992
840
|
break;
|
|
993
841
|
}
|
|
994
|
-
reader.
|
|
842
|
+
reader.skip(tag & 7);
|
|
995
843
|
}
|
|
996
844
|
return message;
|
|
997
845
|
},
|
|
998
846
|
fromJSON(object) {
|
|
999
|
-
return {
|
|
847
|
+
return {
|
|
848
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
849
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
850
|
+
};
|
|
1000
851
|
},
|
|
1001
852
|
toJSON(message) {
|
|
1002
853
|
const obj = {};
|
|
1003
|
-
if (message.
|
|
1004
|
-
obj.
|
|
854
|
+
if (message.name !== "") {
|
|
855
|
+
obj.name = message.name;
|
|
856
|
+
}
|
|
857
|
+
if (message.value !== "") {
|
|
858
|
+
obj.value = message.value;
|
|
1005
859
|
}
|
|
1006
860
|
return obj;
|
|
1007
861
|
},
|
|
1008
862
|
create(base) {
|
|
1009
|
-
return exports.
|
|
863
|
+
return exports.TypeArgument.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1010
864
|
},
|
|
1011
865
|
fromPartial(object) {
|
|
1012
|
-
var _a;
|
|
1013
|
-
const message =
|
|
1014
|
-
message.
|
|
866
|
+
var _a, _b;
|
|
867
|
+
const message = createBaseTypeArgument();
|
|
868
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
869
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
1015
870
|
return message;
|
|
1016
871
|
},
|
|
1017
872
|
};
|
|
1018
|
-
function
|
|
1019
|
-
return {
|
|
873
|
+
function createBaseEnumType() {
|
|
874
|
+
return { name: "", values: [] };
|
|
1020
875
|
}
|
|
1021
|
-
exports.
|
|
1022
|
-
encode(message, writer =
|
|
1023
|
-
if (message.
|
|
1024
|
-
writer.uint32(
|
|
876
|
+
exports.EnumType = {
|
|
877
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
878
|
+
if (message.name !== "") {
|
|
879
|
+
writer.uint32(10).string(message.name);
|
|
880
|
+
}
|
|
881
|
+
for (const v of message.values) {
|
|
882
|
+
writer.uint32(18).string(v);
|
|
1025
883
|
}
|
|
1026
884
|
return writer;
|
|
1027
885
|
},
|
|
1028
886
|
decode(input, length) {
|
|
1029
|
-
const reader = input instanceof
|
|
887
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1030
888
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1031
|
-
const message =
|
|
889
|
+
const message = createBaseEnumType();
|
|
1032
890
|
while (reader.pos < end) {
|
|
1033
891
|
const tag = reader.uint32();
|
|
1034
892
|
switch (tag >>> 3) {
|
|
1035
|
-
case 1:
|
|
1036
|
-
if (tag !==
|
|
893
|
+
case 1: {
|
|
894
|
+
if (tag !== 10) {
|
|
895
|
+
break;
|
|
896
|
+
}
|
|
897
|
+
message.name = reader.string();
|
|
898
|
+
continue;
|
|
899
|
+
}
|
|
900
|
+
case 2: {
|
|
901
|
+
if (tag !== 18) {
|
|
1037
902
|
break;
|
|
1038
903
|
}
|
|
1039
|
-
message.
|
|
904
|
+
message.values.push(reader.string());
|
|
1040
905
|
continue;
|
|
906
|
+
}
|
|
1041
907
|
}
|
|
1042
908
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1043
909
|
break;
|
|
1044
910
|
}
|
|
1045
|
-
reader.
|
|
911
|
+
reader.skip(tag & 7);
|
|
1046
912
|
}
|
|
1047
913
|
return message;
|
|
1048
914
|
},
|
|
1049
915
|
fromJSON(object) {
|
|
1050
|
-
return {
|
|
916
|
+
return {
|
|
917
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
918
|
+
values: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.values) ? object.values.map((e) => globalThis.String(e)) : [],
|
|
919
|
+
};
|
|
1051
920
|
},
|
|
1052
921
|
toJSON(message) {
|
|
922
|
+
var _a;
|
|
1053
923
|
const obj = {};
|
|
1054
|
-
if (message.
|
|
1055
|
-
obj.
|
|
924
|
+
if (message.name !== "") {
|
|
925
|
+
obj.name = message.name;
|
|
926
|
+
}
|
|
927
|
+
if ((_a = message.values) === null || _a === void 0 ? void 0 : _a.length) {
|
|
928
|
+
obj.values = message.values;
|
|
1056
929
|
}
|
|
1057
930
|
return obj;
|
|
1058
931
|
},
|
|
1059
932
|
create(base) {
|
|
1060
|
-
return exports.
|
|
933
|
+
return exports.EnumType.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1061
934
|
},
|
|
1062
935
|
fromPartial(object) {
|
|
1063
|
-
var _a;
|
|
1064
|
-
const message =
|
|
1065
|
-
message.
|
|
936
|
+
var _a, _b;
|
|
937
|
+
const message = createBaseEnumType();
|
|
938
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
939
|
+
message.values = ((_b = object.values) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
1066
940
|
return message;
|
|
1067
941
|
},
|
|
1068
942
|
};
|