@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,55 +1,106 @@
|
|
|
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.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.auth.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
|
+
}
|
|
24
|
+
}
|
|
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: "", permissions: [], options: undefined };
|
|
11
47
|
}
|
|
12
|
-
exports.
|
|
13
|
-
encode(message, writer =
|
|
48
|
+
exports.DeploySchemaRequest = {
|
|
49
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14
50
|
if (message.namespace !== "") {
|
|
15
51
|
writer.uint32(10).string(message.namespace);
|
|
16
52
|
}
|
|
17
|
-
for (const v of message.
|
|
53
|
+
for (const v of message.permissions) {
|
|
18
54
|
writer.uint32(18).string(v);
|
|
19
55
|
}
|
|
56
|
+
if (message.options !== undefined) {
|
|
57
|
+
exports.DeploymentOptions.encode(message.options, writer.uint32(26).fork()).join();
|
|
58
|
+
}
|
|
20
59
|
return writer;
|
|
21
60
|
},
|
|
22
61
|
decode(input, length) {
|
|
23
|
-
const reader = input instanceof
|
|
62
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
24
63
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
-
const message =
|
|
64
|
+
const message = createBaseDeploySchemaRequest();
|
|
26
65
|
while (reader.pos < end) {
|
|
27
66
|
const tag = reader.uint32();
|
|
28
67
|
switch (tag >>> 3) {
|
|
29
|
-
case 1:
|
|
68
|
+
case 1: {
|
|
30
69
|
if (tag !== 10) {
|
|
31
70
|
break;
|
|
32
71
|
}
|
|
33
72
|
message.namespace = reader.string();
|
|
34
73
|
continue;
|
|
35
|
-
|
|
74
|
+
}
|
|
75
|
+
case 2: {
|
|
36
76
|
if (tag !== 18) {
|
|
37
77
|
break;
|
|
38
78
|
}
|
|
39
|
-
message.
|
|
79
|
+
message.permissions.push(reader.string());
|
|
40
80
|
continue;
|
|
81
|
+
}
|
|
82
|
+
case 3: {
|
|
83
|
+
if (tag !== 26) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.options = exports.DeploymentOptions.decode(reader, reader.uint32());
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
41
89
|
}
|
|
42
90
|
if ((tag & 7) === 4 || tag === 0) {
|
|
43
91
|
break;
|
|
44
92
|
}
|
|
45
|
-
reader.
|
|
93
|
+
reader.skip(tag & 7);
|
|
46
94
|
}
|
|
47
95
|
return message;
|
|
48
96
|
},
|
|
49
97
|
fromJSON(object) {
|
|
50
98
|
return {
|
|
51
99
|
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
52
|
-
|
|
100
|
+
permissions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.permissions)
|
|
101
|
+
? object.permissions.map((e) => globalThis.String(e))
|
|
102
|
+
: [],
|
|
103
|
+
options: isSet(object.options) ? exports.DeploymentOptions.fromJSON(object.options) : undefined,
|
|
53
104
|
};
|
|
54
105
|
},
|
|
55
106
|
toJSON(message) {
|
|
@@ -58,33 +109,39 @@ exports.RegisterMigrationRequest = {
|
|
|
58
109
|
if (message.namespace !== "") {
|
|
59
110
|
obj.namespace = message.namespace;
|
|
60
111
|
}
|
|
61
|
-
if ((_a = message.
|
|
62
|
-
obj.
|
|
112
|
+
if ((_a = message.permissions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
113
|
+
obj.permissions = message.permissions;
|
|
114
|
+
}
|
|
115
|
+
if (message.options !== undefined) {
|
|
116
|
+
obj.options = exports.DeploymentOptions.toJSON(message.options);
|
|
63
117
|
}
|
|
64
118
|
return obj;
|
|
65
119
|
},
|
|
66
120
|
create(base) {
|
|
67
|
-
return exports.
|
|
121
|
+
return exports.DeploySchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
68
122
|
},
|
|
69
123
|
fromPartial(object) {
|
|
70
124
|
var _a, _b;
|
|
71
|
-
const message =
|
|
125
|
+
const message = createBaseDeploySchemaRequest();
|
|
72
126
|
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
73
|
-
message.
|
|
127
|
+
message.permissions = ((_b = object.permissions) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
128
|
+
message.options = (object.options !== undefined && object.options !== null)
|
|
129
|
+
? exports.DeploymentOptions.fromPartial(object.options)
|
|
130
|
+
: undefined;
|
|
74
131
|
return message;
|
|
75
132
|
},
|
|
76
133
|
};
|
|
77
|
-
function
|
|
134
|
+
function createBaseDeploySchemaResponse() {
|
|
78
135
|
return {};
|
|
79
136
|
}
|
|
80
|
-
exports.
|
|
81
|
-
encode(_, writer =
|
|
137
|
+
exports.DeploySchemaResponse = {
|
|
138
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
82
139
|
return writer;
|
|
83
140
|
},
|
|
84
141
|
decode(input, length) {
|
|
85
|
-
const reader = input instanceof
|
|
142
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
86
143
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
87
|
-
const message =
|
|
144
|
+
const message = createBaseDeploySchemaResponse();
|
|
88
145
|
while (reader.pos < end) {
|
|
89
146
|
const tag = reader.uint32();
|
|
90
147
|
switch (tag >>> 3) {
|
|
@@ -92,7 +149,7 @@ exports.RegisterMigrationResponse = {
|
|
|
92
149
|
if ((tag & 7) === 4 || tag === 0) {
|
|
93
150
|
break;
|
|
94
151
|
}
|
|
95
|
-
reader.
|
|
152
|
+
reader.skip(tag & 7);
|
|
96
153
|
}
|
|
97
154
|
return message;
|
|
98
155
|
},
|
|
@@ -104,75 +161,76 @@ exports.RegisterMigrationResponse = {
|
|
|
104
161
|
return obj;
|
|
105
162
|
},
|
|
106
163
|
create(base) {
|
|
107
|
-
return exports.
|
|
164
|
+
return exports.DeploySchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
108
165
|
},
|
|
109
166
|
fromPartial(_) {
|
|
110
|
-
const message =
|
|
167
|
+
const message = createBaseDeploySchemaResponse();
|
|
111
168
|
return message;
|
|
112
169
|
},
|
|
113
170
|
};
|
|
114
|
-
function
|
|
115
|
-
return {
|
|
171
|
+
function createBaseConfirmSchemaRequest() {
|
|
172
|
+
return { deploymentId: "0" };
|
|
116
173
|
}
|
|
117
|
-
exports.
|
|
118
|
-
encode(message, writer =
|
|
119
|
-
if (message.
|
|
120
|
-
writer.uint32(
|
|
174
|
+
exports.ConfirmSchemaRequest = {
|
|
175
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
176
|
+
if (message.deploymentId !== "0") {
|
|
177
|
+
writer.uint32(8).int64(message.deploymentId);
|
|
121
178
|
}
|
|
122
179
|
return writer;
|
|
123
180
|
},
|
|
124
181
|
decode(input, length) {
|
|
125
|
-
const reader = input instanceof
|
|
182
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
126
183
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
-
const message =
|
|
184
|
+
const message = createBaseConfirmSchemaRequest();
|
|
128
185
|
while (reader.pos < end) {
|
|
129
186
|
const tag = reader.uint32();
|
|
130
187
|
switch (tag >>> 3) {
|
|
131
|
-
case 1:
|
|
132
|
-
if (tag !==
|
|
188
|
+
case 1: {
|
|
189
|
+
if (tag !== 8) {
|
|
133
190
|
break;
|
|
134
191
|
}
|
|
135
|
-
message.
|
|
192
|
+
message.deploymentId = reader.int64().toString();
|
|
136
193
|
continue;
|
|
194
|
+
}
|
|
137
195
|
}
|
|
138
196
|
if ((tag & 7) === 4 || tag === 0) {
|
|
139
197
|
break;
|
|
140
198
|
}
|
|
141
|
-
reader.
|
|
199
|
+
reader.skip(tag & 7);
|
|
142
200
|
}
|
|
143
201
|
return message;
|
|
144
202
|
},
|
|
145
203
|
fromJSON(object) {
|
|
146
|
-
return {
|
|
204
|
+
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
147
205
|
},
|
|
148
206
|
toJSON(message) {
|
|
149
207
|
const obj = {};
|
|
150
|
-
if (message.
|
|
151
|
-
obj.
|
|
208
|
+
if (message.deploymentId !== "0") {
|
|
209
|
+
obj.deploymentId = message.deploymentId;
|
|
152
210
|
}
|
|
153
211
|
return obj;
|
|
154
212
|
},
|
|
155
213
|
create(base) {
|
|
156
|
-
return exports.
|
|
214
|
+
return exports.ConfirmSchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
157
215
|
},
|
|
158
216
|
fromPartial(object) {
|
|
159
217
|
var _a;
|
|
160
|
-
const message =
|
|
161
|
-
message.
|
|
218
|
+
const message = createBaseConfirmSchemaRequest();
|
|
219
|
+
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
162
220
|
return message;
|
|
163
221
|
},
|
|
164
222
|
};
|
|
165
|
-
function
|
|
223
|
+
function createBaseConfirmSchemaResponse() {
|
|
166
224
|
return {};
|
|
167
225
|
}
|
|
168
|
-
exports.
|
|
169
|
-
encode(_, writer =
|
|
226
|
+
exports.ConfirmSchemaResponse = {
|
|
227
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
170
228
|
return writer;
|
|
171
229
|
},
|
|
172
230
|
decode(input, length) {
|
|
173
|
-
const reader = input instanceof
|
|
231
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
174
232
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
175
|
-
const message =
|
|
233
|
+
const message = createBaseConfirmSchemaResponse();
|
|
176
234
|
while (reader.pos < end) {
|
|
177
235
|
const tag = reader.uint32();
|
|
178
236
|
switch (tag >>> 3) {
|
|
@@ -180,7 +238,7 @@ exports.ApplyMigrationResponse = {
|
|
|
180
238
|
if ((tag & 7) === 4 || tag === 0) {
|
|
181
239
|
break;
|
|
182
240
|
}
|
|
183
|
-
reader.
|
|
241
|
+
reader.skip(tag & 7);
|
|
184
242
|
}
|
|
185
243
|
return message;
|
|
186
244
|
},
|
|
@@ -192,75 +250,76 @@ exports.ApplyMigrationResponse = {
|
|
|
192
250
|
return obj;
|
|
193
251
|
},
|
|
194
252
|
create(base) {
|
|
195
|
-
return exports.
|
|
253
|
+
return exports.ConfirmSchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
196
254
|
},
|
|
197
255
|
fromPartial(_) {
|
|
198
|
-
const message =
|
|
256
|
+
const message = createBaseConfirmSchemaResponse();
|
|
199
257
|
return message;
|
|
200
258
|
},
|
|
201
259
|
};
|
|
202
|
-
function
|
|
203
|
-
return {
|
|
260
|
+
function createBaseRollbackSchemaRequest() {
|
|
261
|
+
return { deploymentId: "0" };
|
|
204
262
|
}
|
|
205
|
-
exports.
|
|
206
|
-
encode(message, writer =
|
|
207
|
-
if (message.
|
|
208
|
-
writer.uint32(
|
|
263
|
+
exports.RollbackSchemaRequest = {
|
|
264
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
265
|
+
if (message.deploymentId !== "0") {
|
|
266
|
+
writer.uint32(8).int64(message.deploymentId);
|
|
209
267
|
}
|
|
210
268
|
return writer;
|
|
211
269
|
},
|
|
212
270
|
decode(input, length) {
|
|
213
|
-
const reader = input instanceof
|
|
271
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
214
272
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
215
|
-
const message =
|
|
273
|
+
const message = createBaseRollbackSchemaRequest();
|
|
216
274
|
while (reader.pos < end) {
|
|
217
275
|
const tag = reader.uint32();
|
|
218
276
|
switch (tag >>> 3) {
|
|
219
|
-
case 1:
|
|
220
|
-
if (tag !==
|
|
277
|
+
case 1: {
|
|
278
|
+
if (tag !== 8) {
|
|
221
279
|
break;
|
|
222
280
|
}
|
|
223
|
-
message.
|
|
281
|
+
message.deploymentId = reader.int64().toString();
|
|
224
282
|
continue;
|
|
283
|
+
}
|
|
225
284
|
}
|
|
226
285
|
if ((tag & 7) === 4 || tag === 0) {
|
|
227
286
|
break;
|
|
228
287
|
}
|
|
229
|
-
reader.
|
|
288
|
+
reader.skip(tag & 7);
|
|
230
289
|
}
|
|
231
290
|
return message;
|
|
232
291
|
},
|
|
233
292
|
fromJSON(object) {
|
|
234
|
-
return {
|
|
293
|
+
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
235
294
|
},
|
|
236
295
|
toJSON(message) {
|
|
237
296
|
const obj = {};
|
|
238
|
-
if (message.
|
|
239
|
-
obj.
|
|
297
|
+
if (message.deploymentId !== "0") {
|
|
298
|
+
obj.deploymentId = message.deploymentId;
|
|
240
299
|
}
|
|
241
300
|
return obj;
|
|
242
301
|
},
|
|
243
302
|
create(base) {
|
|
244
|
-
return exports.
|
|
303
|
+
return exports.RollbackSchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
245
304
|
},
|
|
246
305
|
fromPartial(object) {
|
|
247
306
|
var _a;
|
|
248
|
-
const message =
|
|
249
|
-
message.
|
|
307
|
+
const message = createBaseRollbackSchemaRequest();
|
|
308
|
+
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
250
309
|
return message;
|
|
251
310
|
},
|
|
252
311
|
};
|
|
253
|
-
function
|
|
312
|
+
function createBaseRollbackSchemaResponse() {
|
|
254
313
|
return {};
|
|
255
314
|
}
|
|
256
|
-
exports.
|
|
257
|
-
encode(_, writer =
|
|
315
|
+
exports.RollbackSchemaResponse = {
|
|
316
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
258
317
|
return writer;
|
|
259
318
|
},
|
|
260
319
|
decode(input, length) {
|
|
261
|
-
const reader = input instanceof
|
|
320
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
262
321
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
263
|
-
const message =
|
|
322
|
+
const message = createBaseRollbackSchemaResponse();
|
|
264
323
|
while (reader.pos < end) {
|
|
265
324
|
const tag = reader.uint32();
|
|
266
325
|
switch (tag >>> 3) {
|
|
@@ -268,7 +327,7 @@ exports.CleanupMigrationResponse = {
|
|
|
268
327
|
if ((tag & 7) === 4 || tag === 0) {
|
|
269
328
|
break;
|
|
270
329
|
}
|
|
271
|
-
reader.
|
|
330
|
+
reader.skip(tag & 7);
|
|
272
331
|
}
|
|
273
332
|
return message;
|
|
274
333
|
},
|
|
@@ -280,200 +339,168 @@ exports.CleanupMigrationResponse = {
|
|
|
280
339
|
return obj;
|
|
281
340
|
},
|
|
282
341
|
create(base) {
|
|
283
|
-
return exports.
|
|
342
|
+
return exports.RollbackSchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
284
343
|
},
|
|
285
344
|
fromPartial(_) {
|
|
286
|
-
const message =
|
|
345
|
+
const message = createBaseRollbackSchemaResponse();
|
|
287
346
|
return message;
|
|
288
347
|
},
|
|
289
348
|
};
|
|
290
|
-
function
|
|
291
|
-
return {
|
|
349
|
+
function createBaseGetSchemaDeploymentRequest() {
|
|
350
|
+
return { deploymentId: "0" };
|
|
292
351
|
}
|
|
293
|
-
exports.
|
|
294
|
-
encode(message, writer =
|
|
295
|
-
if (message.
|
|
296
|
-
writer.uint32(
|
|
352
|
+
exports.GetSchemaDeploymentRequest = {
|
|
353
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
354
|
+
if (message.deploymentId !== "0") {
|
|
355
|
+
writer.uint32(8).int64(message.deploymentId);
|
|
297
356
|
}
|
|
298
357
|
return writer;
|
|
299
358
|
},
|
|
300
359
|
decode(input, length) {
|
|
301
|
-
const reader = input instanceof
|
|
360
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
302
361
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
303
|
-
const message =
|
|
362
|
+
const message = createBaseGetSchemaDeploymentRequest();
|
|
304
363
|
while (reader.pos < end) {
|
|
305
364
|
const tag = reader.uint32();
|
|
306
365
|
switch (tag >>> 3) {
|
|
307
|
-
case 1:
|
|
308
|
-
if (tag !==
|
|
366
|
+
case 1: {
|
|
367
|
+
if (tag !== 8) {
|
|
309
368
|
break;
|
|
310
369
|
}
|
|
311
|
-
message.
|
|
370
|
+
message.deploymentId = reader.int64().toString();
|
|
312
371
|
continue;
|
|
372
|
+
}
|
|
313
373
|
}
|
|
314
374
|
if ((tag & 7) === 4 || tag === 0) {
|
|
315
375
|
break;
|
|
316
376
|
}
|
|
317
|
-
reader.
|
|
377
|
+
reader.skip(tag & 7);
|
|
318
378
|
}
|
|
319
379
|
return message;
|
|
320
380
|
},
|
|
321
381
|
fromJSON(object) {
|
|
322
|
-
return {
|
|
382
|
+
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
323
383
|
},
|
|
324
384
|
toJSON(message) {
|
|
325
385
|
const obj = {};
|
|
326
|
-
if (message.
|
|
327
|
-
obj.
|
|
386
|
+
if (message.deploymentId !== "0") {
|
|
387
|
+
obj.deploymentId = message.deploymentId;
|
|
328
388
|
}
|
|
329
389
|
return obj;
|
|
330
390
|
},
|
|
331
391
|
create(base) {
|
|
332
|
-
return exports.
|
|
392
|
+
return exports.GetSchemaDeploymentRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
333
393
|
},
|
|
334
394
|
fromPartial(object) {
|
|
335
395
|
var _a;
|
|
336
|
-
const message =
|
|
337
|
-
message.
|
|
396
|
+
const message = createBaseGetSchemaDeploymentRequest();
|
|
397
|
+
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
338
398
|
return message;
|
|
339
399
|
},
|
|
340
400
|
};
|
|
341
|
-
function
|
|
342
|
-
return {};
|
|
401
|
+
function createBaseGetSchemaDeploymentResponse() {
|
|
402
|
+
return { progress: 0 };
|
|
343
403
|
}
|
|
344
|
-
exports.
|
|
345
|
-
encode(
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
decode(input, length) {
|
|
349
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
350
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
351
|
-
const message = createBaseRollbackMigrationResponse();
|
|
352
|
-
while (reader.pos < end) {
|
|
353
|
-
const tag = reader.uint32();
|
|
354
|
-
switch (tag >>> 3) {
|
|
355
|
-
}
|
|
356
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
357
|
-
break;
|
|
358
|
-
}
|
|
359
|
-
reader.skipType(tag & 7);
|
|
360
|
-
}
|
|
361
|
-
return message;
|
|
362
|
-
},
|
|
363
|
-
fromJSON(_) {
|
|
364
|
-
return {};
|
|
365
|
-
},
|
|
366
|
-
toJSON(_) {
|
|
367
|
-
const obj = {};
|
|
368
|
-
return obj;
|
|
369
|
-
},
|
|
370
|
-
create(base) {
|
|
371
|
-
return exports.RollbackMigrationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
372
|
-
},
|
|
373
|
-
fromPartial(_) {
|
|
374
|
-
const message = createBaseRollbackMigrationResponse();
|
|
375
|
-
return message;
|
|
376
|
-
},
|
|
377
|
-
};
|
|
378
|
-
function createBaseGetMigrationStatusRequest() {
|
|
379
|
-
return { namespace: "" };
|
|
380
|
-
}
|
|
381
|
-
exports.GetMigrationStatusRequest = {
|
|
382
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
383
|
-
if (message.namespace !== "") {
|
|
384
|
-
writer.uint32(10).string(message.namespace);
|
|
404
|
+
exports.GetSchemaDeploymentResponse = {
|
|
405
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
406
|
+
if (message.progress !== 0) {
|
|
407
|
+
writer.uint32(8).uint32(message.progress);
|
|
385
408
|
}
|
|
386
409
|
return writer;
|
|
387
410
|
},
|
|
388
411
|
decode(input, length) {
|
|
389
|
-
const reader = input instanceof
|
|
412
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
390
413
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
391
|
-
const message =
|
|
414
|
+
const message = createBaseGetSchemaDeploymentResponse();
|
|
392
415
|
while (reader.pos < end) {
|
|
393
416
|
const tag = reader.uint32();
|
|
394
417
|
switch (tag >>> 3) {
|
|
395
|
-
case 1:
|
|
396
|
-
if (tag !==
|
|
418
|
+
case 1: {
|
|
419
|
+
if (tag !== 8) {
|
|
397
420
|
break;
|
|
398
421
|
}
|
|
399
|
-
message.
|
|
422
|
+
message.progress = reader.uint32();
|
|
400
423
|
continue;
|
|
424
|
+
}
|
|
401
425
|
}
|
|
402
426
|
if ((tag & 7) === 4 || tag === 0) {
|
|
403
427
|
break;
|
|
404
428
|
}
|
|
405
|
-
reader.
|
|
429
|
+
reader.skip(tag & 7);
|
|
406
430
|
}
|
|
407
431
|
return message;
|
|
408
432
|
},
|
|
409
433
|
fromJSON(object) {
|
|
410
|
-
return {
|
|
434
|
+
return { progress: isSet(object.progress) ? globalThis.Number(object.progress) : 0 };
|
|
411
435
|
},
|
|
412
436
|
toJSON(message) {
|
|
413
437
|
const obj = {};
|
|
414
|
-
if (message.
|
|
415
|
-
obj.
|
|
438
|
+
if (message.progress !== 0) {
|
|
439
|
+
obj.progress = Math.round(message.progress);
|
|
416
440
|
}
|
|
417
441
|
return obj;
|
|
418
442
|
},
|
|
419
443
|
create(base) {
|
|
420
|
-
return exports.
|
|
444
|
+
return exports.GetSchemaDeploymentResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
421
445
|
},
|
|
422
446
|
fromPartial(object) {
|
|
423
447
|
var _a;
|
|
424
|
-
const message =
|
|
425
|
-
message.
|
|
448
|
+
const message = createBaseGetSchemaDeploymentResponse();
|
|
449
|
+
message.progress = (_a = object.progress) !== null && _a !== void 0 ? _a : 0;
|
|
426
450
|
return message;
|
|
427
451
|
},
|
|
428
452
|
};
|
|
429
|
-
function
|
|
430
|
-
return {
|
|
453
|
+
function createBaseDeploymentOptions() {
|
|
454
|
+
return { target: exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE };
|
|
431
455
|
}
|
|
432
|
-
exports.
|
|
433
|
-
encode(message, writer =
|
|
434
|
-
if (message.
|
|
435
|
-
writer.uint32(8).
|
|
456
|
+
exports.DeploymentOptions = {
|
|
457
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
458
|
+
if (message.target !== exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE) {
|
|
459
|
+
writer.uint32(8).int32(deploymentTargetToNumber(message.target));
|
|
436
460
|
}
|
|
437
461
|
return writer;
|
|
438
462
|
},
|
|
439
463
|
decode(input, length) {
|
|
440
|
-
const reader = input instanceof
|
|
464
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
441
465
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
442
|
-
const message =
|
|
466
|
+
const message = createBaseDeploymentOptions();
|
|
443
467
|
while (reader.pos < end) {
|
|
444
468
|
const tag = reader.uint32();
|
|
445
469
|
switch (tag >>> 3) {
|
|
446
|
-
case 1:
|
|
470
|
+
case 1: {
|
|
447
471
|
if (tag !== 8) {
|
|
448
472
|
break;
|
|
449
473
|
}
|
|
450
|
-
message.
|
|
474
|
+
message.target = deploymentTargetFromJSON(reader.int32());
|
|
451
475
|
continue;
|
|
476
|
+
}
|
|
452
477
|
}
|
|
453
478
|
if ((tag & 7) === 4 || tag === 0) {
|
|
454
479
|
break;
|
|
455
480
|
}
|
|
456
|
-
reader.
|
|
481
|
+
reader.skip(tag & 7);
|
|
457
482
|
}
|
|
458
483
|
return message;
|
|
459
484
|
},
|
|
460
485
|
fromJSON(object) {
|
|
461
|
-
return {
|
|
486
|
+
return {
|
|
487
|
+
target: isSet(object.target) ? deploymentTargetFromJSON(object.target) : exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE,
|
|
488
|
+
};
|
|
462
489
|
},
|
|
463
490
|
toJSON(message) {
|
|
464
491
|
const obj = {};
|
|
465
|
-
if (message.
|
|
466
|
-
obj.
|
|
492
|
+
if (message.target !== exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE) {
|
|
493
|
+
obj.target = deploymentTargetToJSON(message.target);
|
|
467
494
|
}
|
|
468
495
|
return obj;
|
|
469
496
|
},
|
|
470
497
|
create(base) {
|
|
471
|
-
return exports.
|
|
498
|
+
return exports.DeploymentOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
472
499
|
},
|
|
473
500
|
fromPartial(object) {
|
|
474
501
|
var _a;
|
|
475
|
-
const message =
|
|
476
|
-
message.
|
|
502
|
+
const message = createBaseDeploymentOptions();
|
|
503
|
+
message.target = (_a = object.target) !== null && _a !== void 0 ? _a : exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE;
|
|
477
504
|
return message;
|
|
478
505
|
},
|
|
479
506
|
};
|