@fraym/proto 0.22.0 → 0.23.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/migrations/management/register.d.ts +13 -0
- package/freym/migrations/management/register.js +88 -7
- package/freym/migrations/management.d.ts +1 -1
- package/freym/migrations/management.js +2 -1
- package/freym/projections/management/migration.d.ts +13 -0
- package/freym/projections/management/migration.js +88 -7
- package/freym/projections/management.d.ts +1 -1
- package/freym/projections/management.js +2 -1
- package/package.json +1 -1
|
@@ -16,10 +16,15 @@ export interface View {
|
|
|
16
16
|
sql: string;
|
|
17
17
|
materialize: boolean;
|
|
18
18
|
indices: ViewIndex[];
|
|
19
|
+
columns: ViewColumn[];
|
|
19
20
|
}
|
|
20
21
|
export interface ViewIndex {
|
|
21
22
|
fields: string[];
|
|
22
23
|
}
|
|
24
|
+
export interface ViewColumn {
|
|
25
|
+
name: string;
|
|
26
|
+
type: string;
|
|
27
|
+
}
|
|
23
28
|
export interface EnumType {
|
|
24
29
|
name: string;
|
|
25
30
|
values: string[];
|
|
@@ -68,6 +73,14 @@ export declare const ViewIndex: {
|
|
|
68
73
|
create(base?: DeepPartial<ViewIndex>): ViewIndex;
|
|
69
74
|
fromPartial(object: DeepPartial<ViewIndex>): ViewIndex;
|
|
70
75
|
};
|
|
76
|
+
export declare const ViewColumn: {
|
|
77
|
+
encode(message: ViewColumn, writer?: _m0.Writer): _m0.Writer;
|
|
78
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ViewColumn;
|
|
79
|
+
fromJSON(object: any): ViewColumn;
|
|
80
|
+
toJSON(message: ViewColumn): unknown;
|
|
81
|
+
create(base?: DeepPartial<ViewColumn>): ViewColumn;
|
|
82
|
+
fromPartial(object: DeepPartial<ViewColumn>): ViewColumn;
|
|
83
|
+
};
|
|
71
84
|
export declare const EnumType: {
|
|
72
85
|
encode(message: EnumType, writer?: _m0.Writer): _m0.Writer;
|
|
73
86
|
decode(input: _m0.Reader | Uint8Array, length?: number): EnumType;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.RegisterResponse = exports.TypeArgument = exports.TypeField = exports.TypeDirective = exports.ObjectType = exports.EnumType = exports.ViewIndex = exports.View = exports.RegisterRequest = exports.protobufPackage = void 0;
|
|
6
|
+
exports.RegisterResponse = exports.TypeArgument = exports.TypeField = exports.TypeDirective = exports.ObjectType = exports.EnumType = exports.ViewColumn = exports.ViewIndex = exports.View = exports.RegisterRequest = exports.protobufPackage = void 0;
|
|
7
7
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
8
8
|
exports.protobufPackage = "freym.migrations.management";
|
|
9
9
|
function createBaseRegisterRequest() {
|
|
@@ -197,7 +197,7 @@ exports.RegisterRequest = {
|
|
|
197
197
|
},
|
|
198
198
|
};
|
|
199
199
|
function createBaseView() {
|
|
200
|
-
return { name: "", sql: "", materialize: false, indices: [] };
|
|
200
|
+
return { name: "", sql: "", materialize: false, indices: [], columns: [] };
|
|
201
201
|
}
|
|
202
202
|
exports.View = {
|
|
203
203
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -213,6 +213,9 @@ exports.View = {
|
|
|
213
213
|
for (const v of message.indices) {
|
|
214
214
|
exports.ViewIndex.encode(v, writer.uint32(34).fork()).ldelim();
|
|
215
215
|
}
|
|
216
|
+
for (const v of message.columns) {
|
|
217
|
+
exports.ViewColumn.encode(v, writer.uint32(42).fork()).ldelim();
|
|
218
|
+
}
|
|
216
219
|
return writer;
|
|
217
220
|
},
|
|
218
221
|
decode(input, length) {
|
|
@@ -246,6 +249,12 @@ exports.View = {
|
|
|
246
249
|
}
|
|
247
250
|
message.indices.push(exports.ViewIndex.decode(reader, reader.uint32()));
|
|
248
251
|
continue;
|
|
252
|
+
case 5:
|
|
253
|
+
if (tag !== 42) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
message.columns.push(exports.ViewColumn.decode(reader, reader.uint32()));
|
|
257
|
+
continue;
|
|
249
258
|
}
|
|
250
259
|
if ((tag & 7) === 4 || tag === 0) {
|
|
251
260
|
break;
|
|
@@ -260,10 +269,11 @@ exports.View = {
|
|
|
260
269
|
sql: isSet(object.sql) ? globalThis.String(object.sql) : "",
|
|
261
270
|
materialize: isSet(object.materialize) ? globalThis.Boolean(object.materialize) : false,
|
|
262
271
|
indices: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.indices) ? object.indices.map((e) => exports.ViewIndex.fromJSON(e)) : [],
|
|
272
|
+
columns: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.columns) ? object.columns.map((e) => exports.ViewColumn.fromJSON(e)) : [],
|
|
263
273
|
};
|
|
264
274
|
},
|
|
265
275
|
toJSON(message) {
|
|
266
|
-
var _a;
|
|
276
|
+
var _a, _b;
|
|
267
277
|
const obj = {};
|
|
268
278
|
if (message.name !== "") {
|
|
269
279
|
obj.name = message.name;
|
|
@@ -277,18 +287,22 @@ exports.View = {
|
|
|
277
287
|
if ((_a = message.indices) === null || _a === void 0 ? void 0 : _a.length) {
|
|
278
288
|
obj.indices = message.indices.map((e) => exports.ViewIndex.toJSON(e));
|
|
279
289
|
}
|
|
290
|
+
if ((_b = message.columns) === null || _b === void 0 ? void 0 : _b.length) {
|
|
291
|
+
obj.columns = message.columns.map((e) => exports.ViewColumn.toJSON(e));
|
|
292
|
+
}
|
|
280
293
|
return obj;
|
|
281
294
|
},
|
|
282
295
|
create(base) {
|
|
283
296
|
return exports.View.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
284
297
|
},
|
|
285
298
|
fromPartial(object) {
|
|
286
|
-
var _a, _b, _c, _d;
|
|
299
|
+
var _a, _b, _c, _d, _e;
|
|
287
300
|
const message = createBaseView();
|
|
288
301
|
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
289
302
|
message.sql = (_b = object.sql) !== null && _b !== void 0 ? _b : "";
|
|
290
303
|
message.materialize = (_c = object.materialize) !== null && _c !== void 0 ? _c : false;
|
|
291
304
|
message.indices = ((_d = object.indices) === null || _d === void 0 ? void 0 : _d.map((e) => exports.ViewIndex.fromPartial(e))) || [];
|
|
305
|
+
message.columns = ((_e = object.columns) === null || _e === void 0 ? void 0 : _e.map((e) => exports.ViewColumn.fromPartial(e))) || [];
|
|
292
306
|
return message;
|
|
293
307
|
},
|
|
294
308
|
};
|
|
@@ -298,7 +312,7 @@ function createBaseViewIndex() {
|
|
|
298
312
|
exports.ViewIndex = {
|
|
299
313
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
300
314
|
for (const v of message.fields) {
|
|
301
|
-
writer.uint32(
|
|
315
|
+
writer.uint32(10).string(v);
|
|
302
316
|
}
|
|
303
317
|
return writer;
|
|
304
318
|
},
|
|
@@ -309,8 +323,8 @@ exports.ViewIndex = {
|
|
|
309
323
|
while (reader.pos < end) {
|
|
310
324
|
const tag = reader.uint32();
|
|
311
325
|
switch (tag >>> 3) {
|
|
312
|
-
case
|
|
313
|
-
if (tag !==
|
|
326
|
+
case 1:
|
|
327
|
+
if (tag !== 10) {
|
|
314
328
|
break;
|
|
315
329
|
}
|
|
316
330
|
message.fields.push(reader.string());
|
|
@@ -346,6 +360,73 @@ exports.ViewIndex = {
|
|
|
346
360
|
return message;
|
|
347
361
|
},
|
|
348
362
|
};
|
|
363
|
+
function createBaseViewColumn() {
|
|
364
|
+
return { name: "", type: "" };
|
|
365
|
+
}
|
|
366
|
+
exports.ViewColumn = {
|
|
367
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
368
|
+
if (message.name !== "") {
|
|
369
|
+
writer.uint32(10).string(message.name);
|
|
370
|
+
}
|
|
371
|
+
if (message.type !== "") {
|
|
372
|
+
writer.uint32(18).string(message.type);
|
|
373
|
+
}
|
|
374
|
+
return writer;
|
|
375
|
+
},
|
|
376
|
+
decode(input, length) {
|
|
377
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
378
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
379
|
+
const message = createBaseViewColumn();
|
|
380
|
+
while (reader.pos < end) {
|
|
381
|
+
const tag = reader.uint32();
|
|
382
|
+
switch (tag >>> 3) {
|
|
383
|
+
case 1:
|
|
384
|
+
if (tag !== 10) {
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
message.name = reader.string();
|
|
388
|
+
continue;
|
|
389
|
+
case 2:
|
|
390
|
+
if (tag !== 18) {
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
message.type = reader.string();
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
396
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
reader.skipType(tag & 7);
|
|
400
|
+
}
|
|
401
|
+
return message;
|
|
402
|
+
},
|
|
403
|
+
fromJSON(object) {
|
|
404
|
+
return {
|
|
405
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
406
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
407
|
+
};
|
|
408
|
+
},
|
|
409
|
+
toJSON(message) {
|
|
410
|
+
const obj = {};
|
|
411
|
+
if (message.name !== "") {
|
|
412
|
+
obj.name = message.name;
|
|
413
|
+
}
|
|
414
|
+
if (message.type !== "") {
|
|
415
|
+
obj.type = message.type;
|
|
416
|
+
}
|
|
417
|
+
return obj;
|
|
418
|
+
},
|
|
419
|
+
create(base) {
|
|
420
|
+
return exports.ViewColumn.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
421
|
+
},
|
|
422
|
+
fromPartial(object) {
|
|
423
|
+
var _a, _b;
|
|
424
|
+
const message = createBaseViewColumn();
|
|
425
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
426
|
+
message.type = (_b = object.type) !== null && _b !== void 0 ? _b : "";
|
|
427
|
+
return message;
|
|
428
|
+
},
|
|
429
|
+
};
|
|
349
430
|
function createBaseEnumType() {
|
|
350
431
|
return { name: "", values: [] };
|
|
351
432
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ServiceClient, ServiceServer, ServiceService } from "./management/service";
|
|
2
2
|
export { ApplyRequest, ApplyResponse } from "./management/apply";
|
|
3
3
|
export { CleanupRequest, CleanupRequest_StatusEntry, CleanupResponse } from "./management/cleanup";
|
|
4
|
-
export { EnumType, ObjectType, RegisterRequest, RegisterResponse, TypeArgument, TypeDirective, TypeField, View, ViewIndex, } from "./management/register";
|
|
4
|
+
export { EnumType, ObjectType, RegisterRequest, RegisterResponse, TypeArgument, TypeDirective, TypeField, View, ViewIndex, ViewColumn, } from "./management/register";
|
|
5
5
|
export { RollbackRequest, RollbackResponse } from "./management/rollback";
|
|
6
6
|
export { StartRequest, StartRequest_Init, StartRequest_TransformedData, StartRequest_TransformedData_DataEntry, StartResponse, StartResponse_Status, StartResponse_Status_StatusEntry, StartResponse_TransformData, StartResponse_TransformData_DataEntry, } from "./management/start";
|
|
7
7
|
export { StatusRequest, StatusResponse } from "./management/status";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatusResponse = exports.StatusRequest = exports.StartResponse_TransformData_DataEntry = exports.StartResponse_TransformData = exports.StartResponse_Status_StatusEntry = exports.StartResponse_Status = exports.StartResponse = exports.StartRequest_TransformedData_DataEntry = exports.StartRequest_TransformedData = exports.StartRequest_Init = exports.StartRequest = exports.RollbackResponse = exports.RollbackRequest = exports.ViewIndex = exports.View = exports.TypeField = exports.TypeDirective = exports.TypeArgument = exports.RegisterResponse = exports.RegisterRequest = exports.ObjectType = exports.EnumType = exports.CleanupResponse = exports.CleanupRequest_StatusEntry = exports.CleanupRequest = exports.ApplyResponse = exports.ApplyRequest = exports.ServiceService = exports.ServiceClient = void 0;
|
|
3
|
+
exports.StatusResponse = exports.StatusRequest = exports.StartResponse_TransformData_DataEntry = exports.StartResponse_TransformData = exports.StartResponse_Status_StatusEntry = exports.StartResponse_Status = exports.StartResponse = exports.StartRequest_TransformedData_DataEntry = exports.StartRequest_TransformedData = exports.StartRequest_Init = exports.StartRequest = exports.RollbackResponse = exports.RollbackRequest = exports.ViewColumn = exports.ViewIndex = exports.View = exports.TypeField = exports.TypeDirective = exports.TypeArgument = exports.RegisterResponse = exports.RegisterRequest = exports.ObjectType = exports.EnumType = exports.CleanupResponse = exports.CleanupRequest_StatusEntry = exports.CleanupRequest = exports.ApplyResponse = exports.ApplyRequest = exports.ServiceService = exports.ServiceClient = void 0;
|
|
4
4
|
var service_1 = require("./management/service");
|
|
5
5
|
Object.defineProperty(exports, "ServiceClient", { enumerable: true, get: function () { return service_1.ServiceClient; } });
|
|
6
6
|
Object.defineProperty(exports, "ServiceService", { enumerable: true, get: function () { return service_1.ServiceService; } });
|
|
@@ -21,6 +21,7 @@ Object.defineProperty(exports, "TypeDirective", { enumerable: true, get: functio
|
|
|
21
21
|
Object.defineProperty(exports, "TypeField", { enumerable: true, get: function () { return register_1.TypeField; } });
|
|
22
22
|
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return register_1.View; } });
|
|
23
23
|
Object.defineProperty(exports, "ViewIndex", { enumerable: true, get: function () { return register_1.ViewIndex; } });
|
|
24
|
+
Object.defineProperty(exports, "ViewColumn", { enumerable: true, get: function () { return register_1.ViewColumn; } });
|
|
24
25
|
var rollback_1 = require("./management/rollback");
|
|
25
26
|
Object.defineProperty(exports, "RollbackRequest", { enumerable: true, get: function () { return rollback_1.RollbackRequest; } });
|
|
26
27
|
Object.defineProperty(exports, "RollbackResponse", { enumerable: true, get: function () { return rollback_1.RollbackResponse; } });
|
|
@@ -37,10 +37,15 @@ export interface View {
|
|
|
37
37
|
sql: string;
|
|
38
38
|
materialize: boolean;
|
|
39
39
|
indices: ViewIndex[];
|
|
40
|
+
columns: ViewColumn[];
|
|
40
41
|
}
|
|
41
42
|
export interface ViewIndex {
|
|
42
43
|
fields: string[];
|
|
43
44
|
}
|
|
45
|
+
export interface ViewColumn {
|
|
46
|
+
name: string;
|
|
47
|
+
type: string;
|
|
48
|
+
}
|
|
44
49
|
export interface RegisterMigrationRequest {
|
|
45
50
|
dangerouslyRemoveGdprFields: boolean;
|
|
46
51
|
projectionTypes: ProjectionType[];
|
|
@@ -156,6 +161,14 @@ export declare const ViewIndex: {
|
|
|
156
161
|
create(base?: DeepPartial<ViewIndex>): ViewIndex;
|
|
157
162
|
fromPartial(object: DeepPartial<ViewIndex>): ViewIndex;
|
|
158
163
|
};
|
|
164
|
+
export declare const ViewColumn: {
|
|
165
|
+
encode(message: ViewColumn, writer?: _m0.Writer): _m0.Writer;
|
|
166
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ViewColumn;
|
|
167
|
+
fromJSON(object: any): ViewColumn;
|
|
168
|
+
toJSON(message: ViewColumn): unknown;
|
|
169
|
+
create(base?: DeepPartial<ViewColumn>): ViewColumn;
|
|
170
|
+
fromPartial(object: DeepPartial<ViewColumn>): ViewColumn;
|
|
171
|
+
};
|
|
159
172
|
export declare const RegisterMigrationRequest: {
|
|
160
173
|
encode(message: RegisterMigrationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
161
174
|
decode(input: _m0.Reader | Uint8Array, length?: number): RegisterMigrationRequest;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GetMigrationStatusResponse = exports.GetMigrationStatusRequest = exports.RollbackMigrationResponse = exports.RollbackMigrationRequest = exports.CleanupMigrationResponse = exports.CleanupMigrationRequest_StatusEntry = exports.CleanupMigrationRequest = exports.ApplyMigrationResponse = exports.ApplyMigrationRequest = exports.RegisterMigrationResponse = exports.RegisterMigrationRequest = exports.ViewIndex = exports.View = exports.TypeArgument = exports.TypeDirective = exports.TypeField = exports.NestedType = exports.CrudType = exports.ProjectionType = exports.EnumType = exports.protobufPackage = void 0;
|
|
6
|
+
exports.GetMigrationStatusResponse = exports.GetMigrationStatusRequest = exports.RollbackMigrationResponse = exports.RollbackMigrationRequest = exports.CleanupMigrationResponse = exports.CleanupMigrationRequest_StatusEntry = exports.CleanupMigrationRequest = exports.ApplyMigrationResponse = exports.ApplyMigrationRequest = exports.RegisterMigrationResponse = exports.RegisterMigrationRequest = exports.ViewColumn = exports.ViewIndex = exports.View = exports.TypeArgument = exports.TypeDirective = exports.TypeField = exports.NestedType = exports.CrudType = exports.ProjectionType = exports.EnumType = exports.protobufPackage = void 0;
|
|
7
7
|
const long_1 = __importDefault(require("long"));
|
|
8
8
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
9
|
exports.protobufPackage = "freym.projections.management";
|
|
@@ -549,7 +549,7 @@ exports.TypeArgument = {
|
|
|
549
549
|
},
|
|
550
550
|
};
|
|
551
551
|
function createBaseView() {
|
|
552
|
-
return { name: "", sql: "", materialize: false, indices: [] };
|
|
552
|
+
return { name: "", sql: "", materialize: false, indices: [], columns: [] };
|
|
553
553
|
}
|
|
554
554
|
exports.View = {
|
|
555
555
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -565,6 +565,9 @@ exports.View = {
|
|
|
565
565
|
for (const v of message.indices) {
|
|
566
566
|
exports.ViewIndex.encode(v, writer.uint32(34).fork()).ldelim();
|
|
567
567
|
}
|
|
568
|
+
for (const v of message.columns) {
|
|
569
|
+
exports.ViewColumn.encode(v, writer.uint32(42).fork()).ldelim();
|
|
570
|
+
}
|
|
568
571
|
return writer;
|
|
569
572
|
},
|
|
570
573
|
decode(input, length) {
|
|
@@ -598,6 +601,12 @@ exports.View = {
|
|
|
598
601
|
}
|
|
599
602
|
message.indices.push(exports.ViewIndex.decode(reader, reader.uint32()));
|
|
600
603
|
continue;
|
|
604
|
+
case 5:
|
|
605
|
+
if (tag !== 42) {
|
|
606
|
+
break;
|
|
607
|
+
}
|
|
608
|
+
message.columns.push(exports.ViewColumn.decode(reader, reader.uint32()));
|
|
609
|
+
continue;
|
|
601
610
|
}
|
|
602
611
|
if ((tag & 7) === 4 || tag === 0) {
|
|
603
612
|
break;
|
|
@@ -612,10 +621,11 @@ exports.View = {
|
|
|
612
621
|
sql: isSet(object.sql) ? globalThis.String(object.sql) : "",
|
|
613
622
|
materialize: isSet(object.materialize) ? globalThis.Boolean(object.materialize) : false,
|
|
614
623
|
indices: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.indices) ? object.indices.map((e) => exports.ViewIndex.fromJSON(e)) : [],
|
|
624
|
+
columns: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.columns) ? object.columns.map((e) => exports.ViewColumn.fromJSON(e)) : [],
|
|
615
625
|
};
|
|
616
626
|
},
|
|
617
627
|
toJSON(message) {
|
|
618
|
-
var _a;
|
|
628
|
+
var _a, _b;
|
|
619
629
|
const obj = {};
|
|
620
630
|
if (message.name !== "") {
|
|
621
631
|
obj.name = message.name;
|
|
@@ -629,18 +639,22 @@ exports.View = {
|
|
|
629
639
|
if ((_a = message.indices) === null || _a === void 0 ? void 0 : _a.length) {
|
|
630
640
|
obj.indices = message.indices.map((e) => exports.ViewIndex.toJSON(e));
|
|
631
641
|
}
|
|
642
|
+
if ((_b = message.columns) === null || _b === void 0 ? void 0 : _b.length) {
|
|
643
|
+
obj.columns = message.columns.map((e) => exports.ViewColumn.toJSON(e));
|
|
644
|
+
}
|
|
632
645
|
return obj;
|
|
633
646
|
},
|
|
634
647
|
create(base) {
|
|
635
648
|
return exports.View.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
636
649
|
},
|
|
637
650
|
fromPartial(object) {
|
|
638
|
-
var _a, _b, _c, _d;
|
|
651
|
+
var _a, _b, _c, _d, _e;
|
|
639
652
|
const message = createBaseView();
|
|
640
653
|
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
641
654
|
message.sql = (_b = object.sql) !== null && _b !== void 0 ? _b : "";
|
|
642
655
|
message.materialize = (_c = object.materialize) !== null && _c !== void 0 ? _c : false;
|
|
643
656
|
message.indices = ((_d = object.indices) === null || _d === void 0 ? void 0 : _d.map((e) => exports.ViewIndex.fromPartial(e))) || [];
|
|
657
|
+
message.columns = ((_e = object.columns) === null || _e === void 0 ? void 0 : _e.map((e) => exports.ViewColumn.fromPartial(e))) || [];
|
|
644
658
|
return message;
|
|
645
659
|
},
|
|
646
660
|
};
|
|
@@ -650,7 +664,7 @@ function createBaseViewIndex() {
|
|
|
650
664
|
exports.ViewIndex = {
|
|
651
665
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
652
666
|
for (const v of message.fields) {
|
|
653
|
-
writer.uint32(
|
|
667
|
+
writer.uint32(10).string(v);
|
|
654
668
|
}
|
|
655
669
|
return writer;
|
|
656
670
|
},
|
|
@@ -661,8 +675,8 @@ exports.ViewIndex = {
|
|
|
661
675
|
while (reader.pos < end) {
|
|
662
676
|
const tag = reader.uint32();
|
|
663
677
|
switch (tag >>> 3) {
|
|
664
|
-
case
|
|
665
|
-
if (tag !==
|
|
678
|
+
case 1:
|
|
679
|
+
if (tag !== 10) {
|
|
666
680
|
break;
|
|
667
681
|
}
|
|
668
682
|
message.fields.push(reader.string());
|
|
@@ -698,6 +712,73 @@ exports.ViewIndex = {
|
|
|
698
712
|
return message;
|
|
699
713
|
},
|
|
700
714
|
};
|
|
715
|
+
function createBaseViewColumn() {
|
|
716
|
+
return { name: "", type: "" };
|
|
717
|
+
}
|
|
718
|
+
exports.ViewColumn = {
|
|
719
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
720
|
+
if (message.name !== "") {
|
|
721
|
+
writer.uint32(10).string(message.name);
|
|
722
|
+
}
|
|
723
|
+
if (message.type !== "") {
|
|
724
|
+
writer.uint32(18).string(message.type);
|
|
725
|
+
}
|
|
726
|
+
return writer;
|
|
727
|
+
},
|
|
728
|
+
decode(input, length) {
|
|
729
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
730
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
731
|
+
const message = createBaseViewColumn();
|
|
732
|
+
while (reader.pos < end) {
|
|
733
|
+
const tag = reader.uint32();
|
|
734
|
+
switch (tag >>> 3) {
|
|
735
|
+
case 1:
|
|
736
|
+
if (tag !== 10) {
|
|
737
|
+
break;
|
|
738
|
+
}
|
|
739
|
+
message.name = reader.string();
|
|
740
|
+
continue;
|
|
741
|
+
case 2:
|
|
742
|
+
if (tag !== 18) {
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
message.type = reader.string();
|
|
746
|
+
continue;
|
|
747
|
+
}
|
|
748
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
749
|
+
break;
|
|
750
|
+
}
|
|
751
|
+
reader.skipType(tag & 7);
|
|
752
|
+
}
|
|
753
|
+
return message;
|
|
754
|
+
},
|
|
755
|
+
fromJSON(object) {
|
|
756
|
+
return {
|
|
757
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
758
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
759
|
+
};
|
|
760
|
+
},
|
|
761
|
+
toJSON(message) {
|
|
762
|
+
const obj = {};
|
|
763
|
+
if (message.name !== "") {
|
|
764
|
+
obj.name = message.name;
|
|
765
|
+
}
|
|
766
|
+
if (message.type !== "") {
|
|
767
|
+
obj.type = message.type;
|
|
768
|
+
}
|
|
769
|
+
return obj;
|
|
770
|
+
},
|
|
771
|
+
create(base) {
|
|
772
|
+
return exports.ViewColumn.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
773
|
+
},
|
|
774
|
+
fromPartial(object) {
|
|
775
|
+
var _a, _b;
|
|
776
|
+
const message = createBaseViewColumn();
|
|
777
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
778
|
+
message.type = (_b = object.type) !== null && _b !== void 0 ? _b : "";
|
|
779
|
+
return message;
|
|
780
|
+
},
|
|
781
|
+
};
|
|
701
782
|
function createBaseRegisterMigrationRequest() {
|
|
702
783
|
return {
|
|
703
784
|
dangerouslyRemoveGdprFields: false,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { ServiceClient, ServiceServer, ServiceService } from "./management/service";
|
|
2
|
-
export { CrudType, EnumType, GetMigrationStatusRequest, GetMigrationStatusResponse, NestedType, ProjectionType, RegisterMigrationRequest, RegisterMigrationResponse, RollbackMigrationRequest, RollbackMigrationResponse, TypeArgument, TypeDirective, TypeField, ApplyMigrationRequest, ApplyMigrationResponse, CleanupMigrationRequest, CleanupMigrationRequest_StatusEntry, CleanupMigrationResponse, View, ViewIndex, } from "./management/migration";
|
|
2
|
+
export { CrudType, EnumType, GetMigrationStatusRequest, GetMigrationStatusResponse, NestedType, ProjectionType, RegisterMigrationRequest, RegisterMigrationResponse, RollbackMigrationRequest, RollbackMigrationResponse, TypeArgument, TypeDirective, TypeField, ApplyMigrationRequest, ApplyMigrationResponse, CleanupMigrationRequest, CleanupMigrationRequest_StatusEntry, CleanupMigrationResponse, View, ViewIndex, ViewColumn, } from "./management/migration";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ViewIndex = exports.View = exports.CleanupMigrationResponse = exports.CleanupMigrationRequest_StatusEntry = exports.CleanupMigrationRequest = exports.ApplyMigrationResponse = exports.ApplyMigrationRequest = exports.TypeField = exports.TypeDirective = exports.TypeArgument = exports.RollbackMigrationResponse = exports.RollbackMigrationRequest = exports.RegisterMigrationResponse = exports.RegisterMigrationRequest = exports.ProjectionType = exports.NestedType = exports.GetMigrationStatusResponse = exports.GetMigrationStatusRequest = exports.EnumType = exports.CrudType = exports.ServiceService = exports.ServiceClient = void 0;
|
|
3
|
+
exports.ViewColumn = exports.ViewIndex = exports.View = exports.CleanupMigrationResponse = exports.CleanupMigrationRequest_StatusEntry = exports.CleanupMigrationRequest = exports.ApplyMigrationResponse = exports.ApplyMigrationRequest = exports.TypeField = exports.TypeDirective = exports.TypeArgument = exports.RollbackMigrationResponse = exports.RollbackMigrationRequest = exports.RegisterMigrationResponse = exports.RegisterMigrationRequest = exports.ProjectionType = exports.NestedType = exports.GetMigrationStatusResponse = exports.GetMigrationStatusRequest = exports.EnumType = exports.CrudType = exports.ServiceService = exports.ServiceClient = void 0;
|
|
4
4
|
var service_1 = require("./management/service");
|
|
5
5
|
Object.defineProperty(exports, "ServiceClient", { enumerable: true, get: function () { return service_1.ServiceClient; } });
|
|
6
6
|
Object.defineProperty(exports, "ServiceService", { enumerable: true, get: function () { return service_1.ServiceService; } });
|
|
@@ -25,3 +25,4 @@ Object.defineProperty(exports, "CleanupMigrationRequest_StatusEntry", { enumerab
|
|
|
25
25
|
Object.defineProperty(exports, "CleanupMigrationResponse", { enumerable: true, get: function () { return migration_1.CleanupMigrationResponse; } });
|
|
26
26
|
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return migration_1.View; } });
|
|
27
27
|
Object.defineProperty(exports, "ViewIndex", { enumerable: true, get: function () { return migration_1.ViewIndex; } });
|
|
28
|
+
Object.defineProperty(exports, "ViewColumn", { enumerable: true, get: function () { return migration_1.ViewColumn; } });
|