@fraym/proto 0.28.2 → 0.29.1
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 +20 -73
- package/freym/streams/management/event.js +125 -77
- package/freym/streams/management/gdpr.d.ts +13 -33
- package/freym/streams/management/gdpr.js +29 -24
- package/freym/streams/management/paginate.d.ts +19 -69
- package/freym/streams/management/paginate.js +117 -132
- package/freym/streams/management/publish.d.ts +26 -36
- package/freym/streams/management/publish.js +193 -44
- 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,1380 +1,1089 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
3
|
+
exports.View = 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");
|
|
9
8
|
exports.protobufPackage = "freym.projections.management";
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
}
|
|
12
24
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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 {
|
|
47
|
+
namespace: "",
|
|
48
|
+
projectionTypes: [],
|
|
49
|
+
crudTypes: [],
|
|
50
|
+
nestedTypes: [],
|
|
51
|
+
enumTypes: [],
|
|
52
|
+
views: [],
|
|
53
|
+
options: undefined,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.DeploySchemaRequest = {
|
|
57
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
58
|
+
if (message.namespace !== "") {
|
|
59
|
+
writer.uint32(10).string(message.namespace);
|
|
20
60
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
decode(input, length) {
|
|
24
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
25
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26
|
-
const message = createBaseEnumType();
|
|
27
|
-
while (reader.pos < end) {
|
|
28
|
-
const tag = reader.uint32();
|
|
29
|
-
switch (tag >>> 3) {
|
|
30
|
-
case 1:
|
|
31
|
-
if (tag !== 10) {
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
message.name = reader.string();
|
|
35
|
-
continue;
|
|
36
|
-
case 2:
|
|
37
|
-
if (tag !== 18) {
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
message.values.push(reader.string());
|
|
41
|
-
continue;
|
|
42
|
-
}
|
|
43
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
reader.skipType(tag & 7);
|
|
61
|
+
for (const v of message.projectionTypes) {
|
|
62
|
+
exports.ObjectType.encode(v, writer.uint32(18).fork()).join();
|
|
47
63
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
fromJSON(object) {
|
|
51
|
-
return {
|
|
52
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
53
|
-
values: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.values) ? object.values.map((e) => globalThis.String(e)) : [],
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
toJSON(message) {
|
|
57
|
-
var _a;
|
|
58
|
-
const obj = {};
|
|
59
|
-
if (message.name !== "") {
|
|
60
|
-
obj.name = message.name;
|
|
64
|
+
for (const v of message.crudTypes) {
|
|
65
|
+
exports.ObjectType.encode(v, writer.uint32(26).fork()).join();
|
|
61
66
|
}
|
|
62
|
-
|
|
63
|
-
|
|
67
|
+
for (const v of message.nestedTypes) {
|
|
68
|
+
exports.ObjectType.encode(v, writer.uint32(34).fork()).join();
|
|
64
69
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
create(base) {
|
|
68
|
-
return exports.EnumType.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
69
|
-
},
|
|
70
|
-
fromPartial(object) {
|
|
71
|
-
var _a, _b;
|
|
72
|
-
const message = createBaseEnumType();
|
|
73
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
74
|
-
message.values = ((_b = object.values) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
75
|
-
return message;
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
function createBaseProjectionType() {
|
|
79
|
-
return { name: "", directives: [], fields: [] };
|
|
80
|
-
}
|
|
81
|
-
exports.ProjectionType = {
|
|
82
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
83
|
-
if (message.name !== "") {
|
|
84
|
-
writer.uint32(10).string(message.name);
|
|
70
|
+
for (const v of message.enumTypes) {
|
|
71
|
+
exports.EnumType.encode(v, writer.uint32(42).fork()).join();
|
|
85
72
|
}
|
|
86
|
-
for (const v of message.
|
|
87
|
-
exports.
|
|
73
|
+
for (const v of message.views) {
|
|
74
|
+
exports.View.encode(v, writer.uint32(50).fork()).join();
|
|
88
75
|
}
|
|
89
|
-
|
|
90
|
-
exports.
|
|
76
|
+
if (message.options !== undefined) {
|
|
77
|
+
exports.DeploymentOptions.encode(message.options, writer.uint32(58).fork()).join();
|
|
91
78
|
}
|
|
92
79
|
return writer;
|
|
93
80
|
},
|
|
94
81
|
decode(input, length) {
|
|
95
|
-
const reader = input instanceof
|
|
82
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
96
83
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
-
const message =
|
|
84
|
+
const message = createBaseDeploySchemaRequest();
|
|
98
85
|
while (reader.pos < end) {
|
|
99
86
|
const tag = reader.uint32();
|
|
100
87
|
switch (tag >>> 3) {
|
|
101
|
-
case 1:
|
|
88
|
+
case 1: {
|
|
102
89
|
if (tag !== 10) {
|
|
103
90
|
break;
|
|
104
91
|
}
|
|
105
|
-
message.
|
|
92
|
+
message.namespace = reader.string();
|
|
106
93
|
continue;
|
|
107
|
-
|
|
94
|
+
}
|
|
95
|
+
case 2: {
|
|
108
96
|
if (tag !== 18) {
|
|
109
97
|
break;
|
|
110
98
|
}
|
|
111
|
-
message.
|
|
99
|
+
message.projectionTypes.push(exports.ObjectType.decode(reader, reader.uint32()));
|
|
112
100
|
continue;
|
|
113
|
-
|
|
101
|
+
}
|
|
102
|
+
case 3: {
|
|
114
103
|
if (tag !== 26) {
|
|
115
104
|
break;
|
|
116
105
|
}
|
|
117
|
-
message.
|
|
106
|
+
message.crudTypes.push(exports.ObjectType.decode(reader, reader.uint32()));
|
|
118
107
|
continue;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
reader.skipType(tag & 7);
|
|
124
|
-
}
|
|
125
|
-
return message;
|
|
126
|
-
},
|
|
127
|
-
fromJSON(object) {
|
|
128
|
-
return {
|
|
129
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
130
|
-
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
131
|
-
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
132
|
-
: [],
|
|
133
|
-
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
134
|
-
};
|
|
135
|
-
},
|
|
136
|
-
toJSON(message) {
|
|
137
|
-
var _a, _b;
|
|
138
|
-
const obj = {};
|
|
139
|
-
if (message.name !== "") {
|
|
140
|
-
obj.name = message.name;
|
|
141
|
-
}
|
|
142
|
-
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
143
|
-
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
144
|
-
}
|
|
145
|
-
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
146
|
-
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
147
|
-
}
|
|
148
|
-
return obj;
|
|
149
|
-
},
|
|
150
|
-
create(base) {
|
|
151
|
-
return exports.ProjectionType.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
152
|
-
},
|
|
153
|
-
fromPartial(object) {
|
|
154
|
-
var _a, _b, _c;
|
|
155
|
-
const message = createBaseProjectionType();
|
|
156
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
157
|
-
message.directives = ((_b = object.directives) === null || _b === void 0 ? void 0 : _b.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
158
|
-
message.fields = ((_c = object.fields) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeField.fromPartial(e))) || [];
|
|
159
|
-
return message;
|
|
160
|
-
},
|
|
161
|
-
};
|
|
162
|
-
function createBaseCrudType() {
|
|
163
|
-
return { name: "", directives: [], fields: [] };
|
|
164
|
-
}
|
|
165
|
-
exports.CrudType = {
|
|
166
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
167
|
-
if (message.name !== "") {
|
|
168
|
-
writer.uint32(10).string(message.name);
|
|
169
|
-
}
|
|
170
|
-
for (const v of message.directives) {
|
|
171
|
-
exports.TypeDirective.encode(v, writer.uint32(18).fork()).ldelim();
|
|
172
|
-
}
|
|
173
|
-
for (const v of message.fields) {
|
|
174
|
-
exports.TypeField.encode(v, writer.uint32(26).fork()).ldelim();
|
|
175
|
-
}
|
|
176
|
-
return writer;
|
|
177
|
-
},
|
|
178
|
-
decode(input, length) {
|
|
179
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
180
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
181
|
-
const message = createBaseCrudType();
|
|
182
|
-
while (reader.pos < end) {
|
|
183
|
-
const tag = reader.uint32();
|
|
184
|
-
switch (tag >>> 3) {
|
|
185
|
-
case 1:
|
|
186
|
-
if (tag !== 10) {
|
|
108
|
+
}
|
|
109
|
+
case 4: {
|
|
110
|
+
if (tag !== 34) {
|
|
187
111
|
break;
|
|
188
112
|
}
|
|
189
|
-
message.
|
|
113
|
+
message.nestedTypes.push(exports.ObjectType.decode(reader, reader.uint32()));
|
|
190
114
|
continue;
|
|
191
|
-
|
|
192
|
-
|
|
115
|
+
}
|
|
116
|
+
case 5: {
|
|
117
|
+
if (tag !== 42) {
|
|
193
118
|
break;
|
|
194
119
|
}
|
|
195
|
-
message.
|
|
120
|
+
message.enumTypes.push(exports.EnumType.decode(reader, reader.uint32()));
|
|
196
121
|
continue;
|
|
197
|
-
|
|
198
|
-
|
|
122
|
+
}
|
|
123
|
+
case 6: {
|
|
124
|
+
if (tag !== 50) {
|
|
199
125
|
break;
|
|
200
126
|
}
|
|
201
|
-
message.
|
|
127
|
+
message.views.push(exports.View.decode(reader, reader.uint32()));
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
case 7: {
|
|
131
|
+
if (tag !== 58) {
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
message.options = exports.DeploymentOptions.decode(reader, reader.uint32());
|
|
202
135
|
continue;
|
|
136
|
+
}
|
|
203
137
|
}
|
|
204
138
|
if ((tag & 7) === 4 || tag === 0) {
|
|
205
139
|
break;
|
|
206
140
|
}
|
|
207
|
-
reader.
|
|
141
|
+
reader.skip(tag & 7);
|
|
208
142
|
}
|
|
209
143
|
return message;
|
|
210
144
|
},
|
|
211
145
|
fromJSON(object) {
|
|
212
146
|
return {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
? object.
|
|
147
|
+
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
148
|
+
projectionTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.projectionTypes)
|
|
149
|
+
? object.projectionTypes.map((e) => exports.ObjectType.fromJSON(e))
|
|
216
150
|
: [],
|
|
217
|
-
|
|
151
|
+
crudTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.crudTypes)
|
|
152
|
+
? object.crudTypes.map((e) => exports.ObjectType.fromJSON(e))
|
|
153
|
+
: [],
|
|
154
|
+
nestedTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.nestedTypes)
|
|
155
|
+
? object.nestedTypes.map((e) => exports.ObjectType.fromJSON(e))
|
|
156
|
+
: [],
|
|
157
|
+
enumTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.enumTypes)
|
|
158
|
+
? object.enumTypes.map((e) => exports.EnumType.fromJSON(e))
|
|
159
|
+
: [],
|
|
160
|
+
views: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.views)
|
|
161
|
+
? object.views.map((e) => exports.View.fromJSON(e))
|
|
162
|
+
: [],
|
|
163
|
+
options: isSet(object.options) ? exports.DeploymentOptions.fromJSON(object.options) : undefined,
|
|
218
164
|
};
|
|
219
165
|
},
|
|
220
166
|
toJSON(message) {
|
|
221
|
-
var _a, _b;
|
|
167
|
+
var _a, _b, _c, _d, _e;
|
|
222
168
|
const obj = {};
|
|
223
|
-
if (message.
|
|
224
|
-
obj.
|
|
169
|
+
if (message.namespace !== "") {
|
|
170
|
+
obj.namespace = message.namespace;
|
|
225
171
|
}
|
|
226
|
-
if ((_a = message.
|
|
227
|
-
obj.
|
|
172
|
+
if ((_a = message.projectionTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
173
|
+
obj.projectionTypes = message.projectionTypes.map((e) => exports.ObjectType.toJSON(e));
|
|
228
174
|
}
|
|
229
|
-
if ((_b = message.
|
|
230
|
-
obj.
|
|
175
|
+
if ((_b = message.crudTypes) === null || _b === void 0 ? void 0 : _b.length) {
|
|
176
|
+
obj.crudTypes = message.crudTypes.map((e) => exports.ObjectType.toJSON(e));
|
|
177
|
+
}
|
|
178
|
+
if ((_c = message.nestedTypes) === null || _c === void 0 ? void 0 : _c.length) {
|
|
179
|
+
obj.nestedTypes = message.nestedTypes.map((e) => exports.ObjectType.toJSON(e));
|
|
180
|
+
}
|
|
181
|
+
if ((_d = message.enumTypes) === null || _d === void 0 ? void 0 : _d.length) {
|
|
182
|
+
obj.enumTypes = message.enumTypes.map((e) => exports.EnumType.toJSON(e));
|
|
183
|
+
}
|
|
184
|
+
if ((_e = message.views) === null || _e === void 0 ? void 0 : _e.length) {
|
|
185
|
+
obj.views = message.views.map((e) => exports.View.toJSON(e));
|
|
186
|
+
}
|
|
187
|
+
if (message.options !== undefined) {
|
|
188
|
+
obj.options = exports.DeploymentOptions.toJSON(message.options);
|
|
231
189
|
}
|
|
232
190
|
return obj;
|
|
233
191
|
},
|
|
234
192
|
create(base) {
|
|
235
|
-
return exports.
|
|
193
|
+
return exports.DeploySchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
236
194
|
},
|
|
237
195
|
fromPartial(object) {
|
|
238
|
-
var _a, _b, _c;
|
|
239
|
-
const message =
|
|
240
|
-
message.
|
|
241
|
-
message.
|
|
242
|
-
message.
|
|
196
|
+
var _a, _b, _c, _d, _e, _f;
|
|
197
|
+
const message = createBaseDeploySchemaRequest();
|
|
198
|
+
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
199
|
+
message.projectionTypes = ((_b = object.projectionTypes) === null || _b === void 0 ? void 0 : _b.map((e) => exports.ObjectType.fromPartial(e))) || [];
|
|
200
|
+
message.crudTypes = ((_c = object.crudTypes) === null || _c === void 0 ? void 0 : _c.map((e) => exports.ObjectType.fromPartial(e))) || [];
|
|
201
|
+
message.nestedTypes = ((_d = object.nestedTypes) === null || _d === void 0 ? void 0 : _d.map((e) => exports.ObjectType.fromPartial(e))) || [];
|
|
202
|
+
message.enumTypes = ((_e = object.enumTypes) === null || _e === void 0 ? void 0 : _e.map((e) => exports.EnumType.fromPartial(e))) || [];
|
|
203
|
+
message.views = ((_f = object.views) === null || _f === void 0 ? void 0 : _f.map((e) => exports.View.fromPartial(e))) || [];
|
|
204
|
+
message.options = (object.options !== undefined && object.options !== null)
|
|
205
|
+
? exports.DeploymentOptions.fromPartial(object.options)
|
|
206
|
+
: undefined;
|
|
243
207
|
return message;
|
|
244
208
|
},
|
|
245
209
|
};
|
|
246
|
-
function
|
|
247
|
-
return {
|
|
210
|
+
function createBaseDeploySchemaResponse() {
|
|
211
|
+
return {};
|
|
248
212
|
}
|
|
249
|
-
exports.
|
|
250
|
-
encode(
|
|
251
|
-
if (message.name !== "") {
|
|
252
|
-
writer.uint32(10).string(message.name);
|
|
253
|
-
}
|
|
254
|
-
for (const v of message.directives) {
|
|
255
|
-
exports.TypeDirective.encode(v, writer.uint32(18).fork()).ldelim();
|
|
256
|
-
}
|
|
257
|
-
for (const v of message.fields) {
|
|
258
|
-
exports.TypeField.encode(v, writer.uint32(26).fork()).ldelim();
|
|
259
|
-
}
|
|
213
|
+
exports.DeploySchemaResponse = {
|
|
214
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
260
215
|
return writer;
|
|
261
216
|
},
|
|
262
217
|
decode(input, length) {
|
|
263
|
-
const reader = input instanceof
|
|
218
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
264
219
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
265
|
-
const message =
|
|
220
|
+
const message = createBaseDeploySchemaResponse();
|
|
266
221
|
while (reader.pos < end) {
|
|
267
222
|
const tag = reader.uint32();
|
|
268
223
|
switch (tag >>> 3) {
|
|
269
|
-
case 1:
|
|
270
|
-
if (tag !== 10) {
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
message.name = reader.string();
|
|
274
|
-
continue;
|
|
275
|
-
case 2:
|
|
276
|
-
if (tag !== 18) {
|
|
277
|
-
break;
|
|
278
|
-
}
|
|
279
|
-
message.directives.push(exports.TypeDirective.decode(reader, reader.uint32()));
|
|
280
|
-
continue;
|
|
281
|
-
case 3:
|
|
282
|
-
if (tag !== 26) {
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
message.fields.push(exports.TypeField.decode(reader, reader.uint32()));
|
|
286
|
-
continue;
|
|
287
224
|
}
|
|
288
225
|
if ((tag & 7) === 4 || tag === 0) {
|
|
289
226
|
break;
|
|
290
227
|
}
|
|
291
|
-
reader.
|
|
228
|
+
reader.skip(tag & 7);
|
|
292
229
|
}
|
|
293
230
|
return message;
|
|
294
231
|
},
|
|
295
|
-
fromJSON(
|
|
296
|
-
return {
|
|
297
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
298
|
-
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
299
|
-
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
300
|
-
: [],
|
|
301
|
-
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
302
|
-
};
|
|
232
|
+
fromJSON(_) {
|
|
233
|
+
return {};
|
|
303
234
|
},
|
|
304
|
-
toJSON(
|
|
305
|
-
var _a, _b;
|
|
235
|
+
toJSON(_) {
|
|
306
236
|
const obj = {};
|
|
307
|
-
if (message.name !== "") {
|
|
308
|
-
obj.name = message.name;
|
|
309
|
-
}
|
|
310
|
-
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
311
|
-
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
312
|
-
}
|
|
313
|
-
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
314
|
-
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
315
|
-
}
|
|
316
237
|
return obj;
|
|
317
238
|
},
|
|
318
239
|
create(base) {
|
|
319
|
-
return exports.
|
|
240
|
+
return exports.DeploySchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
320
241
|
},
|
|
321
|
-
fromPartial(
|
|
322
|
-
|
|
323
|
-
const message = createBaseNestedType();
|
|
324
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
325
|
-
message.directives = ((_b = object.directives) === null || _b === void 0 ? void 0 : _b.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
326
|
-
message.fields = ((_c = object.fields) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeField.fromPartial(e))) || [];
|
|
242
|
+
fromPartial(_) {
|
|
243
|
+
const message = createBaseDeploySchemaResponse();
|
|
327
244
|
return message;
|
|
328
245
|
},
|
|
329
246
|
};
|
|
330
|
-
function
|
|
331
|
-
return {
|
|
247
|
+
function createBaseConfirmSchemaRequest() {
|
|
248
|
+
return { deploymentId: "0" };
|
|
332
249
|
}
|
|
333
|
-
exports.
|
|
334
|
-
encode(message, writer =
|
|
335
|
-
if (message.
|
|
336
|
-
writer.uint32(
|
|
337
|
-
}
|
|
338
|
-
if (message.sql !== "") {
|
|
339
|
-
writer.uint32(18).string(message.sql);
|
|
340
|
-
}
|
|
341
|
-
for (const v of message.directives) {
|
|
342
|
-
exports.TypeDirective.encode(v, writer.uint32(26).fork()).ldelim();
|
|
343
|
-
}
|
|
344
|
-
for (const v of message.fields) {
|
|
345
|
-
exports.TypeField.encode(v, writer.uint32(34).fork()).ldelim();
|
|
250
|
+
exports.ConfirmSchemaRequest = {
|
|
251
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
252
|
+
if (message.deploymentId !== "0") {
|
|
253
|
+
writer.uint32(8).int64(message.deploymentId);
|
|
346
254
|
}
|
|
347
255
|
return writer;
|
|
348
256
|
},
|
|
349
257
|
decode(input, length) {
|
|
350
|
-
const reader = input instanceof
|
|
258
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
351
259
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
352
|
-
const message =
|
|
260
|
+
const message = createBaseConfirmSchemaRequest();
|
|
353
261
|
while (reader.pos < end) {
|
|
354
262
|
const tag = reader.uint32();
|
|
355
263
|
switch (tag >>> 3) {
|
|
356
|
-
case 1:
|
|
357
|
-
if (tag !==
|
|
358
|
-
break;
|
|
359
|
-
}
|
|
360
|
-
message.name = reader.string();
|
|
361
|
-
continue;
|
|
362
|
-
case 2:
|
|
363
|
-
if (tag !== 18) {
|
|
364
|
-
break;
|
|
365
|
-
}
|
|
366
|
-
message.sql = reader.string();
|
|
367
|
-
continue;
|
|
368
|
-
case 3:
|
|
369
|
-
if (tag !== 26) {
|
|
370
|
-
break;
|
|
371
|
-
}
|
|
372
|
-
message.directives.push(exports.TypeDirective.decode(reader, reader.uint32()));
|
|
373
|
-
continue;
|
|
374
|
-
case 4:
|
|
375
|
-
if (tag !== 34) {
|
|
264
|
+
case 1: {
|
|
265
|
+
if (tag !== 8) {
|
|
376
266
|
break;
|
|
377
267
|
}
|
|
378
|
-
message.
|
|
268
|
+
message.deploymentId = reader.int64().toString();
|
|
379
269
|
continue;
|
|
270
|
+
}
|
|
380
271
|
}
|
|
381
272
|
if ((tag & 7) === 4 || tag === 0) {
|
|
382
273
|
break;
|
|
383
274
|
}
|
|
384
|
-
reader.
|
|
275
|
+
reader.skip(tag & 7);
|
|
385
276
|
}
|
|
386
277
|
return message;
|
|
387
278
|
},
|
|
388
279
|
fromJSON(object) {
|
|
389
|
-
return {
|
|
390
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
391
|
-
sql: isSet(object.sql) ? globalThis.String(object.sql) : "",
|
|
392
|
-
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
393
|
-
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
394
|
-
: [],
|
|
395
|
-
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
396
|
-
};
|
|
280
|
+
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
397
281
|
},
|
|
398
282
|
toJSON(message) {
|
|
399
|
-
var _a, _b;
|
|
400
283
|
const obj = {};
|
|
401
|
-
if (message.
|
|
402
|
-
obj.
|
|
403
|
-
}
|
|
404
|
-
if (message.sql !== "") {
|
|
405
|
-
obj.sql = message.sql;
|
|
406
|
-
}
|
|
407
|
-
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
408
|
-
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
409
|
-
}
|
|
410
|
-
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
411
|
-
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
284
|
+
if (message.deploymentId !== "0") {
|
|
285
|
+
obj.deploymentId = message.deploymentId;
|
|
412
286
|
}
|
|
413
287
|
return obj;
|
|
414
288
|
},
|
|
415
289
|
create(base) {
|
|
416
|
-
return exports.
|
|
290
|
+
return exports.ConfirmSchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
417
291
|
},
|
|
418
292
|
fromPartial(object) {
|
|
419
|
-
var _a
|
|
420
|
-
const message =
|
|
421
|
-
message.
|
|
422
|
-
message.sql = (_b = object.sql) !== null && _b !== void 0 ? _b : "";
|
|
423
|
-
message.directives = ((_c = object.directives) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
424
|
-
message.fields = ((_d = object.fields) === null || _d === void 0 ? void 0 : _d.map((e) => exports.TypeField.fromPartial(e))) || [];
|
|
293
|
+
var _a;
|
|
294
|
+
const message = createBaseConfirmSchemaRequest();
|
|
295
|
+
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
425
296
|
return message;
|
|
426
297
|
},
|
|
427
298
|
};
|
|
428
|
-
function
|
|
429
|
-
return {
|
|
299
|
+
function createBaseConfirmSchemaResponse() {
|
|
300
|
+
return {};
|
|
430
301
|
}
|
|
431
|
-
exports.
|
|
432
|
-
encode(
|
|
433
|
-
if (message.name !== "") {
|
|
434
|
-
writer.uint32(10).string(message.name);
|
|
435
|
-
}
|
|
436
|
-
for (const v of message.type) {
|
|
437
|
-
writer.uint32(18).string(v);
|
|
438
|
-
}
|
|
439
|
-
for (const v of message.directives) {
|
|
440
|
-
exports.TypeDirective.encode(v, writer.uint32(26).fork()).ldelim();
|
|
441
|
-
}
|
|
302
|
+
exports.ConfirmSchemaResponse = {
|
|
303
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
442
304
|
return writer;
|
|
443
305
|
},
|
|
444
306
|
decode(input, length) {
|
|
445
|
-
const reader = input instanceof
|
|
307
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
446
308
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
447
|
-
const message =
|
|
309
|
+
const message = createBaseConfirmSchemaResponse();
|
|
448
310
|
while (reader.pos < end) {
|
|
449
311
|
const tag = reader.uint32();
|
|
450
312
|
switch (tag >>> 3) {
|
|
451
|
-
case 1:
|
|
452
|
-
if (tag !== 10) {
|
|
453
|
-
break;
|
|
454
|
-
}
|
|
455
|
-
message.name = reader.string();
|
|
456
|
-
continue;
|
|
457
|
-
case 2:
|
|
458
|
-
if (tag !== 18) {
|
|
459
|
-
break;
|
|
460
|
-
}
|
|
461
|
-
message.type.push(reader.string());
|
|
462
|
-
continue;
|
|
463
|
-
case 3:
|
|
464
|
-
if (tag !== 26) {
|
|
465
|
-
break;
|
|
466
|
-
}
|
|
467
|
-
message.directives.push(exports.TypeDirective.decode(reader, reader.uint32()));
|
|
468
|
-
continue;
|
|
469
313
|
}
|
|
470
314
|
if ((tag & 7) === 4 || tag === 0) {
|
|
471
315
|
break;
|
|
472
316
|
}
|
|
473
|
-
reader.
|
|
317
|
+
reader.skip(tag & 7);
|
|
474
318
|
}
|
|
475
319
|
return message;
|
|
476
320
|
},
|
|
477
|
-
fromJSON(
|
|
478
|
-
return {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
483
|
-
: [],
|
|
484
|
-
};
|
|
485
|
-
},
|
|
486
|
-
toJSON(message) {
|
|
487
|
-
var _a, _b;
|
|
488
|
-
const obj = {};
|
|
489
|
-
if (message.name !== "") {
|
|
490
|
-
obj.name = message.name;
|
|
491
|
-
}
|
|
492
|
-
if ((_a = message.type) === null || _a === void 0 ? void 0 : _a.length) {
|
|
493
|
-
obj.type = message.type;
|
|
494
|
-
}
|
|
495
|
-
if ((_b = message.directives) === null || _b === void 0 ? void 0 : _b.length) {
|
|
496
|
-
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
497
|
-
}
|
|
321
|
+
fromJSON(_) {
|
|
322
|
+
return {};
|
|
323
|
+
},
|
|
324
|
+
toJSON(_) {
|
|
325
|
+
const obj = {};
|
|
498
326
|
return obj;
|
|
499
327
|
},
|
|
500
328
|
create(base) {
|
|
501
|
-
return exports.
|
|
329
|
+
return exports.ConfirmSchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
502
330
|
},
|
|
503
|
-
fromPartial(
|
|
504
|
-
|
|
505
|
-
const message = createBaseTypeField();
|
|
506
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
507
|
-
message.type = ((_b = object.type) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
508
|
-
message.directives = ((_c = object.directives) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
331
|
+
fromPartial(_) {
|
|
332
|
+
const message = createBaseConfirmSchemaResponse();
|
|
509
333
|
return message;
|
|
510
334
|
},
|
|
511
335
|
};
|
|
512
|
-
function
|
|
513
|
-
return {
|
|
336
|
+
function createBaseRollbackSchemaRequest() {
|
|
337
|
+
return { deploymentId: "0" };
|
|
514
338
|
}
|
|
515
|
-
exports.
|
|
516
|
-
encode(message, writer =
|
|
517
|
-
if (message.
|
|
518
|
-
writer.uint32(
|
|
519
|
-
}
|
|
520
|
-
for (const v of message.arguments) {
|
|
521
|
-
exports.TypeArgument.encode(v, writer.uint32(18).fork()).ldelim();
|
|
339
|
+
exports.RollbackSchemaRequest = {
|
|
340
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
341
|
+
if (message.deploymentId !== "0") {
|
|
342
|
+
writer.uint32(8).int64(message.deploymentId);
|
|
522
343
|
}
|
|
523
344
|
return writer;
|
|
524
345
|
},
|
|
525
346
|
decode(input, length) {
|
|
526
|
-
const reader = input instanceof
|
|
347
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
527
348
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
528
|
-
const message =
|
|
349
|
+
const message = createBaseRollbackSchemaRequest();
|
|
529
350
|
while (reader.pos < end) {
|
|
530
351
|
const tag = reader.uint32();
|
|
531
352
|
switch (tag >>> 3) {
|
|
532
|
-
case 1:
|
|
533
|
-
if (tag !==
|
|
534
|
-
break;
|
|
535
|
-
}
|
|
536
|
-
message.name = reader.string();
|
|
537
|
-
continue;
|
|
538
|
-
case 2:
|
|
539
|
-
if (tag !== 18) {
|
|
353
|
+
case 1: {
|
|
354
|
+
if (tag !== 8) {
|
|
540
355
|
break;
|
|
541
356
|
}
|
|
542
|
-
message.
|
|
357
|
+
message.deploymentId = reader.int64().toString();
|
|
543
358
|
continue;
|
|
359
|
+
}
|
|
544
360
|
}
|
|
545
361
|
if ((tag & 7) === 4 || tag === 0) {
|
|
546
362
|
break;
|
|
547
363
|
}
|
|
548
|
-
reader.
|
|
364
|
+
reader.skip(tag & 7);
|
|
549
365
|
}
|
|
550
366
|
return message;
|
|
551
367
|
},
|
|
552
368
|
fromJSON(object) {
|
|
553
|
-
return {
|
|
554
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
555
|
-
arguments: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.arguments)
|
|
556
|
-
? object.arguments.map((e) => exports.TypeArgument.fromJSON(e))
|
|
557
|
-
: [],
|
|
558
|
-
};
|
|
369
|
+
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
559
370
|
},
|
|
560
371
|
toJSON(message) {
|
|
561
|
-
var _a;
|
|
562
372
|
const obj = {};
|
|
563
|
-
if (message.
|
|
564
|
-
obj.
|
|
565
|
-
}
|
|
566
|
-
if ((_a = message.arguments) === null || _a === void 0 ? void 0 : _a.length) {
|
|
567
|
-
obj.arguments = message.arguments.map((e) => exports.TypeArgument.toJSON(e));
|
|
373
|
+
if (message.deploymentId !== "0") {
|
|
374
|
+
obj.deploymentId = message.deploymentId;
|
|
568
375
|
}
|
|
569
376
|
return obj;
|
|
570
377
|
},
|
|
571
378
|
create(base) {
|
|
572
|
-
return exports.
|
|
379
|
+
return exports.RollbackSchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
573
380
|
},
|
|
574
381
|
fromPartial(object) {
|
|
575
|
-
var _a
|
|
576
|
-
const message =
|
|
577
|
-
message.
|
|
578
|
-
message.arguments = ((_b = object.arguments) === null || _b === void 0 ? void 0 : _b.map((e) => exports.TypeArgument.fromPartial(e))) || [];
|
|
382
|
+
var _a;
|
|
383
|
+
const message = createBaseRollbackSchemaRequest();
|
|
384
|
+
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
579
385
|
return message;
|
|
580
386
|
},
|
|
581
387
|
};
|
|
582
|
-
function
|
|
583
|
-
return {
|
|
388
|
+
function createBaseRollbackSchemaResponse() {
|
|
389
|
+
return {};
|
|
584
390
|
}
|
|
585
|
-
exports.
|
|
586
|
-
encode(
|
|
587
|
-
if (message.name !== "") {
|
|
588
|
-
writer.uint32(10).string(message.name);
|
|
589
|
-
}
|
|
590
|
-
if (message.value !== "") {
|
|
591
|
-
writer.uint32(18).string(message.value);
|
|
592
|
-
}
|
|
391
|
+
exports.RollbackSchemaResponse = {
|
|
392
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
593
393
|
return writer;
|
|
594
394
|
},
|
|
595
395
|
decode(input, length) {
|
|
596
|
-
const reader = input instanceof
|
|
396
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
597
397
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
598
|
-
const message =
|
|
398
|
+
const message = createBaseRollbackSchemaResponse();
|
|
599
399
|
while (reader.pos < end) {
|
|
600
400
|
const tag = reader.uint32();
|
|
601
401
|
switch (tag >>> 3) {
|
|
602
|
-
case 1:
|
|
603
|
-
if (tag !== 10) {
|
|
604
|
-
break;
|
|
605
|
-
}
|
|
606
|
-
message.name = reader.string();
|
|
607
|
-
continue;
|
|
608
|
-
case 2:
|
|
609
|
-
if (tag !== 18) {
|
|
610
|
-
break;
|
|
611
|
-
}
|
|
612
|
-
message.value = reader.string();
|
|
613
|
-
continue;
|
|
614
402
|
}
|
|
615
403
|
if ((tag & 7) === 4 || tag === 0) {
|
|
616
404
|
break;
|
|
617
405
|
}
|
|
618
|
-
reader.
|
|
406
|
+
reader.skip(tag & 7);
|
|
619
407
|
}
|
|
620
408
|
return message;
|
|
621
409
|
},
|
|
622
|
-
fromJSON(
|
|
623
|
-
return {
|
|
624
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
625
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
626
|
-
};
|
|
410
|
+
fromJSON(_) {
|
|
411
|
+
return {};
|
|
627
412
|
},
|
|
628
|
-
toJSON(
|
|
413
|
+
toJSON(_) {
|
|
629
414
|
const obj = {};
|
|
630
|
-
if (message.name !== "") {
|
|
631
|
-
obj.name = message.name;
|
|
632
|
-
}
|
|
633
|
-
if (message.value !== "") {
|
|
634
|
-
obj.value = message.value;
|
|
635
|
-
}
|
|
636
415
|
return obj;
|
|
637
416
|
},
|
|
638
417
|
create(base) {
|
|
639
|
-
return exports.
|
|
418
|
+
return exports.RollbackSchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
640
419
|
},
|
|
641
|
-
fromPartial(
|
|
642
|
-
|
|
643
|
-
const message = createBaseTypeArgument();
|
|
644
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
645
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
420
|
+
fromPartial(_) {
|
|
421
|
+
const message = createBaseRollbackSchemaResponse();
|
|
646
422
|
return message;
|
|
647
423
|
},
|
|
648
424
|
};
|
|
649
|
-
function
|
|
650
|
-
return {
|
|
651
|
-
dangerouslyRemoveGdprFields: false,
|
|
652
|
-
projectionTypes: [],
|
|
653
|
-
crudTypes: [],
|
|
654
|
-
enums: [],
|
|
655
|
-
nestedTypes: [],
|
|
656
|
-
namespace: "",
|
|
657
|
-
views: [],
|
|
658
|
-
};
|
|
425
|
+
function createBaseGetSchemaDeploymentRequest() {
|
|
426
|
+
return { deploymentId: "0" };
|
|
659
427
|
}
|
|
660
|
-
exports.
|
|
661
|
-
encode(message, writer =
|
|
662
|
-
if (message.
|
|
663
|
-
writer.uint32(8).
|
|
664
|
-
}
|
|
665
|
-
for (const v of message.projectionTypes) {
|
|
666
|
-
exports.ProjectionType.encode(v, writer.uint32(18).fork()).ldelim();
|
|
667
|
-
}
|
|
668
|
-
for (const v of message.crudTypes) {
|
|
669
|
-
exports.CrudType.encode(v, writer.uint32(26).fork()).ldelim();
|
|
670
|
-
}
|
|
671
|
-
for (const v of message.enums) {
|
|
672
|
-
exports.EnumType.encode(v, writer.uint32(34).fork()).ldelim();
|
|
673
|
-
}
|
|
674
|
-
for (const v of message.nestedTypes) {
|
|
675
|
-
exports.NestedType.encode(v, writer.uint32(42).fork()).ldelim();
|
|
676
|
-
}
|
|
677
|
-
if (message.namespace !== "") {
|
|
678
|
-
writer.uint32(50).string(message.namespace);
|
|
679
|
-
}
|
|
680
|
-
for (const v of message.views) {
|
|
681
|
-
exports.View.encode(v, writer.uint32(58).fork()).ldelim();
|
|
428
|
+
exports.GetSchemaDeploymentRequest = {
|
|
429
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
430
|
+
if (message.deploymentId !== "0") {
|
|
431
|
+
writer.uint32(8).int64(message.deploymentId);
|
|
682
432
|
}
|
|
683
433
|
return writer;
|
|
684
434
|
},
|
|
685
435
|
decode(input, length) {
|
|
686
|
-
const reader = input instanceof
|
|
436
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
687
437
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
688
|
-
const message =
|
|
438
|
+
const message = createBaseGetSchemaDeploymentRequest();
|
|
689
439
|
while (reader.pos < end) {
|
|
690
440
|
const tag = reader.uint32();
|
|
691
441
|
switch (tag >>> 3) {
|
|
692
|
-
case 1:
|
|
442
|
+
case 1: {
|
|
693
443
|
if (tag !== 8) {
|
|
694
444
|
break;
|
|
695
445
|
}
|
|
696
|
-
message.
|
|
697
|
-
continue;
|
|
698
|
-
case 2:
|
|
699
|
-
if (tag !== 18) {
|
|
700
|
-
break;
|
|
701
|
-
}
|
|
702
|
-
message.projectionTypes.push(exports.ProjectionType.decode(reader, reader.uint32()));
|
|
703
|
-
continue;
|
|
704
|
-
case 3:
|
|
705
|
-
if (tag !== 26) {
|
|
706
|
-
break;
|
|
707
|
-
}
|
|
708
|
-
message.crudTypes.push(exports.CrudType.decode(reader, reader.uint32()));
|
|
709
|
-
continue;
|
|
710
|
-
case 4:
|
|
711
|
-
if (tag !== 34) {
|
|
712
|
-
break;
|
|
713
|
-
}
|
|
714
|
-
message.enums.push(exports.EnumType.decode(reader, reader.uint32()));
|
|
715
|
-
continue;
|
|
716
|
-
case 5:
|
|
717
|
-
if (tag !== 42) {
|
|
718
|
-
break;
|
|
719
|
-
}
|
|
720
|
-
message.nestedTypes.push(exports.NestedType.decode(reader, reader.uint32()));
|
|
721
|
-
continue;
|
|
722
|
-
case 6:
|
|
723
|
-
if (tag !== 50) {
|
|
724
|
-
break;
|
|
725
|
-
}
|
|
726
|
-
message.namespace = reader.string();
|
|
727
|
-
continue;
|
|
728
|
-
case 7:
|
|
729
|
-
if (tag !== 58) {
|
|
730
|
-
break;
|
|
731
|
-
}
|
|
732
|
-
message.views.push(exports.View.decode(reader, reader.uint32()));
|
|
446
|
+
message.deploymentId = reader.int64().toString();
|
|
733
447
|
continue;
|
|
448
|
+
}
|
|
734
449
|
}
|
|
735
450
|
if ((tag & 7) === 4 || tag === 0) {
|
|
736
451
|
break;
|
|
737
452
|
}
|
|
738
|
-
reader.
|
|
453
|
+
reader.skip(tag & 7);
|
|
739
454
|
}
|
|
740
455
|
return message;
|
|
741
456
|
},
|
|
742
457
|
fromJSON(object) {
|
|
743
|
-
return {
|
|
744
|
-
dangerouslyRemoveGdprFields: isSet(object.dangerouslyRemoveGdprFields)
|
|
745
|
-
? globalThis.Boolean(object.dangerouslyRemoveGdprFields)
|
|
746
|
-
: false,
|
|
747
|
-
projectionTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.projectionTypes)
|
|
748
|
-
? object.projectionTypes.map((e) => exports.ProjectionType.fromJSON(e))
|
|
749
|
-
: [],
|
|
750
|
-
crudTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.crudTypes)
|
|
751
|
-
? object.crudTypes.map((e) => exports.CrudType.fromJSON(e))
|
|
752
|
-
: [],
|
|
753
|
-
enums: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.enums) ? object.enums.map((e) => exports.EnumType.fromJSON(e)) : [],
|
|
754
|
-
nestedTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.nestedTypes)
|
|
755
|
-
? object.nestedTypes.map((e) => exports.NestedType.fromJSON(e))
|
|
756
|
-
: [],
|
|
757
|
-
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
758
|
-
views: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.views)
|
|
759
|
-
? object.views.map((e) => exports.View.fromJSON(e))
|
|
760
|
-
: [],
|
|
761
|
-
};
|
|
458
|
+
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
762
459
|
},
|
|
763
460
|
toJSON(message) {
|
|
764
|
-
var _a, _b, _c, _d, _e;
|
|
765
461
|
const obj = {};
|
|
766
|
-
if (message.
|
|
767
|
-
obj.
|
|
768
|
-
}
|
|
769
|
-
if ((_a = message.projectionTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
770
|
-
obj.projectionTypes = message.projectionTypes.map((e) => exports.ProjectionType.toJSON(e));
|
|
771
|
-
}
|
|
772
|
-
if ((_b = message.crudTypes) === null || _b === void 0 ? void 0 : _b.length) {
|
|
773
|
-
obj.crudTypes = message.crudTypes.map((e) => exports.CrudType.toJSON(e));
|
|
774
|
-
}
|
|
775
|
-
if ((_c = message.enums) === null || _c === void 0 ? void 0 : _c.length) {
|
|
776
|
-
obj.enums = message.enums.map((e) => exports.EnumType.toJSON(e));
|
|
777
|
-
}
|
|
778
|
-
if ((_d = message.nestedTypes) === null || _d === void 0 ? void 0 : _d.length) {
|
|
779
|
-
obj.nestedTypes = message.nestedTypes.map((e) => exports.NestedType.toJSON(e));
|
|
780
|
-
}
|
|
781
|
-
if (message.namespace !== "") {
|
|
782
|
-
obj.namespace = message.namespace;
|
|
783
|
-
}
|
|
784
|
-
if ((_e = message.views) === null || _e === void 0 ? void 0 : _e.length) {
|
|
785
|
-
obj.views = message.views.map((e) => exports.View.toJSON(e));
|
|
462
|
+
if (message.deploymentId !== "0") {
|
|
463
|
+
obj.deploymentId = message.deploymentId;
|
|
786
464
|
}
|
|
787
465
|
return obj;
|
|
788
466
|
},
|
|
789
467
|
create(base) {
|
|
790
|
-
return exports.
|
|
468
|
+
return exports.GetSchemaDeploymentRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
791
469
|
},
|
|
792
470
|
fromPartial(object) {
|
|
793
|
-
var _a
|
|
794
|
-
const message =
|
|
795
|
-
message.
|
|
796
|
-
message.projectionTypes = ((_b = object.projectionTypes) === null || _b === void 0 ? void 0 : _b.map((e) => exports.ProjectionType.fromPartial(e))) || [];
|
|
797
|
-
message.crudTypes = ((_c = object.crudTypes) === null || _c === void 0 ? void 0 : _c.map((e) => exports.CrudType.fromPartial(e))) || [];
|
|
798
|
-
message.enums = ((_d = object.enums) === null || _d === void 0 ? void 0 : _d.map((e) => exports.EnumType.fromPartial(e))) || [];
|
|
799
|
-
message.nestedTypes = ((_e = object.nestedTypes) === null || _e === void 0 ? void 0 : _e.map((e) => exports.NestedType.fromPartial(e))) || [];
|
|
800
|
-
message.namespace = (_f = object.namespace) !== null && _f !== void 0 ? _f : "";
|
|
801
|
-
message.views = ((_g = object.views) === null || _g === void 0 ? void 0 : _g.map((e) => exports.View.fromPartial(e))) || [];
|
|
471
|
+
var _a;
|
|
472
|
+
const message = createBaseGetSchemaDeploymentRequest();
|
|
473
|
+
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
802
474
|
return message;
|
|
803
475
|
},
|
|
804
476
|
};
|
|
805
|
-
function
|
|
806
|
-
return {};
|
|
477
|
+
function createBaseGetSchemaDeploymentResponse() {
|
|
478
|
+
return { progress: 0 };
|
|
807
479
|
}
|
|
808
|
-
exports.
|
|
809
|
-
encode(
|
|
480
|
+
exports.GetSchemaDeploymentResponse = {
|
|
481
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
482
|
+
if (message.progress !== 0) {
|
|
483
|
+
writer.uint32(8).uint32(message.progress);
|
|
484
|
+
}
|
|
810
485
|
return writer;
|
|
811
486
|
},
|
|
812
487
|
decode(input, length) {
|
|
813
|
-
const reader = input instanceof
|
|
488
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
814
489
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
815
|
-
const message =
|
|
490
|
+
const message = createBaseGetSchemaDeploymentResponse();
|
|
816
491
|
while (reader.pos < end) {
|
|
817
492
|
const tag = reader.uint32();
|
|
818
493
|
switch (tag >>> 3) {
|
|
494
|
+
case 1: {
|
|
495
|
+
if (tag !== 8) {
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
message.progress = reader.uint32();
|
|
499
|
+
continue;
|
|
500
|
+
}
|
|
819
501
|
}
|
|
820
502
|
if ((tag & 7) === 4 || tag === 0) {
|
|
821
503
|
break;
|
|
822
504
|
}
|
|
823
|
-
reader.
|
|
505
|
+
reader.skip(tag & 7);
|
|
824
506
|
}
|
|
825
507
|
return message;
|
|
826
508
|
},
|
|
827
|
-
fromJSON(
|
|
828
|
-
return {};
|
|
509
|
+
fromJSON(object) {
|
|
510
|
+
return { progress: isSet(object.progress) ? globalThis.Number(object.progress) : 0 };
|
|
829
511
|
},
|
|
830
|
-
toJSON(
|
|
512
|
+
toJSON(message) {
|
|
831
513
|
const obj = {};
|
|
514
|
+
if (message.progress !== 0) {
|
|
515
|
+
obj.progress = Math.round(message.progress);
|
|
516
|
+
}
|
|
832
517
|
return obj;
|
|
833
518
|
},
|
|
834
519
|
create(base) {
|
|
835
|
-
return exports.
|
|
520
|
+
return exports.GetSchemaDeploymentResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
836
521
|
},
|
|
837
|
-
fromPartial(
|
|
838
|
-
|
|
522
|
+
fromPartial(object) {
|
|
523
|
+
var _a;
|
|
524
|
+
const message = createBaseGetSchemaDeploymentResponse();
|
|
525
|
+
message.progress = (_a = object.progress) !== null && _a !== void 0 ? _a : 0;
|
|
839
526
|
return message;
|
|
840
527
|
},
|
|
841
528
|
};
|
|
842
|
-
function
|
|
843
|
-
return {
|
|
529
|
+
function createBaseDeploymentOptions() {
|
|
530
|
+
return { dangerouslyRemoveGdprFields: false, target: exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE };
|
|
844
531
|
}
|
|
845
|
-
exports.
|
|
846
|
-
encode(message, writer =
|
|
847
|
-
if (message.
|
|
848
|
-
writer.uint32(
|
|
532
|
+
exports.DeploymentOptions = {
|
|
533
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
534
|
+
if (message.dangerouslyRemoveGdprFields !== false) {
|
|
535
|
+
writer.uint32(8).bool(message.dangerouslyRemoveGdprFields);
|
|
536
|
+
}
|
|
537
|
+
if (message.target !== exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE) {
|
|
538
|
+
writer.uint32(16).int32(deploymentTargetToNumber(message.target));
|
|
849
539
|
}
|
|
850
540
|
return writer;
|
|
851
541
|
},
|
|
852
542
|
decode(input, length) {
|
|
853
|
-
const reader = input instanceof
|
|
543
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
854
544
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
855
|
-
const message =
|
|
545
|
+
const message = createBaseDeploymentOptions();
|
|
856
546
|
while (reader.pos < end) {
|
|
857
547
|
const tag = reader.uint32();
|
|
858
548
|
switch (tag >>> 3) {
|
|
859
|
-
case 1:
|
|
860
|
-
if (tag !==
|
|
549
|
+
case 1: {
|
|
550
|
+
if (tag !== 8) {
|
|
861
551
|
break;
|
|
862
552
|
}
|
|
863
|
-
message.
|
|
553
|
+
message.dangerouslyRemoveGdprFields = reader.bool();
|
|
554
|
+
continue;
|
|
555
|
+
}
|
|
556
|
+
case 2: {
|
|
557
|
+
if (tag !== 16) {
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
message.target = deploymentTargetFromJSON(reader.int32());
|
|
864
561
|
continue;
|
|
562
|
+
}
|
|
865
563
|
}
|
|
866
564
|
if ((tag & 7) === 4 || tag === 0) {
|
|
867
565
|
break;
|
|
868
566
|
}
|
|
869
|
-
reader.
|
|
567
|
+
reader.skip(tag & 7);
|
|
870
568
|
}
|
|
871
569
|
return message;
|
|
872
570
|
},
|
|
873
571
|
fromJSON(object) {
|
|
874
|
-
return {
|
|
572
|
+
return {
|
|
573
|
+
dangerouslyRemoveGdprFields: isSet(object.dangerouslyRemoveGdprFields)
|
|
574
|
+
? globalThis.Boolean(object.dangerouslyRemoveGdprFields)
|
|
575
|
+
: false,
|
|
576
|
+
target: isSet(object.target) ? deploymentTargetFromJSON(object.target) : exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE,
|
|
577
|
+
};
|
|
875
578
|
},
|
|
876
579
|
toJSON(message) {
|
|
877
580
|
const obj = {};
|
|
878
|
-
if (message.
|
|
879
|
-
obj.
|
|
581
|
+
if (message.dangerouslyRemoveGdprFields !== false) {
|
|
582
|
+
obj.dangerouslyRemoveGdprFields = message.dangerouslyRemoveGdprFields;
|
|
583
|
+
}
|
|
584
|
+
if (message.target !== exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE) {
|
|
585
|
+
obj.target = deploymentTargetToJSON(message.target);
|
|
880
586
|
}
|
|
881
587
|
return obj;
|
|
882
588
|
},
|
|
883
589
|
create(base) {
|
|
884
|
-
return exports.
|
|
590
|
+
return exports.DeploymentOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
885
591
|
},
|
|
886
592
|
fromPartial(object) {
|
|
887
|
-
var _a;
|
|
888
|
-
const message =
|
|
889
|
-
message.
|
|
593
|
+
var _a, _b;
|
|
594
|
+
const message = createBaseDeploymentOptions();
|
|
595
|
+
message.dangerouslyRemoveGdprFields = (_a = object.dangerouslyRemoveGdprFields) !== null && _a !== void 0 ? _a : false;
|
|
596
|
+
message.target = (_b = object.target) !== null && _b !== void 0 ? _b : exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE;
|
|
890
597
|
return message;
|
|
891
598
|
},
|
|
892
599
|
};
|
|
893
|
-
function
|
|
894
|
-
return {};
|
|
600
|
+
function createBaseObjectType() {
|
|
601
|
+
return { name: "", directives: [], fields: [] };
|
|
895
602
|
}
|
|
896
|
-
exports.
|
|
897
|
-
encode(
|
|
603
|
+
exports.ObjectType = {
|
|
604
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
605
|
+
if (message.name !== "") {
|
|
606
|
+
writer.uint32(10).string(message.name);
|
|
607
|
+
}
|
|
608
|
+
for (const v of message.directives) {
|
|
609
|
+
exports.TypeDirective.encode(v, writer.uint32(18).fork()).join();
|
|
610
|
+
}
|
|
611
|
+
for (const v of message.fields) {
|
|
612
|
+
exports.TypeField.encode(v, writer.uint32(26).fork()).join();
|
|
613
|
+
}
|
|
898
614
|
return writer;
|
|
899
615
|
},
|
|
900
616
|
decode(input, length) {
|
|
901
|
-
const reader = input instanceof
|
|
617
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
902
618
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
903
|
-
const message =
|
|
619
|
+
const message = createBaseObjectType();
|
|
904
620
|
while (reader.pos < end) {
|
|
905
621
|
const tag = reader.uint32();
|
|
906
622
|
switch (tag >>> 3) {
|
|
623
|
+
case 1: {
|
|
624
|
+
if (tag !== 10) {
|
|
625
|
+
break;
|
|
626
|
+
}
|
|
627
|
+
message.name = reader.string();
|
|
628
|
+
continue;
|
|
629
|
+
}
|
|
630
|
+
case 2: {
|
|
631
|
+
if (tag !== 18) {
|
|
632
|
+
break;
|
|
633
|
+
}
|
|
634
|
+
message.directives.push(exports.TypeDirective.decode(reader, reader.uint32()));
|
|
635
|
+
continue;
|
|
636
|
+
}
|
|
637
|
+
case 3: {
|
|
638
|
+
if (tag !== 26) {
|
|
639
|
+
break;
|
|
640
|
+
}
|
|
641
|
+
message.fields.push(exports.TypeField.decode(reader, reader.uint32()));
|
|
642
|
+
continue;
|
|
643
|
+
}
|
|
907
644
|
}
|
|
908
645
|
if ((tag & 7) === 4 || tag === 0) {
|
|
909
646
|
break;
|
|
910
647
|
}
|
|
911
|
-
reader.
|
|
648
|
+
reader.skip(tag & 7);
|
|
912
649
|
}
|
|
913
650
|
return message;
|
|
914
651
|
},
|
|
915
|
-
fromJSON(
|
|
916
|
-
return {
|
|
652
|
+
fromJSON(object) {
|
|
653
|
+
return {
|
|
654
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
655
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
656
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
657
|
+
: [],
|
|
658
|
+
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
659
|
+
};
|
|
917
660
|
},
|
|
918
|
-
toJSON(
|
|
661
|
+
toJSON(message) {
|
|
662
|
+
var _a, _b;
|
|
919
663
|
const obj = {};
|
|
664
|
+
if (message.name !== "") {
|
|
665
|
+
obj.name = message.name;
|
|
666
|
+
}
|
|
667
|
+
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
668
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
669
|
+
}
|
|
670
|
+
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
671
|
+
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
672
|
+
}
|
|
920
673
|
return obj;
|
|
921
674
|
},
|
|
922
675
|
create(base) {
|
|
923
|
-
return exports.
|
|
676
|
+
return exports.ObjectType.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
924
677
|
},
|
|
925
|
-
fromPartial(
|
|
926
|
-
|
|
678
|
+
fromPartial(object) {
|
|
679
|
+
var _a, _b, _c;
|
|
680
|
+
const message = createBaseObjectType();
|
|
681
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
682
|
+
message.directives = ((_b = object.directives) === null || _b === void 0 ? void 0 : _b.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
683
|
+
message.fields = ((_c = object.fields) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeField.fromPartial(e))) || [];
|
|
927
684
|
return message;
|
|
928
685
|
},
|
|
929
686
|
};
|
|
930
|
-
function
|
|
931
|
-
return {
|
|
687
|
+
function createBaseTypeDirective() {
|
|
688
|
+
return { name: "", arguments: [] };
|
|
932
689
|
}
|
|
933
|
-
exports.
|
|
934
|
-
encode(message, writer =
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
writer.uint32(18).
|
|
690
|
+
exports.TypeDirective = {
|
|
691
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
692
|
+
if (message.name !== "") {
|
|
693
|
+
writer.uint32(10).string(message.name);
|
|
694
|
+
}
|
|
695
|
+
for (const v of message.arguments) {
|
|
696
|
+
exports.TypeArgument.encode(v, writer.uint32(18).fork()).join();
|
|
940
697
|
}
|
|
941
698
|
return writer;
|
|
942
699
|
},
|
|
943
700
|
decode(input, length) {
|
|
944
|
-
const reader = input instanceof
|
|
701
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
945
702
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
946
|
-
const message =
|
|
703
|
+
const message = createBaseTypeDirective();
|
|
947
704
|
while (reader.pos < end) {
|
|
948
705
|
const tag = reader.uint32();
|
|
949
706
|
switch (tag >>> 3) {
|
|
950
|
-
case 1:
|
|
707
|
+
case 1: {
|
|
951
708
|
if (tag !== 10) {
|
|
952
709
|
break;
|
|
953
710
|
}
|
|
954
|
-
|
|
955
|
-
if (entry1.value !== undefined) {
|
|
956
|
-
message.status[entry1.key] = entry1.value;
|
|
957
|
-
}
|
|
711
|
+
message.name = reader.string();
|
|
958
712
|
continue;
|
|
959
|
-
|
|
713
|
+
}
|
|
714
|
+
case 2: {
|
|
960
715
|
if (tag !== 18) {
|
|
961
716
|
break;
|
|
962
717
|
}
|
|
963
|
-
message.
|
|
718
|
+
message.arguments.push(exports.TypeArgument.decode(reader, reader.uint32()));
|
|
964
719
|
continue;
|
|
720
|
+
}
|
|
965
721
|
}
|
|
966
722
|
if ((tag & 7) === 4 || tag === 0) {
|
|
967
723
|
break;
|
|
968
724
|
}
|
|
969
|
-
reader.
|
|
725
|
+
reader.skip(tag & 7);
|
|
970
726
|
}
|
|
971
727
|
return message;
|
|
972
728
|
},
|
|
973
729
|
fromJSON(object) {
|
|
974
730
|
return {
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
}, {})
|
|
980
|
-
: {},
|
|
981
|
-
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
731
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
732
|
+
arguments: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.arguments)
|
|
733
|
+
? object.arguments.map((e) => exports.TypeArgument.fromJSON(e))
|
|
734
|
+
: [],
|
|
982
735
|
};
|
|
983
736
|
},
|
|
984
737
|
toJSON(message) {
|
|
738
|
+
var _a;
|
|
985
739
|
const obj = {};
|
|
986
|
-
if (message.
|
|
987
|
-
|
|
988
|
-
if (entries.length > 0) {
|
|
989
|
-
obj.status = {};
|
|
990
|
-
entries.forEach(([k, v]) => {
|
|
991
|
-
obj.status[k] = v;
|
|
992
|
-
});
|
|
993
|
-
}
|
|
740
|
+
if (message.name !== "") {
|
|
741
|
+
obj.name = message.name;
|
|
994
742
|
}
|
|
995
|
-
if (message.
|
|
996
|
-
obj.
|
|
743
|
+
if ((_a = message.arguments) === null || _a === void 0 ? void 0 : _a.length) {
|
|
744
|
+
obj.arguments = message.arguments.map((e) => exports.TypeArgument.toJSON(e));
|
|
997
745
|
}
|
|
998
746
|
return obj;
|
|
999
747
|
},
|
|
1000
748
|
create(base) {
|
|
1001
|
-
return exports.
|
|
749
|
+
return exports.TypeDirective.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1002
750
|
},
|
|
1003
751
|
fromPartial(object) {
|
|
1004
752
|
var _a, _b;
|
|
1005
|
-
const message =
|
|
1006
|
-
message.
|
|
1007
|
-
|
|
1008
|
-
acc[key] = globalThis.String(value);
|
|
1009
|
-
}
|
|
1010
|
-
return acc;
|
|
1011
|
-
}, {});
|
|
1012
|
-
message.namespace = (_b = object.namespace) !== null && _b !== void 0 ? _b : "";
|
|
753
|
+
const message = createBaseTypeDirective();
|
|
754
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
755
|
+
message.arguments = ((_b = object.arguments) === null || _b === void 0 ? void 0 : _b.map((e) => exports.TypeArgument.fromPartial(e))) || [];
|
|
1013
756
|
return message;
|
|
1014
757
|
},
|
|
1015
758
|
};
|
|
1016
|
-
function
|
|
1017
|
-
return {
|
|
759
|
+
function createBaseTypeField() {
|
|
760
|
+
return { name: "", type: [], directives: [] };
|
|
1018
761
|
}
|
|
1019
|
-
exports.
|
|
1020
|
-
encode(message, writer =
|
|
1021
|
-
if (message.
|
|
1022
|
-
writer.uint32(10).string(message.
|
|
762
|
+
exports.TypeField = {
|
|
763
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
764
|
+
if (message.name !== "") {
|
|
765
|
+
writer.uint32(10).string(message.name);
|
|
766
|
+
}
|
|
767
|
+
for (const v of message.type) {
|
|
768
|
+
writer.uint32(18).string(v);
|
|
1023
769
|
}
|
|
1024
|
-
|
|
1025
|
-
writer.uint32(
|
|
770
|
+
for (const v of message.directives) {
|
|
771
|
+
exports.TypeDirective.encode(v, writer.uint32(26).fork()).join();
|
|
1026
772
|
}
|
|
1027
773
|
return writer;
|
|
1028
774
|
},
|
|
1029
775
|
decode(input, length) {
|
|
1030
|
-
const reader = input instanceof
|
|
776
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1031
777
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1032
|
-
const message =
|
|
778
|
+
const message = createBaseTypeField();
|
|
1033
779
|
while (reader.pos < end) {
|
|
1034
780
|
const tag = reader.uint32();
|
|
1035
781
|
switch (tag >>> 3) {
|
|
1036
|
-
case 1:
|
|
782
|
+
case 1: {
|
|
1037
783
|
if (tag !== 10) {
|
|
1038
784
|
break;
|
|
1039
785
|
}
|
|
1040
|
-
message.
|
|
786
|
+
message.name = reader.string();
|
|
1041
787
|
continue;
|
|
1042
|
-
|
|
1043
|
-
|
|
788
|
+
}
|
|
789
|
+
case 2: {
|
|
790
|
+
if (tag !== 18) {
|
|
791
|
+
break;
|
|
792
|
+
}
|
|
793
|
+
message.type.push(reader.string());
|
|
794
|
+
continue;
|
|
795
|
+
}
|
|
796
|
+
case 3: {
|
|
797
|
+
if (tag !== 26) {
|
|
1044
798
|
break;
|
|
1045
799
|
}
|
|
1046
|
-
message.
|
|
800
|
+
message.directives.push(exports.TypeDirective.decode(reader, reader.uint32()));
|
|
1047
801
|
continue;
|
|
802
|
+
}
|
|
1048
803
|
}
|
|
1049
804
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1050
805
|
break;
|
|
1051
806
|
}
|
|
1052
|
-
reader.
|
|
807
|
+
reader.skip(tag & 7);
|
|
1053
808
|
}
|
|
1054
809
|
return message;
|
|
1055
810
|
},
|
|
1056
811
|
fromJSON(object) {
|
|
1057
812
|
return {
|
|
1058
|
-
|
|
1059
|
-
|
|
813
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
814
|
+
type: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.type) ? object.type.map((e) => globalThis.String(e)) : [],
|
|
815
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
816
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
817
|
+
: [],
|
|
1060
818
|
};
|
|
1061
819
|
},
|
|
1062
820
|
toJSON(message) {
|
|
821
|
+
var _a, _b;
|
|
1063
822
|
const obj = {};
|
|
1064
|
-
if (message.
|
|
1065
|
-
obj.
|
|
823
|
+
if (message.name !== "") {
|
|
824
|
+
obj.name = message.name;
|
|
1066
825
|
}
|
|
1067
|
-
if (message.
|
|
1068
|
-
obj.
|
|
826
|
+
if ((_a = message.type) === null || _a === void 0 ? void 0 : _a.length) {
|
|
827
|
+
obj.type = message.type;
|
|
828
|
+
}
|
|
829
|
+
if ((_b = message.directives) === null || _b === void 0 ? void 0 : _b.length) {
|
|
830
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
1069
831
|
}
|
|
1070
832
|
return obj;
|
|
1071
833
|
},
|
|
1072
834
|
create(base) {
|
|
1073
|
-
return exports.
|
|
835
|
+
return exports.TypeField.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1074
836
|
},
|
|
1075
837
|
fromPartial(object) {
|
|
1076
|
-
var _a, _b;
|
|
1077
|
-
const message =
|
|
1078
|
-
message.
|
|
1079
|
-
message.
|
|
838
|
+
var _a, _b, _c;
|
|
839
|
+
const message = createBaseTypeField();
|
|
840
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
841
|
+
message.type = ((_b = object.type) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
842
|
+
message.directives = ((_c = object.directives) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
1080
843
|
return message;
|
|
1081
844
|
},
|
|
1082
845
|
};
|
|
1083
|
-
function
|
|
1084
|
-
return {};
|
|
846
|
+
function createBaseTypeArgument() {
|
|
847
|
+
return { name: "", value: "" };
|
|
1085
848
|
}
|
|
1086
|
-
exports.
|
|
1087
|
-
encode(
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
decode(input, length) {
|
|
1091
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1092
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1093
|
-
const message = createBaseCleanupMigrationResponse();
|
|
1094
|
-
while (reader.pos < end) {
|
|
1095
|
-
const tag = reader.uint32();
|
|
1096
|
-
switch (tag >>> 3) {
|
|
1097
|
-
}
|
|
1098
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1099
|
-
break;
|
|
1100
|
-
}
|
|
1101
|
-
reader.skipType(tag & 7);
|
|
849
|
+
exports.TypeArgument = {
|
|
850
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
851
|
+
if (message.name !== "") {
|
|
852
|
+
writer.uint32(10).string(message.name);
|
|
1102
853
|
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
fromJSON(_) {
|
|
1106
|
-
return {};
|
|
1107
|
-
},
|
|
1108
|
-
toJSON(_) {
|
|
1109
|
-
const obj = {};
|
|
1110
|
-
return obj;
|
|
1111
|
-
},
|
|
1112
|
-
create(base) {
|
|
1113
|
-
return exports.CleanupMigrationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1114
|
-
},
|
|
1115
|
-
fromPartial(_) {
|
|
1116
|
-
const message = createBaseCleanupMigrationResponse();
|
|
1117
|
-
return message;
|
|
1118
|
-
},
|
|
1119
|
-
};
|
|
1120
|
-
function createBaseRollbackMigrationRequest() {
|
|
1121
|
-
return { namespace: "" };
|
|
1122
|
-
}
|
|
1123
|
-
exports.RollbackMigrationRequest = {
|
|
1124
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1125
|
-
if (message.namespace !== "") {
|
|
1126
|
-
writer.uint32(10).string(message.namespace);
|
|
854
|
+
if (message.value !== "") {
|
|
855
|
+
writer.uint32(18).string(message.value);
|
|
1127
856
|
}
|
|
1128
857
|
return writer;
|
|
1129
858
|
},
|
|
1130
859
|
decode(input, length) {
|
|
1131
|
-
const reader = input instanceof
|
|
860
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1132
861
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1133
|
-
const message =
|
|
862
|
+
const message = createBaseTypeArgument();
|
|
1134
863
|
while (reader.pos < end) {
|
|
1135
864
|
const tag = reader.uint32();
|
|
1136
865
|
switch (tag >>> 3) {
|
|
1137
|
-
case 1:
|
|
866
|
+
case 1: {
|
|
1138
867
|
if (tag !== 10) {
|
|
1139
868
|
break;
|
|
1140
869
|
}
|
|
1141
|
-
message.
|
|
870
|
+
message.name = reader.string();
|
|
871
|
+
continue;
|
|
872
|
+
}
|
|
873
|
+
case 2: {
|
|
874
|
+
if (tag !== 18) {
|
|
875
|
+
break;
|
|
876
|
+
}
|
|
877
|
+
message.value = reader.string();
|
|
1142
878
|
continue;
|
|
879
|
+
}
|
|
1143
880
|
}
|
|
1144
881
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1145
882
|
break;
|
|
1146
883
|
}
|
|
1147
|
-
reader.
|
|
884
|
+
reader.skip(tag & 7);
|
|
1148
885
|
}
|
|
1149
886
|
return message;
|
|
1150
887
|
},
|
|
1151
888
|
fromJSON(object) {
|
|
1152
|
-
return {
|
|
889
|
+
return {
|
|
890
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
891
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
892
|
+
};
|
|
1153
893
|
},
|
|
1154
894
|
toJSON(message) {
|
|
1155
895
|
const obj = {};
|
|
1156
|
-
if (message.
|
|
1157
|
-
obj.
|
|
896
|
+
if (message.name !== "") {
|
|
897
|
+
obj.name = message.name;
|
|
898
|
+
}
|
|
899
|
+
if (message.value !== "") {
|
|
900
|
+
obj.value = message.value;
|
|
1158
901
|
}
|
|
1159
902
|
return obj;
|
|
1160
903
|
},
|
|
1161
904
|
create(base) {
|
|
1162
|
-
return exports.
|
|
905
|
+
return exports.TypeArgument.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1163
906
|
},
|
|
1164
907
|
fromPartial(object) {
|
|
1165
|
-
var _a;
|
|
1166
|
-
const message =
|
|
1167
|
-
message.
|
|
908
|
+
var _a, _b;
|
|
909
|
+
const message = createBaseTypeArgument();
|
|
910
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
911
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
1168
912
|
return message;
|
|
1169
913
|
},
|
|
1170
914
|
};
|
|
1171
|
-
function
|
|
1172
|
-
return {};
|
|
915
|
+
function createBaseEnumType() {
|
|
916
|
+
return { name: "", values: [] };
|
|
1173
917
|
}
|
|
1174
|
-
exports.
|
|
1175
|
-
encode(
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
decode(input, length) {
|
|
1179
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1180
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1181
|
-
const message = createBaseRollbackMigrationResponse();
|
|
1182
|
-
while (reader.pos < end) {
|
|
1183
|
-
const tag = reader.uint32();
|
|
1184
|
-
switch (tag >>> 3) {
|
|
1185
|
-
}
|
|
1186
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1187
|
-
break;
|
|
1188
|
-
}
|
|
1189
|
-
reader.skipType(tag & 7);
|
|
918
|
+
exports.EnumType = {
|
|
919
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
920
|
+
if (message.name !== "") {
|
|
921
|
+
writer.uint32(10).string(message.name);
|
|
1190
922
|
}
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
fromJSON(_) {
|
|
1194
|
-
return {};
|
|
1195
|
-
},
|
|
1196
|
-
toJSON(_) {
|
|
1197
|
-
const obj = {};
|
|
1198
|
-
return obj;
|
|
1199
|
-
},
|
|
1200
|
-
create(base) {
|
|
1201
|
-
return exports.RollbackMigrationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1202
|
-
},
|
|
1203
|
-
fromPartial(_) {
|
|
1204
|
-
const message = createBaseRollbackMigrationResponse();
|
|
1205
|
-
return message;
|
|
1206
|
-
},
|
|
1207
|
-
};
|
|
1208
|
-
function createBaseGetMigrationStatusRequest() {
|
|
1209
|
-
return { namespace: "" };
|
|
1210
|
-
}
|
|
1211
|
-
exports.GetMigrationStatusRequest = {
|
|
1212
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1213
|
-
if (message.namespace !== "") {
|
|
1214
|
-
writer.uint32(10).string(message.namespace);
|
|
923
|
+
for (const v of message.values) {
|
|
924
|
+
writer.uint32(18).string(v);
|
|
1215
925
|
}
|
|
1216
926
|
return writer;
|
|
1217
927
|
},
|
|
1218
928
|
decode(input, length) {
|
|
1219
|
-
const reader = input instanceof
|
|
929
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1220
930
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1221
|
-
const message =
|
|
931
|
+
const message = createBaseEnumType();
|
|
1222
932
|
while (reader.pos < end) {
|
|
1223
933
|
const tag = reader.uint32();
|
|
1224
934
|
switch (tag >>> 3) {
|
|
1225
|
-
case 1:
|
|
935
|
+
case 1: {
|
|
1226
936
|
if (tag !== 10) {
|
|
1227
937
|
break;
|
|
1228
938
|
}
|
|
1229
|
-
message.
|
|
939
|
+
message.name = reader.string();
|
|
940
|
+
continue;
|
|
941
|
+
}
|
|
942
|
+
case 2: {
|
|
943
|
+
if (tag !== 18) {
|
|
944
|
+
break;
|
|
945
|
+
}
|
|
946
|
+
message.values.push(reader.string());
|
|
1230
947
|
continue;
|
|
948
|
+
}
|
|
1231
949
|
}
|
|
1232
950
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1233
951
|
break;
|
|
1234
952
|
}
|
|
1235
|
-
reader.
|
|
953
|
+
reader.skip(tag & 7);
|
|
1236
954
|
}
|
|
1237
955
|
return message;
|
|
1238
956
|
},
|
|
1239
957
|
fromJSON(object) {
|
|
1240
|
-
return {
|
|
958
|
+
return {
|
|
959
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
960
|
+
values: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.values) ? object.values.map((e) => globalThis.String(e)) : [],
|
|
961
|
+
};
|
|
1241
962
|
},
|
|
1242
963
|
toJSON(message) {
|
|
964
|
+
var _a;
|
|
1243
965
|
const obj = {};
|
|
1244
|
-
if (message.
|
|
1245
|
-
obj.
|
|
966
|
+
if (message.name !== "") {
|
|
967
|
+
obj.name = message.name;
|
|
968
|
+
}
|
|
969
|
+
if ((_a = message.values) === null || _a === void 0 ? void 0 : _a.length) {
|
|
970
|
+
obj.values = message.values;
|
|
1246
971
|
}
|
|
1247
972
|
return obj;
|
|
1248
973
|
},
|
|
1249
974
|
create(base) {
|
|
1250
|
-
return exports.
|
|
975
|
+
return exports.EnumType.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1251
976
|
},
|
|
1252
977
|
fromPartial(object) {
|
|
1253
|
-
var _a;
|
|
1254
|
-
const message =
|
|
1255
|
-
message.
|
|
978
|
+
var _a, _b;
|
|
979
|
+
const message = createBaseEnumType();
|
|
980
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
981
|
+
message.values = ((_b = object.values) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
1256
982
|
return message;
|
|
1257
983
|
},
|
|
1258
984
|
};
|
|
1259
|
-
function
|
|
1260
|
-
return {
|
|
985
|
+
function createBaseView() {
|
|
986
|
+
return { name: "", sql: "", directives: [], fields: [] };
|
|
1261
987
|
}
|
|
1262
|
-
exports.
|
|
1263
|
-
encode(message, writer =
|
|
1264
|
-
if (message.
|
|
1265
|
-
writer.uint32(
|
|
1266
|
-
}
|
|
1267
|
-
if (message.done !== false) {
|
|
1268
|
-
writer.uint32(16).bool(message.done);
|
|
988
|
+
exports.View = {
|
|
989
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
990
|
+
if (message.name !== "") {
|
|
991
|
+
writer.uint32(10).string(message.name);
|
|
1269
992
|
}
|
|
1270
|
-
if (message.
|
|
1271
|
-
writer.uint32(
|
|
993
|
+
if (message.sql !== "") {
|
|
994
|
+
writer.uint32(18).string(message.sql);
|
|
1272
995
|
}
|
|
1273
|
-
|
|
1274
|
-
writer.uint32(
|
|
996
|
+
for (const v of message.directives) {
|
|
997
|
+
exports.TypeDirective.encode(v, writer.uint32(26).fork()).join();
|
|
1275
998
|
}
|
|
1276
|
-
|
|
1277
|
-
writer.uint32(
|
|
999
|
+
for (const v of message.fields) {
|
|
1000
|
+
exports.TypeField.encode(v, writer.uint32(34).fork()).join();
|
|
1278
1001
|
}
|
|
1279
1002
|
return writer;
|
|
1280
1003
|
},
|
|
1281
1004
|
decode(input, length) {
|
|
1282
|
-
const reader = input instanceof
|
|
1005
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1283
1006
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1284
|
-
const message =
|
|
1007
|
+
const message = createBaseView();
|
|
1285
1008
|
while (reader.pos < end) {
|
|
1286
1009
|
const tag = reader.uint32();
|
|
1287
1010
|
switch (tag >>> 3) {
|
|
1288
|
-
case 1:
|
|
1289
|
-
if (tag !==
|
|
1290
|
-
break;
|
|
1291
|
-
}
|
|
1292
|
-
message.started = reader.bool();
|
|
1293
|
-
continue;
|
|
1294
|
-
case 2:
|
|
1295
|
-
if (tag !== 16) {
|
|
1011
|
+
case 1: {
|
|
1012
|
+
if (tag !== 10) {
|
|
1296
1013
|
break;
|
|
1297
1014
|
}
|
|
1298
|
-
message.
|
|
1015
|
+
message.name = reader.string();
|
|
1299
1016
|
continue;
|
|
1300
|
-
|
|
1301
|
-
|
|
1017
|
+
}
|
|
1018
|
+
case 2: {
|
|
1019
|
+
if (tag !== 18) {
|
|
1302
1020
|
break;
|
|
1303
1021
|
}
|
|
1304
|
-
message.
|
|
1022
|
+
message.sql = reader.string();
|
|
1305
1023
|
continue;
|
|
1306
|
-
|
|
1307
|
-
|
|
1024
|
+
}
|
|
1025
|
+
case 3: {
|
|
1026
|
+
if (tag !== 26) {
|
|
1308
1027
|
break;
|
|
1309
1028
|
}
|
|
1310
|
-
message.
|
|
1029
|
+
message.directives.push(exports.TypeDirective.decode(reader, reader.uint32()));
|
|
1311
1030
|
continue;
|
|
1312
|
-
|
|
1313
|
-
|
|
1031
|
+
}
|
|
1032
|
+
case 4: {
|
|
1033
|
+
if (tag !== 34) {
|
|
1314
1034
|
break;
|
|
1315
1035
|
}
|
|
1316
|
-
message.
|
|
1036
|
+
message.fields.push(exports.TypeField.decode(reader, reader.uint32()));
|
|
1317
1037
|
continue;
|
|
1038
|
+
}
|
|
1318
1039
|
}
|
|
1319
1040
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1320
1041
|
break;
|
|
1321
1042
|
}
|
|
1322
|
-
reader.
|
|
1043
|
+
reader.skip(tag & 7);
|
|
1323
1044
|
}
|
|
1324
1045
|
return message;
|
|
1325
1046
|
},
|
|
1326
1047
|
fromJSON(object) {
|
|
1327
1048
|
return {
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1049
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1050
|
+
sql: isSet(object.sql) ? globalThis.String(object.sql) : "",
|
|
1051
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
1052
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
1053
|
+
: [],
|
|
1054
|
+
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
1333
1055
|
};
|
|
1334
1056
|
},
|
|
1335
1057
|
toJSON(message) {
|
|
1058
|
+
var _a, _b;
|
|
1336
1059
|
const obj = {};
|
|
1337
|
-
if (message.
|
|
1338
|
-
obj.
|
|
1339
|
-
}
|
|
1340
|
-
if (message.done !== false) {
|
|
1341
|
-
obj.done = message.done;
|
|
1060
|
+
if (message.name !== "") {
|
|
1061
|
+
obj.name = message.name;
|
|
1342
1062
|
}
|
|
1343
|
-
if (message.
|
|
1344
|
-
obj.
|
|
1063
|
+
if (message.sql !== "") {
|
|
1064
|
+
obj.sql = message.sql;
|
|
1345
1065
|
}
|
|
1346
|
-
if (message.
|
|
1347
|
-
obj.
|
|
1066
|
+
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1067
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
1348
1068
|
}
|
|
1349
|
-
if (message.
|
|
1350
|
-
obj.
|
|
1069
|
+
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1070
|
+
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
1351
1071
|
}
|
|
1352
1072
|
return obj;
|
|
1353
1073
|
},
|
|
1354
1074
|
create(base) {
|
|
1355
|
-
return exports.
|
|
1075
|
+
return exports.View.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1356
1076
|
},
|
|
1357
1077
|
fromPartial(object) {
|
|
1358
|
-
var _a, _b, _c, _d
|
|
1359
|
-
const message =
|
|
1360
|
-
message.
|
|
1361
|
-
message.
|
|
1362
|
-
message.
|
|
1363
|
-
message.
|
|
1364
|
-
message.finished = (_e = object.finished) !== null && _e !== void 0 ? _e : false;
|
|
1078
|
+
var _a, _b, _c, _d;
|
|
1079
|
+
const message = createBaseView();
|
|
1080
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
1081
|
+
message.sql = (_b = object.sql) !== null && _b !== void 0 ? _b : "";
|
|
1082
|
+
message.directives = ((_c = object.directives) === null || _c === void 0 ? void 0 : _c.map((e) => exports.TypeDirective.fromPartial(e))) || [];
|
|
1083
|
+
message.fields = ((_d = object.fields) === null || _d === void 0 ? void 0 : _d.map((e) => exports.TypeField.fromPartial(e))) || [];
|
|
1365
1084
|
return message;
|
|
1366
1085
|
},
|
|
1367
1086
|
};
|
|
1368
|
-
function longToString(long) {
|
|
1369
|
-
return long.toString();
|
|
1370
|
-
}
|
|
1371
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
1372
|
-
minimal_1.default.util.Long = long_1.default;
|
|
1373
|
-
minimal_1.default.configure();
|
|
1374
|
-
}
|
|
1375
|
-
function isObject(value) {
|
|
1376
|
-
return typeof value === "object" && value !== null;
|
|
1377
|
-
}
|
|
1378
1087
|
function isSet(value) {
|
|
1379
1088
|
return value !== null && value !== undefined;
|
|
1380
1089
|
}
|