@dataform/core 1.17.2 → 1.20.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/bundle.d.ts +324 -563
- package/bundle.js +1150 -1973
- package/package.json +24 -2
package/bundle.js
CHANGED
|
@@ -6,7 +6,6 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
6
6
|
|
|
7
7
|
var semver = require('semver');
|
|
8
8
|
var $protobuf = require('protobufjs/minimal');
|
|
9
|
-
var path = require('path');
|
|
10
9
|
var moo = require('moo');
|
|
11
10
|
var protobufjs = require('protobufjs');
|
|
12
11
|
var TarjanGraphConstructor = _interopDefault(require('tarjan-graph'));
|
|
@@ -58,8 +57,8 @@ const dataform = $root.dataform = (() => {
|
|
|
58
57
|
* @property {string|null} [databaseSuffix] ProjectConfig databaseSuffix
|
|
59
58
|
* @property {string|null} [schemaSuffix] ProjectConfig schemaSuffix
|
|
60
59
|
* @property {string|null} [tablePrefix] ProjectConfig tablePrefix
|
|
61
|
-
* @property {boolean|null} [useRunCache] ProjectConfig useRunCache
|
|
62
60
|
* @property {string|null} [gcloudProjectId] ProjectConfig gcloudProjectId
|
|
61
|
+
* @property {boolean|null} [useRunCache] ProjectConfig useRunCache
|
|
63
62
|
*/
|
|
64
63
|
|
|
65
64
|
/**
|
|
@@ -159,20 +158,20 @@ const dataform = $root.dataform = (() => {
|
|
|
159
158
|
ProjectConfig.prototype.tablePrefix = "";
|
|
160
159
|
|
|
161
160
|
/**
|
|
162
|
-
* ProjectConfig
|
|
163
|
-
* @member {
|
|
161
|
+
* ProjectConfig gcloudProjectId.
|
|
162
|
+
* @member {string} gcloudProjectId
|
|
164
163
|
* @memberof dataform.ProjectConfig
|
|
165
164
|
* @instance
|
|
166
165
|
*/
|
|
167
|
-
ProjectConfig.prototype.
|
|
166
|
+
ProjectConfig.prototype.gcloudProjectId = "";
|
|
168
167
|
|
|
169
168
|
/**
|
|
170
|
-
* ProjectConfig
|
|
171
|
-
* @member {
|
|
169
|
+
* ProjectConfig useRunCache.
|
|
170
|
+
* @member {boolean} useRunCache
|
|
172
171
|
* @memberof dataform.ProjectConfig
|
|
173
172
|
* @instance
|
|
174
173
|
*/
|
|
175
|
-
ProjectConfig.prototype.
|
|
174
|
+
ProjectConfig.prototype.useRunCache = false;
|
|
176
175
|
|
|
177
176
|
/**
|
|
178
177
|
* Creates a new ProjectConfig instance using the specified properties.
|
|
@@ -292,12 +291,12 @@ const dataform = $root.dataform = (() => {
|
|
|
292
291
|
case 11:
|
|
293
292
|
message.tablePrefix = reader.string();
|
|
294
293
|
break;
|
|
295
|
-
case 10:
|
|
296
|
-
message.useRunCache = reader.bool();
|
|
297
|
-
break;
|
|
298
294
|
case 6:
|
|
299
295
|
message.gcloudProjectId = reader.string();
|
|
300
296
|
break;
|
|
297
|
+
case 10:
|
|
298
|
+
message.useRunCache = reader.bool();
|
|
299
|
+
break;
|
|
301
300
|
default:
|
|
302
301
|
reader.skipType(tag & 7);
|
|
303
302
|
break;
|
|
@@ -368,12 +367,12 @@ const dataform = $root.dataform = (() => {
|
|
|
368
367
|
if (message.tablePrefix != null && message.hasOwnProperty("tablePrefix"))
|
|
369
368
|
if (!$util.isString(message.tablePrefix))
|
|
370
369
|
return "tablePrefix: string expected";
|
|
371
|
-
if (message.useRunCache != null && message.hasOwnProperty("useRunCache"))
|
|
372
|
-
if (typeof message.useRunCache !== "boolean")
|
|
373
|
-
return "useRunCache: boolean expected";
|
|
374
370
|
if (message.gcloudProjectId != null && message.hasOwnProperty("gcloudProjectId"))
|
|
375
371
|
if (!$util.isString(message.gcloudProjectId))
|
|
376
372
|
return "gcloudProjectId: string expected";
|
|
373
|
+
if (message.useRunCache != null && message.hasOwnProperty("useRunCache"))
|
|
374
|
+
if (typeof message.useRunCache !== "boolean")
|
|
375
|
+
return "useRunCache: boolean expected";
|
|
377
376
|
return null;
|
|
378
377
|
};
|
|
379
378
|
|
|
@@ -414,10 +413,10 @@ const dataform = $root.dataform = (() => {
|
|
|
414
413
|
message.schemaSuffix = String(object.schemaSuffix);
|
|
415
414
|
if (object.tablePrefix != null)
|
|
416
415
|
message.tablePrefix = String(object.tablePrefix);
|
|
417
|
-
if (object.useRunCache != null)
|
|
418
|
-
message.useRunCache = Boolean(object.useRunCache);
|
|
419
416
|
if (object.gcloudProjectId != null)
|
|
420
417
|
message.gcloudProjectId = String(object.gcloudProjectId);
|
|
418
|
+
if (object.useRunCache != null)
|
|
419
|
+
message.useRunCache = Boolean(object.useRunCache);
|
|
421
420
|
return message;
|
|
422
421
|
};
|
|
423
422
|
|
|
@@ -2827,8 +2826,8 @@ const dataform = $root.dataform = (() => {
|
|
|
2827
2826
|
* @property {boolean|null} [includeDependents] RunConfig includeDependents
|
|
2828
2827
|
* @property {boolean|null} [fullRefresh] RunConfig fullRefresh
|
|
2829
2828
|
* @property {number|null} [timeoutMillis] RunConfig timeoutMillis
|
|
2830
|
-
* @property {boolean|null} [useRunCache] RunConfig useRunCache
|
|
2831
2829
|
* @property {boolean|null} [disableSetMetadata] RunConfig disableSetMetadata
|
|
2830
|
+
* @property {boolean|null} [useRunCache] RunConfig useRunCache
|
|
2832
2831
|
*/
|
|
2833
2832
|
|
|
2834
2833
|
/**
|
|
@@ -2897,20 +2896,20 @@ const dataform = $root.dataform = (() => {
|
|
|
2897
2896
|
RunConfig.prototype.timeoutMillis = 0;
|
|
2898
2897
|
|
|
2899
2898
|
/**
|
|
2900
|
-
* RunConfig
|
|
2901
|
-
* @member {boolean}
|
|
2899
|
+
* RunConfig disableSetMetadata.
|
|
2900
|
+
* @member {boolean} disableSetMetadata
|
|
2902
2901
|
* @memberof dataform.RunConfig
|
|
2903
2902
|
* @instance
|
|
2904
2903
|
*/
|
|
2905
|
-
RunConfig.prototype.
|
|
2904
|
+
RunConfig.prototype.disableSetMetadata = false;
|
|
2906
2905
|
|
|
2907
2906
|
/**
|
|
2908
|
-
* RunConfig
|
|
2909
|
-
* @member {boolean}
|
|
2907
|
+
* RunConfig useRunCache.
|
|
2908
|
+
* @member {boolean} useRunCache
|
|
2910
2909
|
* @memberof dataform.RunConfig
|
|
2911
2910
|
* @instance
|
|
2912
2911
|
*/
|
|
2913
|
-
RunConfig.prototype.
|
|
2912
|
+
RunConfig.prototype.useRunCache = false;
|
|
2914
2913
|
|
|
2915
2914
|
/**
|
|
2916
2915
|
* Creates a new RunConfig instance using the specified properties.
|
|
@@ -3010,12 +3009,12 @@ const dataform = $root.dataform = (() => {
|
|
|
3010
3009
|
case 7:
|
|
3011
3010
|
message.timeoutMillis = reader.int32();
|
|
3012
3011
|
break;
|
|
3013
|
-
case 8:
|
|
3014
|
-
message.useRunCache = reader.bool();
|
|
3015
|
-
break;
|
|
3016
3012
|
case 9:
|
|
3017
3013
|
message.disableSetMetadata = reader.bool();
|
|
3018
3014
|
break;
|
|
3015
|
+
case 8:
|
|
3016
|
+
message.useRunCache = reader.bool();
|
|
3017
|
+
break;
|
|
3019
3018
|
default:
|
|
3020
3019
|
reader.skipType(tag & 7);
|
|
3021
3020
|
break;
|
|
@@ -3077,12 +3076,12 @@ const dataform = $root.dataform = (() => {
|
|
|
3077
3076
|
if (message.timeoutMillis != null && message.hasOwnProperty("timeoutMillis"))
|
|
3078
3077
|
if (!$util.isInteger(message.timeoutMillis))
|
|
3079
3078
|
return "timeoutMillis: integer expected";
|
|
3080
|
-
if (message.useRunCache != null && message.hasOwnProperty("useRunCache"))
|
|
3081
|
-
if (typeof message.useRunCache !== "boolean")
|
|
3082
|
-
return "useRunCache: boolean expected";
|
|
3083
3079
|
if (message.disableSetMetadata != null && message.hasOwnProperty("disableSetMetadata"))
|
|
3084
3080
|
if (typeof message.disableSetMetadata !== "boolean")
|
|
3085
3081
|
return "disableSetMetadata: boolean expected";
|
|
3082
|
+
if (message.useRunCache != null && message.hasOwnProperty("useRunCache"))
|
|
3083
|
+
if (typeof message.useRunCache !== "boolean")
|
|
3084
|
+
return "useRunCache: boolean expected";
|
|
3086
3085
|
return null;
|
|
3087
3086
|
};
|
|
3088
3087
|
|
|
@@ -3120,10 +3119,10 @@ const dataform = $root.dataform = (() => {
|
|
|
3120
3119
|
message.fullRefresh = Boolean(object.fullRefresh);
|
|
3121
3120
|
if (object.timeoutMillis != null)
|
|
3122
3121
|
message.timeoutMillis = object.timeoutMillis | 0;
|
|
3123
|
-
if (object.useRunCache != null)
|
|
3124
|
-
message.useRunCache = Boolean(object.useRunCache);
|
|
3125
3122
|
if (object.disableSetMetadata != null)
|
|
3126
3123
|
message.disableSetMetadata = Boolean(object.disableSetMetadata);
|
|
3124
|
+
if (object.useRunCache != null)
|
|
3125
|
+
message.useRunCache = Boolean(object.useRunCache);
|
|
3127
3126
|
return message;
|
|
3128
3127
|
};
|
|
3129
3128
|
|
|
@@ -3200,7 +3199,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3200
3199
|
* @property {dataform.ICompileConfig|null} [compileConfig] GenerateIndexConfig compileConfig
|
|
3201
3200
|
* @property {Array.<string>|null} [includePaths] GenerateIndexConfig includePaths
|
|
3202
3201
|
* @property {Array.<string>|null} [definitionPaths] GenerateIndexConfig definitionPaths
|
|
3203
|
-
* @property {string|null} [returnOverride] GenerateIndexConfig returnOverride
|
|
3204
3202
|
*/
|
|
3205
3203
|
|
|
3206
3204
|
/**
|
|
@@ -3244,14 +3242,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3244
3242
|
*/
|
|
3245
3243
|
GenerateIndexConfig.prototype.definitionPaths = $util.emptyArray;
|
|
3246
3244
|
|
|
3247
|
-
/**
|
|
3248
|
-
* GenerateIndexConfig returnOverride.
|
|
3249
|
-
* @member {string} returnOverride
|
|
3250
|
-
* @memberof dataform.GenerateIndexConfig
|
|
3251
|
-
* @instance
|
|
3252
|
-
*/
|
|
3253
|
-
GenerateIndexConfig.prototype.returnOverride = "";
|
|
3254
|
-
|
|
3255
3245
|
/**
|
|
3256
3246
|
* Creates a new GenerateIndexConfig instance using the specified properties.
|
|
3257
3247
|
* @function create
|
|
@@ -3284,8 +3274,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3284
3274
|
if (message.definitionPaths != null && message.definitionPaths.length)
|
|
3285
3275
|
for (let i = 0; i < message.definitionPaths.length; ++i)
|
|
3286
3276
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.definitionPaths[i]);
|
|
3287
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3288
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.returnOverride);
|
|
3289
3277
|
return writer;
|
|
3290
3278
|
};
|
|
3291
3279
|
|
|
@@ -3333,9 +3321,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3333
3321
|
message.definitionPaths = [];
|
|
3334
3322
|
message.definitionPaths.push(reader.string());
|
|
3335
3323
|
break;
|
|
3336
|
-
case 4:
|
|
3337
|
-
message.returnOverride = reader.string();
|
|
3338
|
-
break;
|
|
3339
3324
|
default:
|
|
3340
3325
|
reader.skipType(tag & 7);
|
|
3341
3326
|
break;
|
|
@@ -3390,9 +3375,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3390
3375
|
if (!$util.isString(message.definitionPaths[i]))
|
|
3391
3376
|
return "definitionPaths: string[] expected";
|
|
3392
3377
|
}
|
|
3393
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3394
|
-
if (!$util.isString(message.returnOverride))
|
|
3395
|
-
return "returnOverride: string expected";
|
|
3396
3378
|
return null;
|
|
3397
3379
|
};
|
|
3398
3380
|
|
|
@@ -3427,8 +3409,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3427
3409
|
for (let i = 0; i < object.definitionPaths.length; ++i)
|
|
3428
3410
|
message.definitionPaths[i] = String(object.definitionPaths[i]);
|
|
3429
3411
|
}
|
|
3430
|
-
if (object.returnOverride != null)
|
|
3431
|
-
message.returnOverride = String(object.returnOverride);
|
|
3432
3412
|
return message;
|
|
3433
3413
|
};
|
|
3434
3414
|
|
|
@@ -3449,10 +3429,8 @@ const dataform = $root.dataform = (() => {
|
|
|
3449
3429
|
object.includePaths = [];
|
|
3450
3430
|
object.definitionPaths = [];
|
|
3451
3431
|
}
|
|
3452
|
-
if (options.defaults)
|
|
3432
|
+
if (options.defaults)
|
|
3453
3433
|
object.compileConfig = null;
|
|
3454
|
-
object.returnOverride = "";
|
|
3455
|
-
}
|
|
3456
3434
|
if (message.compileConfig != null && message.hasOwnProperty("compileConfig"))
|
|
3457
3435
|
object.compileConfig = $root.dataform.CompileConfig.toObject(message.compileConfig, options);
|
|
3458
3436
|
if (message.includePaths && message.includePaths.length) {
|
|
@@ -3465,8 +3443,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3465
3443
|
for (let j = 0; j < message.definitionPaths.length; ++j)
|
|
3466
3444
|
object.definitionPaths[j] = message.definitionPaths[j];
|
|
3467
3445
|
}
|
|
3468
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3469
|
-
object.returnOverride = message.returnOverride;
|
|
3470
3446
|
return object;
|
|
3471
3447
|
};
|
|
3472
3448
|
|
|
@@ -3491,12 +3467,10 @@ const dataform = $root.dataform = (() => {
|
|
|
3491
3467
|
* @memberof dataform
|
|
3492
3468
|
* @interface ICompileConfig
|
|
3493
3469
|
* @property {string|null} [projectDir] CompileConfig projectDir
|
|
3470
|
+
* @property {Array.<string>|null} [filePaths] CompileConfig filePaths
|
|
3494
3471
|
* @property {dataform.IProjectConfig|null} [projectConfigOverride] CompileConfig projectConfigOverride
|
|
3495
|
-
* @property {boolean|null} [compileSingleQuery] CompileConfig compileSingleQuery
|
|
3496
|
-
* @property {string|null} [query] CompileConfig query
|
|
3497
3472
|
* @property {number|null} [timeoutMillis] CompileConfig timeoutMillis
|
|
3498
|
-
* @property {
|
|
3499
|
-
* @property {string|null} [returnOverride] CompileConfig returnOverride
|
|
3473
|
+
* @property {boolean|null} [useMain] CompileConfig useMain
|
|
3500
3474
|
*/
|
|
3501
3475
|
|
|
3502
3476
|
/**
|
|
@@ -3508,6 +3482,7 @@ const dataform = $root.dataform = (() => {
|
|
|
3508
3482
|
* @param {dataform.ICompileConfig=} [properties] Properties to set
|
|
3509
3483
|
*/
|
|
3510
3484
|
function CompileConfig(properties) {
|
|
3485
|
+
this.filePaths = [];
|
|
3511
3486
|
if (properties)
|
|
3512
3487
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3513
3488
|
if (properties[keys[i]] != null)
|
|
@@ -3523,28 +3498,20 @@ const dataform = $root.dataform = (() => {
|
|
|
3523
3498
|
CompileConfig.prototype.projectDir = "";
|
|
3524
3499
|
|
|
3525
3500
|
/**
|
|
3526
|
-
* CompileConfig
|
|
3527
|
-
* @member {
|
|
3528
|
-
* @memberof dataform.CompileConfig
|
|
3529
|
-
* @instance
|
|
3530
|
-
*/
|
|
3531
|
-
CompileConfig.prototype.projectConfigOverride = null;
|
|
3532
|
-
|
|
3533
|
-
/**
|
|
3534
|
-
* CompileConfig compileSingleQuery.
|
|
3535
|
-
* @member {boolean} compileSingleQuery
|
|
3501
|
+
* CompileConfig filePaths.
|
|
3502
|
+
* @member {Array.<string>} filePaths
|
|
3536
3503
|
* @memberof dataform.CompileConfig
|
|
3537
3504
|
* @instance
|
|
3538
3505
|
*/
|
|
3539
|
-
CompileConfig.prototype.
|
|
3506
|
+
CompileConfig.prototype.filePaths = $util.emptyArray;
|
|
3540
3507
|
|
|
3541
3508
|
/**
|
|
3542
|
-
* CompileConfig
|
|
3543
|
-
* @member {
|
|
3509
|
+
* CompileConfig projectConfigOverride.
|
|
3510
|
+
* @member {dataform.IProjectConfig|null|undefined} projectConfigOverride
|
|
3544
3511
|
* @memberof dataform.CompileConfig
|
|
3545
3512
|
* @instance
|
|
3546
3513
|
*/
|
|
3547
|
-
CompileConfig.prototype.
|
|
3514
|
+
CompileConfig.prototype.projectConfigOverride = null;
|
|
3548
3515
|
|
|
3549
3516
|
/**
|
|
3550
3517
|
* CompileConfig timeoutMillis.
|
|
@@ -3555,20 +3522,12 @@ const dataform = $root.dataform = (() => {
|
|
|
3555
3522
|
CompileConfig.prototype.timeoutMillis = 0;
|
|
3556
3523
|
|
|
3557
3524
|
/**
|
|
3558
|
-
* CompileConfig
|
|
3559
|
-
* @member {
|
|
3560
|
-
* @memberof dataform.CompileConfig
|
|
3561
|
-
* @instance
|
|
3562
|
-
*/
|
|
3563
|
-
CompileConfig.prototype.schemaSuffixOverride = "";
|
|
3564
|
-
|
|
3565
|
-
/**
|
|
3566
|
-
* CompileConfig returnOverride.
|
|
3567
|
-
* @member {string} returnOverride
|
|
3525
|
+
* CompileConfig useMain.
|
|
3526
|
+
* @member {boolean} useMain
|
|
3568
3527
|
* @memberof dataform.CompileConfig
|
|
3569
3528
|
* @instance
|
|
3570
3529
|
*/
|
|
3571
|
-
CompileConfig.prototype.
|
|
3530
|
+
CompileConfig.prototype.useMain = false;
|
|
3572
3531
|
|
|
3573
3532
|
/**
|
|
3574
3533
|
* Creates a new CompileConfig instance using the specified properties.
|
|
@@ -3596,18 +3555,15 @@ const dataform = $root.dataform = (() => {
|
|
|
3596
3555
|
writer = $Writer.create();
|
|
3597
3556
|
if (message.projectDir != null && message.hasOwnProperty("projectDir"))
|
|
3598
3557
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectDir);
|
|
3599
|
-
if (message.schemaSuffixOverride != null && message.hasOwnProperty("schemaSuffixOverride"))
|
|
3600
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaSuffixOverride);
|
|
3601
3558
|
if (message.projectConfigOverride != null && message.hasOwnProperty("projectConfigOverride"))
|
|
3602
3559
|
$root.dataform.ProjectConfig.encode(message.projectConfigOverride, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
3603
|
-
if (message.query != null && message.hasOwnProperty("query"))
|
|
3604
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.query);
|
|
3605
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3606
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.returnOverride);
|
|
3607
3560
|
if (message.timeoutMillis != null && message.hasOwnProperty("timeoutMillis"))
|
|
3608
3561
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timeoutMillis);
|
|
3609
|
-
if (message.
|
|
3610
|
-
|
|
3562
|
+
if (message.filePaths != null && message.filePaths.length)
|
|
3563
|
+
for (let i = 0; i < message.filePaths.length; ++i)
|
|
3564
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.filePaths[i]);
|
|
3565
|
+
if (message.useMain != null && message.hasOwnProperty("useMain"))
|
|
3566
|
+
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.useMain);
|
|
3611
3567
|
return writer;
|
|
3612
3568
|
};
|
|
3613
3569
|
|
|
@@ -3645,23 +3601,19 @@ const dataform = $root.dataform = (() => {
|
|
|
3645
3601
|
case 1:
|
|
3646
3602
|
message.projectDir = reader.string();
|
|
3647
3603
|
break;
|
|
3604
|
+
case 8:
|
|
3605
|
+
if (!(message.filePaths && message.filePaths.length))
|
|
3606
|
+
message.filePaths = [];
|
|
3607
|
+
message.filePaths.push(reader.string());
|
|
3608
|
+
break;
|
|
3648
3609
|
case 3:
|
|
3649
3610
|
message.projectConfigOverride = $root.dataform.ProjectConfig.decode(reader, reader.uint32());
|
|
3650
3611
|
break;
|
|
3651
|
-
case 7:
|
|
3652
|
-
message.compileSingleQuery = reader.bool();
|
|
3653
|
-
break;
|
|
3654
|
-
case 4:
|
|
3655
|
-
message.query = reader.string();
|
|
3656
|
-
break;
|
|
3657
3612
|
case 6:
|
|
3658
3613
|
message.timeoutMillis = reader.int32();
|
|
3659
3614
|
break;
|
|
3660
|
-
case
|
|
3661
|
-
message.
|
|
3662
|
-
break;
|
|
3663
|
-
case 5:
|
|
3664
|
-
message.returnOverride = reader.string();
|
|
3615
|
+
case 9:
|
|
3616
|
+
message.useMain = reader.bool();
|
|
3665
3617
|
break;
|
|
3666
3618
|
default:
|
|
3667
3619
|
reader.skipType(tag & 7);
|
|
@@ -3701,26 +3653,24 @@ const dataform = $root.dataform = (() => {
|
|
|
3701
3653
|
if (message.projectDir != null && message.hasOwnProperty("projectDir"))
|
|
3702
3654
|
if (!$util.isString(message.projectDir))
|
|
3703
3655
|
return "projectDir: string expected";
|
|
3656
|
+
if (message.filePaths != null && message.hasOwnProperty("filePaths")) {
|
|
3657
|
+
if (!Array.isArray(message.filePaths))
|
|
3658
|
+
return "filePaths: array expected";
|
|
3659
|
+
for (let i = 0; i < message.filePaths.length; ++i)
|
|
3660
|
+
if (!$util.isString(message.filePaths[i]))
|
|
3661
|
+
return "filePaths: string[] expected";
|
|
3662
|
+
}
|
|
3704
3663
|
if (message.projectConfigOverride != null && message.hasOwnProperty("projectConfigOverride")) {
|
|
3705
3664
|
let error = $root.dataform.ProjectConfig.verify(message.projectConfigOverride);
|
|
3706
3665
|
if (error)
|
|
3707
3666
|
return "projectConfigOverride." + error;
|
|
3708
3667
|
}
|
|
3709
|
-
if (message.compileSingleQuery != null && message.hasOwnProperty("compileSingleQuery"))
|
|
3710
|
-
if (typeof message.compileSingleQuery !== "boolean")
|
|
3711
|
-
return "compileSingleQuery: boolean expected";
|
|
3712
|
-
if (message.query != null && message.hasOwnProperty("query"))
|
|
3713
|
-
if (!$util.isString(message.query))
|
|
3714
|
-
return "query: string expected";
|
|
3715
3668
|
if (message.timeoutMillis != null && message.hasOwnProperty("timeoutMillis"))
|
|
3716
3669
|
if (!$util.isInteger(message.timeoutMillis))
|
|
3717
3670
|
return "timeoutMillis: integer expected";
|
|
3718
|
-
if (message.
|
|
3719
|
-
if (
|
|
3720
|
-
return "
|
|
3721
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3722
|
-
if (!$util.isString(message.returnOverride))
|
|
3723
|
-
return "returnOverride: string expected";
|
|
3671
|
+
if (message.useMain != null && message.hasOwnProperty("useMain"))
|
|
3672
|
+
if (typeof message.useMain !== "boolean")
|
|
3673
|
+
return "useMain: boolean expected";
|
|
3724
3674
|
return null;
|
|
3725
3675
|
};
|
|
3726
3676
|
|
|
@@ -3738,21 +3688,22 @@ const dataform = $root.dataform = (() => {
|
|
|
3738
3688
|
let message = new $root.dataform.CompileConfig();
|
|
3739
3689
|
if (object.projectDir != null)
|
|
3740
3690
|
message.projectDir = String(object.projectDir);
|
|
3691
|
+
if (object.filePaths) {
|
|
3692
|
+
if (!Array.isArray(object.filePaths))
|
|
3693
|
+
throw TypeError(".dataform.CompileConfig.filePaths: array expected");
|
|
3694
|
+
message.filePaths = [];
|
|
3695
|
+
for (let i = 0; i < object.filePaths.length; ++i)
|
|
3696
|
+
message.filePaths[i] = String(object.filePaths[i]);
|
|
3697
|
+
}
|
|
3741
3698
|
if (object.projectConfigOverride != null) {
|
|
3742
3699
|
if (typeof object.projectConfigOverride !== "object")
|
|
3743
3700
|
throw TypeError(".dataform.CompileConfig.projectConfigOverride: object expected");
|
|
3744
3701
|
message.projectConfigOverride = $root.dataform.ProjectConfig.fromObject(object.projectConfigOverride);
|
|
3745
3702
|
}
|
|
3746
|
-
if (object.compileSingleQuery != null)
|
|
3747
|
-
message.compileSingleQuery = Boolean(object.compileSingleQuery);
|
|
3748
|
-
if (object.query != null)
|
|
3749
|
-
message.query = String(object.query);
|
|
3750
3703
|
if (object.timeoutMillis != null)
|
|
3751
3704
|
message.timeoutMillis = object.timeoutMillis | 0;
|
|
3752
|
-
if (object.
|
|
3753
|
-
message.
|
|
3754
|
-
if (object.returnOverride != null)
|
|
3755
|
-
message.returnOverride = String(object.returnOverride);
|
|
3705
|
+
if (object.useMain != null)
|
|
3706
|
+
message.useMain = Boolean(object.useMain);
|
|
3756
3707
|
return message;
|
|
3757
3708
|
};
|
|
3758
3709
|
|
|
@@ -3769,29 +3720,27 @@ const dataform = $root.dataform = (() => {
|
|
|
3769
3720
|
if (!options)
|
|
3770
3721
|
options = {};
|
|
3771
3722
|
let object = {};
|
|
3723
|
+
if (options.arrays || options.defaults)
|
|
3724
|
+
object.filePaths = [];
|
|
3772
3725
|
if (options.defaults) {
|
|
3773
3726
|
object.projectDir = "";
|
|
3774
|
-
object.schemaSuffixOverride = "";
|
|
3775
3727
|
object.projectConfigOverride = null;
|
|
3776
|
-
object.query = "";
|
|
3777
|
-
object.returnOverride = "";
|
|
3778
3728
|
object.timeoutMillis = 0;
|
|
3779
|
-
object.
|
|
3729
|
+
object.useMain = false;
|
|
3780
3730
|
}
|
|
3781
3731
|
if (message.projectDir != null && message.hasOwnProperty("projectDir"))
|
|
3782
3732
|
object.projectDir = message.projectDir;
|
|
3783
|
-
if (message.schemaSuffixOverride != null && message.hasOwnProperty("schemaSuffixOverride"))
|
|
3784
|
-
object.schemaSuffixOverride = message.schemaSuffixOverride;
|
|
3785
3733
|
if (message.projectConfigOverride != null && message.hasOwnProperty("projectConfigOverride"))
|
|
3786
3734
|
object.projectConfigOverride = $root.dataform.ProjectConfig.toObject(message.projectConfigOverride, options);
|
|
3787
|
-
if (message.query != null && message.hasOwnProperty("query"))
|
|
3788
|
-
object.query = message.query;
|
|
3789
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3790
|
-
object.returnOverride = message.returnOverride;
|
|
3791
3735
|
if (message.timeoutMillis != null && message.hasOwnProperty("timeoutMillis"))
|
|
3792
3736
|
object.timeoutMillis = message.timeoutMillis;
|
|
3793
|
-
if (message.
|
|
3794
|
-
object.
|
|
3737
|
+
if (message.filePaths && message.filePaths.length) {
|
|
3738
|
+
object.filePaths = [];
|
|
3739
|
+
for (let j = 0; j < message.filePaths.length; ++j)
|
|
3740
|
+
object.filePaths[j] = message.filePaths[j];
|
|
3741
|
+
}
|
|
3742
|
+
if (message.useMain != null && message.hasOwnProperty("useMain"))
|
|
3743
|
+
object.useMain = message.useMain;
|
|
3795
3744
|
return object;
|
|
3796
3745
|
};
|
|
3797
3746
|
|
|
@@ -5273,7 +5222,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5273
5222
|
* @memberof dataform
|
|
5274
5223
|
* @interface IGraphErrors
|
|
5275
5224
|
* @property {Array.<dataform.ICompilationError>|null} [compilationErrors] GraphErrors compilationErrors
|
|
5276
|
-
* @property {Array.<dataform.IValidationError>|null} [validationErrors] GraphErrors validationErrors
|
|
5277
5225
|
*/
|
|
5278
5226
|
|
|
5279
5227
|
/**
|
|
@@ -5286,7 +5234,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5286
5234
|
*/
|
|
5287
5235
|
function GraphErrors(properties) {
|
|
5288
5236
|
this.compilationErrors = [];
|
|
5289
|
-
this.validationErrors = [];
|
|
5290
5237
|
if (properties)
|
|
5291
5238
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5292
5239
|
if (properties[keys[i]] != null)
|
|
@@ -5301,14 +5248,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5301
5248
|
*/
|
|
5302
5249
|
GraphErrors.prototype.compilationErrors = $util.emptyArray;
|
|
5303
5250
|
|
|
5304
|
-
/**
|
|
5305
|
-
* GraphErrors validationErrors.
|
|
5306
|
-
* @member {Array.<dataform.IValidationError>} validationErrors
|
|
5307
|
-
* @memberof dataform.GraphErrors
|
|
5308
|
-
* @instance
|
|
5309
|
-
*/
|
|
5310
|
-
GraphErrors.prototype.validationErrors = $util.emptyArray;
|
|
5311
|
-
|
|
5312
5251
|
/**
|
|
5313
5252
|
* Creates a new GraphErrors instance using the specified properties.
|
|
5314
5253
|
* @function create
|
|
@@ -5336,9 +5275,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5336
5275
|
if (message.compilationErrors != null && message.compilationErrors.length)
|
|
5337
5276
|
for (let i = 0; i < message.compilationErrors.length; ++i)
|
|
5338
5277
|
$root.dataform.CompilationError.encode(message.compilationErrors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
5339
|
-
if (message.validationErrors != null && message.validationErrors.length)
|
|
5340
|
-
for (let i = 0; i < message.validationErrors.length; ++i)
|
|
5341
|
-
$root.dataform.ValidationError.encode(message.validationErrors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
5342
5278
|
return writer;
|
|
5343
5279
|
};
|
|
5344
5280
|
|
|
@@ -5378,11 +5314,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5378
5314
|
message.compilationErrors = [];
|
|
5379
5315
|
message.compilationErrors.push($root.dataform.CompilationError.decode(reader, reader.uint32()));
|
|
5380
5316
|
break;
|
|
5381
|
-
case 2:
|
|
5382
|
-
if (!(message.validationErrors && message.validationErrors.length))
|
|
5383
|
-
message.validationErrors = [];
|
|
5384
|
-
message.validationErrors.push($root.dataform.ValidationError.decode(reader, reader.uint32()));
|
|
5385
|
-
break;
|
|
5386
5317
|
default:
|
|
5387
5318
|
reader.skipType(tag & 7);
|
|
5388
5319
|
break;
|
|
@@ -5427,15 +5358,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5427
5358
|
return "compilationErrors." + error;
|
|
5428
5359
|
}
|
|
5429
5360
|
}
|
|
5430
|
-
if (message.validationErrors != null && message.hasOwnProperty("validationErrors")) {
|
|
5431
|
-
if (!Array.isArray(message.validationErrors))
|
|
5432
|
-
return "validationErrors: array expected";
|
|
5433
|
-
for (let i = 0; i < message.validationErrors.length; ++i) {
|
|
5434
|
-
let error = $root.dataform.ValidationError.verify(message.validationErrors[i]);
|
|
5435
|
-
if (error)
|
|
5436
|
-
return "validationErrors." + error;
|
|
5437
|
-
}
|
|
5438
|
-
}
|
|
5439
5361
|
return null;
|
|
5440
5362
|
};
|
|
5441
5363
|
|
|
@@ -5461,16 +5383,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5461
5383
|
message.compilationErrors[i] = $root.dataform.CompilationError.fromObject(object.compilationErrors[i]);
|
|
5462
5384
|
}
|
|
5463
5385
|
}
|
|
5464
|
-
if (object.validationErrors) {
|
|
5465
|
-
if (!Array.isArray(object.validationErrors))
|
|
5466
|
-
throw TypeError(".dataform.GraphErrors.validationErrors: array expected");
|
|
5467
|
-
message.validationErrors = [];
|
|
5468
|
-
for (let i = 0; i < object.validationErrors.length; ++i) {
|
|
5469
|
-
if (typeof object.validationErrors[i] !== "object")
|
|
5470
|
-
throw TypeError(".dataform.GraphErrors.validationErrors: object expected");
|
|
5471
|
-
message.validationErrors[i] = $root.dataform.ValidationError.fromObject(object.validationErrors[i]);
|
|
5472
|
-
}
|
|
5473
|
-
}
|
|
5474
5386
|
return message;
|
|
5475
5387
|
};
|
|
5476
5388
|
|
|
@@ -5487,20 +5399,13 @@ const dataform = $root.dataform = (() => {
|
|
|
5487
5399
|
if (!options)
|
|
5488
5400
|
options = {};
|
|
5489
5401
|
let object = {};
|
|
5490
|
-
if (options.arrays || options.defaults)
|
|
5402
|
+
if (options.arrays || options.defaults)
|
|
5491
5403
|
object.compilationErrors = [];
|
|
5492
|
-
object.validationErrors = [];
|
|
5493
|
-
}
|
|
5494
5404
|
if (message.compilationErrors && message.compilationErrors.length) {
|
|
5495
5405
|
object.compilationErrors = [];
|
|
5496
5406
|
for (let j = 0; j < message.compilationErrors.length; ++j)
|
|
5497
5407
|
object.compilationErrors[j] = $root.dataform.CompilationError.toObject(message.compilationErrors[j], options);
|
|
5498
5408
|
}
|
|
5499
|
-
if (message.validationErrors && message.validationErrors.length) {
|
|
5500
|
-
object.validationErrors = [];
|
|
5501
|
-
for (let j = 0; j < message.validationErrors.length; ++j)
|
|
5502
|
-
object.validationErrors[j] = $root.dataform.ValidationError.toObject(message.validationErrors[j], options);
|
|
5503
|
-
}
|
|
5504
5409
|
return object;
|
|
5505
5410
|
};
|
|
5506
5411
|
|
|
@@ -5518,25 +5423,28 @@ const dataform = $root.dataform = (() => {
|
|
|
5518
5423
|
return GraphErrors;
|
|
5519
5424
|
})();
|
|
5520
5425
|
|
|
5521
|
-
dataform.
|
|
5426
|
+
dataform.CompilationError = (function() {
|
|
5522
5427
|
|
|
5523
5428
|
/**
|
|
5524
|
-
* Properties of a
|
|
5429
|
+
* Properties of a CompilationError.
|
|
5525
5430
|
* @memberof dataform
|
|
5526
|
-
* @interface
|
|
5527
|
-
* @property {string|null} [
|
|
5528
|
-
* @property {string|null} [
|
|
5431
|
+
* @interface ICompilationError
|
|
5432
|
+
* @property {string|null} [fileName] CompilationError fileName
|
|
5433
|
+
* @property {string|null} [actionName] CompilationError actionName
|
|
5434
|
+
* @property {dataform.ITarget|null} [actionTarget] CompilationError actionTarget
|
|
5435
|
+
* @property {string|null} [message] CompilationError message
|
|
5436
|
+
* @property {string|null} [stack] CompilationError stack
|
|
5529
5437
|
*/
|
|
5530
5438
|
|
|
5531
5439
|
/**
|
|
5532
|
-
* Constructs a new
|
|
5440
|
+
* Constructs a new CompilationError.
|
|
5533
5441
|
* @memberof dataform
|
|
5534
|
-
* @classdesc Represents a
|
|
5535
|
-
* @implements
|
|
5442
|
+
* @classdesc Represents a CompilationError.
|
|
5443
|
+
* @implements ICompilationError
|
|
5536
5444
|
* @constructor
|
|
5537
|
-
* @param {dataform.
|
|
5445
|
+
* @param {dataform.ICompilationError=} [properties] Properties to set
|
|
5538
5446
|
*/
|
|
5539
|
-
function
|
|
5447
|
+
function CompilationError(properties) {
|
|
5540
5448
|
if (properties)
|
|
5541
5449
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5542
5450
|
if (properties[keys[i]] != null)
|
|
@@ -5544,89 +5452,128 @@ const dataform = $root.dataform = (() => {
|
|
|
5544
5452
|
}
|
|
5545
5453
|
|
|
5546
5454
|
/**
|
|
5547
|
-
*
|
|
5455
|
+
* CompilationError fileName.
|
|
5456
|
+
* @member {string} fileName
|
|
5457
|
+
* @memberof dataform.CompilationError
|
|
5458
|
+
* @instance
|
|
5459
|
+
*/
|
|
5460
|
+
CompilationError.prototype.fileName = "";
|
|
5461
|
+
|
|
5462
|
+
/**
|
|
5463
|
+
* CompilationError actionName.
|
|
5548
5464
|
* @member {string} actionName
|
|
5549
|
-
* @memberof dataform.
|
|
5465
|
+
* @memberof dataform.CompilationError
|
|
5466
|
+
* @instance
|
|
5467
|
+
*/
|
|
5468
|
+
CompilationError.prototype.actionName = "";
|
|
5469
|
+
|
|
5470
|
+
/**
|
|
5471
|
+
* CompilationError actionTarget.
|
|
5472
|
+
* @member {dataform.ITarget|null|undefined} actionTarget
|
|
5473
|
+
* @memberof dataform.CompilationError
|
|
5550
5474
|
* @instance
|
|
5551
5475
|
*/
|
|
5552
|
-
|
|
5476
|
+
CompilationError.prototype.actionTarget = null;
|
|
5553
5477
|
|
|
5554
5478
|
/**
|
|
5555
|
-
*
|
|
5479
|
+
* CompilationError message.
|
|
5556
5480
|
* @member {string} message
|
|
5557
|
-
* @memberof dataform.
|
|
5481
|
+
* @memberof dataform.CompilationError
|
|
5482
|
+
* @instance
|
|
5483
|
+
*/
|
|
5484
|
+
CompilationError.prototype.message = "";
|
|
5485
|
+
|
|
5486
|
+
/**
|
|
5487
|
+
* CompilationError stack.
|
|
5488
|
+
* @member {string} stack
|
|
5489
|
+
* @memberof dataform.CompilationError
|
|
5558
5490
|
* @instance
|
|
5559
5491
|
*/
|
|
5560
|
-
|
|
5492
|
+
CompilationError.prototype.stack = "";
|
|
5561
5493
|
|
|
5562
5494
|
/**
|
|
5563
|
-
* Creates a new
|
|
5495
|
+
* Creates a new CompilationError instance using the specified properties.
|
|
5564
5496
|
* @function create
|
|
5565
|
-
* @memberof dataform.
|
|
5497
|
+
* @memberof dataform.CompilationError
|
|
5566
5498
|
* @static
|
|
5567
|
-
* @param {dataform.
|
|
5568
|
-
* @returns {dataform.
|
|
5499
|
+
* @param {dataform.ICompilationError=} [properties] Properties to set
|
|
5500
|
+
* @returns {dataform.CompilationError} CompilationError instance
|
|
5569
5501
|
*/
|
|
5570
|
-
|
|
5571
|
-
return new
|
|
5502
|
+
CompilationError.create = function create(properties) {
|
|
5503
|
+
return new CompilationError(properties);
|
|
5572
5504
|
};
|
|
5573
5505
|
|
|
5574
5506
|
/**
|
|
5575
|
-
* Encodes the specified
|
|
5507
|
+
* Encodes the specified CompilationError message. Does not implicitly {@link dataform.CompilationError.verify|verify} messages.
|
|
5576
5508
|
* @function encode
|
|
5577
|
-
* @memberof dataform.
|
|
5509
|
+
* @memberof dataform.CompilationError
|
|
5578
5510
|
* @static
|
|
5579
|
-
* @param {dataform.
|
|
5511
|
+
* @param {dataform.ICompilationError} message CompilationError message or plain object to encode
|
|
5580
5512
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5581
5513
|
* @returns {$protobuf.Writer} Writer
|
|
5582
5514
|
*/
|
|
5583
|
-
|
|
5515
|
+
CompilationError.encode = function encode(message, writer) {
|
|
5584
5516
|
if (!writer)
|
|
5585
5517
|
writer = $Writer.create();
|
|
5586
|
-
if (message.
|
|
5587
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
5518
|
+
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5519
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.fileName);
|
|
5588
5520
|
if (message.message != null && message.hasOwnProperty("message"))
|
|
5589
5521
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
|
|
5522
|
+
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5523
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.stack);
|
|
5524
|
+
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5525
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.actionName);
|
|
5526
|
+
if (message.actionTarget != null && message.hasOwnProperty("actionTarget"))
|
|
5527
|
+
$root.dataform.Target.encode(message.actionTarget, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
5590
5528
|
return writer;
|
|
5591
5529
|
};
|
|
5592
5530
|
|
|
5593
5531
|
/**
|
|
5594
|
-
* Encodes the specified
|
|
5532
|
+
* Encodes the specified CompilationError message, length delimited. Does not implicitly {@link dataform.CompilationError.verify|verify} messages.
|
|
5595
5533
|
* @function encodeDelimited
|
|
5596
|
-
* @memberof dataform.
|
|
5534
|
+
* @memberof dataform.CompilationError
|
|
5597
5535
|
* @static
|
|
5598
|
-
* @param {dataform.
|
|
5536
|
+
* @param {dataform.ICompilationError} message CompilationError message or plain object to encode
|
|
5599
5537
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5600
5538
|
* @returns {$protobuf.Writer} Writer
|
|
5601
5539
|
*/
|
|
5602
|
-
|
|
5540
|
+
CompilationError.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5603
5541
|
return this.encode(message, writer).ldelim();
|
|
5604
5542
|
};
|
|
5605
5543
|
|
|
5606
5544
|
/**
|
|
5607
|
-
* Decodes a
|
|
5545
|
+
* Decodes a CompilationError message from the specified reader or buffer.
|
|
5608
5546
|
* @function decode
|
|
5609
|
-
* @memberof dataform.
|
|
5547
|
+
* @memberof dataform.CompilationError
|
|
5610
5548
|
* @static
|
|
5611
5549
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5612
5550
|
* @param {number} [length] Message length if known beforehand
|
|
5613
|
-
* @returns {dataform.
|
|
5551
|
+
* @returns {dataform.CompilationError} CompilationError
|
|
5614
5552
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5615
5553
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5616
5554
|
*/
|
|
5617
|
-
|
|
5555
|
+
CompilationError.decode = function decode(reader, length) {
|
|
5618
5556
|
if (!(reader instanceof $Reader))
|
|
5619
5557
|
reader = $Reader.create(reader);
|
|
5620
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.
|
|
5558
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CompilationError();
|
|
5621
5559
|
while (reader.pos < end) {
|
|
5622
5560
|
let tag = reader.uint32();
|
|
5623
5561
|
switch (tag >>> 3) {
|
|
5624
5562
|
case 1:
|
|
5563
|
+
message.fileName = reader.string();
|
|
5564
|
+
break;
|
|
5565
|
+
case 4:
|
|
5625
5566
|
message.actionName = reader.string();
|
|
5626
5567
|
break;
|
|
5568
|
+
case 5:
|
|
5569
|
+
message.actionTarget = $root.dataform.Target.decode(reader, reader.uint32());
|
|
5570
|
+
break;
|
|
5627
5571
|
case 2:
|
|
5628
5572
|
message.message = reader.string();
|
|
5629
5573
|
break;
|
|
5574
|
+
case 3:
|
|
5575
|
+
message.stack = reader.string();
|
|
5576
|
+
break;
|
|
5630
5577
|
default:
|
|
5631
5578
|
reader.skipType(tag & 7);
|
|
5632
5579
|
break;
|
|
@@ -5636,356 +5583,131 @@ const dataform = $root.dataform = (() => {
|
|
|
5636
5583
|
};
|
|
5637
5584
|
|
|
5638
5585
|
/**
|
|
5639
|
-
* Decodes a
|
|
5586
|
+
* Decodes a CompilationError message from the specified reader or buffer, length delimited.
|
|
5640
5587
|
* @function decodeDelimited
|
|
5641
|
-
* @memberof dataform.
|
|
5588
|
+
* @memberof dataform.CompilationError
|
|
5642
5589
|
* @static
|
|
5643
5590
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5644
|
-
* @returns {dataform.
|
|
5591
|
+
* @returns {dataform.CompilationError} CompilationError
|
|
5645
5592
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5646
5593
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5647
5594
|
*/
|
|
5648
|
-
|
|
5595
|
+
CompilationError.decodeDelimited = function decodeDelimited(reader) {
|
|
5649
5596
|
if (!(reader instanceof $Reader))
|
|
5650
5597
|
reader = new $Reader(reader);
|
|
5651
5598
|
return this.decode(reader, reader.uint32());
|
|
5652
5599
|
};
|
|
5653
5600
|
|
|
5654
5601
|
/**
|
|
5655
|
-
* Verifies a
|
|
5602
|
+
* Verifies a CompilationError message.
|
|
5656
5603
|
* @function verify
|
|
5657
|
-
* @memberof dataform.
|
|
5604
|
+
* @memberof dataform.CompilationError
|
|
5658
5605
|
* @static
|
|
5659
5606
|
* @param {Object.<string,*>} message Plain object to verify
|
|
5660
5607
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5661
5608
|
*/
|
|
5662
|
-
|
|
5609
|
+
CompilationError.verify = function verify(message) {
|
|
5663
5610
|
if (typeof message !== "object" || message === null)
|
|
5664
5611
|
return "object expected";
|
|
5612
|
+
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5613
|
+
if (!$util.isString(message.fileName))
|
|
5614
|
+
return "fileName: string expected";
|
|
5665
5615
|
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5666
5616
|
if (!$util.isString(message.actionName))
|
|
5667
5617
|
return "actionName: string expected";
|
|
5618
|
+
if (message.actionTarget != null && message.hasOwnProperty("actionTarget")) {
|
|
5619
|
+
let error = $root.dataform.Target.verify(message.actionTarget);
|
|
5620
|
+
if (error)
|
|
5621
|
+
return "actionTarget." + error;
|
|
5622
|
+
}
|
|
5668
5623
|
if (message.message != null && message.hasOwnProperty("message"))
|
|
5669
5624
|
if (!$util.isString(message.message))
|
|
5670
5625
|
return "message: string expected";
|
|
5626
|
+
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5627
|
+
if (!$util.isString(message.stack))
|
|
5628
|
+
return "stack: string expected";
|
|
5671
5629
|
return null;
|
|
5672
5630
|
};
|
|
5673
5631
|
|
|
5674
5632
|
/**
|
|
5675
|
-
* Creates a
|
|
5633
|
+
* Creates a CompilationError message from a plain object. Also converts values to their respective internal types.
|
|
5676
5634
|
* @function fromObject
|
|
5677
|
-
* @memberof dataform.
|
|
5635
|
+
* @memberof dataform.CompilationError
|
|
5678
5636
|
* @static
|
|
5679
5637
|
* @param {Object.<string,*>} object Plain object
|
|
5680
|
-
* @returns {dataform.
|
|
5638
|
+
* @returns {dataform.CompilationError} CompilationError
|
|
5681
5639
|
*/
|
|
5682
|
-
|
|
5683
|
-
if (object instanceof $root.dataform.
|
|
5640
|
+
CompilationError.fromObject = function fromObject(object) {
|
|
5641
|
+
if (object instanceof $root.dataform.CompilationError)
|
|
5684
5642
|
return object;
|
|
5685
|
-
let message = new $root.dataform.
|
|
5643
|
+
let message = new $root.dataform.CompilationError();
|
|
5644
|
+
if (object.fileName != null)
|
|
5645
|
+
message.fileName = String(object.fileName);
|
|
5686
5646
|
if (object.actionName != null)
|
|
5687
5647
|
message.actionName = String(object.actionName);
|
|
5648
|
+
if (object.actionTarget != null) {
|
|
5649
|
+
if (typeof object.actionTarget !== "object")
|
|
5650
|
+
throw TypeError(".dataform.CompilationError.actionTarget: object expected");
|
|
5651
|
+
message.actionTarget = $root.dataform.Target.fromObject(object.actionTarget);
|
|
5652
|
+
}
|
|
5688
5653
|
if (object.message != null)
|
|
5689
5654
|
message.message = String(object.message);
|
|
5655
|
+
if (object.stack != null)
|
|
5656
|
+
message.stack = String(object.stack);
|
|
5690
5657
|
return message;
|
|
5691
5658
|
};
|
|
5692
5659
|
|
|
5693
5660
|
/**
|
|
5694
|
-
* Creates a plain object from a
|
|
5661
|
+
* Creates a plain object from a CompilationError message. Also converts values to other types if specified.
|
|
5695
5662
|
* @function toObject
|
|
5696
|
-
* @memberof dataform.
|
|
5663
|
+
* @memberof dataform.CompilationError
|
|
5697
5664
|
* @static
|
|
5698
|
-
* @param {dataform.
|
|
5665
|
+
* @param {dataform.CompilationError} message CompilationError
|
|
5699
5666
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5700
5667
|
* @returns {Object.<string,*>} Plain object
|
|
5701
5668
|
*/
|
|
5702
|
-
|
|
5669
|
+
CompilationError.toObject = function toObject(message, options) {
|
|
5703
5670
|
if (!options)
|
|
5704
5671
|
options = {};
|
|
5705
5672
|
let object = {};
|
|
5706
5673
|
if (options.defaults) {
|
|
5707
|
-
object.
|
|
5674
|
+
object.fileName = "";
|
|
5708
5675
|
object.message = "";
|
|
5676
|
+
object.stack = "";
|
|
5677
|
+
object.actionName = "";
|
|
5678
|
+
object.actionTarget = null;
|
|
5709
5679
|
}
|
|
5710
|
-
if (message.
|
|
5711
|
-
object.
|
|
5680
|
+
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5681
|
+
object.fileName = message.fileName;
|
|
5712
5682
|
if (message.message != null && message.hasOwnProperty("message"))
|
|
5713
5683
|
object.message = message.message;
|
|
5684
|
+
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5685
|
+
object.stack = message.stack;
|
|
5686
|
+
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5687
|
+
object.actionName = message.actionName;
|
|
5688
|
+
if (message.actionTarget != null && message.hasOwnProperty("actionTarget"))
|
|
5689
|
+
object.actionTarget = $root.dataform.Target.toObject(message.actionTarget, options);
|
|
5714
5690
|
return object;
|
|
5715
5691
|
};
|
|
5716
5692
|
|
|
5717
5693
|
/**
|
|
5718
|
-
* Converts this
|
|
5694
|
+
* Converts this CompilationError to JSON.
|
|
5719
5695
|
* @function toJSON
|
|
5720
|
-
* @memberof dataform.
|
|
5696
|
+
* @memberof dataform.CompilationError
|
|
5721
5697
|
* @instance
|
|
5722
5698
|
* @returns {Object.<string,*>} JSON object
|
|
5723
5699
|
*/
|
|
5724
|
-
|
|
5700
|
+
CompilationError.prototype.toJSON = function toJSON() {
|
|
5725
5701
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5726
5702
|
};
|
|
5727
5703
|
|
|
5728
|
-
return
|
|
5704
|
+
return CompilationError;
|
|
5729
5705
|
})();
|
|
5730
5706
|
|
|
5731
|
-
dataform.
|
|
5707
|
+
dataform.QueryEvaluationError = (function() {
|
|
5732
5708
|
|
|
5733
5709
|
/**
|
|
5734
|
-
* Properties of a
|
|
5735
|
-
* @memberof dataform
|
|
5736
|
-
* @interface ICompilationError
|
|
5737
|
-
* @property {string|null} [fileName] CompilationError fileName
|
|
5738
|
-
* @property {string|null} [actionName] CompilationError actionName
|
|
5739
|
-
* @property {string|null} [message] CompilationError message
|
|
5740
|
-
* @property {string|null} [stack] CompilationError stack
|
|
5741
|
-
*/
|
|
5742
|
-
|
|
5743
|
-
/**
|
|
5744
|
-
* Constructs a new CompilationError.
|
|
5745
|
-
* @memberof dataform
|
|
5746
|
-
* @classdesc Represents a CompilationError.
|
|
5747
|
-
* @implements ICompilationError
|
|
5748
|
-
* @constructor
|
|
5749
|
-
* @param {dataform.ICompilationError=} [properties] Properties to set
|
|
5750
|
-
*/
|
|
5751
|
-
function CompilationError(properties) {
|
|
5752
|
-
if (properties)
|
|
5753
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5754
|
-
if (properties[keys[i]] != null)
|
|
5755
|
-
this[keys[i]] = properties[keys[i]];
|
|
5756
|
-
}
|
|
5757
|
-
|
|
5758
|
-
/**
|
|
5759
|
-
* CompilationError fileName.
|
|
5760
|
-
* @member {string} fileName
|
|
5761
|
-
* @memberof dataform.CompilationError
|
|
5762
|
-
* @instance
|
|
5763
|
-
*/
|
|
5764
|
-
CompilationError.prototype.fileName = "";
|
|
5765
|
-
|
|
5766
|
-
/**
|
|
5767
|
-
* CompilationError actionName.
|
|
5768
|
-
* @member {string} actionName
|
|
5769
|
-
* @memberof dataform.CompilationError
|
|
5770
|
-
* @instance
|
|
5771
|
-
*/
|
|
5772
|
-
CompilationError.prototype.actionName = "";
|
|
5773
|
-
|
|
5774
|
-
/**
|
|
5775
|
-
* CompilationError message.
|
|
5776
|
-
* @member {string} message
|
|
5777
|
-
* @memberof dataform.CompilationError
|
|
5778
|
-
* @instance
|
|
5779
|
-
*/
|
|
5780
|
-
CompilationError.prototype.message = "";
|
|
5781
|
-
|
|
5782
|
-
/**
|
|
5783
|
-
* CompilationError stack.
|
|
5784
|
-
* @member {string} stack
|
|
5785
|
-
* @memberof dataform.CompilationError
|
|
5786
|
-
* @instance
|
|
5787
|
-
*/
|
|
5788
|
-
CompilationError.prototype.stack = "";
|
|
5789
|
-
|
|
5790
|
-
/**
|
|
5791
|
-
* Creates a new CompilationError instance using the specified properties.
|
|
5792
|
-
* @function create
|
|
5793
|
-
* @memberof dataform.CompilationError
|
|
5794
|
-
* @static
|
|
5795
|
-
* @param {dataform.ICompilationError=} [properties] Properties to set
|
|
5796
|
-
* @returns {dataform.CompilationError} CompilationError instance
|
|
5797
|
-
*/
|
|
5798
|
-
CompilationError.create = function create(properties) {
|
|
5799
|
-
return new CompilationError(properties);
|
|
5800
|
-
};
|
|
5801
|
-
|
|
5802
|
-
/**
|
|
5803
|
-
* Encodes the specified CompilationError message. Does not implicitly {@link dataform.CompilationError.verify|verify} messages.
|
|
5804
|
-
* @function encode
|
|
5805
|
-
* @memberof dataform.CompilationError
|
|
5806
|
-
* @static
|
|
5807
|
-
* @param {dataform.ICompilationError} message CompilationError message or plain object to encode
|
|
5808
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5809
|
-
* @returns {$protobuf.Writer} Writer
|
|
5810
|
-
*/
|
|
5811
|
-
CompilationError.encode = function encode(message, writer) {
|
|
5812
|
-
if (!writer)
|
|
5813
|
-
writer = $Writer.create();
|
|
5814
|
-
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5815
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.fileName);
|
|
5816
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
5817
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
|
|
5818
|
-
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5819
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.stack);
|
|
5820
|
-
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5821
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.actionName);
|
|
5822
|
-
return writer;
|
|
5823
|
-
};
|
|
5824
|
-
|
|
5825
|
-
/**
|
|
5826
|
-
* Encodes the specified CompilationError message, length delimited. Does not implicitly {@link dataform.CompilationError.verify|verify} messages.
|
|
5827
|
-
* @function encodeDelimited
|
|
5828
|
-
* @memberof dataform.CompilationError
|
|
5829
|
-
* @static
|
|
5830
|
-
* @param {dataform.ICompilationError} message CompilationError message or plain object to encode
|
|
5831
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5832
|
-
* @returns {$protobuf.Writer} Writer
|
|
5833
|
-
*/
|
|
5834
|
-
CompilationError.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5835
|
-
return this.encode(message, writer).ldelim();
|
|
5836
|
-
};
|
|
5837
|
-
|
|
5838
|
-
/**
|
|
5839
|
-
* Decodes a CompilationError message from the specified reader or buffer.
|
|
5840
|
-
* @function decode
|
|
5841
|
-
* @memberof dataform.CompilationError
|
|
5842
|
-
* @static
|
|
5843
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5844
|
-
* @param {number} [length] Message length if known beforehand
|
|
5845
|
-
* @returns {dataform.CompilationError} CompilationError
|
|
5846
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5847
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5848
|
-
*/
|
|
5849
|
-
CompilationError.decode = function decode(reader, length) {
|
|
5850
|
-
if (!(reader instanceof $Reader))
|
|
5851
|
-
reader = $Reader.create(reader);
|
|
5852
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CompilationError();
|
|
5853
|
-
while (reader.pos < end) {
|
|
5854
|
-
let tag = reader.uint32();
|
|
5855
|
-
switch (tag >>> 3) {
|
|
5856
|
-
case 1:
|
|
5857
|
-
message.fileName = reader.string();
|
|
5858
|
-
break;
|
|
5859
|
-
case 4:
|
|
5860
|
-
message.actionName = reader.string();
|
|
5861
|
-
break;
|
|
5862
|
-
case 2:
|
|
5863
|
-
message.message = reader.string();
|
|
5864
|
-
break;
|
|
5865
|
-
case 3:
|
|
5866
|
-
message.stack = reader.string();
|
|
5867
|
-
break;
|
|
5868
|
-
default:
|
|
5869
|
-
reader.skipType(tag & 7);
|
|
5870
|
-
break;
|
|
5871
|
-
}
|
|
5872
|
-
}
|
|
5873
|
-
return message;
|
|
5874
|
-
};
|
|
5875
|
-
|
|
5876
|
-
/**
|
|
5877
|
-
* Decodes a CompilationError message from the specified reader or buffer, length delimited.
|
|
5878
|
-
* @function decodeDelimited
|
|
5879
|
-
* @memberof dataform.CompilationError
|
|
5880
|
-
* @static
|
|
5881
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5882
|
-
* @returns {dataform.CompilationError} CompilationError
|
|
5883
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5884
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5885
|
-
*/
|
|
5886
|
-
CompilationError.decodeDelimited = function decodeDelimited(reader) {
|
|
5887
|
-
if (!(reader instanceof $Reader))
|
|
5888
|
-
reader = new $Reader(reader);
|
|
5889
|
-
return this.decode(reader, reader.uint32());
|
|
5890
|
-
};
|
|
5891
|
-
|
|
5892
|
-
/**
|
|
5893
|
-
* Verifies a CompilationError message.
|
|
5894
|
-
* @function verify
|
|
5895
|
-
* @memberof dataform.CompilationError
|
|
5896
|
-
* @static
|
|
5897
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
5898
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5899
|
-
*/
|
|
5900
|
-
CompilationError.verify = function verify(message) {
|
|
5901
|
-
if (typeof message !== "object" || message === null)
|
|
5902
|
-
return "object expected";
|
|
5903
|
-
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5904
|
-
if (!$util.isString(message.fileName))
|
|
5905
|
-
return "fileName: string expected";
|
|
5906
|
-
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5907
|
-
if (!$util.isString(message.actionName))
|
|
5908
|
-
return "actionName: string expected";
|
|
5909
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
5910
|
-
if (!$util.isString(message.message))
|
|
5911
|
-
return "message: string expected";
|
|
5912
|
-
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5913
|
-
if (!$util.isString(message.stack))
|
|
5914
|
-
return "stack: string expected";
|
|
5915
|
-
return null;
|
|
5916
|
-
};
|
|
5917
|
-
|
|
5918
|
-
/**
|
|
5919
|
-
* Creates a CompilationError message from a plain object. Also converts values to their respective internal types.
|
|
5920
|
-
* @function fromObject
|
|
5921
|
-
* @memberof dataform.CompilationError
|
|
5922
|
-
* @static
|
|
5923
|
-
* @param {Object.<string,*>} object Plain object
|
|
5924
|
-
* @returns {dataform.CompilationError} CompilationError
|
|
5925
|
-
*/
|
|
5926
|
-
CompilationError.fromObject = function fromObject(object) {
|
|
5927
|
-
if (object instanceof $root.dataform.CompilationError)
|
|
5928
|
-
return object;
|
|
5929
|
-
let message = new $root.dataform.CompilationError();
|
|
5930
|
-
if (object.fileName != null)
|
|
5931
|
-
message.fileName = String(object.fileName);
|
|
5932
|
-
if (object.actionName != null)
|
|
5933
|
-
message.actionName = String(object.actionName);
|
|
5934
|
-
if (object.message != null)
|
|
5935
|
-
message.message = String(object.message);
|
|
5936
|
-
if (object.stack != null)
|
|
5937
|
-
message.stack = String(object.stack);
|
|
5938
|
-
return message;
|
|
5939
|
-
};
|
|
5940
|
-
|
|
5941
|
-
/**
|
|
5942
|
-
* Creates a plain object from a CompilationError message. Also converts values to other types if specified.
|
|
5943
|
-
* @function toObject
|
|
5944
|
-
* @memberof dataform.CompilationError
|
|
5945
|
-
* @static
|
|
5946
|
-
* @param {dataform.CompilationError} message CompilationError
|
|
5947
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5948
|
-
* @returns {Object.<string,*>} Plain object
|
|
5949
|
-
*/
|
|
5950
|
-
CompilationError.toObject = function toObject(message, options) {
|
|
5951
|
-
if (!options)
|
|
5952
|
-
options = {};
|
|
5953
|
-
let object = {};
|
|
5954
|
-
if (options.defaults) {
|
|
5955
|
-
object.fileName = "";
|
|
5956
|
-
object.message = "";
|
|
5957
|
-
object.stack = "";
|
|
5958
|
-
object.actionName = "";
|
|
5959
|
-
}
|
|
5960
|
-
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5961
|
-
object.fileName = message.fileName;
|
|
5962
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
5963
|
-
object.message = message.message;
|
|
5964
|
-
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5965
|
-
object.stack = message.stack;
|
|
5966
|
-
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5967
|
-
object.actionName = message.actionName;
|
|
5968
|
-
return object;
|
|
5969
|
-
};
|
|
5970
|
-
|
|
5971
|
-
/**
|
|
5972
|
-
* Converts this CompilationError to JSON.
|
|
5973
|
-
* @function toJSON
|
|
5974
|
-
* @memberof dataform.CompilationError
|
|
5975
|
-
* @instance
|
|
5976
|
-
* @returns {Object.<string,*>} JSON object
|
|
5977
|
-
*/
|
|
5978
|
-
CompilationError.prototype.toJSON = function toJSON() {
|
|
5979
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5980
|
-
};
|
|
5981
|
-
|
|
5982
|
-
return CompilationError;
|
|
5983
|
-
})();
|
|
5984
|
-
|
|
5985
|
-
dataform.QueryEvaluationError = (function() {
|
|
5986
|
-
|
|
5987
|
-
/**
|
|
5988
|
-
* Properties of a QueryEvaluationError.
|
|
5710
|
+
* Properties of a QueryEvaluationError.
|
|
5989
5711
|
* @memberof dataform
|
|
5990
5712
|
* @interface IQueryEvaluationError
|
|
5991
5713
|
* @property {string|null} [message] QueryEvaluationError message
|
|
@@ -7681,10 +7403,6 @@ const dataform = $root.dataform = (() => {
|
|
|
7681
7403
|
* @property {dataform.ISQLDataWarehouseOptions|null} [sqlDataWarehouse] Table sqlDataWarehouse
|
|
7682
7404
|
* @property {dataform.IPrestoOptions|null} [presto] Table presto
|
|
7683
7405
|
* @property {string|null} [fileName] Table fileName
|
|
7684
|
-
* @property {Array.<string>|null} [deprecatedParsedColumns] Table deprecatedParsedColumns
|
|
7685
|
-
* @property {Array.<dataform.IValidationError>|null} [deprecatedValidationErrors] Table deprecatedValidationErrors
|
|
7686
|
-
* @property {string|null} [name] Table name
|
|
7687
|
-
* @property {Array.<string>|null} [dependencies] Table dependencies
|
|
7688
7406
|
*/
|
|
7689
7407
|
|
|
7690
7408
|
/**
|
|
@@ -7703,9 +7421,6 @@ const dataform = $root.dataform = (() => {
|
|
|
7703
7421
|
this.postOps = [];
|
|
7704
7422
|
this.incrementalPreOps = [];
|
|
7705
7423
|
this.incrementalPostOps = [];
|
|
7706
|
-
this.deprecatedParsedColumns = [];
|
|
7707
|
-
this.deprecatedValidationErrors = [];
|
|
7708
|
-
this.dependencies = [];
|
|
7709
7424
|
if (properties)
|
|
7710
7425
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7711
7426
|
if (properties[keys[i]] != null)
|
|
@@ -7897,44 +7612,12 @@ const dataform = $root.dataform = (() => {
|
|
|
7897
7612
|
Table.prototype.fileName = "";
|
|
7898
7613
|
|
|
7899
7614
|
/**
|
|
7900
|
-
* Table
|
|
7901
|
-
* @
|
|
7615
|
+
* Creates a new Table instance using the specified properties.
|
|
7616
|
+
* @function create
|
|
7902
7617
|
* @memberof dataform.Table
|
|
7903
|
-
* @
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
/**
|
|
7908
|
-
* Table deprecatedValidationErrors.
|
|
7909
|
-
* @member {Array.<dataform.IValidationError>} deprecatedValidationErrors
|
|
7910
|
-
* @memberof dataform.Table
|
|
7911
|
-
* @instance
|
|
7912
|
-
*/
|
|
7913
|
-
Table.prototype.deprecatedValidationErrors = $util.emptyArray;
|
|
7914
|
-
|
|
7915
|
-
/**
|
|
7916
|
-
* Table name.
|
|
7917
|
-
* @member {string} name
|
|
7918
|
-
* @memberof dataform.Table
|
|
7919
|
-
* @instance
|
|
7920
|
-
*/
|
|
7921
|
-
Table.prototype.name = "";
|
|
7922
|
-
|
|
7923
|
-
/**
|
|
7924
|
-
* Table dependencies.
|
|
7925
|
-
* @member {Array.<string>} dependencies
|
|
7926
|
-
* @memberof dataform.Table
|
|
7927
|
-
* @instance
|
|
7928
|
-
*/
|
|
7929
|
-
Table.prototype.dependencies = $util.emptyArray;
|
|
7930
|
-
|
|
7931
|
-
/**
|
|
7932
|
-
* Creates a new Table instance using the specified properties.
|
|
7933
|
-
* @function create
|
|
7934
|
-
* @memberof dataform.Table
|
|
7935
|
-
* @static
|
|
7936
|
-
* @param {dataform.ITable=} [properties] Properties to set
|
|
7937
|
-
* @returns {dataform.Table} Table instance
|
|
7618
|
+
* @static
|
|
7619
|
+
* @param {dataform.ITable=} [properties] Properties to set
|
|
7620
|
+
* @returns {dataform.Table} Table instance
|
|
7938
7621
|
*/
|
|
7939
7622
|
Table.create = function create(properties) {
|
|
7940
7623
|
return new Table(properties);
|
|
@@ -7952,11 +7635,6 @@ const dataform = $root.dataform = (() => {
|
|
|
7952
7635
|
Table.encode = function encode(message, writer) {
|
|
7953
7636
|
if (!writer)
|
|
7954
7637
|
writer = $Writer.create();
|
|
7955
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
7956
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
7957
|
-
if (message.dependencies != null && message.dependencies.length)
|
|
7958
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
7959
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.dependencies[i]);
|
|
7960
7638
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
7961
7639
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
|
|
7962
7640
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
@@ -7965,16 +7643,10 @@ const dataform = $root.dataform = (() => {
|
|
|
7965
7643
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.query);
|
|
7966
7644
|
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
7967
7645
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disabled);
|
|
7968
|
-
if (message.deprecatedValidationErrors != null && message.deprecatedValidationErrors.length)
|
|
7969
|
-
for (let i = 0; i < message.deprecatedValidationErrors.length; ++i)
|
|
7970
|
-
$root.dataform.ValidationError.encode(message.deprecatedValidationErrors[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
7971
7646
|
if (message.where != null && message.hasOwnProperty("where"))
|
|
7972
7647
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.where);
|
|
7973
7648
|
if (message["protected"] != null && message.hasOwnProperty("protected"))
|
|
7974
7649
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message["protected"]);
|
|
7975
|
-
if (message.deprecatedParsedColumns != null && message.deprecatedParsedColumns.length)
|
|
7976
|
-
for (let i = 0; i < message.deprecatedParsedColumns.length; ++i)
|
|
7977
|
-
writer.uint32(/* id 12, wireType 2 =*/98).string(message.deprecatedParsedColumns[i]);
|
|
7978
7650
|
if (message.preOps != null && message.preOps.length)
|
|
7979
7651
|
for (let i = 0; i < message.preOps.length; ++i)
|
|
7980
7652
|
writer.uint32(/* id 13, wireType 2 =*/106).string(message.preOps[i]);
|
|
@@ -8133,24 +7805,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8133
7805
|
case 18:
|
|
8134
7806
|
message.fileName = reader.string();
|
|
8135
7807
|
break;
|
|
8136
|
-
case 12:
|
|
8137
|
-
if (!(message.deprecatedParsedColumns && message.deprecatedParsedColumns.length))
|
|
8138
|
-
message.deprecatedParsedColumns = [];
|
|
8139
|
-
message.deprecatedParsedColumns.push(reader.string());
|
|
8140
|
-
break;
|
|
8141
|
-
case 7:
|
|
8142
|
-
if (!(message.deprecatedValidationErrors && message.deprecatedValidationErrors.length))
|
|
8143
|
-
message.deprecatedValidationErrors = [];
|
|
8144
|
-
message.deprecatedValidationErrors.push($root.dataform.ValidationError.decode(reader, reader.uint32()));
|
|
8145
|
-
break;
|
|
8146
|
-
case 1:
|
|
8147
|
-
message.name = reader.string();
|
|
8148
|
-
break;
|
|
8149
|
-
case 2:
|
|
8150
|
-
if (!(message.dependencies && message.dependencies.length))
|
|
8151
|
-
message.dependencies = [];
|
|
8152
|
-
message.dependencies.push(reader.string());
|
|
8153
|
-
break;
|
|
8154
7808
|
default:
|
|
8155
7809
|
reader.skipType(tag & 7);
|
|
8156
7810
|
break;
|
|
@@ -8307,32 +7961,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8307
7961
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
8308
7962
|
if (!$util.isString(message.fileName))
|
|
8309
7963
|
return "fileName: string expected";
|
|
8310
|
-
if (message.deprecatedParsedColumns != null && message.hasOwnProperty("deprecatedParsedColumns")) {
|
|
8311
|
-
if (!Array.isArray(message.deprecatedParsedColumns))
|
|
8312
|
-
return "deprecatedParsedColumns: array expected";
|
|
8313
|
-
for (let i = 0; i < message.deprecatedParsedColumns.length; ++i)
|
|
8314
|
-
if (!$util.isString(message.deprecatedParsedColumns[i]))
|
|
8315
|
-
return "deprecatedParsedColumns: string[] expected";
|
|
8316
|
-
}
|
|
8317
|
-
if (message.deprecatedValidationErrors != null && message.hasOwnProperty("deprecatedValidationErrors")) {
|
|
8318
|
-
if (!Array.isArray(message.deprecatedValidationErrors))
|
|
8319
|
-
return "deprecatedValidationErrors: array expected";
|
|
8320
|
-
for (let i = 0; i < message.deprecatedValidationErrors.length; ++i) {
|
|
8321
|
-
let error = $root.dataform.ValidationError.verify(message.deprecatedValidationErrors[i]);
|
|
8322
|
-
if (error)
|
|
8323
|
-
return "deprecatedValidationErrors." + error;
|
|
8324
|
-
}
|
|
8325
|
-
}
|
|
8326
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
8327
|
-
if (!$util.isString(message.name))
|
|
8328
|
-
return "name: string expected";
|
|
8329
|
-
if (message.dependencies != null && message.hasOwnProperty("dependencies")) {
|
|
8330
|
-
if (!Array.isArray(message.dependencies))
|
|
8331
|
-
return "dependencies: array expected";
|
|
8332
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
8333
|
-
if (!$util.isString(message.dependencies[i]))
|
|
8334
|
-
return "dependencies: string[] expected";
|
|
8335
|
-
}
|
|
8336
7964
|
return null;
|
|
8337
7965
|
};
|
|
8338
7966
|
|
|
@@ -8468,32 +8096,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8468
8096
|
}
|
|
8469
8097
|
if (object.fileName != null)
|
|
8470
8098
|
message.fileName = String(object.fileName);
|
|
8471
|
-
if (object.deprecatedParsedColumns) {
|
|
8472
|
-
if (!Array.isArray(object.deprecatedParsedColumns))
|
|
8473
|
-
throw TypeError(".dataform.Table.deprecatedParsedColumns: array expected");
|
|
8474
|
-
message.deprecatedParsedColumns = [];
|
|
8475
|
-
for (let i = 0; i < object.deprecatedParsedColumns.length; ++i)
|
|
8476
|
-
message.deprecatedParsedColumns[i] = String(object.deprecatedParsedColumns[i]);
|
|
8477
|
-
}
|
|
8478
|
-
if (object.deprecatedValidationErrors) {
|
|
8479
|
-
if (!Array.isArray(object.deprecatedValidationErrors))
|
|
8480
|
-
throw TypeError(".dataform.Table.deprecatedValidationErrors: array expected");
|
|
8481
|
-
message.deprecatedValidationErrors = [];
|
|
8482
|
-
for (let i = 0; i < object.deprecatedValidationErrors.length; ++i) {
|
|
8483
|
-
if (typeof object.deprecatedValidationErrors[i] !== "object")
|
|
8484
|
-
throw TypeError(".dataform.Table.deprecatedValidationErrors: object expected");
|
|
8485
|
-
message.deprecatedValidationErrors[i] = $root.dataform.ValidationError.fromObject(object.deprecatedValidationErrors[i]);
|
|
8486
|
-
}
|
|
8487
|
-
}
|
|
8488
|
-
if (object.name != null)
|
|
8489
|
-
message.name = String(object.name);
|
|
8490
|
-
if (object.dependencies) {
|
|
8491
|
-
if (!Array.isArray(object.dependencies))
|
|
8492
|
-
throw TypeError(".dataform.Table.dependencies: array expected");
|
|
8493
|
-
message.dependencies = [];
|
|
8494
|
-
for (let i = 0; i < object.dependencies.length; ++i)
|
|
8495
|
-
message.dependencies[i] = String(object.dependencies[i]);
|
|
8496
|
-
}
|
|
8497
8099
|
return message;
|
|
8498
8100
|
};
|
|
8499
8101
|
|
|
@@ -8511,9 +8113,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8511
8113
|
options = {};
|
|
8512
8114
|
let object = {};
|
|
8513
8115
|
if (options.arrays || options.defaults) {
|
|
8514
|
-
object.dependencies = [];
|
|
8515
|
-
object.deprecatedValidationErrors = [];
|
|
8516
|
-
object.deprecatedParsedColumns = [];
|
|
8517
8116
|
object.preOps = [];
|
|
8518
8117
|
object.postOps = [];
|
|
8519
8118
|
object.tags = [];
|
|
@@ -8523,7 +8122,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8523
8122
|
object.uniqueKey = [];
|
|
8524
8123
|
}
|
|
8525
8124
|
if (options.defaults) {
|
|
8526
|
-
object.name = "";
|
|
8527
8125
|
object.type = "";
|
|
8528
8126
|
object.target = null;
|
|
8529
8127
|
object.query = "";
|
|
@@ -8541,13 +8139,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8541
8139
|
object.snowflake = null;
|
|
8542
8140
|
object.presto = null;
|
|
8543
8141
|
}
|
|
8544
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
8545
|
-
object.name = message.name;
|
|
8546
|
-
if (message.dependencies && message.dependencies.length) {
|
|
8547
|
-
object.dependencies = [];
|
|
8548
|
-
for (let j = 0; j < message.dependencies.length; ++j)
|
|
8549
|
-
object.dependencies[j] = message.dependencies[j];
|
|
8550
|
-
}
|
|
8551
8142
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
8552
8143
|
object.type = message.type;
|
|
8553
8144
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
@@ -8556,20 +8147,10 @@ const dataform = $root.dataform = (() => {
|
|
|
8556
8147
|
object.query = message.query;
|
|
8557
8148
|
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
8558
8149
|
object.disabled = message.disabled;
|
|
8559
|
-
if (message.deprecatedValidationErrors && message.deprecatedValidationErrors.length) {
|
|
8560
|
-
object.deprecatedValidationErrors = [];
|
|
8561
|
-
for (let j = 0; j < message.deprecatedValidationErrors.length; ++j)
|
|
8562
|
-
object.deprecatedValidationErrors[j] = $root.dataform.ValidationError.toObject(message.deprecatedValidationErrors[j], options);
|
|
8563
|
-
}
|
|
8564
8150
|
if (message.where != null && message.hasOwnProperty("where"))
|
|
8565
8151
|
object.where = message.where;
|
|
8566
8152
|
if (message["protected"] != null && message.hasOwnProperty("protected"))
|
|
8567
8153
|
object["protected"] = message["protected"];
|
|
8568
|
-
if (message.deprecatedParsedColumns && message.deprecatedParsedColumns.length) {
|
|
8569
|
-
object.deprecatedParsedColumns = [];
|
|
8570
|
-
for (let j = 0; j < message.deprecatedParsedColumns.length; ++j)
|
|
8571
|
-
object.deprecatedParsedColumns[j] = message.deprecatedParsedColumns[j];
|
|
8572
|
-
}
|
|
8573
8154
|
if (message.preOps && message.preOps.length) {
|
|
8574
8155
|
object.preOps = [];
|
|
8575
8156
|
for (let j = 0; j < message.preOps.length; ++j)
|
|
@@ -8658,8 +8239,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8658
8239
|
* @property {Array.<string>|null} [tags] Operation tags
|
|
8659
8240
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] Operation actionDescriptor
|
|
8660
8241
|
* @property {string|null} [fileName] Operation fileName
|
|
8661
|
-
* @property {string|null} [name] Operation name
|
|
8662
|
-
* @property {Array.<string>|null} [dependencies] Operation dependencies
|
|
8663
8242
|
*/
|
|
8664
8243
|
|
|
8665
8244
|
/**
|
|
@@ -8674,7 +8253,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8674
8253
|
this.dependencyTargets = [];
|
|
8675
8254
|
this.queries = [];
|
|
8676
8255
|
this.tags = [];
|
|
8677
|
-
this.dependencies = [];
|
|
8678
8256
|
if (properties)
|
|
8679
8257
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8680
8258
|
if (properties[keys[i]] != null)
|
|
@@ -8761,22 +8339,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8761
8339
|
*/
|
|
8762
8340
|
Operation.prototype.fileName = "";
|
|
8763
8341
|
|
|
8764
|
-
/**
|
|
8765
|
-
* Operation name.
|
|
8766
|
-
* @member {string} name
|
|
8767
|
-
* @memberof dataform.Operation
|
|
8768
|
-
* @instance
|
|
8769
|
-
*/
|
|
8770
|
-
Operation.prototype.name = "";
|
|
8771
|
-
|
|
8772
|
-
/**
|
|
8773
|
-
* Operation dependencies.
|
|
8774
|
-
* @member {Array.<string>} dependencies
|
|
8775
|
-
* @memberof dataform.Operation
|
|
8776
|
-
* @instance
|
|
8777
|
-
*/
|
|
8778
|
-
Operation.prototype.dependencies = $util.emptyArray;
|
|
8779
|
-
|
|
8780
8342
|
/**
|
|
8781
8343
|
* Creates a new Operation instance using the specified properties.
|
|
8782
8344
|
* @function create
|
|
@@ -8801,11 +8363,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8801
8363
|
Operation.encode = function encode(message, writer) {
|
|
8802
8364
|
if (!writer)
|
|
8803
8365
|
writer = $Writer.create();
|
|
8804
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
8805
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
8806
|
-
if (message.dependencies != null && message.dependencies.length)
|
|
8807
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
8808
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.dependencies[i]);
|
|
8809
8366
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
8810
8367
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
8811
8368
|
if (message.queries != null && message.queries.length)
|
|
@@ -8899,14 +8456,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8899
8456
|
case 7:
|
|
8900
8457
|
message.fileName = reader.string();
|
|
8901
8458
|
break;
|
|
8902
|
-
case 1:
|
|
8903
|
-
message.name = reader.string();
|
|
8904
|
-
break;
|
|
8905
|
-
case 2:
|
|
8906
|
-
if (!(message.dependencies && message.dependencies.length))
|
|
8907
|
-
message.dependencies = [];
|
|
8908
|
-
message.dependencies.push(reader.string());
|
|
8909
|
-
break;
|
|
8910
8459
|
default:
|
|
8911
8460
|
reader.skipType(tag & 7);
|
|
8912
8461
|
break;
|
|
@@ -8998,16 +8547,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8998
8547
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
8999
8548
|
if (!$util.isString(message.fileName))
|
|
9000
8549
|
return "fileName: string expected";
|
|
9001
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9002
|
-
if (!$util.isString(message.name))
|
|
9003
|
-
return "name: string expected";
|
|
9004
|
-
if (message.dependencies != null && message.hasOwnProperty("dependencies")) {
|
|
9005
|
-
if (!Array.isArray(message.dependencies))
|
|
9006
|
-
return "dependencies: array expected";
|
|
9007
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
9008
|
-
if (!$util.isString(message.dependencies[i]))
|
|
9009
|
-
return "dependencies: string[] expected";
|
|
9010
|
-
}
|
|
9011
8550
|
return null;
|
|
9012
8551
|
};
|
|
9013
8552
|
|
|
@@ -9082,15 +8621,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9082
8621
|
}
|
|
9083
8622
|
if (object.fileName != null)
|
|
9084
8623
|
message.fileName = String(object.fileName);
|
|
9085
|
-
if (object.name != null)
|
|
9086
|
-
message.name = String(object.name);
|
|
9087
|
-
if (object.dependencies) {
|
|
9088
|
-
if (!Array.isArray(object.dependencies))
|
|
9089
|
-
throw TypeError(".dataform.Operation.dependencies: array expected");
|
|
9090
|
-
message.dependencies = [];
|
|
9091
|
-
for (let i = 0; i < object.dependencies.length; ++i)
|
|
9092
|
-
message.dependencies[i] = String(object.dependencies[i]);
|
|
9093
|
-
}
|
|
9094
8624
|
return message;
|
|
9095
8625
|
};
|
|
9096
8626
|
|
|
@@ -9108,13 +8638,11 @@ const dataform = $root.dataform = (() => {
|
|
|
9108
8638
|
options = {};
|
|
9109
8639
|
let object = {};
|
|
9110
8640
|
if (options.arrays || options.defaults) {
|
|
9111
|
-
object.dependencies = [];
|
|
9112
8641
|
object.queries = [];
|
|
9113
8642
|
object.tags = [];
|
|
9114
8643
|
object.dependencyTargets = [];
|
|
9115
8644
|
}
|
|
9116
8645
|
if (options.defaults) {
|
|
9117
|
-
object.name = "";
|
|
9118
8646
|
object.target = null;
|
|
9119
8647
|
object.fileName = "";
|
|
9120
8648
|
object.hasOutput = false;
|
|
@@ -9123,13 +8651,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9123
8651
|
object.canonicalTarget = null;
|
|
9124
8652
|
object.disabled = false;
|
|
9125
8653
|
}
|
|
9126
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9127
|
-
object.name = message.name;
|
|
9128
|
-
if (message.dependencies && message.dependencies.length) {
|
|
9129
|
-
object.dependencies = [];
|
|
9130
|
-
for (let j = 0; j < message.dependencies.length; ++j)
|
|
9131
|
-
object.dependencies[j] = message.dependencies[j];
|
|
9132
|
-
}
|
|
9133
8654
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
9134
8655
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
9135
8656
|
if (message.queries && message.queries.length) {
|
|
@@ -9192,8 +8713,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9192
8713
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] Assertion actionDescriptor
|
|
9193
8714
|
* @property {dataform.ITarget|null} [parentAction] Assertion parentAction
|
|
9194
8715
|
* @property {string|null} [fileName] Assertion fileName
|
|
9195
|
-
* @property {string|null} [name] Assertion name
|
|
9196
|
-
* @property {Array.<string>|null} [dependencies] Assertion dependencies
|
|
9197
8716
|
*/
|
|
9198
8717
|
|
|
9199
8718
|
/**
|
|
@@ -9207,7 +8726,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9207
8726
|
function Assertion(properties) {
|
|
9208
8727
|
this.dependencyTargets = [];
|
|
9209
8728
|
this.tags = [];
|
|
9210
|
-
this.dependencies = [];
|
|
9211
8729
|
if (properties)
|
|
9212
8730
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9213
8731
|
if (properties[keys[i]] != null)
|
|
@@ -9294,22 +8812,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9294
8812
|
*/
|
|
9295
8813
|
Assertion.prototype.fileName = "";
|
|
9296
8814
|
|
|
9297
|
-
/**
|
|
9298
|
-
* Assertion name.
|
|
9299
|
-
* @member {string} name
|
|
9300
|
-
* @memberof dataform.Assertion
|
|
9301
|
-
* @instance
|
|
9302
|
-
*/
|
|
9303
|
-
Assertion.prototype.name = "";
|
|
9304
|
-
|
|
9305
|
-
/**
|
|
9306
|
-
* Assertion dependencies.
|
|
9307
|
-
* @member {Array.<string>} dependencies
|
|
9308
|
-
* @memberof dataform.Assertion
|
|
9309
|
-
* @instance
|
|
9310
|
-
*/
|
|
9311
|
-
Assertion.prototype.dependencies = $util.emptyArray;
|
|
9312
|
-
|
|
9313
8815
|
/**
|
|
9314
8816
|
* Creates a new Assertion instance using the specified properties.
|
|
9315
8817
|
* @function create
|
|
@@ -9334,11 +8836,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9334
8836
|
Assertion.encode = function encode(message, writer) {
|
|
9335
8837
|
if (!writer)
|
|
9336
8838
|
writer = $Writer.create();
|
|
9337
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9338
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
9339
|
-
if (message.dependencies != null && message.dependencies.length)
|
|
9340
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
9341
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.dependencies[i]);
|
|
9342
8839
|
if (message.query != null && message.hasOwnProperty("query"))
|
|
9343
8840
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.query);
|
|
9344
8841
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
@@ -9429,14 +8926,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9429
8926
|
case 7:
|
|
9430
8927
|
message.fileName = reader.string();
|
|
9431
8928
|
break;
|
|
9432
|
-
case 1:
|
|
9433
|
-
message.name = reader.string();
|
|
9434
|
-
break;
|
|
9435
|
-
case 2:
|
|
9436
|
-
if (!(message.dependencies && message.dependencies.length))
|
|
9437
|
-
message.dependencies = [];
|
|
9438
|
-
message.dependencies.push(reader.string());
|
|
9439
|
-
break;
|
|
9440
8929
|
default:
|
|
9441
8930
|
reader.skipType(tag & 7);
|
|
9442
8931
|
break;
|
|
@@ -9526,16 +9015,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9526
9015
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
9527
9016
|
if (!$util.isString(message.fileName))
|
|
9528
9017
|
return "fileName: string expected";
|
|
9529
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9530
|
-
if (!$util.isString(message.name))
|
|
9531
|
-
return "name: string expected";
|
|
9532
|
-
if (message.dependencies != null && message.hasOwnProperty("dependencies")) {
|
|
9533
|
-
if (!Array.isArray(message.dependencies))
|
|
9534
|
-
return "dependencies: array expected";
|
|
9535
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
9536
|
-
if (!$util.isString(message.dependencies[i]))
|
|
9537
|
-
return "dependencies: string[] expected";
|
|
9538
|
-
}
|
|
9539
9018
|
return null;
|
|
9540
9019
|
};
|
|
9541
9020
|
|
|
@@ -9608,15 +9087,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9608
9087
|
}
|
|
9609
9088
|
if (object.fileName != null)
|
|
9610
9089
|
message.fileName = String(object.fileName);
|
|
9611
|
-
if (object.name != null)
|
|
9612
|
-
message.name = String(object.name);
|
|
9613
|
-
if (object.dependencies) {
|
|
9614
|
-
if (!Array.isArray(object.dependencies))
|
|
9615
|
-
throw TypeError(".dataform.Assertion.dependencies: array expected");
|
|
9616
|
-
message.dependencies = [];
|
|
9617
|
-
for (let i = 0; i < object.dependencies.length; ++i)
|
|
9618
|
-
message.dependencies[i] = String(object.dependencies[i]);
|
|
9619
|
-
}
|
|
9620
9090
|
return message;
|
|
9621
9091
|
};
|
|
9622
9092
|
|
|
@@ -9634,12 +9104,10 @@ const dataform = $root.dataform = (() => {
|
|
|
9634
9104
|
options = {};
|
|
9635
9105
|
let object = {};
|
|
9636
9106
|
if (options.arrays || options.defaults) {
|
|
9637
|
-
object.dependencies = [];
|
|
9638
9107
|
object.tags = [];
|
|
9639
9108
|
object.dependencyTargets = [];
|
|
9640
9109
|
}
|
|
9641
9110
|
if (options.defaults) {
|
|
9642
|
-
object.name = "";
|
|
9643
9111
|
object.query = "";
|
|
9644
9112
|
object.fileName = "";
|
|
9645
9113
|
object.target = null;
|
|
@@ -9649,13 +9117,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9649
9117
|
object.disabled = false;
|
|
9650
9118
|
object.parentAction = null;
|
|
9651
9119
|
}
|
|
9652
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9653
|
-
object.name = message.name;
|
|
9654
|
-
if (message.dependencies && message.dependencies.length) {
|
|
9655
|
-
object.dependencies = [];
|
|
9656
|
-
for (let j = 0; j < message.dependencies.length; ++j)
|
|
9657
|
-
object.dependencies[j] = message.dependencies[j];
|
|
9658
|
-
}
|
|
9659
9120
|
if (message.query != null && message.hasOwnProperty("query"))
|
|
9660
9121
|
object.query = message.query;
|
|
9661
9122
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
@@ -9721,7 +9182,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9721
9182
|
* Properties of a Declaration.
|
|
9722
9183
|
* @memberof dataform
|
|
9723
9184
|
* @interface IDeclaration
|
|
9724
|
-
* @property {string|null} [name] Declaration name
|
|
9725
9185
|
* @property {dataform.ITarget|null} [target] Declaration target
|
|
9726
9186
|
* @property {dataform.ITarget|null} [canonicalTarget] Declaration canonicalTarget
|
|
9727
9187
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] Declaration actionDescriptor
|
|
@@ -9743,14 +9203,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9743
9203
|
this[keys[i]] = properties[keys[i]];
|
|
9744
9204
|
}
|
|
9745
9205
|
|
|
9746
|
-
/**
|
|
9747
|
-
* Declaration name.
|
|
9748
|
-
* @member {string} name
|
|
9749
|
-
* @memberof dataform.Declaration
|
|
9750
|
-
* @instance
|
|
9751
|
-
*/
|
|
9752
|
-
Declaration.prototype.name = "";
|
|
9753
|
-
|
|
9754
9206
|
/**
|
|
9755
9207
|
* Declaration target.
|
|
9756
9208
|
* @member {dataform.ITarget|null|undefined} target
|
|
@@ -9807,8 +9259,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9807
9259
|
Declaration.encode = function encode(message, writer) {
|
|
9808
9260
|
if (!writer)
|
|
9809
9261
|
writer = $Writer.create();
|
|
9810
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9811
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
9812
9262
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
9813
9263
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
9814
9264
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
@@ -9851,9 +9301,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9851
9301
|
while (reader.pos < end) {
|
|
9852
9302
|
let tag = reader.uint32();
|
|
9853
9303
|
switch (tag >>> 3) {
|
|
9854
|
-
case 1:
|
|
9855
|
-
message.name = reader.string();
|
|
9856
|
-
break;
|
|
9857
9304
|
case 2:
|
|
9858
9305
|
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
9859
9306
|
break;
|
|
@@ -9901,9 +9348,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9901
9348
|
Declaration.verify = function verify(message) {
|
|
9902
9349
|
if (typeof message !== "object" || message === null)
|
|
9903
9350
|
return "object expected";
|
|
9904
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9905
|
-
if (!$util.isString(message.name))
|
|
9906
|
-
return "name: string expected";
|
|
9907
9351
|
if (message.target != null && message.hasOwnProperty("target")) {
|
|
9908
9352
|
let error = $root.dataform.Target.verify(message.target);
|
|
9909
9353
|
if (error)
|
|
@@ -9937,8 +9381,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9937
9381
|
if (object instanceof $root.dataform.Declaration)
|
|
9938
9382
|
return object;
|
|
9939
9383
|
let message = new $root.dataform.Declaration();
|
|
9940
|
-
if (object.name != null)
|
|
9941
|
-
message.name = String(object.name);
|
|
9942
9384
|
if (object.target != null) {
|
|
9943
9385
|
if (typeof object.target !== "object")
|
|
9944
9386
|
throw TypeError(".dataform.Declaration.target: object expected");
|
|
@@ -9973,14 +9415,11 @@ const dataform = $root.dataform = (() => {
|
|
|
9973
9415
|
options = {};
|
|
9974
9416
|
let object = {};
|
|
9975
9417
|
if (options.defaults) {
|
|
9976
|
-
object.name = "";
|
|
9977
9418
|
object.target = null;
|
|
9978
9419
|
object.actionDescriptor = null;
|
|
9979
9420
|
object.fileName = "";
|
|
9980
9421
|
object.canonicalTarget = null;
|
|
9981
9422
|
}
|
|
9982
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9983
|
-
object.name = message.name;
|
|
9984
9423
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
9985
9424
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
9986
9425
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
@@ -10978,13 +10417,11 @@ const dataform = $root.dataform = (() => {
|
|
|
10978
10417
|
* Properties of an ExecutionAction.
|
|
10979
10418
|
* @memberof dataform
|
|
10980
10419
|
* @interface IExecutionAction
|
|
10981
|
-
* @property {string|null} [name] ExecutionAction name
|
|
10982
10420
|
* @property {dataform.ITarget|null} [target] ExecutionAction target
|
|
10983
10421
|
* @property {string|null} [fileName] ExecutionAction fileName
|
|
10984
10422
|
* @property {string|null} [type] ExecutionAction type
|
|
10985
10423
|
* @property {string|null} [tableType] ExecutionAction tableType
|
|
10986
|
-
* @property {Array.<
|
|
10987
|
-
* @property {Array.<dataform.ITarget>|null} [transitiveInputs] ExecutionAction transitiveInputs
|
|
10424
|
+
* @property {Array.<dataform.ITarget>|null} [dependencyTargets] ExecutionAction dependencyTargets
|
|
10988
10425
|
* @property {dataform.ActionHermeticity|null} [hermeticity] ExecutionAction hermeticity
|
|
10989
10426
|
* @property {Array.<dataform.IExecutionTask>|null} [tasks] ExecutionAction tasks
|
|
10990
10427
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] ExecutionAction actionDescriptor
|
|
@@ -10999,8 +10436,7 @@ const dataform = $root.dataform = (() => {
|
|
|
10999
10436
|
* @param {dataform.IExecutionAction=} [properties] Properties to set
|
|
11000
10437
|
*/
|
|
11001
10438
|
function ExecutionAction(properties) {
|
|
11002
|
-
this.
|
|
11003
|
-
this.transitiveInputs = [];
|
|
10439
|
+
this.dependencyTargets = [];
|
|
11004
10440
|
this.tasks = [];
|
|
11005
10441
|
if (properties)
|
|
11006
10442
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -11008,14 +10444,6 @@ const dataform = $root.dataform = (() => {
|
|
|
11008
10444
|
this[keys[i]] = properties[keys[i]];
|
|
11009
10445
|
}
|
|
11010
10446
|
|
|
11011
|
-
/**
|
|
11012
|
-
* ExecutionAction name.
|
|
11013
|
-
* @member {string} name
|
|
11014
|
-
* @memberof dataform.ExecutionAction
|
|
11015
|
-
* @instance
|
|
11016
|
-
*/
|
|
11017
|
-
ExecutionAction.prototype.name = "";
|
|
11018
|
-
|
|
11019
10447
|
/**
|
|
11020
10448
|
* ExecutionAction target.
|
|
11021
10449
|
* @member {dataform.ITarget|null|undefined} target
|
|
@@ -11049,20 +10477,12 @@ const dataform = $root.dataform = (() => {
|
|
|
11049
10477
|
ExecutionAction.prototype.tableType = "";
|
|
11050
10478
|
|
|
11051
10479
|
/**
|
|
11052
|
-
* ExecutionAction
|
|
11053
|
-
* @member {Array.<
|
|
11054
|
-
* @memberof dataform.ExecutionAction
|
|
11055
|
-
* @instance
|
|
11056
|
-
*/
|
|
11057
|
-
ExecutionAction.prototype.dependencies = $util.emptyArray;
|
|
11058
|
-
|
|
11059
|
-
/**
|
|
11060
|
-
* ExecutionAction transitiveInputs.
|
|
11061
|
-
* @member {Array.<dataform.ITarget>} transitiveInputs
|
|
10480
|
+
* ExecutionAction dependencyTargets.
|
|
10481
|
+
* @member {Array.<dataform.ITarget>} dependencyTargets
|
|
11062
10482
|
* @memberof dataform.ExecutionAction
|
|
11063
10483
|
* @instance
|
|
11064
10484
|
*/
|
|
11065
|
-
ExecutionAction.prototype.
|
|
10485
|
+
ExecutionAction.prototype.dependencyTargets = $util.emptyArray;
|
|
11066
10486
|
|
|
11067
10487
|
/**
|
|
11068
10488
|
* ExecutionAction hermeticity.
|
|
@@ -11112,29 +10532,24 @@ const dataform = $root.dataform = (() => {
|
|
|
11112
10532
|
ExecutionAction.encode = function encode(message, writer) {
|
|
11113
10533
|
if (!writer)
|
|
11114
10534
|
writer = $Writer.create();
|
|
11115
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
11116
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
11117
10535
|
if (message.tasks != null && message.tasks.length)
|
|
11118
10536
|
for (let i = 0; i < message.tasks.length; ++i)
|
|
11119
10537
|
$root.dataform.ExecutionTask.encode(message.tasks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
11120
|
-
if (message.dependencies != null && message.dependencies.length)
|
|
11121
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
11122
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependencies[i]);
|
|
11123
10538
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
11124
10539
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
|
|
11125
10540
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
11126
10541
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
11127
10542
|
if (message.tableType != null && message.hasOwnProperty("tableType"))
|
|
11128
10543
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.tableType);
|
|
11129
|
-
if (message.transitiveInputs != null && message.transitiveInputs.length)
|
|
11130
|
-
for (let i = 0; i < message.transitiveInputs.length; ++i)
|
|
11131
|
-
$root.dataform.Target.encode(message.transitiveInputs[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
11132
10544
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
11133
10545
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.fileName);
|
|
11134
10546
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
11135
10547
|
$root.dataform.ActionDescriptor.encode(message.actionDescriptor, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
11136
10548
|
if (message.hermeticity != null && message.hasOwnProperty("hermeticity"))
|
|
11137
10549
|
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.hermeticity);
|
|
10550
|
+
if (message.dependencyTargets != null && message.dependencyTargets.length)
|
|
10551
|
+
for (let i = 0; i < message.dependencyTargets.length; ++i)
|
|
10552
|
+
$root.dataform.Target.encode(message.dependencyTargets[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
11138
10553
|
return writer;
|
|
11139
10554
|
};
|
|
11140
10555
|
|
|
@@ -11169,9 +10584,6 @@ const dataform = $root.dataform = (() => {
|
|
|
11169
10584
|
while (reader.pos < end) {
|
|
11170
10585
|
let tag = reader.uint32();
|
|
11171
10586
|
switch (tag >>> 3) {
|
|
11172
|
-
case 1:
|
|
11173
|
-
message.name = reader.string();
|
|
11174
|
-
break;
|
|
11175
10587
|
case 5:
|
|
11176
10588
|
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
11177
10589
|
break;
|
|
@@ -11184,15 +10596,10 @@ const dataform = $root.dataform = (() => {
|
|
|
11184
10596
|
case 6:
|
|
11185
10597
|
message.tableType = reader.string();
|
|
11186
10598
|
break;
|
|
11187
|
-
case
|
|
11188
|
-
if (!(message.
|
|
11189
|
-
message.
|
|
11190
|
-
message.
|
|
11191
|
-
break;
|
|
11192
|
-
case 7:
|
|
11193
|
-
if (!(message.transitiveInputs && message.transitiveInputs.length))
|
|
11194
|
-
message.transitiveInputs = [];
|
|
11195
|
-
message.transitiveInputs.push($root.dataform.Target.decode(reader, reader.uint32()));
|
|
10599
|
+
case 11:
|
|
10600
|
+
if (!(message.dependencyTargets && message.dependencyTargets.length))
|
|
10601
|
+
message.dependencyTargets = [];
|
|
10602
|
+
message.dependencyTargets.push($root.dataform.Target.decode(reader, reader.uint32()));
|
|
11196
10603
|
break;
|
|
11197
10604
|
case 10:
|
|
11198
10605
|
message.hermeticity = reader.int32();
|
|
@@ -11240,9 +10647,6 @@ const dataform = $root.dataform = (() => {
|
|
|
11240
10647
|
ExecutionAction.verify = function verify(message) {
|
|
11241
10648
|
if (typeof message !== "object" || message === null)
|
|
11242
10649
|
return "object expected";
|
|
11243
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
11244
|
-
if (!$util.isString(message.name))
|
|
11245
|
-
return "name: string expected";
|
|
11246
10650
|
if (message.target != null && message.hasOwnProperty("target")) {
|
|
11247
10651
|
let error = $root.dataform.Target.verify(message.target);
|
|
11248
10652
|
if (error)
|
|
@@ -11257,20 +10661,13 @@ const dataform = $root.dataform = (() => {
|
|
|
11257
10661
|
if (message.tableType != null && message.hasOwnProperty("tableType"))
|
|
11258
10662
|
if (!$util.isString(message.tableType))
|
|
11259
10663
|
return "tableType: string expected";
|
|
11260
|
-
if (message.
|
|
11261
|
-
if (!Array.isArray(message.
|
|
11262
|
-
return "
|
|
11263
|
-
for (let i = 0; i < message.
|
|
11264
|
-
|
|
11265
|
-
return "dependencies: string[] expected";
|
|
11266
|
-
}
|
|
11267
|
-
if (message.transitiveInputs != null && message.hasOwnProperty("transitiveInputs")) {
|
|
11268
|
-
if (!Array.isArray(message.transitiveInputs))
|
|
11269
|
-
return "transitiveInputs: array expected";
|
|
11270
|
-
for (let i = 0; i < message.transitiveInputs.length; ++i) {
|
|
11271
|
-
let error = $root.dataform.Target.verify(message.transitiveInputs[i]);
|
|
10664
|
+
if (message.dependencyTargets != null && message.hasOwnProperty("dependencyTargets")) {
|
|
10665
|
+
if (!Array.isArray(message.dependencyTargets))
|
|
10666
|
+
return "dependencyTargets: array expected";
|
|
10667
|
+
for (let i = 0; i < message.dependencyTargets.length; ++i) {
|
|
10668
|
+
let error = $root.dataform.Target.verify(message.dependencyTargets[i]);
|
|
11272
10669
|
if (error)
|
|
11273
|
-
return "
|
|
10670
|
+
return "dependencyTargets." + error;
|
|
11274
10671
|
}
|
|
11275
10672
|
}
|
|
11276
10673
|
if (message.hermeticity != null && message.hasOwnProperty("hermeticity"))
|
|
@@ -11311,8 +10708,6 @@ const dataform = $root.dataform = (() => {
|
|
|
11311
10708
|
if (object instanceof $root.dataform.ExecutionAction)
|
|
11312
10709
|
return object;
|
|
11313
10710
|
let message = new $root.dataform.ExecutionAction();
|
|
11314
|
-
if (object.name != null)
|
|
11315
|
-
message.name = String(object.name);
|
|
11316
10711
|
if (object.target != null) {
|
|
11317
10712
|
if (typeof object.target !== "object")
|
|
11318
10713
|
throw TypeError(".dataform.ExecutionAction.target: object expected");
|
|
@@ -11324,21 +10719,14 @@ const dataform = $root.dataform = (() => {
|
|
|
11324
10719
|
message.type = String(object.type);
|
|
11325
10720
|
if (object.tableType != null)
|
|
11326
10721
|
message.tableType = String(object.tableType);
|
|
11327
|
-
if (object.
|
|
11328
|
-
if (!Array.isArray(object.
|
|
11329
|
-
throw TypeError(".dataform.ExecutionAction.
|
|
11330
|
-
message.
|
|
11331
|
-
for (let i = 0; i < object.
|
|
11332
|
-
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
if (!Array.isArray(object.transitiveInputs))
|
|
11336
|
-
throw TypeError(".dataform.ExecutionAction.transitiveInputs: array expected");
|
|
11337
|
-
message.transitiveInputs = [];
|
|
11338
|
-
for (let i = 0; i < object.transitiveInputs.length; ++i) {
|
|
11339
|
-
if (typeof object.transitiveInputs[i] !== "object")
|
|
11340
|
-
throw TypeError(".dataform.ExecutionAction.transitiveInputs: object expected");
|
|
11341
|
-
message.transitiveInputs[i] = $root.dataform.Target.fromObject(object.transitiveInputs[i]);
|
|
10722
|
+
if (object.dependencyTargets) {
|
|
10723
|
+
if (!Array.isArray(object.dependencyTargets))
|
|
10724
|
+
throw TypeError(".dataform.ExecutionAction.dependencyTargets: array expected");
|
|
10725
|
+
message.dependencyTargets = [];
|
|
10726
|
+
for (let i = 0; i < object.dependencyTargets.length; ++i) {
|
|
10727
|
+
if (typeof object.dependencyTargets[i] !== "object")
|
|
10728
|
+
throw TypeError(".dataform.ExecutionAction.dependencyTargets: object expected");
|
|
10729
|
+
message.dependencyTargets[i] = $root.dataform.Target.fromObject(object.dependencyTargets[i]);
|
|
11342
10730
|
}
|
|
11343
10731
|
}
|
|
11344
10732
|
switch (object.hermeticity) {
|
|
@@ -11388,11 +10776,9 @@ const dataform = $root.dataform = (() => {
|
|
|
11388
10776
|
let object = {};
|
|
11389
10777
|
if (options.arrays || options.defaults) {
|
|
11390
10778
|
object.tasks = [];
|
|
11391
|
-
object.
|
|
11392
|
-
object.transitiveInputs = [];
|
|
10779
|
+
object.dependencyTargets = [];
|
|
11393
10780
|
}
|
|
11394
10781
|
if (options.defaults) {
|
|
11395
|
-
object.name = "";
|
|
11396
10782
|
object.type = "";
|
|
11397
10783
|
object.target = null;
|
|
11398
10784
|
object.tableType = "";
|
|
@@ -11400,35 +10786,28 @@ const dataform = $root.dataform = (() => {
|
|
|
11400
10786
|
object.actionDescriptor = null;
|
|
11401
10787
|
object.hermeticity = options.enums === String ? "UNKNOWN" : 0;
|
|
11402
10788
|
}
|
|
11403
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
11404
|
-
object.name = message.name;
|
|
11405
10789
|
if (message.tasks && message.tasks.length) {
|
|
11406
10790
|
object.tasks = [];
|
|
11407
10791
|
for (let j = 0; j < message.tasks.length; ++j)
|
|
11408
10792
|
object.tasks[j] = $root.dataform.ExecutionTask.toObject(message.tasks[j], options);
|
|
11409
10793
|
}
|
|
11410
|
-
if (message.dependencies && message.dependencies.length) {
|
|
11411
|
-
object.dependencies = [];
|
|
11412
|
-
for (let j = 0; j < message.dependencies.length; ++j)
|
|
11413
|
-
object.dependencies[j] = message.dependencies[j];
|
|
11414
|
-
}
|
|
11415
10794
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
11416
10795
|
object.type = message.type;
|
|
11417
10796
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
11418
10797
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
11419
10798
|
if (message.tableType != null && message.hasOwnProperty("tableType"))
|
|
11420
10799
|
object.tableType = message.tableType;
|
|
11421
|
-
if (message.transitiveInputs && message.transitiveInputs.length) {
|
|
11422
|
-
object.transitiveInputs = [];
|
|
11423
|
-
for (let j = 0; j < message.transitiveInputs.length; ++j)
|
|
11424
|
-
object.transitiveInputs[j] = $root.dataform.Target.toObject(message.transitiveInputs[j], options);
|
|
11425
|
-
}
|
|
11426
10800
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
11427
10801
|
object.fileName = message.fileName;
|
|
11428
10802
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
11429
10803
|
object.actionDescriptor = $root.dataform.ActionDescriptor.toObject(message.actionDescriptor, options);
|
|
11430
10804
|
if (message.hermeticity != null && message.hasOwnProperty("hermeticity"))
|
|
11431
10805
|
object.hermeticity = options.enums === String ? $root.dataform.ActionHermeticity[message.hermeticity] : message.hermeticity;
|
|
10806
|
+
if (message.dependencyTargets && message.dependencyTargets.length) {
|
|
10807
|
+
object.dependencyTargets = [];
|
|
10808
|
+
for (let j = 0; j < message.dependencyTargets.length; ++j)
|
|
10809
|
+
object.dependencyTargets[j] = $root.dataform.Target.toObject(message.dependencyTargets[j], options);
|
|
10810
|
+
}
|
|
11432
10811
|
return object;
|
|
11433
10812
|
};
|
|
11434
10813
|
|
|
@@ -12547,13 +11926,10 @@ const dataform = $root.dataform = (() => {
|
|
|
12547
11926
|
* Properties of an ActionResult.
|
|
12548
11927
|
* @memberof dataform
|
|
12549
11928
|
* @interface IActionResult
|
|
12550
|
-
* @property {string|null} [name] ActionResult name
|
|
12551
11929
|
* @property {dataform.ITarget|null} [target] ActionResult target
|
|
12552
|
-
* @property {Array.<dataform.ActionResult.IInput>|null} [inputs] ActionResult inputs
|
|
12553
11930
|
* @property {dataform.ActionResult.ExecutionStatus|null} [status] ActionResult status
|
|
12554
11931
|
* @property {Array.<dataform.ITaskResult>|null} [tasks] ActionResult tasks
|
|
12555
11932
|
* @property {dataform.ITiming|null} [timing] ActionResult timing
|
|
12556
|
-
* @property {Long|null} [postExecutionTimestampMillis] ActionResult postExecutionTimestampMillis
|
|
12557
11933
|
*/
|
|
12558
11934
|
|
|
12559
11935
|
/**
|
|
@@ -12565,7 +11941,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12565
11941
|
* @param {dataform.IActionResult=} [properties] Properties to set
|
|
12566
11942
|
*/
|
|
12567
11943
|
function ActionResult(properties) {
|
|
12568
|
-
this.inputs = [];
|
|
12569
11944
|
this.tasks = [];
|
|
12570
11945
|
if (properties)
|
|
12571
11946
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -12573,14 +11948,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12573
11948
|
this[keys[i]] = properties[keys[i]];
|
|
12574
11949
|
}
|
|
12575
11950
|
|
|
12576
|
-
/**
|
|
12577
|
-
* ActionResult name.
|
|
12578
|
-
* @member {string} name
|
|
12579
|
-
* @memberof dataform.ActionResult
|
|
12580
|
-
* @instance
|
|
12581
|
-
*/
|
|
12582
|
-
ActionResult.prototype.name = "";
|
|
12583
|
-
|
|
12584
11951
|
/**
|
|
12585
11952
|
* ActionResult target.
|
|
12586
11953
|
* @member {dataform.ITarget|null|undefined} target
|
|
@@ -12589,14 +11956,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12589
11956
|
*/
|
|
12590
11957
|
ActionResult.prototype.target = null;
|
|
12591
11958
|
|
|
12592
|
-
/**
|
|
12593
|
-
* ActionResult inputs.
|
|
12594
|
-
* @member {Array.<dataform.ActionResult.IInput>} inputs
|
|
12595
|
-
* @memberof dataform.ActionResult
|
|
12596
|
-
* @instance
|
|
12597
|
-
*/
|
|
12598
|
-
ActionResult.prototype.inputs = $util.emptyArray;
|
|
12599
|
-
|
|
12600
11959
|
/**
|
|
12601
11960
|
* ActionResult status.
|
|
12602
11961
|
* @member {dataform.ActionResult.ExecutionStatus} status
|
|
@@ -12621,14 +11980,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12621
11980
|
*/
|
|
12622
11981
|
ActionResult.prototype.timing = null;
|
|
12623
11982
|
|
|
12624
|
-
/**
|
|
12625
|
-
* ActionResult postExecutionTimestampMillis.
|
|
12626
|
-
* @member {Long} postExecutionTimestampMillis
|
|
12627
|
-
* @memberof dataform.ActionResult
|
|
12628
|
-
* @instance
|
|
12629
|
-
*/
|
|
12630
|
-
ActionResult.prototype.postExecutionTimestampMillis = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
12631
|
-
|
|
12632
11983
|
/**
|
|
12633
11984
|
* Creates a new ActionResult instance using the specified properties.
|
|
12634
11985
|
* @function create
|
|
@@ -12653,8 +12004,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12653
12004
|
ActionResult.encode = function encode(message, writer) {
|
|
12654
12005
|
if (!writer)
|
|
12655
12006
|
writer = $Writer.create();
|
|
12656
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
12657
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
12658
12007
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
12659
12008
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status);
|
|
12660
12009
|
if (message.tasks != null && message.tasks.length)
|
|
@@ -12664,11 +12013,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12664
12013
|
$root.dataform.Timing.encode(message.timing, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
12665
12014
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
12666
12015
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
12667
|
-
if (message.inputs != null && message.inputs.length)
|
|
12668
|
-
for (let i = 0; i < message.inputs.length; ++i)
|
|
12669
|
-
$root.dataform.ActionResult.Input.encode(message.inputs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
12670
|
-
if (message.postExecutionTimestampMillis != null && message.hasOwnProperty("postExecutionTimestampMillis"))
|
|
12671
|
-
writer.uint32(/* id 7, wireType 0 =*/56).int64(message.postExecutionTimestampMillis);
|
|
12672
12016
|
return writer;
|
|
12673
12017
|
};
|
|
12674
12018
|
|
|
@@ -12703,17 +12047,9 @@ const dataform = $root.dataform = (() => {
|
|
|
12703
12047
|
while (reader.pos < end) {
|
|
12704
12048
|
let tag = reader.uint32();
|
|
12705
12049
|
switch (tag >>> 3) {
|
|
12706
|
-
case 1:
|
|
12707
|
-
message.name = reader.string();
|
|
12708
|
-
break;
|
|
12709
12050
|
case 5:
|
|
12710
12051
|
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
12711
12052
|
break;
|
|
12712
|
-
case 6:
|
|
12713
|
-
if (!(message.inputs && message.inputs.length))
|
|
12714
|
-
message.inputs = [];
|
|
12715
|
-
message.inputs.push($root.dataform.ActionResult.Input.decode(reader, reader.uint32()));
|
|
12716
|
-
break;
|
|
12717
12053
|
case 2:
|
|
12718
12054
|
message.status = reader.int32();
|
|
12719
12055
|
break;
|
|
@@ -12725,9 +12061,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12725
12061
|
case 4:
|
|
12726
12062
|
message.timing = $root.dataform.Timing.decode(reader, reader.uint32());
|
|
12727
12063
|
break;
|
|
12728
|
-
case 7:
|
|
12729
|
-
message.postExecutionTimestampMillis = reader.int64();
|
|
12730
|
-
break;
|
|
12731
12064
|
default:
|
|
12732
12065
|
reader.skipType(tag & 7);
|
|
12733
12066
|
break;
|
|
@@ -12763,23 +12096,11 @@ const dataform = $root.dataform = (() => {
|
|
|
12763
12096
|
ActionResult.verify = function verify(message) {
|
|
12764
12097
|
if (typeof message !== "object" || message === null)
|
|
12765
12098
|
return "object expected";
|
|
12766
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
12767
|
-
if (!$util.isString(message.name))
|
|
12768
|
-
return "name: string expected";
|
|
12769
12099
|
if (message.target != null && message.hasOwnProperty("target")) {
|
|
12770
12100
|
let error = $root.dataform.Target.verify(message.target);
|
|
12771
12101
|
if (error)
|
|
12772
12102
|
return "target." + error;
|
|
12773
12103
|
}
|
|
12774
|
-
if (message.inputs != null && message.hasOwnProperty("inputs")) {
|
|
12775
|
-
if (!Array.isArray(message.inputs))
|
|
12776
|
-
return "inputs: array expected";
|
|
12777
|
-
for (let i = 0; i < message.inputs.length; ++i) {
|
|
12778
|
-
let error = $root.dataform.ActionResult.Input.verify(message.inputs[i]);
|
|
12779
|
-
if (error)
|
|
12780
|
-
return "inputs." + error;
|
|
12781
|
-
}
|
|
12782
|
-
}
|
|
12783
12104
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
12784
12105
|
switch (message.status) {
|
|
12785
12106
|
default:
|
|
@@ -12791,7 +12112,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12791
12112
|
case 4:
|
|
12792
12113
|
case 5:
|
|
12793
12114
|
case 6:
|
|
12794
|
-
case 7:
|
|
12795
12115
|
break;
|
|
12796
12116
|
}
|
|
12797
12117
|
if (message.tasks != null && message.hasOwnProperty("tasks")) {
|
|
@@ -12808,9 +12128,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12808
12128
|
if (error)
|
|
12809
12129
|
return "timing." + error;
|
|
12810
12130
|
}
|
|
12811
|
-
if (message.postExecutionTimestampMillis != null && message.hasOwnProperty("postExecutionTimestampMillis"))
|
|
12812
|
-
if (!$util.isInteger(message.postExecutionTimestampMillis) && !(message.postExecutionTimestampMillis && $util.isInteger(message.postExecutionTimestampMillis.low) && $util.isInteger(message.postExecutionTimestampMillis.high)))
|
|
12813
|
-
return "postExecutionTimestampMillis: integer|Long expected";
|
|
12814
12131
|
return null;
|
|
12815
12132
|
};
|
|
12816
12133
|
|
|
@@ -12826,23 +12143,11 @@ const dataform = $root.dataform = (() => {
|
|
|
12826
12143
|
if (object instanceof $root.dataform.ActionResult)
|
|
12827
12144
|
return object;
|
|
12828
12145
|
let message = new $root.dataform.ActionResult();
|
|
12829
|
-
if (object.name != null)
|
|
12830
|
-
message.name = String(object.name);
|
|
12831
12146
|
if (object.target != null) {
|
|
12832
12147
|
if (typeof object.target !== "object")
|
|
12833
12148
|
throw TypeError(".dataform.ActionResult.target: object expected");
|
|
12834
12149
|
message.target = $root.dataform.Target.fromObject(object.target);
|
|
12835
12150
|
}
|
|
12836
|
-
if (object.inputs) {
|
|
12837
|
-
if (!Array.isArray(object.inputs))
|
|
12838
|
-
throw TypeError(".dataform.ActionResult.inputs: array expected");
|
|
12839
|
-
message.inputs = [];
|
|
12840
|
-
for (let i = 0; i < object.inputs.length; ++i) {
|
|
12841
|
-
if (typeof object.inputs[i] !== "object")
|
|
12842
|
-
throw TypeError(".dataform.ActionResult.inputs: object expected");
|
|
12843
|
-
message.inputs[i] = $root.dataform.ActionResult.Input.fromObject(object.inputs[i]);
|
|
12844
|
-
}
|
|
12845
|
-
}
|
|
12846
12151
|
switch (object.status) {
|
|
12847
12152
|
case "UNKNOWN":
|
|
12848
12153
|
case 0:
|
|
@@ -12872,10 +12177,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12872
12177
|
case 6:
|
|
12873
12178
|
message.status = 6;
|
|
12874
12179
|
break;
|
|
12875
|
-
case "CACHE_SKIPPED":
|
|
12876
|
-
case 7:
|
|
12877
|
-
message.status = 7;
|
|
12878
|
-
break;
|
|
12879
12180
|
}
|
|
12880
12181
|
if (object.tasks) {
|
|
12881
12182
|
if (!Array.isArray(object.tasks))
|
|
@@ -12892,15 +12193,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12892
12193
|
throw TypeError(".dataform.ActionResult.timing: object expected");
|
|
12893
12194
|
message.timing = $root.dataform.Timing.fromObject(object.timing);
|
|
12894
12195
|
}
|
|
12895
|
-
if (object.postExecutionTimestampMillis != null)
|
|
12896
|
-
if ($util.Long)
|
|
12897
|
-
(message.postExecutionTimestampMillis = $util.Long.fromValue(object.postExecutionTimestampMillis)).unsigned = false;
|
|
12898
|
-
else if (typeof object.postExecutionTimestampMillis === "string")
|
|
12899
|
-
message.postExecutionTimestampMillis = parseInt(object.postExecutionTimestampMillis, 10);
|
|
12900
|
-
else if (typeof object.postExecutionTimestampMillis === "number")
|
|
12901
|
-
message.postExecutionTimestampMillis = object.postExecutionTimestampMillis;
|
|
12902
|
-
else if (typeof object.postExecutionTimestampMillis === "object")
|
|
12903
|
-
message.postExecutionTimestampMillis = new $util.LongBits(object.postExecutionTimestampMillis.low >>> 0, object.postExecutionTimestampMillis.high >>> 0).toNumber();
|
|
12904
12196
|
return message;
|
|
12905
12197
|
};
|
|
12906
12198
|
|
|
@@ -12917,23 +12209,13 @@ const dataform = $root.dataform = (() => {
|
|
|
12917
12209
|
if (!options)
|
|
12918
12210
|
options = {};
|
|
12919
12211
|
let object = {};
|
|
12920
|
-
if (options.arrays || options.defaults)
|
|
12212
|
+
if (options.arrays || options.defaults)
|
|
12921
12213
|
object.tasks = [];
|
|
12922
|
-
object.inputs = [];
|
|
12923
|
-
}
|
|
12924
12214
|
if (options.defaults) {
|
|
12925
|
-
object.name = "";
|
|
12926
12215
|
object.status = options.enums === String ? "UNKNOWN" : 0;
|
|
12927
12216
|
object.timing = null;
|
|
12928
12217
|
object.target = null;
|
|
12929
|
-
if ($util.Long) {
|
|
12930
|
-
let long = new $util.Long(0, 0, false);
|
|
12931
|
-
object.postExecutionTimestampMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12932
|
-
} else
|
|
12933
|
-
object.postExecutionTimestampMillis = options.longs === String ? "0" : 0;
|
|
12934
12218
|
}
|
|
12935
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
12936
|
-
object.name = message.name;
|
|
12937
12219
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
12938
12220
|
object.status = options.enums === String ? $root.dataform.ActionResult.ExecutionStatus[message.status] : message.status;
|
|
12939
12221
|
if (message.tasks && message.tasks.length) {
|
|
@@ -12945,16 +12227,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12945
12227
|
object.timing = $root.dataform.Timing.toObject(message.timing, options);
|
|
12946
12228
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
12947
12229
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
12948
|
-
if (message.inputs && message.inputs.length) {
|
|
12949
|
-
object.inputs = [];
|
|
12950
|
-
for (let j = 0; j < message.inputs.length; ++j)
|
|
12951
|
-
object.inputs[j] = $root.dataform.ActionResult.Input.toObject(message.inputs[j], options);
|
|
12952
|
-
}
|
|
12953
|
-
if (message.postExecutionTimestampMillis != null && message.hasOwnProperty("postExecutionTimestampMillis"))
|
|
12954
|
-
if (typeof message.postExecutionTimestampMillis === "number")
|
|
12955
|
-
object.postExecutionTimestampMillis = options.longs === String ? String(message.postExecutionTimestampMillis) : message.postExecutionTimestampMillis;
|
|
12956
|
-
else
|
|
12957
|
-
object.postExecutionTimestampMillis = options.longs === String ? $util.Long.prototype.toString.call(message.postExecutionTimestampMillis) : options.longs === Number ? new $util.LongBits(message.postExecutionTimestampMillis.low >>> 0, message.postExecutionTimestampMillis.high >>> 0).toNumber() : message.postExecutionTimestampMillis;
|
|
12958
12230
|
return object;
|
|
12959
12231
|
};
|
|
12960
12232
|
|
|
@@ -12969,427 +12241,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12969
12241
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12970
12242
|
};
|
|
12971
12243
|
|
|
12972
|
-
ActionResult.Input = (function() {
|
|
12973
|
-
|
|
12974
|
-
/**
|
|
12975
|
-
* Properties of an Input.
|
|
12976
|
-
* @memberof dataform.ActionResult
|
|
12977
|
-
* @interface IInput
|
|
12978
|
-
* @property {dataform.ITarget|null} [target] Input target
|
|
12979
|
-
* @property {dataform.ActionResult.Input.IMetadata|null} [metadata] Input metadata
|
|
12980
|
-
*/
|
|
12981
|
-
|
|
12982
|
-
/**
|
|
12983
|
-
* Constructs a new Input.
|
|
12984
|
-
* @memberof dataform.ActionResult
|
|
12985
|
-
* @classdesc Represents an Input.
|
|
12986
|
-
* @implements IInput
|
|
12987
|
-
* @constructor
|
|
12988
|
-
* @param {dataform.ActionResult.IInput=} [properties] Properties to set
|
|
12989
|
-
*/
|
|
12990
|
-
function Input(properties) {
|
|
12991
|
-
if (properties)
|
|
12992
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12993
|
-
if (properties[keys[i]] != null)
|
|
12994
|
-
this[keys[i]] = properties[keys[i]];
|
|
12995
|
-
}
|
|
12996
|
-
|
|
12997
|
-
/**
|
|
12998
|
-
* Input target.
|
|
12999
|
-
* @member {dataform.ITarget|null|undefined} target
|
|
13000
|
-
* @memberof dataform.ActionResult.Input
|
|
13001
|
-
* @instance
|
|
13002
|
-
*/
|
|
13003
|
-
Input.prototype.target = null;
|
|
13004
|
-
|
|
13005
|
-
/**
|
|
13006
|
-
* Input metadata.
|
|
13007
|
-
* @member {dataform.ActionResult.Input.IMetadata|null|undefined} metadata
|
|
13008
|
-
* @memberof dataform.ActionResult.Input
|
|
13009
|
-
* @instance
|
|
13010
|
-
*/
|
|
13011
|
-
Input.prototype.metadata = null;
|
|
13012
|
-
|
|
13013
|
-
/**
|
|
13014
|
-
* Creates a new Input instance using the specified properties.
|
|
13015
|
-
* @function create
|
|
13016
|
-
* @memberof dataform.ActionResult.Input
|
|
13017
|
-
* @static
|
|
13018
|
-
* @param {dataform.ActionResult.IInput=} [properties] Properties to set
|
|
13019
|
-
* @returns {dataform.ActionResult.Input} Input instance
|
|
13020
|
-
*/
|
|
13021
|
-
Input.create = function create(properties) {
|
|
13022
|
-
return new Input(properties);
|
|
13023
|
-
};
|
|
13024
|
-
|
|
13025
|
-
/**
|
|
13026
|
-
* Encodes the specified Input message. Does not implicitly {@link dataform.ActionResult.Input.verify|verify} messages.
|
|
13027
|
-
* @function encode
|
|
13028
|
-
* @memberof dataform.ActionResult.Input
|
|
13029
|
-
* @static
|
|
13030
|
-
* @param {dataform.ActionResult.IInput} message Input message or plain object to encode
|
|
13031
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13032
|
-
* @returns {$protobuf.Writer} Writer
|
|
13033
|
-
*/
|
|
13034
|
-
Input.encode = function encode(message, writer) {
|
|
13035
|
-
if (!writer)
|
|
13036
|
-
writer = $Writer.create();
|
|
13037
|
-
if (message.target != null && message.hasOwnProperty("target"))
|
|
13038
|
-
$root.dataform.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
13039
|
-
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
13040
|
-
$root.dataform.ActionResult.Input.Metadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
13041
|
-
return writer;
|
|
13042
|
-
};
|
|
13043
|
-
|
|
13044
|
-
/**
|
|
13045
|
-
* Encodes the specified Input message, length delimited. Does not implicitly {@link dataform.ActionResult.Input.verify|verify} messages.
|
|
13046
|
-
* @function encodeDelimited
|
|
13047
|
-
* @memberof dataform.ActionResult.Input
|
|
13048
|
-
* @static
|
|
13049
|
-
* @param {dataform.ActionResult.IInput} message Input message or plain object to encode
|
|
13050
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13051
|
-
* @returns {$protobuf.Writer} Writer
|
|
13052
|
-
*/
|
|
13053
|
-
Input.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13054
|
-
return this.encode(message, writer).ldelim();
|
|
13055
|
-
};
|
|
13056
|
-
|
|
13057
|
-
/**
|
|
13058
|
-
* Decodes an Input message from the specified reader or buffer.
|
|
13059
|
-
* @function decode
|
|
13060
|
-
* @memberof dataform.ActionResult.Input
|
|
13061
|
-
* @static
|
|
13062
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13063
|
-
* @param {number} [length] Message length if known beforehand
|
|
13064
|
-
* @returns {dataform.ActionResult.Input} Input
|
|
13065
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13066
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13067
|
-
*/
|
|
13068
|
-
Input.decode = function decode(reader, length) {
|
|
13069
|
-
if (!(reader instanceof $Reader))
|
|
13070
|
-
reader = $Reader.create(reader);
|
|
13071
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.ActionResult.Input();
|
|
13072
|
-
while (reader.pos < end) {
|
|
13073
|
-
let tag = reader.uint32();
|
|
13074
|
-
switch (tag >>> 3) {
|
|
13075
|
-
case 1:
|
|
13076
|
-
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
13077
|
-
break;
|
|
13078
|
-
case 2:
|
|
13079
|
-
message.metadata = $root.dataform.ActionResult.Input.Metadata.decode(reader, reader.uint32());
|
|
13080
|
-
break;
|
|
13081
|
-
default:
|
|
13082
|
-
reader.skipType(tag & 7);
|
|
13083
|
-
break;
|
|
13084
|
-
}
|
|
13085
|
-
}
|
|
13086
|
-
return message;
|
|
13087
|
-
};
|
|
13088
|
-
|
|
13089
|
-
/**
|
|
13090
|
-
* Decodes an Input message from the specified reader or buffer, length delimited.
|
|
13091
|
-
* @function decodeDelimited
|
|
13092
|
-
* @memberof dataform.ActionResult.Input
|
|
13093
|
-
* @static
|
|
13094
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13095
|
-
* @returns {dataform.ActionResult.Input} Input
|
|
13096
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13097
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13098
|
-
*/
|
|
13099
|
-
Input.decodeDelimited = function decodeDelimited(reader) {
|
|
13100
|
-
if (!(reader instanceof $Reader))
|
|
13101
|
-
reader = new $Reader(reader);
|
|
13102
|
-
return this.decode(reader, reader.uint32());
|
|
13103
|
-
};
|
|
13104
|
-
|
|
13105
|
-
/**
|
|
13106
|
-
* Verifies an Input message.
|
|
13107
|
-
* @function verify
|
|
13108
|
-
* @memberof dataform.ActionResult.Input
|
|
13109
|
-
* @static
|
|
13110
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
13111
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13112
|
-
*/
|
|
13113
|
-
Input.verify = function verify(message) {
|
|
13114
|
-
if (typeof message !== "object" || message === null)
|
|
13115
|
-
return "object expected";
|
|
13116
|
-
if (message.target != null && message.hasOwnProperty("target")) {
|
|
13117
|
-
let error = $root.dataform.Target.verify(message.target);
|
|
13118
|
-
if (error)
|
|
13119
|
-
return "target." + error;
|
|
13120
|
-
}
|
|
13121
|
-
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
13122
|
-
let error = $root.dataform.ActionResult.Input.Metadata.verify(message.metadata);
|
|
13123
|
-
if (error)
|
|
13124
|
-
return "metadata." + error;
|
|
13125
|
-
}
|
|
13126
|
-
return null;
|
|
13127
|
-
};
|
|
13128
|
-
|
|
13129
|
-
/**
|
|
13130
|
-
* Creates an Input message from a plain object. Also converts values to their respective internal types.
|
|
13131
|
-
* @function fromObject
|
|
13132
|
-
* @memberof dataform.ActionResult.Input
|
|
13133
|
-
* @static
|
|
13134
|
-
* @param {Object.<string,*>} object Plain object
|
|
13135
|
-
* @returns {dataform.ActionResult.Input} Input
|
|
13136
|
-
*/
|
|
13137
|
-
Input.fromObject = function fromObject(object) {
|
|
13138
|
-
if (object instanceof $root.dataform.ActionResult.Input)
|
|
13139
|
-
return object;
|
|
13140
|
-
let message = new $root.dataform.ActionResult.Input();
|
|
13141
|
-
if (object.target != null) {
|
|
13142
|
-
if (typeof object.target !== "object")
|
|
13143
|
-
throw TypeError(".dataform.ActionResult.Input.target: object expected");
|
|
13144
|
-
message.target = $root.dataform.Target.fromObject(object.target);
|
|
13145
|
-
}
|
|
13146
|
-
if (object.metadata != null) {
|
|
13147
|
-
if (typeof object.metadata !== "object")
|
|
13148
|
-
throw TypeError(".dataform.ActionResult.Input.metadata: object expected");
|
|
13149
|
-
message.metadata = $root.dataform.ActionResult.Input.Metadata.fromObject(object.metadata);
|
|
13150
|
-
}
|
|
13151
|
-
return message;
|
|
13152
|
-
};
|
|
13153
|
-
|
|
13154
|
-
/**
|
|
13155
|
-
* Creates a plain object from an Input message. Also converts values to other types if specified.
|
|
13156
|
-
* @function toObject
|
|
13157
|
-
* @memberof dataform.ActionResult.Input
|
|
13158
|
-
* @static
|
|
13159
|
-
* @param {dataform.ActionResult.Input} message Input
|
|
13160
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13161
|
-
* @returns {Object.<string,*>} Plain object
|
|
13162
|
-
*/
|
|
13163
|
-
Input.toObject = function toObject(message, options) {
|
|
13164
|
-
if (!options)
|
|
13165
|
-
options = {};
|
|
13166
|
-
let object = {};
|
|
13167
|
-
if (options.defaults) {
|
|
13168
|
-
object.target = null;
|
|
13169
|
-
object.metadata = null;
|
|
13170
|
-
}
|
|
13171
|
-
if (message.target != null && message.hasOwnProperty("target"))
|
|
13172
|
-
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
13173
|
-
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
13174
|
-
object.metadata = $root.dataform.ActionResult.Input.Metadata.toObject(message.metadata, options);
|
|
13175
|
-
return object;
|
|
13176
|
-
};
|
|
13177
|
-
|
|
13178
|
-
/**
|
|
13179
|
-
* Converts this Input to JSON.
|
|
13180
|
-
* @function toJSON
|
|
13181
|
-
* @memberof dataform.ActionResult.Input
|
|
13182
|
-
* @instance
|
|
13183
|
-
* @returns {Object.<string,*>} JSON object
|
|
13184
|
-
*/
|
|
13185
|
-
Input.prototype.toJSON = function toJSON() {
|
|
13186
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13187
|
-
};
|
|
13188
|
-
|
|
13189
|
-
Input.Metadata = (function() {
|
|
13190
|
-
|
|
13191
|
-
/**
|
|
13192
|
-
* Properties of a Metadata.
|
|
13193
|
-
* @memberof dataform.ActionResult.Input
|
|
13194
|
-
* @interface IMetadata
|
|
13195
|
-
* @property {Long|null} [lastModifiedTimestampMillis] Metadata lastModifiedTimestampMillis
|
|
13196
|
-
*/
|
|
13197
|
-
|
|
13198
|
-
/**
|
|
13199
|
-
* Constructs a new Metadata.
|
|
13200
|
-
* @memberof dataform.ActionResult.Input
|
|
13201
|
-
* @classdesc Represents a Metadata.
|
|
13202
|
-
* @implements IMetadata
|
|
13203
|
-
* @constructor
|
|
13204
|
-
* @param {dataform.ActionResult.Input.IMetadata=} [properties] Properties to set
|
|
13205
|
-
*/
|
|
13206
|
-
function Metadata(properties) {
|
|
13207
|
-
if (properties)
|
|
13208
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13209
|
-
if (properties[keys[i]] != null)
|
|
13210
|
-
this[keys[i]] = properties[keys[i]];
|
|
13211
|
-
}
|
|
13212
|
-
|
|
13213
|
-
/**
|
|
13214
|
-
* Metadata lastModifiedTimestampMillis.
|
|
13215
|
-
* @member {Long} lastModifiedTimestampMillis
|
|
13216
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13217
|
-
* @instance
|
|
13218
|
-
*/
|
|
13219
|
-
Metadata.prototype.lastModifiedTimestampMillis = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
13220
|
-
|
|
13221
|
-
/**
|
|
13222
|
-
* Creates a new Metadata instance using the specified properties.
|
|
13223
|
-
* @function create
|
|
13224
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13225
|
-
* @static
|
|
13226
|
-
* @param {dataform.ActionResult.Input.IMetadata=} [properties] Properties to set
|
|
13227
|
-
* @returns {dataform.ActionResult.Input.Metadata} Metadata instance
|
|
13228
|
-
*/
|
|
13229
|
-
Metadata.create = function create(properties) {
|
|
13230
|
-
return new Metadata(properties);
|
|
13231
|
-
};
|
|
13232
|
-
|
|
13233
|
-
/**
|
|
13234
|
-
* Encodes the specified Metadata message. Does not implicitly {@link dataform.ActionResult.Input.Metadata.verify|verify} messages.
|
|
13235
|
-
* @function encode
|
|
13236
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13237
|
-
* @static
|
|
13238
|
-
* @param {dataform.ActionResult.Input.IMetadata} message Metadata message or plain object to encode
|
|
13239
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13240
|
-
* @returns {$protobuf.Writer} Writer
|
|
13241
|
-
*/
|
|
13242
|
-
Metadata.encode = function encode(message, writer) {
|
|
13243
|
-
if (!writer)
|
|
13244
|
-
writer = $Writer.create();
|
|
13245
|
-
if (message.lastModifiedTimestampMillis != null && message.hasOwnProperty("lastModifiedTimestampMillis"))
|
|
13246
|
-
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.lastModifiedTimestampMillis);
|
|
13247
|
-
return writer;
|
|
13248
|
-
};
|
|
13249
|
-
|
|
13250
|
-
/**
|
|
13251
|
-
* Encodes the specified Metadata message, length delimited. Does not implicitly {@link dataform.ActionResult.Input.Metadata.verify|verify} messages.
|
|
13252
|
-
* @function encodeDelimited
|
|
13253
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13254
|
-
* @static
|
|
13255
|
-
* @param {dataform.ActionResult.Input.IMetadata} message Metadata message or plain object to encode
|
|
13256
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13257
|
-
* @returns {$protobuf.Writer} Writer
|
|
13258
|
-
*/
|
|
13259
|
-
Metadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13260
|
-
return this.encode(message, writer).ldelim();
|
|
13261
|
-
};
|
|
13262
|
-
|
|
13263
|
-
/**
|
|
13264
|
-
* Decodes a Metadata message from the specified reader or buffer.
|
|
13265
|
-
* @function decode
|
|
13266
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13267
|
-
* @static
|
|
13268
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13269
|
-
* @param {number} [length] Message length if known beforehand
|
|
13270
|
-
* @returns {dataform.ActionResult.Input.Metadata} Metadata
|
|
13271
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13272
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13273
|
-
*/
|
|
13274
|
-
Metadata.decode = function decode(reader, length) {
|
|
13275
|
-
if (!(reader instanceof $Reader))
|
|
13276
|
-
reader = $Reader.create(reader);
|
|
13277
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.ActionResult.Input.Metadata();
|
|
13278
|
-
while (reader.pos < end) {
|
|
13279
|
-
let tag = reader.uint32();
|
|
13280
|
-
switch (tag >>> 3) {
|
|
13281
|
-
case 1:
|
|
13282
|
-
message.lastModifiedTimestampMillis = reader.int64();
|
|
13283
|
-
break;
|
|
13284
|
-
default:
|
|
13285
|
-
reader.skipType(tag & 7);
|
|
13286
|
-
break;
|
|
13287
|
-
}
|
|
13288
|
-
}
|
|
13289
|
-
return message;
|
|
13290
|
-
};
|
|
13291
|
-
|
|
13292
|
-
/**
|
|
13293
|
-
* Decodes a Metadata message from the specified reader or buffer, length delimited.
|
|
13294
|
-
* @function decodeDelimited
|
|
13295
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13296
|
-
* @static
|
|
13297
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13298
|
-
* @returns {dataform.ActionResult.Input.Metadata} Metadata
|
|
13299
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13300
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13301
|
-
*/
|
|
13302
|
-
Metadata.decodeDelimited = function decodeDelimited(reader) {
|
|
13303
|
-
if (!(reader instanceof $Reader))
|
|
13304
|
-
reader = new $Reader(reader);
|
|
13305
|
-
return this.decode(reader, reader.uint32());
|
|
13306
|
-
};
|
|
13307
|
-
|
|
13308
|
-
/**
|
|
13309
|
-
* Verifies a Metadata message.
|
|
13310
|
-
* @function verify
|
|
13311
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13312
|
-
* @static
|
|
13313
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
13314
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13315
|
-
*/
|
|
13316
|
-
Metadata.verify = function verify(message) {
|
|
13317
|
-
if (typeof message !== "object" || message === null)
|
|
13318
|
-
return "object expected";
|
|
13319
|
-
if (message.lastModifiedTimestampMillis != null && message.hasOwnProperty("lastModifiedTimestampMillis"))
|
|
13320
|
-
if (!$util.isInteger(message.lastModifiedTimestampMillis) && !(message.lastModifiedTimestampMillis && $util.isInteger(message.lastModifiedTimestampMillis.low) && $util.isInteger(message.lastModifiedTimestampMillis.high)))
|
|
13321
|
-
return "lastModifiedTimestampMillis: integer|Long expected";
|
|
13322
|
-
return null;
|
|
13323
|
-
};
|
|
13324
|
-
|
|
13325
|
-
/**
|
|
13326
|
-
* Creates a Metadata message from a plain object. Also converts values to their respective internal types.
|
|
13327
|
-
* @function fromObject
|
|
13328
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13329
|
-
* @static
|
|
13330
|
-
* @param {Object.<string,*>} object Plain object
|
|
13331
|
-
* @returns {dataform.ActionResult.Input.Metadata} Metadata
|
|
13332
|
-
*/
|
|
13333
|
-
Metadata.fromObject = function fromObject(object) {
|
|
13334
|
-
if (object instanceof $root.dataform.ActionResult.Input.Metadata)
|
|
13335
|
-
return object;
|
|
13336
|
-
let message = new $root.dataform.ActionResult.Input.Metadata();
|
|
13337
|
-
if (object.lastModifiedTimestampMillis != null)
|
|
13338
|
-
if ($util.Long)
|
|
13339
|
-
(message.lastModifiedTimestampMillis = $util.Long.fromValue(object.lastModifiedTimestampMillis)).unsigned = false;
|
|
13340
|
-
else if (typeof object.lastModifiedTimestampMillis === "string")
|
|
13341
|
-
message.lastModifiedTimestampMillis = parseInt(object.lastModifiedTimestampMillis, 10);
|
|
13342
|
-
else if (typeof object.lastModifiedTimestampMillis === "number")
|
|
13343
|
-
message.lastModifiedTimestampMillis = object.lastModifiedTimestampMillis;
|
|
13344
|
-
else if (typeof object.lastModifiedTimestampMillis === "object")
|
|
13345
|
-
message.lastModifiedTimestampMillis = new $util.LongBits(object.lastModifiedTimestampMillis.low >>> 0, object.lastModifiedTimestampMillis.high >>> 0).toNumber();
|
|
13346
|
-
return message;
|
|
13347
|
-
};
|
|
13348
|
-
|
|
13349
|
-
/**
|
|
13350
|
-
* Creates a plain object from a Metadata message. Also converts values to other types if specified.
|
|
13351
|
-
* @function toObject
|
|
13352
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13353
|
-
* @static
|
|
13354
|
-
* @param {dataform.ActionResult.Input.Metadata} message Metadata
|
|
13355
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13356
|
-
* @returns {Object.<string,*>} Plain object
|
|
13357
|
-
*/
|
|
13358
|
-
Metadata.toObject = function toObject(message, options) {
|
|
13359
|
-
if (!options)
|
|
13360
|
-
options = {};
|
|
13361
|
-
let object = {};
|
|
13362
|
-
if (options.defaults)
|
|
13363
|
-
if ($util.Long) {
|
|
13364
|
-
let long = new $util.Long(0, 0, false);
|
|
13365
|
-
object.lastModifiedTimestampMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13366
|
-
} else
|
|
13367
|
-
object.lastModifiedTimestampMillis = options.longs === String ? "0" : 0;
|
|
13368
|
-
if (message.lastModifiedTimestampMillis != null && message.hasOwnProperty("lastModifiedTimestampMillis"))
|
|
13369
|
-
if (typeof message.lastModifiedTimestampMillis === "number")
|
|
13370
|
-
object.lastModifiedTimestampMillis = options.longs === String ? String(message.lastModifiedTimestampMillis) : message.lastModifiedTimestampMillis;
|
|
13371
|
-
else
|
|
13372
|
-
object.lastModifiedTimestampMillis = options.longs === String ? $util.Long.prototype.toString.call(message.lastModifiedTimestampMillis) : options.longs === Number ? new $util.LongBits(message.lastModifiedTimestampMillis.low >>> 0, message.lastModifiedTimestampMillis.high >>> 0).toNumber() : message.lastModifiedTimestampMillis;
|
|
13373
|
-
return object;
|
|
13374
|
-
};
|
|
13375
|
-
|
|
13376
|
-
/**
|
|
13377
|
-
* Converts this Metadata to JSON.
|
|
13378
|
-
* @function toJSON
|
|
13379
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13380
|
-
* @instance
|
|
13381
|
-
* @returns {Object.<string,*>} JSON object
|
|
13382
|
-
*/
|
|
13383
|
-
Metadata.prototype.toJSON = function toJSON() {
|
|
13384
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13385
|
-
};
|
|
13386
|
-
|
|
13387
|
-
return Metadata;
|
|
13388
|
-
})();
|
|
13389
|
-
|
|
13390
|
-
return Input;
|
|
13391
|
-
})();
|
|
13392
|
-
|
|
13393
12244
|
/**
|
|
13394
12245
|
* ExecutionStatus enum.
|
|
13395
12246
|
* @name dataform.ActionResult.ExecutionStatus
|
|
@@ -13401,7 +12252,6 @@ const dataform = $root.dataform = (() => {
|
|
|
13401
12252
|
* @property {number} SKIPPED=4 SKIPPED value
|
|
13402
12253
|
* @property {number} DISABLED=5 DISABLED value
|
|
13403
12254
|
* @property {number} CANCELLED=6 CANCELLED value
|
|
13404
|
-
* @property {number} CACHE_SKIPPED=7 CACHE_SKIPPED value
|
|
13405
12255
|
*/
|
|
13406
12256
|
ActionResult.ExecutionStatus = (function() {
|
|
13407
12257
|
const valuesById = {}, values = Object.create(valuesById);
|
|
@@ -13412,7 +12262,6 @@ const dataform = $root.dataform = (() => {
|
|
|
13412
12262
|
values[valuesById[4] = "SKIPPED"] = 4;
|
|
13413
12263
|
values[valuesById[5] = "DISABLED"] = 5;
|
|
13414
12264
|
values[valuesById[6] = "CANCELLED"] = 6;
|
|
13415
|
-
values[valuesById[7] = "CACHE_SKIPPED"] = 7;
|
|
13416
12265
|
return values;
|
|
13417
12266
|
})();
|
|
13418
12267
|
|
|
@@ -14450,7 +13299,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14450
13299
|
* @property {dataform.Field.Primitive|null} [primitive] Field primitive
|
|
14451
13300
|
* @property {dataform.IFields|null} [struct] Field struct
|
|
14452
13301
|
* @property {string|null} [description] Field description
|
|
14453
|
-
* @property {Array.<string>|null} [flagsDeprecated] Field flagsDeprecated
|
|
14454
13302
|
*/
|
|
14455
13303
|
|
|
14456
13304
|
/**
|
|
@@ -14463,7 +13311,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14463
13311
|
*/
|
|
14464
13312
|
function Field(properties) {
|
|
14465
13313
|
this.flags = [];
|
|
14466
|
-
this.flagsDeprecated = [];
|
|
14467
13314
|
if (properties)
|
|
14468
13315
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14469
13316
|
if (properties[keys[i]] != null)
|
|
@@ -14510,14 +13357,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14510
13357
|
*/
|
|
14511
13358
|
Field.prototype.description = "";
|
|
14512
13359
|
|
|
14513
|
-
/**
|
|
14514
|
-
* Field flagsDeprecated.
|
|
14515
|
-
* @member {Array.<string>} flagsDeprecated
|
|
14516
|
-
* @memberof dataform.Field
|
|
14517
|
-
* @instance
|
|
14518
|
-
*/
|
|
14519
|
-
Field.prototype.flagsDeprecated = $util.emptyArray;
|
|
14520
|
-
|
|
14521
13360
|
// OneOf field names bound to virtual getters and setters
|
|
14522
13361
|
let $oneOfFields;
|
|
14523
13362
|
|
|
@@ -14560,9 +13399,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14560
13399
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
14561
13400
|
if (message.struct != null && message.hasOwnProperty("struct"))
|
|
14562
13401
|
$root.dataform.Fields.encode(message.struct, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
14563
|
-
if (message.flagsDeprecated != null && message.flagsDeprecated.length)
|
|
14564
|
-
for (let i = 0; i < message.flagsDeprecated.length; ++i)
|
|
14565
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.flagsDeprecated[i]);
|
|
14566
13402
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
14567
13403
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.description);
|
|
14568
13404
|
if (message.flags != null && message.flags.length) {
|
|
@@ -14629,11 +13465,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14629
13465
|
case 5:
|
|
14630
13466
|
message.description = reader.string();
|
|
14631
13467
|
break;
|
|
14632
|
-
case 4:
|
|
14633
|
-
if (!(message.flagsDeprecated && message.flagsDeprecated.length))
|
|
14634
|
-
message.flagsDeprecated = [];
|
|
14635
|
-
message.flagsDeprecated.push(reader.string());
|
|
14636
|
-
break;
|
|
14637
13468
|
default:
|
|
14638
13469
|
reader.skipType(tag & 7);
|
|
14639
13470
|
break;
|
|
@@ -14719,13 +13550,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14719
13550
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
14720
13551
|
if (!$util.isString(message.description))
|
|
14721
13552
|
return "description: string expected";
|
|
14722
|
-
if (message.flagsDeprecated != null && message.hasOwnProperty("flagsDeprecated")) {
|
|
14723
|
-
if (!Array.isArray(message.flagsDeprecated))
|
|
14724
|
-
return "flagsDeprecated: array expected";
|
|
14725
|
-
for (let i = 0; i < message.flagsDeprecated.length; ++i)
|
|
14726
|
-
if (!$util.isString(message.flagsDeprecated[i]))
|
|
14727
|
-
return "flagsDeprecated: string[] expected";
|
|
14728
|
-
}
|
|
14729
13553
|
return null;
|
|
14730
13554
|
};
|
|
14731
13555
|
|
|
@@ -14821,13 +13645,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14821
13645
|
}
|
|
14822
13646
|
if (object.description != null)
|
|
14823
13647
|
message.description = String(object.description);
|
|
14824
|
-
if (object.flagsDeprecated) {
|
|
14825
|
-
if (!Array.isArray(object.flagsDeprecated))
|
|
14826
|
-
throw TypeError(".dataform.Field.flagsDeprecated: array expected");
|
|
14827
|
-
message.flagsDeprecated = [];
|
|
14828
|
-
for (let i = 0; i < object.flagsDeprecated.length; ++i)
|
|
14829
|
-
message.flagsDeprecated[i] = String(object.flagsDeprecated[i]);
|
|
14830
|
-
}
|
|
14831
13648
|
return message;
|
|
14832
13649
|
};
|
|
14833
13650
|
|
|
@@ -14844,10 +13661,8 @@ const dataform = $root.dataform = (() => {
|
|
|
14844
13661
|
if (!options)
|
|
14845
13662
|
options = {};
|
|
14846
13663
|
let object = {};
|
|
14847
|
-
if (options.arrays || options.defaults)
|
|
14848
|
-
object.flagsDeprecated = [];
|
|
13664
|
+
if (options.arrays || options.defaults)
|
|
14849
13665
|
object.flags = [];
|
|
14850
|
-
}
|
|
14851
13666
|
if (options.defaults) {
|
|
14852
13667
|
object.name = "";
|
|
14853
13668
|
object.description = "";
|
|
@@ -14859,11 +13674,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14859
13674
|
if (options.oneofs)
|
|
14860
13675
|
object.type = "struct";
|
|
14861
13676
|
}
|
|
14862
|
-
if (message.flagsDeprecated && message.flagsDeprecated.length) {
|
|
14863
|
-
object.flagsDeprecated = [];
|
|
14864
|
-
for (let j = 0; j < message.flagsDeprecated.length; ++j)
|
|
14865
|
-
object.flagsDeprecated[j] = message.flagsDeprecated[j];
|
|
14866
|
-
}
|
|
14867
13677
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
14868
13678
|
object.description = message.description;
|
|
14869
13679
|
if (message.flags && message.flags.length) {
|
|
@@ -15164,7 +13974,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15164
13974
|
* @property {Object.<string,string>|null} [labels] TableMetadata labels
|
|
15165
13975
|
* @property {Long|null} [lastUpdatedMillis] TableMetadata lastUpdatedMillis
|
|
15166
13976
|
* @property {dataform.TableMetadata.IBigQuery|null} [bigquery] TableMetadata bigquery
|
|
15167
|
-
* @property {string|null} [typeDeprecated] TableMetadata typeDeprecated
|
|
15168
13977
|
*/
|
|
15169
13978
|
|
|
15170
13979
|
/**
|
|
@@ -15240,14 +14049,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15240
14049
|
*/
|
|
15241
14050
|
TableMetadata.prototype.bigquery = null;
|
|
15242
14051
|
|
|
15243
|
-
/**
|
|
15244
|
-
* TableMetadata typeDeprecated.
|
|
15245
|
-
* @member {string} typeDeprecated
|
|
15246
|
-
* @memberof dataform.TableMetadata
|
|
15247
|
-
* @instance
|
|
15248
|
-
*/
|
|
15249
|
-
TableMetadata.prototype.typeDeprecated = "";
|
|
15250
|
-
|
|
15251
14052
|
/**
|
|
15252
14053
|
* Creates a new TableMetadata instance using the specified properties.
|
|
15253
14054
|
* @function create
|
|
@@ -15274,8 +14075,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15274
14075
|
writer = $Writer.create();
|
|
15275
14076
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
15276
14077
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15277
|
-
if (message.typeDeprecated != null && message.hasOwnProperty("typeDeprecated"))
|
|
15278
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.typeDeprecated);
|
|
15279
14078
|
if (message.fields != null && message.fields.length)
|
|
15280
14079
|
for (let i = 0; i < message.fields.length; ++i)
|
|
15281
14080
|
$root.dataform.Field.encode(message.fields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
@@ -15352,9 +14151,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15352
14151
|
case 8:
|
|
15353
14152
|
message.bigquery = $root.dataform.TableMetadata.BigQuery.decode(reader, reader.uint32());
|
|
15354
14153
|
break;
|
|
15355
|
-
case 2:
|
|
15356
|
-
message.typeDeprecated = reader.string();
|
|
15357
|
-
break;
|
|
15358
14154
|
default:
|
|
15359
14155
|
reader.skipType(tag & 7);
|
|
15360
14156
|
break;
|
|
@@ -15432,9 +14228,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15432
14228
|
if (error)
|
|
15433
14229
|
return "bigquery." + error;
|
|
15434
14230
|
}
|
|
15435
|
-
if (message.typeDeprecated != null && message.hasOwnProperty("typeDeprecated"))
|
|
15436
|
-
if (!$util.isString(message.typeDeprecated))
|
|
15437
|
-
return "typeDeprecated: string expected";
|
|
15438
14231
|
return null;
|
|
15439
14232
|
};
|
|
15440
14233
|
|
|
@@ -15502,8 +14295,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15502
14295
|
throw TypeError(".dataform.TableMetadata.bigquery: object expected");
|
|
15503
14296
|
message.bigquery = $root.dataform.TableMetadata.BigQuery.fromObject(object.bigquery);
|
|
15504
14297
|
}
|
|
15505
|
-
if (object.typeDeprecated != null)
|
|
15506
|
-
message.typeDeprecated = String(object.typeDeprecated);
|
|
15507
14298
|
return message;
|
|
15508
14299
|
};
|
|
15509
14300
|
|
|
@@ -15526,7 +14317,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15526
14317
|
object.labels = {};
|
|
15527
14318
|
if (options.defaults) {
|
|
15528
14319
|
object.target = null;
|
|
15529
|
-
object.typeDeprecated = "";
|
|
15530
14320
|
if ($util.Long) {
|
|
15531
14321
|
let long = new $util.Long(0, 0, false);
|
|
15532
14322
|
object.lastUpdatedMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -15538,8 +14328,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15538
14328
|
}
|
|
15539
14329
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
15540
14330
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
15541
|
-
if (message.typeDeprecated != null && message.hasOwnProperty("typeDeprecated"))
|
|
15542
|
-
object.typeDeprecated = message.typeDeprecated;
|
|
15543
14331
|
if (message.fields && message.fields.length) {
|
|
15544
14332
|
object.fields = [];
|
|
15545
14333
|
for (let j = 0; j < message.fields.length; ++j)
|
|
@@ -15782,28 +14570,24 @@ const dataform = $root.dataform = (() => {
|
|
|
15782
14570
|
return TableMetadata;
|
|
15783
14571
|
})();
|
|
15784
14572
|
|
|
15785
|
-
dataform.
|
|
14573
|
+
dataform.CoreExecutionRequest = (function() {
|
|
15786
14574
|
|
|
15787
14575
|
/**
|
|
15788
|
-
* Properties of a
|
|
14576
|
+
* Properties of a CoreExecutionRequest.
|
|
15789
14577
|
* @memberof dataform
|
|
15790
|
-
* @interface
|
|
15791
|
-
* @property {dataform.
|
|
15792
|
-
* @property {string|null} [definitionHash] PersistedTableMetadata definitionHash
|
|
15793
|
-
* @property {Long|null} [lastUpdatedMillis] PersistedTableMetadata lastUpdatedMillis
|
|
15794
|
-
* @property {Array.<dataform.PersistedTableMetadata.ITransitiveInputMetadata>|null} [transitiveInputTables] PersistedTableMetadata transitiveInputTables
|
|
14578
|
+
* @interface ICoreExecutionRequest
|
|
14579
|
+
* @property {dataform.ICompileExecutionRequest|null} [compile] CoreExecutionRequest compile
|
|
15795
14580
|
*/
|
|
15796
14581
|
|
|
15797
14582
|
/**
|
|
15798
|
-
* Constructs a new
|
|
14583
|
+
* Constructs a new CoreExecutionRequest.
|
|
15799
14584
|
* @memberof dataform
|
|
15800
|
-
* @classdesc Represents a
|
|
15801
|
-
* @implements
|
|
14585
|
+
* @classdesc Represents a CoreExecutionRequest.
|
|
14586
|
+
* @implements ICoreExecutionRequest
|
|
15802
14587
|
* @constructor
|
|
15803
|
-
* @param {dataform.
|
|
14588
|
+
* @param {dataform.ICoreExecutionRequest=} [properties] Properties to set
|
|
15804
14589
|
*/
|
|
15805
|
-
function
|
|
15806
|
-
this.transitiveInputTables = [];
|
|
14590
|
+
function CoreExecutionRequest(properties) {
|
|
15807
14591
|
if (properties)
|
|
15808
14592
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15809
14593
|
if (properties[keys[i]] != null)
|
|
@@ -15811,117 +14595,493 @@ const dataform = $root.dataform = (() => {
|
|
|
15811
14595
|
}
|
|
15812
14596
|
|
|
15813
14597
|
/**
|
|
15814
|
-
*
|
|
15815
|
-
* @member {dataform.
|
|
15816
|
-
* @memberof dataform.
|
|
14598
|
+
* CoreExecutionRequest compile.
|
|
14599
|
+
* @member {dataform.ICompileExecutionRequest|null|undefined} compile
|
|
14600
|
+
* @memberof dataform.CoreExecutionRequest
|
|
15817
14601
|
* @instance
|
|
15818
14602
|
*/
|
|
15819
|
-
|
|
14603
|
+
CoreExecutionRequest.prototype.compile = null;
|
|
15820
14604
|
|
|
15821
|
-
|
|
15822
|
-
|
|
15823
|
-
|
|
15824
|
-
|
|
14605
|
+
// OneOf field names bound to virtual getters and setters
|
|
14606
|
+
let $oneOfFields;
|
|
14607
|
+
|
|
14608
|
+
/**
|
|
14609
|
+
* CoreExecutionRequest request.
|
|
14610
|
+
* @member {"compile"|undefined} request
|
|
14611
|
+
* @memberof dataform.CoreExecutionRequest
|
|
15825
14612
|
* @instance
|
|
15826
14613
|
*/
|
|
15827
|
-
|
|
14614
|
+
Object.defineProperty(CoreExecutionRequest.prototype, "request", {
|
|
14615
|
+
get: $util.oneOfGetter($oneOfFields = ["compile"]),
|
|
14616
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14617
|
+
});
|
|
15828
14618
|
|
|
15829
14619
|
/**
|
|
15830
|
-
*
|
|
15831
|
-
* @
|
|
15832
|
-
* @memberof dataform.
|
|
14620
|
+
* Creates a new CoreExecutionRequest instance using the specified properties.
|
|
14621
|
+
* @function create
|
|
14622
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14623
|
+
* @static
|
|
14624
|
+
* @param {dataform.ICoreExecutionRequest=} [properties] Properties to set
|
|
14625
|
+
* @returns {dataform.CoreExecutionRequest} CoreExecutionRequest instance
|
|
14626
|
+
*/
|
|
14627
|
+
CoreExecutionRequest.create = function create(properties) {
|
|
14628
|
+
return new CoreExecutionRequest(properties);
|
|
14629
|
+
};
|
|
14630
|
+
|
|
14631
|
+
/**
|
|
14632
|
+
* Encodes the specified CoreExecutionRequest message. Does not implicitly {@link dataform.CoreExecutionRequest.verify|verify} messages.
|
|
14633
|
+
* @function encode
|
|
14634
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14635
|
+
* @static
|
|
14636
|
+
* @param {dataform.ICoreExecutionRequest} message CoreExecutionRequest message or plain object to encode
|
|
14637
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14638
|
+
* @returns {$protobuf.Writer} Writer
|
|
14639
|
+
*/
|
|
14640
|
+
CoreExecutionRequest.encode = function encode(message, writer) {
|
|
14641
|
+
if (!writer)
|
|
14642
|
+
writer = $Writer.create();
|
|
14643
|
+
if (message.compile != null && message.hasOwnProperty("compile"))
|
|
14644
|
+
$root.dataform.CompileExecutionRequest.encode(message.compile, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
14645
|
+
return writer;
|
|
14646
|
+
};
|
|
14647
|
+
|
|
14648
|
+
/**
|
|
14649
|
+
* Encodes the specified CoreExecutionRequest message, length delimited. Does not implicitly {@link dataform.CoreExecutionRequest.verify|verify} messages.
|
|
14650
|
+
* @function encodeDelimited
|
|
14651
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14652
|
+
* @static
|
|
14653
|
+
* @param {dataform.ICoreExecutionRequest} message CoreExecutionRequest message or plain object to encode
|
|
14654
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14655
|
+
* @returns {$protobuf.Writer} Writer
|
|
14656
|
+
*/
|
|
14657
|
+
CoreExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14658
|
+
return this.encode(message, writer).ldelim();
|
|
14659
|
+
};
|
|
14660
|
+
|
|
14661
|
+
/**
|
|
14662
|
+
* Decodes a CoreExecutionRequest message from the specified reader or buffer.
|
|
14663
|
+
* @function decode
|
|
14664
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14665
|
+
* @static
|
|
14666
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14667
|
+
* @param {number} [length] Message length if known beforehand
|
|
14668
|
+
* @returns {dataform.CoreExecutionRequest} CoreExecutionRequest
|
|
14669
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14670
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14671
|
+
*/
|
|
14672
|
+
CoreExecutionRequest.decode = function decode(reader, length) {
|
|
14673
|
+
if (!(reader instanceof $Reader))
|
|
14674
|
+
reader = $Reader.create(reader);
|
|
14675
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CoreExecutionRequest();
|
|
14676
|
+
while (reader.pos < end) {
|
|
14677
|
+
let tag = reader.uint32();
|
|
14678
|
+
switch (tag >>> 3) {
|
|
14679
|
+
case 1:
|
|
14680
|
+
message.compile = $root.dataform.CompileExecutionRequest.decode(reader, reader.uint32());
|
|
14681
|
+
break;
|
|
14682
|
+
default:
|
|
14683
|
+
reader.skipType(tag & 7);
|
|
14684
|
+
break;
|
|
14685
|
+
}
|
|
14686
|
+
}
|
|
14687
|
+
return message;
|
|
14688
|
+
};
|
|
14689
|
+
|
|
14690
|
+
/**
|
|
14691
|
+
* Decodes a CoreExecutionRequest message from the specified reader or buffer, length delimited.
|
|
14692
|
+
* @function decodeDelimited
|
|
14693
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14694
|
+
* @static
|
|
14695
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14696
|
+
* @returns {dataform.CoreExecutionRequest} CoreExecutionRequest
|
|
14697
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14698
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14699
|
+
*/
|
|
14700
|
+
CoreExecutionRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
14701
|
+
if (!(reader instanceof $Reader))
|
|
14702
|
+
reader = new $Reader(reader);
|
|
14703
|
+
return this.decode(reader, reader.uint32());
|
|
14704
|
+
};
|
|
14705
|
+
|
|
14706
|
+
/**
|
|
14707
|
+
* Verifies a CoreExecutionRequest message.
|
|
14708
|
+
* @function verify
|
|
14709
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14710
|
+
* @static
|
|
14711
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14712
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14713
|
+
*/
|
|
14714
|
+
CoreExecutionRequest.verify = function verify(message) {
|
|
14715
|
+
if (typeof message !== "object" || message === null)
|
|
14716
|
+
return "object expected";
|
|
14717
|
+
if (message.compile != null && message.hasOwnProperty("compile")) {
|
|
14718
|
+
{
|
|
14719
|
+
let error = $root.dataform.CompileExecutionRequest.verify(message.compile);
|
|
14720
|
+
if (error)
|
|
14721
|
+
return "compile." + error;
|
|
14722
|
+
}
|
|
14723
|
+
}
|
|
14724
|
+
return null;
|
|
14725
|
+
};
|
|
14726
|
+
|
|
14727
|
+
/**
|
|
14728
|
+
* Creates a CoreExecutionRequest message from a plain object. Also converts values to their respective internal types.
|
|
14729
|
+
* @function fromObject
|
|
14730
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14731
|
+
* @static
|
|
14732
|
+
* @param {Object.<string,*>} object Plain object
|
|
14733
|
+
* @returns {dataform.CoreExecutionRequest} CoreExecutionRequest
|
|
14734
|
+
*/
|
|
14735
|
+
CoreExecutionRequest.fromObject = function fromObject(object) {
|
|
14736
|
+
if (object instanceof $root.dataform.CoreExecutionRequest)
|
|
14737
|
+
return object;
|
|
14738
|
+
let message = new $root.dataform.CoreExecutionRequest();
|
|
14739
|
+
if (object.compile != null) {
|
|
14740
|
+
if (typeof object.compile !== "object")
|
|
14741
|
+
throw TypeError(".dataform.CoreExecutionRequest.compile: object expected");
|
|
14742
|
+
message.compile = $root.dataform.CompileExecutionRequest.fromObject(object.compile);
|
|
14743
|
+
}
|
|
14744
|
+
return message;
|
|
14745
|
+
};
|
|
14746
|
+
|
|
14747
|
+
/**
|
|
14748
|
+
* Creates a plain object from a CoreExecutionRequest message. Also converts values to other types if specified.
|
|
14749
|
+
* @function toObject
|
|
14750
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14751
|
+
* @static
|
|
14752
|
+
* @param {dataform.CoreExecutionRequest} message CoreExecutionRequest
|
|
14753
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14754
|
+
* @returns {Object.<string,*>} Plain object
|
|
14755
|
+
*/
|
|
14756
|
+
CoreExecutionRequest.toObject = function toObject(message, options) {
|
|
14757
|
+
if (!options)
|
|
14758
|
+
options = {};
|
|
14759
|
+
let object = {};
|
|
14760
|
+
if (message.compile != null && message.hasOwnProperty("compile")) {
|
|
14761
|
+
object.compile = $root.dataform.CompileExecutionRequest.toObject(message.compile, options);
|
|
14762
|
+
if (options.oneofs)
|
|
14763
|
+
object.request = "compile";
|
|
14764
|
+
}
|
|
14765
|
+
return object;
|
|
14766
|
+
};
|
|
14767
|
+
|
|
14768
|
+
/**
|
|
14769
|
+
* Converts this CoreExecutionRequest to JSON.
|
|
14770
|
+
* @function toJSON
|
|
14771
|
+
* @memberof dataform.CoreExecutionRequest
|
|
15833
14772
|
* @instance
|
|
14773
|
+
* @returns {Object.<string,*>} JSON object
|
|
14774
|
+
*/
|
|
14775
|
+
CoreExecutionRequest.prototype.toJSON = function toJSON() {
|
|
14776
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14777
|
+
};
|
|
14778
|
+
|
|
14779
|
+
return CoreExecutionRequest;
|
|
14780
|
+
})();
|
|
14781
|
+
|
|
14782
|
+
dataform.CoreExecutionResponse = (function() {
|
|
14783
|
+
|
|
14784
|
+
/**
|
|
14785
|
+
* Properties of a CoreExecutionResponse.
|
|
14786
|
+
* @memberof dataform
|
|
14787
|
+
* @interface ICoreExecutionResponse
|
|
14788
|
+
* @property {dataform.ICompileExecutionResponse|null} [compile] CoreExecutionResponse compile
|
|
15834
14789
|
*/
|
|
15835
|
-
PersistedTableMetadata.prototype.lastUpdatedMillis = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
15836
14790
|
|
|
15837
14791
|
/**
|
|
15838
|
-
*
|
|
15839
|
-
* @
|
|
15840
|
-
* @
|
|
14792
|
+
* Constructs a new CoreExecutionResponse.
|
|
14793
|
+
* @memberof dataform
|
|
14794
|
+
* @classdesc Represents a CoreExecutionResponse.
|
|
14795
|
+
* @implements ICoreExecutionResponse
|
|
14796
|
+
* @constructor
|
|
14797
|
+
* @param {dataform.ICoreExecutionResponse=} [properties] Properties to set
|
|
14798
|
+
*/
|
|
14799
|
+
function CoreExecutionResponse(properties) {
|
|
14800
|
+
if (properties)
|
|
14801
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14802
|
+
if (properties[keys[i]] != null)
|
|
14803
|
+
this[keys[i]] = properties[keys[i]];
|
|
14804
|
+
}
|
|
14805
|
+
|
|
14806
|
+
/**
|
|
14807
|
+
* CoreExecutionResponse compile.
|
|
14808
|
+
* @member {dataform.ICompileExecutionResponse|null|undefined} compile
|
|
14809
|
+
* @memberof dataform.CoreExecutionResponse
|
|
14810
|
+
* @instance
|
|
14811
|
+
*/
|
|
14812
|
+
CoreExecutionResponse.prototype.compile = null;
|
|
14813
|
+
|
|
14814
|
+
// OneOf field names bound to virtual getters and setters
|
|
14815
|
+
let $oneOfFields;
|
|
14816
|
+
|
|
14817
|
+
/**
|
|
14818
|
+
* CoreExecutionResponse response.
|
|
14819
|
+
* @member {"compile"|undefined} response
|
|
14820
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15841
14821
|
* @instance
|
|
15842
14822
|
*/
|
|
15843
|
-
|
|
14823
|
+
Object.defineProperty(CoreExecutionResponse.prototype, "response", {
|
|
14824
|
+
get: $util.oneOfGetter($oneOfFields = ["compile"]),
|
|
14825
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14826
|
+
});
|
|
15844
14827
|
|
|
15845
14828
|
/**
|
|
15846
|
-
* Creates a new
|
|
14829
|
+
* Creates a new CoreExecutionResponse instance using the specified properties.
|
|
15847
14830
|
* @function create
|
|
15848
|
-
* @memberof dataform.
|
|
14831
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15849
14832
|
* @static
|
|
15850
|
-
* @param {dataform.
|
|
15851
|
-
* @returns {dataform.
|
|
14833
|
+
* @param {dataform.ICoreExecutionResponse=} [properties] Properties to set
|
|
14834
|
+
* @returns {dataform.CoreExecutionResponse} CoreExecutionResponse instance
|
|
15852
14835
|
*/
|
|
15853
|
-
|
|
15854
|
-
return new
|
|
14836
|
+
CoreExecutionResponse.create = function create(properties) {
|
|
14837
|
+
return new CoreExecutionResponse(properties);
|
|
15855
14838
|
};
|
|
15856
14839
|
|
|
15857
14840
|
/**
|
|
15858
|
-
* Encodes the specified
|
|
14841
|
+
* Encodes the specified CoreExecutionResponse message. Does not implicitly {@link dataform.CoreExecutionResponse.verify|verify} messages.
|
|
15859
14842
|
* @function encode
|
|
15860
|
-
* @memberof dataform.
|
|
14843
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15861
14844
|
* @static
|
|
15862
|
-
* @param {dataform.
|
|
14845
|
+
* @param {dataform.ICoreExecutionResponse} message CoreExecutionResponse message or plain object to encode
|
|
15863
14846
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15864
14847
|
* @returns {$protobuf.Writer} Writer
|
|
15865
14848
|
*/
|
|
15866
|
-
|
|
14849
|
+
CoreExecutionResponse.encode = function encode(message, writer) {
|
|
15867
14850
|
if (!writer)
|
|
15868
14851
|
writer = $Writer.create();
|
|
15869
|
-
if (message.
|
|
15870
|
-
$root.dataform.
|
|
15871
|
-
if (message.definitionHash != null && message.hasOwnProperty("definitionHash"))
|
|
15872
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.definitionHash);
|
|
15873
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
15874
|
-
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lastUpdatedMillis);
|
|
15875
|
-
if (message.transitiveInputTables != null && message.transitiveInputTables.length)
|
|
15876
|
-
for (let i = 0; i < message.transitiveInputTables.length; ++i)
|
|
15877
|
-
$root.dataform.PersistedTableMetadata.TransitiveInputMetadata.encode(message.transitiveInputTables[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
14852
|
+
if (message.compile != null && message.hasOwnProperty("compile"))
|
|
14853
|
+
$root.dataform.CompileExecutionResponse.encode(message.compile, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15878
14854
|
return writer;
|
|
15879
14855
|
};
|
|
15880
14856
|
|
|
15881
14857
|
/**
|
|
15882
|
-
* Encodes the specified
|
|
14858
|
+
* Encodes the specified CoreExecutionResponse message, length delimited. Does not implicitly {@link dataform.CoreExecutionResponse.verify|verify} messages.
|
|
15883
14859
|
* @function encodeDelimited
|
|
15884
|
-
* @memberof dataform.
|
|
14860
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15885
14861
|
* @static
|
|
15886
|
-
* @param {dataform.
|
|
14862
|
+
* @param {dataform.ICoreExecutionResponse} message CoreExecutionResponse message or plain object to encode
|
|
15887
14863
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15888
14864
|
* @returns {$protobuf.Writer} Writer
|
|
15889
14865
|
*/
|
|
15890
|
-
|
|
14866
|
+
CoreExecutionResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15891
14867
|
return this.encode(message, writer).ldelim();
|
|
15892
14868
|
};
|
|
15893
14869
|
|
|
15894
14870
|
/**
|
|
15895
|
-
* Decodes a
|
|
14871
|
+
* Decodes a CoreExecutionResponse message from the specified reader or buffer.
|
|
15896
14872
|
* @function decode
|
|
15897
|
-
* @memberof dataform.
|
|
14873
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15898
14874
|
* @static
|
|
15899
14875
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15900
14876
|
* @param {number} [length] Message length if known beforehand
|
|
15901
|
-
* @returns {dataform.
|
|
14877
|
+
* @returns {dataform.CoreExecutionResponse} CoreExecutionResponse
|
|
15902
14878
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15903
14879
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15904
14880
|
*/
|
|
15905
|
-
|
|
14881
|
+
CoreExecutionResponse.decode = function decode(reader, length) {
|
|
15906
14882
|
if (!(reader instanceof $Reader))
|
|
15907
14883
|
reader = $Reader.create(reader);
|
|
15908
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.
|
|
14884
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CoreExecutionResponse();
|
|
15909
14885
|
while (reader.pos < end) {
|
|
15910
14886
|
let tag = reader.uint32();
|
|
15911
14887
|
switch (tag >>> 3) {
|
|
15912
14888
|
case 1:
|
|
15913
|
-
message.
|
|
14889
|
+
message.compile = $root.dataform.CompileExecutionResponse.decode(reader, reader.uint32());
|
|
15914
14890
|
break;
|
|
15915
|
-
|
|
15916
|
-
|
|
15917
|
-
break;
|
|
15918
|
-
case 3:
|
|
15919
|
-
message.lastUpdatedMillis = reader.int64();
|
|
14891
|
+
default:
|
|
14892
|
+
reader.skipType(tag & 7);
|
|
15920
14893
|
break;
|
|
15921
|
-
|
|
15922
|
-
|
|
15923
|
-
|
|
15924
|
-
|
|
14894
|
+
}
|
|
14895
|
+
}
|
|
14896
|
+
return message;
|
|
14897
|
+
};
|
|
14898
|
+
|
|
14899
|
+
/**
|
|
14900
|
+
* Decodes a CoreExecutionResponse message from the specified reader or buffer, length delimited.
|
|
14901
|
+
* @function decodeDelimited
|
|
14902
|
+
* @memberof dataform.CoreExecutionResponse
|
|
14903
|
+
* @static
|
|
14904
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14905
|
+
* @returns {dataform.CoreExecutionResponse} CoreExecutionResponse
|
|
14906
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14907
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14908
|
+
*/
|
|
14909
|
+
CoreExecutionResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
14910
|
+
if (!(reader instanceof $Reader))
|
|
14911
|
+
reader = new $Reader(reader);
|
|
14912
|
+
return this.decode(reader, reader.uint32());
|
|
14913
|
+
};
|
|
14914
|
+
|
|
14915
|
+
/**
|
|
14916
|
+
* Verifies a CoreExecutionResponse message.
|
|
14917
|
+
* @function verify
|
|
14918
|
+
* @memberof dataform.CoreExecutionResponse
|
|
14919
|
+
* @static
|
|
14920
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14921
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14922
|
+
*/
|
|
14923
|
+
CoreExecutionResponse.verify = function verify(message) {
|
|
14924
|
+
if (typeof message !== "object" || message === null)
|
|
14925
|
+
return "object expected";
|
|
14926
|
+
if (message.compile != null && message.hasOwnProperty("compile")) {
|
|
14927
|
+
{
|
|
14928
|
+
let error = $root.dataform.CompileExecutionResponse.verify(message.compile);
|
|
14929
|
+
if (error)
|
|
14930
|
+
return "compile." + error;
|
|
14931
|
+
}
|
|
14932
|
+
}
|
|
14933
|
+
return null;
|
|
14934
|
+
};
|
|
14935
|
+
|
|
14936
|
+
/**
|
|
14937
|
+
* Creates a CoreExecutionResponse message from a plain object. Also converts values to their respective internal types.
|
|
14938
|
+
* @function fromObject
|
|
14939
|
+
* @memberof dataform.CoreExecutionResponse
|
|
14940
|
+
* @static
|
|
14941
|
+
* @param {Object.<string,*>} object Plain object
|
|
14942
|
+
* @returns {dataform.CoreExecutionResponse} CoreExecutionResponse
|
|
14943
|
+
*/
|
|
14944
|
+
CoreExecutionResponse.fromObject = function fromObject(object) {
|
|
14945
|
+
if (object instanceof $root.dataform.CoreExecutionResponse)
|
|
14946
|
+
return object;
|
|
14947
|
+
let message = new $root.dataform.CoreExecutionResponse();
|
|
14948
|
+
if (object.compile != null) {
|
|
14949
|
+
if (typeof object.compile !== "object")
|
|
14950
|
+
throw TypeError(".dataform.CoreExecutionResponse.compile: object expected");
|
|
14951
|
+
message.compile = $root.dataform.CompileExecutionResponse.fromObject(object.compile);
|
|
14952
|
+
}
|
|
14953
|
+
return message;
|
|
14954
|
+
};
|
|
14955
|
+
|
|
14956
|
+
/**
|
|
14957
|
+
* Creates a plain object from a CoreExecutionResponse message. Also converts values to other types if specified.
|
|
14958
|
+
* @function toObject
|
|
14959
|
+
* @memberof dataform.CoreExecutionResponse
|
|
14960
|
+
* @static
|
|
14961
|
+
* @param {dataform.CoreExecutionResponse} message CoreExecutionResponse
|
|
14962
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14963
|
+
* @returns {Object.<string,*>} Plain object
|
|
14964
|
+
*/
|
|
14965
|
+
CoreExecutionResponse.toObject = function toObject(message, options) {
|
|
14966
|
+
if (!options)
|
|
14967
|
+
options = {};
|
|
14968
|
+
let object = {};
|
|
14969
|
+
if (message.compile != null && message.hasOwnProperty("compile")) {
|
|
14970
|
+
object.compile = $root.dataform.CompileExecutionResponse.toObject(message.compile, options);
|
|
14971
|
+
if (options.oneofs)
|
|
14972
|
+
object.response = "compile";
|
|
14973
|
+
}
|
|
14974
|
+
return object;
|
|
14975
|
+
};
|
|
14976
|
+
|
|
14977
|
+
/**
|
|
14978
|
+
* Converts this CoreExecutionResponse to JSON.
|
|
14979
|
+
* @function toJSON
|
|
14980
|
+
* @memberof dataform.CoreExecutionResponse
|
|
14981
|
+
* @instance
|
|
14982
|
+
* @returns {Object.<string,*>} JSON object
|
|
14983
|
+
*/
|
|
14984
|
+
CoreExecutionResponse.prototype.toJSON = function toJSON() {
|
|
14985
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14986
|
+
};
|
|
14987
|
+
|
|
14988
|
+
return CoreExecutionResponse;
|
|
14989
|
+
})();
|
|
14990
|
+
|
|
14991
|
+
dataform.CompileExecutionRequest = (function() {
|
|
14992
|
+
|
|
14993
|
+
/**
|
|
14994
|
+
* Properties of a CompileExecutionRequest.
|
|
14995
|
+
* @memberof dataform
|
|
14996
|
+
* @interface ICompileExecutionRequest
|
|
14997
|
+
* @property {dataform.ICompileConfig|null} [compileConfig] CompileExecutionRequest compileConfig
|
|
14998
|
+
*/
|
|
14999
|
+
|
|
15000
|
+
/**
|
|
15001
|
+
* Constructs a new CompileExecutionRequest.
|
|
15002
|
+
* @memberof dataform
|
|
15003
|
+
* @classdesc Represents a CompileExecutionRequest.
|
|
15004
|
+
* @implements ICompileExecutionRequest
|
|
15005
|
+
* @constructor
|
|
15006
|
+
* @param {dataform.ICompileExecutionRequest=} [properties] Properties to set
|
|
15007
|
+
*/
|
|
15008
|
+
function CompileExecutionRequest(properties) {
|
|
15009
|
+
if (properties)
|
|
15010
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15011
|
+
if (properties[keys[i]] != null)
|
|
15012
|
+
this[keys[i]] = properties[keys[i]];
|
|
15013
|
+
}
|
|
15014
|
+
|
|
15015
|
+
/**
|
|
15016
|
+
* CompileExecutionRequest compileConfig.
|
|
15017
|
+
* @member {dataform.ICompileConfig|null|undefined} compileConfig
|
|
15018
|
+
* @memberof dataform.CompileExecutionRequest
|
|
15019
|
+
* @instance
|
|
15020
|
+
*/
|
|
15021
|
+
CompileExecutionRequest.prototype.compileConfig = null;
|
|
15022
|
+
|
|
15023
|
+
/**
|
|
15024
|
+
* Creates a new CompileExecutionRequest instance using the specified properties.
|
|
15025
|
+
* @function create
|
|
15026
|
+
* @memberof dataform.CompileExecutionRequest
|
|
15027
|
+
* @static
|
|
15028
|
+
* @param {dataform.ICompileExecutionRequest=} [properties] Properties to set
|
|
15029
|
+
* @returns {dataform.CompileExecutionRequest} CompileExecutionRequest instance
|
|
15030
|
+
*/
|
|
15031
|
+
CompileExecutionRequest.create = function create(properties) {
|
|
15032
|
+
return new CompileExecutionRequest(properties);
|
|
15033
|
+
};
|
|
15034
|
+
|
|
15035
|
+
/**
|
|
15036
|
+
* Encodes the specified CompileExecutionRequest message. Does not implicitly {@link dataform.CompileExecutionRequest.verify|verify} messages.
|
|
15037
|
+
* @function encode
|
|
15038
|
+
* @memberof dataform.CompileExecutionRequest
|
|
15039
|
+
* @static
|
|
15040
|
+
* @param {dataform.ICompileExecutionRequest} message CompileExecutionRequest message or plain object to encode
|
|
15041
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15042
|
+
* @returns {$protobuf.Writer} Writer
|
|
15043
|
+
*/
|
|
15044
|
+
CompileExecutionRequest.encode = function encode(message, writer) {
|
|
15045
|
+
if (!writer)
|
|
15046
|
+
writer = $Writer.create();
|
|
15047
|
+
if (message.compileConfig != null && message.hasOwnProperty("compileConfig"))
|
|
15048
|
+
$root.dataform.CompileConfig.encode(message.compileConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15049
|
+
return writer;
|
|
15050
|
+
};
|
|
15051
|
+
|
|
15052
|
+
/**
|
|
15053
|
+
* Encodes the specified CompileExecutionRequest message, length delimited. Does not implicitly {@link dataform.CompileExecutionRequest.verify|verify} messages.
|
|
15054
|
+
* @function encodeDelimited
|
|
15055
|
+
* @memberof dataform.CompileExecutionRequest
|
|
15056
|
+
* @static
|
|
15057
|
+
* @param {dataform.ICompileExecutionRequest} message CompileExecutionRequest message or plain object to encode
|
|
15058
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15059
|
+
* @returns {$protobuf.Writer} Writer
|
|
15060
|
+
*/
|
|
15061
|
+
CompileExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15062
|
+
return this.encode(message, writer).ldelim();
|
|
15063
|
+
};
|
|
15064
|
+
|
|
15065
|
+
/**
|
|
15066
|
+
* Decodes a CompileExecutionRequest message from the specified reader or buffer.
|
|
15067
|
+
* @function decode
|
|
15068
|
+
* @memberof dataform.CompileExecutionRequest
|
|
15069
|
+
* @static
|
|
15070
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15071
|
+
* @param {number} [length] Message length if known beforehand
|
|
15072
|
+
* @returns {dataform.CompileExecutionRequest} CompileExecutionRequest
|
|
15073
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15074
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15075
|
+
*/
|
|
15076
|
+
CompileExecutionRequest.decode = function decode(reader, length) {
|
|
15077
|
+
if (!(reader instanceof $Reader))
|
|
15078
|
+
reader = $Reader.create(reader);
|
|
15079
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CompileExecutionRequest();
|
|
15080
|
+
while (reader.pos < end) {
|
|
15081
|
+
let tag = reader.uint32();
|
|
15082
|
+
switch (tag >>> 3) {
|
|
15083
|
+
case 1:
|
|
15084
|
+
message.compileConfig = $root.dataform.CompileConfig.decode(reader, reader.uint32());
|
|
15925
15085
|
break;
|
|
15926
15086
|
default:
|
|
15927
15087
|
reader.skipType(tag & 7);
|
|
@@ -15932,378 +15092,284 @@ const dataform = $root.dataform = (() => {
|
|
|
15932
15092
|
};
|
|
15933
15093
|
|
|
15934
15094
|
/**
|
|
15935
|
-
* Decodes a
|
|
15095
|
+
* Decodes a CompileExecutionRequest message from the specified reader or buffer, length delimited.
|
|
15936
15096
|
* @function decodeDelimited
|
|
15937
|
-
* @memberof dataform.
|
|
15097
|
+
* @memberof dataform.CompileExecutionRequest
|
|
15938
15098
|
* @static
|
|
15939
15099
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15940
|
-
* @returns {dataform.
|
|
15100
|
+
* @returns {dataform.CompileExecutionRequest} CompileExecutionRequest
|
|
15941
15101
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15942
15102
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15943
15103
|
*/
|
|
15944
|
-
|
|
15104
|
+
CompileExecutionRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
15945
15105
|
if (!(reader instanceof $Reader))
|
|
15946
15106
|
reader = new $Reader(reader);
|
|
15947
15107
|
return this.decode(reader, reader.uint32());
|
|
15948
15108
|
};
|
|
15949
15109
|
|
|
15950
15110
|
/**
|
|
15951
|
-
* Verifies a
|
|
15111
|
+
* Verifies a CompileExecutionRequest message.
|
|
15952
15112
|
* @function verify
|
|
15953
|
-
* @memberof dataform.
|
|
15113
|
+
* @memberof dataform.CompileExecutionRequest
|
|
15954
15114
|
* @static
|
|
15955
15115
|
* @param {Object.<string,*>} message Plain object to verify
|
|
15956
15116
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15957
15117
|
*/
|
|
15958
|
-
|
|
15118
|
+
CompileExecutionRequest.verify = function verify(message) {
|
|
15959
15119
|
if (typeof message !== "object" || message === null)
|
|
15960
15120
|
return "object expected";
|
|
15961
|
-
if (message.
|
|
15962
|
-
let error = $root.dataform.
|
|
15121
|
+
if (message.compileConfig != null && message.hasOwnProperty("compileConfig")) {
|
|
15122
|
+
let error = $root.dataform.CompileConfig.verify(message.compileConfig);
|
|
15963
15123
|
if (error)
|
|
15964
|
-
return "
|
|
15965
|
-
}
|
|
15966
|
-
if (message.definitionHash != null && message.hasOwnProperty("definitionHash"))
|
|
15967
|
-
if (!$util.isString(message.definitionHash))
|
|
15968
|
-
return "definitionHash: string expected";
|
|
15969
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
15970
|
-
if (!$util.isInteger(message.lastUpdatedMillis) && !(message.lastUpdatedMillis && $util.isInteger(message.lastUpdatedMillis.low) && $util.isInteger(message.lastUpdatedMillis.high)))
|
|
15971
|
-
return "lastUpdatedMillis: integer|Long expected";
|
|
15972
|
-
if (message.transitiveInputTables != null && message.hasOwnProperty("transitiveInputTables")) {
|
|
15973
|
-
if (!Array.isArray(message.transitiveInputTables))
|
|
15974
|
-
return "transitiveInputTables: array expected";
|
|
15975
|
-
for (let i = 0; i < message.transitiveInputTables.length; ++i) {
|
|
15976
|
-
let error = $root.dataform.PersistedTableMetadata.TransitiveInputMetadata.verify(message.transitiveInputTables[i]);
|
|
15977
|
-
if (error)
|
|
15978
|
-
return "transitiveInputTables." + error;
|
|
15979
|
-
}
|
|
15124
|
+
return "compileConfig." + error;
|
|
15980
15125
|
}
|
|
15981
15126
|
return null;
|
|
15982
15127
|
};
|
|
15983
15128
|
|
|
15984
15129
|
/**
|
|
15985
|
-
* Creates a
|
|
15130
|
+
* Creates a CompileExecutionRequest message from a plain object. Also converts values to their respective internal types.
|
|
15986
15131
|
* @function fromObject
|
|
15987
|
-
* @memberof dataform.
|
|
15132
|
+
* @memberof dataform.CompileExecutionRequest
|
|
15988
15133
|
* @static
|
|
15989
15134
|
* @param {Object.<string,*>} object Plain object
|
|
15990
|
-
* @returns {dataform.
|
|
15135
|
+
* @returns {dataform.CompileExecutionRequest} CompileExecutionRequest
|
|
15991
15136
|
*/
|
|
15992
|
-
|
|
15993
|
-
if (object instanceof $root.dataform.
|
|
15137
|
+
CompileExecutionRequest.fromObject = function fromObject(object) {
|
|
15138
|
+
if (object instanceof $root.dataform.CompileExecutionRequest)
|
|
15994
15139
|
return object;
|
|
15995
|
-
let message = new $root.dataform.
|
|
15996
|
-
if (object.
|
|
15997
|
-
if (typeof object.
|
|
15998
|
-
throw TypeError(".dataform.
|
|
15999
|
-
message.
|
|
15140
|
+
let message = new $root.dataform.CompileExecutionRequest();
|
|
15141
|
+
if (object.compileConfig != null) {
|
|
15142
|
+
if (typeof object.compileConfig !== "object")
|
|
15143
|
+
throw TypeError(".dataform.CompileExecutionRequest.compileConfig: object expected");
|
|
15144
|
+
message.compileConfig = $root.dataform.CompileConfig.fromObject(object.compileConfig);
|
|
16000
15145
|
}
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
|
|
16014
|
-
|
|
16015
|
-
|
|
16016
|
-
|
|
16017
|
-
|
|
16018
|
-
|
|
16019
|
-
|
|
15146
|
+
return message;
|
|
15147
|
+
};
|
|
15148
|
+
|
|
15149
|
+
/**
|
|
15150
|
+
* Creates a plain object from a CompileExecutionRequest message. Also converts values to other types if specified.
|
|
15151
|
+
* @function toObject
|
|
15152
|
+
* @memberof dataform.CompileExecutionRequest
|
|
15153
|
+
* @static
|
|
15154
|
+
* @param {dataform.CompileExecutionRequest} message CompileExecutionRequest
|
|
15155
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15156
|
+
* @returns {Object.<string,*>} Plain object
|
|
15157
|
+
*/
|
|
15158
|
+
CompileExecutionRequest.toObject = function toObject(message, options) {
|
|
15159
|
+
if (!options)
|
|
15160
|
+
options = {};
|
|
15161
|
+
let object = {};
|
|
15162
|
+
if (options.defaults)
|
|
15163
|
+
object.compileConfig = null;
|
|
15164
|
+
if (message.compileConfig != null && message.hasOwnProperty("compileConfig"))
|
|
15165
|
+
object.compileConfig = $root.dataform.CompileConfig.toObject(message.compileConfig, options);
|
|
15166
|
+
return object;
|
|
15167
|
+
};
|
|
15168
|
+
|
|
15169
|
+
/**
|
|
15170
|
+
* Converts this CompileExecutionRequest to JSON.
|
|
15171
|
+
* @function toJSON
|
|
15172
|
+
* @memberof dataform.CompileExecutionRequest
|
|
15173
|
+
* @instance
|
|
15174
|
+
* @returns {Object.<string,*>} JSON object
|
|
15175
|
+
*/
|
|
15176
|
+
CompileExecutionRequest.prototype.toJSON = function toJSON() {
|
|
15177
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15178
|
+
};
|
|
15179
|
+
|
|
15180
|
+
return CompileExecutionRequest;
|
|
15181
|
+
})();
|
|
15182
|
+
|
|
15183
|
+
dataform.CompileExecutionResponse = (function() {
|
|
15184
|
+
|
|
15185
|
+
/**
|
|
15186
|
+
* Properties of a CompileExecutionResponse.
|
|
15187
|
+
* @memberof dataform
|
|
15188
|
+
* @interface ICompileExecutionResponse
|
|
15189
|
+
* @property {dataform.ICompiledGraph|null} [compiledGraph] CompileExecutionResponse compiledGraph
|
|
15190
|
+
*/
|
|
15191
|
+
|
|
15192
|
+
/**
|
|
15193
|
+
* Constructs a new CompileExecutionResponse.
|
|
15194
|
+
* @memberof dataform
|
|
15195
|
+
* @classdesc Represents a CompileExecutionResponse.
|
|
15196
|
+
* @implements ICompileExecutionResponse
|
|
15197
|
+
* @constructor
|
|
15198
|
+
* @param {dataform.ICompileExecutionResponse=} [properties] Properties to set
|
|
15199
|
+
*/
|
|
15200
|
+
function CompileExecutionResponse(properties) {
|
|
15201
|
+
if (properties)
|
|
15202
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15203
|
+
if (properties[keys[i]] != null)
|
|
15204
|
+
this[keys[i]] = properties[keys[i]];
|
|
15205
|
+
}
|
|
15206
|
+
|
|
15207
|
+
/**
|
|
15208
|
+
* CompileExecutionResponse compiledGraph.
|
|
15209
|
+
* @member {dataform.ICompiledGraph|null|undefined} compiledGraph
|
|
15210
|
+
* @memberof dataform.CompileExecutionResponse
|
|
15211
|
+
* @instance
|
|
15212
|
+
*/
|
|
15213
|
+
CompileExecutionResponse.prototype.compiledGraph = null;
|
|
15214
|
+
|
|
15215
|
+
/**
|
|
15216
|
+
* Creates a new CompileExecutionResponse instance using the specified properties.
|
|
15217
|
+
* @function create
|
|
15218
|
+
* @memberof dataform.CompileExecutionResponse
|
|
15219
|
+
* @static
|
|
15220
|
+
* @param {dataform.ICompileExecutionResponse=} [properties] Properties to set
|
|
15221
|
+
* @returns {dataform.CompileExecutionResponse} CompileExecutionResponse instance
|
|
15222
|
+
*/
|
|
15223
|
+
CompileExecutionResponse.create = function create(properties) {
|
|
15224
|
+
return new CompileExecutionResponse(properties);
|
|
15225
|
+
};
|
|
15226
|
+
|
|
15227
|
+
/**
|
|
15228
|
+
* Encodes the specified CompileExecutionResponse message. Does not implicitly {@link dataform.CompileExecutionResponse.verify|verify} messages.
|
|
15229
|
+
* @function encode
|
|
15230
|
+
* @memberof dataform.CompileExecutionResponse
|
|
15231
|
+
* @static
|
|
15232
|
+
* @param {dataform.ICompileExecutionResponse} message CompileExecutionResponse message or plain object to encode
|
|
15233
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15234
|
+
* @returns {$protobuf.Writer} Writer
|
|
15235
|
+
*/
|
|
15236
|
+
CompileExecutionResponse.encode = function encode(message, writer) {
|
|
15237
|
+
if (!writer)
|
|
15238
|
+
writer = $Writer.create();
|
|
15239
|
+
if (message.compiledGraph != null && message.hasOwnProperty("compiledGraph"))
|
|
15240
|
+
$root.dataform.CompiledGraph.encode(message.compiledGraph, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15241
|
+
return writer;
|
|
15242
|
+
};
|
|
15243
|
+
|
|
15244
|
+
/**
|
|
15245
|
+
* Encodes the specified CompileExecutionResponse message, length delimited. Does not implicitly {@link dataform.CompileExecutionResponse.verify|verify} messages.
|
|
15246
|
+
* @function encodeDelimited
|
|
15247
|
+
* @memberof dataform.CompileExecutionResponse
|
|
15248
|
+
* @static
|
|
15249
|
+
* @param {dataform.ICompileExecutionResponse} message CompileExecutionResponse message or plain object to encode
|
|
15250
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15251
|
+
* @returns {$protobuf.Writer} Writer
|
|
15252
|
+
*/
|
|
15253
|
+
CompileExecutionResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15254
|
+
return this.encode(message, writer).ldelim();
|
|
15255
|
+
};
|
|
15256
|
+
|
|
15257
|
+
/**
|
|
15258
|
+
* Decodes a CompileExecutionResponse message from the specified reader or buffer.
|
|
15259
|
+
* @function decode
|
|
15260
|
+
* @memberof dataform.CompileExecutionResponse
|
|
15261
|
+
* @static
|
|
15262
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15263
|
+
* @param {number} [length] Message length if known beforehand
|
|
15264
|
+
* @returns {dataform.CompileExecutionResponse} CompileExecutionResponse
|
|
15265
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15266
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15267
|
+
*/
|
|
15268
|
+
CompileExecutionResponse.decode = function decode(reader, length) {
|
|
15269
|
+
if (!(reader instanceof $Reader))
|
|
15270
|
+
reader = $Reader.create(reader);
|
|
15271
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CompileExecutionResponse();
|
|
15272
|
+
while (reader.pos < end) {
|
|
15273
|
+
let tag = reader.uint32();
|
|
15274
|
+
switch (tag >>> 3) {
|
|
15275
|
+
case 1:
|
|
15276
|
+
message.compiledGraph = $root.dataform.CompiledGraph.decode(reader, reader.uint32());
|
|
15277
|
+
break;
|
|
15278
|
+
default:
|
|
15279
|
+
reader.skipType(tag & 7);
|
|
15280
|
+
break;
|
|
16020
15281
|
}
|
|
16021
15282
|
}
|
|
16022
15283
|
return message;
|
|
16023
15284
|
};
|
|
16024
15285
|
|
|
16025
15286
|
/**
|
|
16026
|
-
*
|
|
15287
|
+
* Decodes a CompileExecutionResponse message from the specified reader or buffer, length delimited.
|
|
15288
|
+
* @function decodeDelimited
|
|
15289
|
+
* @memberof dataform.CompileExecutionResponse
|
|
15290
|
+
* @static
|
|
15291
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15292
|
+
* @returns {dataform.CompileExecutionResponse} CompileExecutionResponse
|
|
15293
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15294
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15295
|
+
*/
|
|
15296
|
+
CompileExecutionResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
15297
|
+
if (!(reader instanceof $Reader))
|
|
15298
|
+
reader = new $Reader(reader);
|
|
15299
|
+
return this.decode(reader, reader.uint32());
|
|
15300
|
+
};
|
|
15301
|
+
|
|
15302
|
+
/**
|
|
15303
|
+
* Verifies a CompileExecutionResponse message.
|
|
15304
|
+
* @function verify
|
|
15305
|
+
* @memberof dataform.CompileExecutionResponse
|
|
15306
|
+
* @static
|
|
15307
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15308
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15309
|
+
*/
|
|
15310
|
+
CompileExecutionResponse.verify = function verify(message) {
|
|
15311
|
+
if (typeof message !== "object" || message === null)
|
|
15312
|
+
return "object expected";
|
|
15313
|
+
if (message.compiledGraph != null && message.hasOwnProperty("compiledGraph")) {
|
|
15314
|
+
let error = $root.dataform.CompiledGraph.verify(message.compiledGraph);
|
|
15315
|
+
if (error)
|
|
15316
|
+
return "compiledGraph." + error;
|
|
15317
|
+
}
|
|
15318
|
+
return null;
|
|
15319
|
+
};
|
|
15320
|
+
|
|
15321
|
+
/**
|
|
15322
|
+
* Creates a CompileExecutionResponse message from a plain object. Also converts values to their respective internal types.
|
|
15323
|
+
* @function fromObject
|
|
15324
|
+
* @memberof dataform.CompileExecutionResponse
|
|
15325
|
+
* @static
|
|
15326
|
+
* @param {Object.<string,*>} object Plain object
|
|
15327
|
+
* @returns {dataform.CompileExecutionResponse} CompileExecutionResponse
|
|
15328
|
+
*/
|
|
15329
|
+
CompileExecutionResponse.fromObject = function fromObject(object) {
|
|
15330
|
+
if (object instanceof $root.dataform.CompileExecutionResponse)
|
|
15331
|
+
return object;
|
|
15332
|
+
let message = new $root.dataform.CompileExecutionResponse();
|
|
15333
|
+
if (object.compiledGraph != null) {
|
|
15334
|
+
if (typeof object.compiledGraph !== "object")
|
|
15335
|
+
throw TypeError(".dataform.CompileExecutionResponse.compiledGraph: object expected");
|
|
15336
|
+
message.compiledGraph = $root.dataform.CompiledGraph.fromObject(object.compiledGraph);
|
|
15337
|
+
}
|
|
15338
|
+
return message;
|
|
15339
|
+
};
|
|
15340
|
+
|
|
15341
|
+
/**
|
|
15342
|
+
* Creates a plain object from a CompileExecutionResponse message. Also converts values to other types if specified.
|
|
16027
15343
|
* @function toObject
|
|
16028
|
-
* @memberof dataform.
|
|
15344
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16029
15345
|
* @static
|
|
16030
|
-
* @param {dataform.
|
|
15346
|
+
* @param {dataform.CompileExecutionResponse} message CompileExecutionResponse
|
|
16031
15347
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16032
15348
|
* @returns {Object.<string,*>} Plain object
|
|
16033
15349
|
*/
|
|
16034
|
-
|
|
15350
|
+
CompileExecutionResponse.toObject = function toObject(message, options) {
|
|
16035
15351
|
if (!options)
|
|
16036
15352
|
options = {};
|
|
16037
15353
|
let object = {};
|
|
16038
|
-
if (options.
|
|
16039
|
-
object.
|
|
16040
|
-
if (
|
|
16041
|
-
object.
|
|
16042
|
-
object.definitionHash = "";
|
|
16043
|
-
if ($util.Long) {
|
|
16044
|
-
let long = new $util.Long(0, 0, false);
|
|
16045
|
-
object.lastUpdatedMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
16046
|
-
} else
|
|
16047
|
-
object.lastUpdatedMillis = options.longs === String ? "0" : 0;
|
|
16048
|
-
}
|
|
16049
|
-
if (message.target != null && message.hasOwnProperty("target"))
|
|
16050
|
-
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
16051
|
-
if (message.definitionHash != null && message.hasOwnProperty("definitionHash"))
|
|
16052
|
-
object.definitionHash = message.definitionHash;
|
|
16053
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
16054
|
-
if (typeof message.lastUpdatedMillis === "number")
|
|
16055
|
-
object.lastUpdatedMillis = options.longs === String ? String(message.lastUpdatedMillis) : message.lastUpdatedMillis;
|
|
16056
|
-
else
|
|
16057
|
-
object.lastUpdatedMillis = options.longs === String ? $util.Long.prototype.toString.call(message.lastUpdatedMillis) : options.longs === Number ? new $util.LongBits(message.lastUpdatedMillis.low >>> 0, message.lastUpdatedMillis.high >>> 0).toNumber() : message.lastUpdatedMillis;
|
|
16058
|
-
if (message.transitiveInputTables && message.transitiveInputTables.length) {
|
|
16059
|
-
object.transitiveInputTables = [];
|
|
16060
|
-
for (let j = 0; j < message.transitiveInputTables.length; ++j)
|
|
16061
|
-
object.transitiveInputTables[j] = $root.dataform.PersistedTableMetadata.TransitiveInputMetadata.toObject(message.transitiveInputTables[j], options);
|
|
16062
|
-
}
|
|
15354
|
+
if (options.defaults)
|
|
15355
|
+
object.compiledGraph = null;
|
|
15356
|
+
if (message.compiledGraph != null && message.hasOwnProperty("compiledGraph"))
|
|
15357
|
+
object.compiledGraph = $root.dataform.CompiledGraph.toObject(message.compiledGraph, options);
|
|
16063
15358
|
return object;
|
|
16064
15359
|
};
|
|
16065
15360
|
|
|
16066
15361
|
/**
|
|
16067
|
-
* Converts this
|
|
15362
|
+
* Converts this CompileExecutionResponse to JSON.
|
|
16068
15363
|
* @function toJSON
|
|
16069
|
-
* @memberof dataform.
|
|
15364
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16070
15365
|
* @instance
|
|
16071
15366
|
* @returns {Object.<string,*>} JSON object
|
|
16072
15367
|
*/
|
|
16073
|
-
|
|
15368
|
+
CompileExecutionResponse.prototype.toJSON = function toJSON() {
|
|
16074
15369
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16075
15370
|
};
|
|
16076
15371
|
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
/**
|
|
16080
|
-
* Properties of a TransitiveInputMetadata.
|
|
16081
|
-
* @memberof dataform.PersistedTableMetadata
|
|
16082
|
-
* @interface ITransitiveInputMetadata
|
|
16083
|
-
* @property {dataform.ITarget|null} [target] TransitiveInputMetadata target
|
|
16084
|
-
* @property {Long|null} [lastUpdatedMillis] TransitiveInputMetadata lastUpdatedMillis
|
|
16085
|
-
*/
|
|
16086
|
-
|
|
16087
|
-
/**
|
|
16088
|
-
* Constructs a new TransitiveInputMetadata.
|
|
16089
|
-
* @memberof dataform.PersistedTableMetadata
|
|
16090
|
-
* @classdesc Represents a TransitiveInputMetadata.
|
|
16091
|
-
* @implements ITransitiveInputMetadata
|
|
16092
|
-
* @constructor
|
|
16093
|
-
* @param {dataform.PersistedTableMetadata.ITransitiveInputMetadata=} [properties] Properties to set
|
|
16094
|
-
*/
|
|
16095
|
-
function TransitiveInputMetadata(properties) {
|
|
16096
|
-
if (properties)
|
|
16097
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16098
|
-
if (properties[keys[i]] != null)
|
|
16099
|
-
this[keys[i]] = properties[keys[i]];
|
|
16100
|
-
}
|
|
16101
|
-
|
|
16102
|
-
/**
|
|
16103
|
-
* TransitiveInputMetadata target.
|
|
16104
|
-
* @member {dataform.ITarget|null|undefined} target
|
|
16105
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16106
|
-
* @instance
|
|
16107
|
-
*/
|
|
16108
|
-
TransitiveInputMetadata.prototype.target = null;
|
|
16109
|
-
|
|
16110
|
-
/**
|
|
16111
|
-
* TransitiveInputMetadata lastUpdatedMillis.
|
|
16112
|
-
* @member {Long} lastUpdatedMillis
|
|
16113
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16114
|
-
* @instance
|
|
16115
|
-
*/
|
|
16116
|
-
TransitiveInputMetadata.prototype.lastUpdatedMillis = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
16117
|
-
|
|
16118
|
-
/**
|
|
16119
|
-
* Creates a new TransitiveInputMetadata instance using the specified properties.
|
|
16120
|
-
* @function create
|
|
16121
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16122
|
-
* @static
|
|
16123
|
-
* @param {dataform.PersistedTableMetadata.ITransitiveInputMetadata=} [properties] Properties to set
|
|
16124
|
-
* @returns {dataform.PersistedTableMetadata.TransitiveInputMetadata} TransitiveInputMetadata instance
|
|
16125
|
-
*/
|
|
16126
|
-
TransitiveInputMetadata.create = function create(properties) {
|
|
16127
|
-
return new TransitiveInputMetadata(properties);
|
|
16128
|
-
};
|
|
16129
|
-
|
|
16130
|
-
/**
|
|
16131
|
-
* Encodes the specified TransitiveInputMetadata message. Does not implicitly {@link dataform.PersistedTableMetadata.TransitiveInputMetadata.verify|verify} messages.
|
|
16132
|
-
* @function encode
|
|
16133
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16134
|
-
* @static
|
|
16135
|
-
* @param {dataform.PersistedTableMetadata.ITransitiveInputMetadata} message TransitiveInputMetadata message or plain object to encode
|
|
16136
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16137
|
-
* @returns {$protobuf.Writer} Writer
|
|
16138
|
-
*/
|
|
16139
|
-
TransitiveInputMetadata.encode = function encode(message, writer) {
|
|
16140
|
-
if (!writer)
|
|
16141
|
-
writer = $Writer.create();
|
|
16142
|
-
if (message.target != null && message.hasOwnProperty("target"))
|
|
16143
|
-
$root.dataform.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
16144
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
16145
|
-
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lastUpdatedMillis);
|
|
16146
|
-
return writer;
|
|
16147
|
-
};
|
|
16148
|
-
|
|
16149
|
-
/**
|
|
16150
|
-
* Encodes the specified TransitiveInputMetadata message, length delimited. Does not implicitly {@link dataform.PersistedTableMetadata.TransitiveInputMetadata.verify|verify} messages.
|
|
16151
|
-
* @function encodeDelimited
|
|
16152
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16153
|
-
* @static
|
|
16154
|
-
* @param {dataform.PersistedTableMetadata.ITransitiveInputMetadata} message TransitiveInputMetadata message or plain object to encode
|
|
16155
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16156
|
-
* @returns {$protobuf.Writer} Writer
|
|
16157
|
-
*/
|
|
16158
|
-
TransitiveInputMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16159
|
-
return this.encode(message, writer).ldelim();
|
|
16160
|
-
};
|
|
16161
|
-
|
|
16162
|
-
/**
|
|
16163
|
-
* Decodes a TransitiveInputMetadata message from the specified reader or buffer.
|
|
16164
|
-
* @function decode
|
|
16165
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16166
|
-
* @static
|
|
16167
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16168
|
-
* @param {number} [length] Message length if known beforehand
|
|
16169
|
-
* @returns {dataform.PersistedTableMetadata.TransitiveInputMetadata} TransitiveInputMetadata
|
|
16170
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16171
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16172
|
-
*/
|
|
16173
|
-
TransitiveInputMetadata.decode = function decode(reader, length) {
|
|
16174
|
-
if (!(reader instanceof $Reader))
|
|
16175
|
-
reader = $Reader.create(reader);
|
|
16176
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.PersistedTableMetadata.TransitiveInputMetadata();
|
|
16177
|
-
while (reader.pos < end) {
|
|
16178
|
-
let tag = reader.uint32();
|
|
16179
|
-
switch (tag >>> 3) {
|
|
16180
|
-
case 1:
|
|
16181
|
-
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
16182
|
-
break;
|
|
16183
|
-
case 2:
|
|
16184
|
-
message.lastUpdatedMillis = reader.int64();
|
|
16185
|
-
break;
|
|
16186
|
-
default:
|
|
16187
|
-
reader.skipType(tag & 7);
|
|
16188
|
-
break;
|
|
16189
|
-
}
|
|
16190
|
-
}
|
|
16191
|
-
return message;
|
|
16192
|
-
};
|
|
16193
|
-
|
|
16194
|
-
/**
|
|
16195
|
-
* Decodes a TransitiveInputMetadata message from the specified reader or buffer, length delimited.
|
|
16196
|
-
* @function decodeDelimited
|
|
16197
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16198
|
-
* @static
|
|
16199
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16200
|
-
* @returns {dataform.PersistedTableMetadata.TransitiveInputMetadata} TransitiveInputMetadata
|
|
16201
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16202
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16203
|
-
*/
|
|
16204
|
-
TransitiveInputMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
16205
|
-
if (!(reader instanceof $Reader))
|
|
16206
|
-
reader = new $Reader(reader);
|
|
16207
|
-
return this.decode(reader, reader.uint32());
|
|
16208
|
-
};
|
|
16209
|
-
|
|
16210
|
-
/**
|
|
16211
|
-
* Verifies a TransitiveInputMetadata message.
|
|
16212
|
-
* @function verify
|
|
16213
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16214
|
-
* @static
|
|
16215
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
16216
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16217
|
-
*/
|
|
16218
|
-
TransitiveInputMetadata.verify = function verify(message) {
|
|
16219
|
-
if (typeof message !== "object" || message === null)
|
|
16220
|
-
return "object expected";
|
|
16221
|
-
if (message.target != null && message.hasOwnProperty("target")) {
|
|
16222
|
-
let error = $root.dataform.Target.verify(message.target);
|
|
16223
|
-
if (error)
|
|
16224
|
-
return "target." + error;
|
|
16225
|
-
}
|
|
16226
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
16227
|
-
if (!$util.isInteger(message.lastUpdatedMillis) && !(message.lastUpdatedMillis && $util.isInteger(message.lastUpdatedMillis.low) && $util.isInteger(message.lastUpdatedMillis.high)))
|
|
16228
|
-
return "lastUpdatedMillis: integer|Long expected";
|
|
16229
|
-
return null;
|
|
16230
|
-
};
|
|
16231
|
-
|
|
16232
|
-
/**
|
|
16233
|
-
* Creates a TransitiveInputMetadata message from a plain object. Also converts values to their respective internal types.
|
|
16234
|
-
* @function fromObject
|
|
16235
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16236
|
-
* @static
|
|
16237
|
-
* @param {Object.<string,*>} object Plain object
|
|
16238
|
-
* @returns {dataform.PersistedTableMetadata.TransitiveInputMetadata} TransitiveInputMetadata
|
|
16239
|
-
*/
|
|
16240
|
-
TransitiveInputMetadata.fromObject = function fromObject(object) {
|
|
16241
|
-
if (object instanceof $root.dataform.PersistedTableMetadata.TransitiveInputMetadata)
|
|
16242
|
-
return object;
|
|
16243
|
-
let message = new $root.dataform.PersistedTableMetadata.TransitiveInputMetadata();
|
|
16244
|
-
if (object.target != null) {
|
|
16245
|
-
if (typeof object.target !== "object")
|
|
16246
|
-
throw TypeError(".dataform.PersistedTableMetadata.TransitiveInputMetadata.target: object expected");
|
|
16247
|
-
message.target = $root.dataform.Target.fromObject(object.target);
|
|
16248
|
-
}
|
|
16249
|
-
if (object.lastUpdatedMillis != null)
|
|
16250
|
-
if ($util.Long)
|
|
16251
|
-
(message.lastUpdatedMillis = $util.Long.fromValue(object.lastUpdatedMillis)).unsigned = false;
|
|
16252
|
-
else if (typeof object.lastUpdatedMillis === "string")
|
|
16253
|
-
message.lastUpdatedMillis = parseInt(object.lastUpdatedMillis, 10);
|
|
16254
|
-
else if (typeof object.lastUpdatedMillis === "number")
|
|
16255
|
-
message.lastUpdatedMillis = object.lastUpdatedMillis;
|
|
16256
|
-
else if (typeof object.lastUpdatedMillis === "object")
|
|
16257
|
-
message.lastUpdatedMillis = new $util.LongBits(object.lastUpdatedMillis.low >>> 0, object.lastUpdatedMillis.high >>> 0).toNumber();
|
|
16258
|
-
return message;
|
|
16259
|
-
};
|
|
16260
|
-
|
|
16261
|
-
/**
|
|
16262
|
-
* Creates a plain object from a TransitiveInputMetadata message. Also converts values to other types if specified.
|
|
16263
|
-
* @function toObject
|
|
16264
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16265
|
-
* @static
|
|
16266
|
-
* @param {dataform.PersistedTableMetadata.TransitiveInputMetadata} message TransitiveInputMetadata
|
|
16267
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16268
|
-
* @returns {Object.<string,*>} Plain object
|
|
16269
|
-
*/
|
|
16270
|
-
TransitiveInputMetadata.toObject = function toObject(message, options) {
|
|
16271
|
-
if (!options)
|
|
16272
|
-
options = {};
|
|
16273
|
-
let object = {};
|
|
16274
|
-
if (options.defaults) {
|
|
16275
|
-
object.target = null;
|
|
16276
|
-
if ($util.Long) {
|
|
16277
|
-
let long = new $util.Long(0, 0, false);
|
|
16278
|
-
object.lastUpdatedMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
16279
|
-
} else
|
|
16280
|
-
object.lastUpdatedMillis = options.longs === String ? "0" : 0;
|
|
16281
|
-
}
|
|
16282
|
-
if (message.target != null && message.hasOwnProperty("target"))
|
|
16283
|
-
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
16284
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
16285
|
-
if (typeof message.lastUpdatedMillis === "number")
|
|
16286
|
-
object.lastUpdatedMillis = options.longs === String ? String(message.lastUpdatedMillis) : message.lastUpdatedMillis;
|
|
16287
|
-
else
|
|
16288
|
-
object.lastUpdatedMillis = options.longs === String ? $util.Long.prototype.toString.call(message.lastUpdatedMillis) : options.longs === Number ? new $util.LongBits(message.lastUpdatedMillis.low >>> 0, message.lastUpdatedMillis.high >>> 0).toNumber() : message.lastUpdatedMillis;
|
|
16289
|
-
return object;
|
|
16290
|
-
};
|
|
16291
|
-
|
|
16292
|
-
/**
|
|
16293
|
-
* Converts this TransitiveInputMetadata to JSON.
|
|
16294
|
-
* @function toJSON
|
|
16295
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16296
|
-
* @instance
|
|
16297
|
-
* @returns {Object.<string,*>} JSON object
|
|
16298
|
-
*/
|
|
16299
|
-
TransitiveInputMetadata.prototype.toJSON = function toJSON() {
|
|
16300
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16301
|
-
};
|
|
16302
|
-
|
|
16303
|
-
return TransitiveInputMetadata;
|
|
16304
|
-
})();
|
|
16305
|
-
|
|
16306
|
-
return PersistedTableMetadata;
|
|
15372
|
+
return CompileExecutionResponse;
|
|
16307
15373
|
})();
|
|
16308
15374
|
|
|
16309
15375
|
dataform.JDBC = (function() {
|
|
@@ -20771,7 +19837,7 @@ function concatenateQueries(statements, modifier) {
|
|
|
20771
19837
|
? statement.substring(0, statement.length - 1)
|
|
20772
19838
|
: statement)
|
|
20773
19839
|
.map(statement => (!!modifier ? modifier(statement) : statement))
|
|
20774
|
-
.join(";\n");
|
|
19840
|
+
.join("\n;\n");
|
|
20775
19841
|
}
|
|
20776
19842
|
class Tasks {
|
|
20777
19843
|
constructor() {
|
|
@@ -20960,7 +20026,7 @@ class BigQueryAdapter extends Adapter {
|
|
|
20960
20026
|
else {
|
|
20961
20027
|
tasks.add(Task.statement(table.uniqueKey && table.uniqueKey.length > 0
|
|
20962
20028
|
? this.mergeInto(table.target, tableMetadata === null || tableMetadata === void 0 ? void 0 : tableMetadata.fields.map(f => f.name), this.where(table.incrementalQuery || table.query, table.where), table.uniqueKey, table.bigquery && table.bigquery.updatePartitionFilter)
|
|
20963
|
-
: this.insertInto(table.target, tableMetadata === null || tableMetadata === void 0 ? void 0 : tableMetadata.fields.map(f => f.name), this.where(table.incrementalQuery || table.query, table.where))));
|
|
20029
|
+
: this.insertInto(table.target, tableMetadata === null || tableMetadata === void 0 ? void 0 : tableMetadata.fields.map(f => f.name).map(column => `\`${column}\``), this.where(table.incrementalQuery || table.query, table.where))));
|
|
20964
20030
|
}
|
|
20965
20031
|
}
|
|
20966
20032
|
else {
|
|
@@ -20971,11 +20037,7 @@ class BigQueryAdapter extends Adapter {
|
|
|
20971
20037
|
}
|
|
20972
20038
|
assertTasks(assertion, projectConfig) {
|
|
20973
20039
|
const tasks = Tasks.create();
|
|
20974
|
-
const target = assertion.target
|
|
20975
|
-
dataform.Target.create({
|
|
20976
|
-
schema: projectConfig.assertionSchema,
|
|
20977
|
-
name: assertion.name
|
|
20978
|
-
});
|
|
20040
|
+
const target = assertion.target;
|
|
20979
20041
|
tasks.add(Task.statement(this.createOrReplaceView(target, assertion.query)));
|
|
20980
20042
|
tasks.add(Task.assertion(`select sum(1) as row_count from ${this.resolveTarget(target)}`));
|
|
20981
20043
|
return tasks;
|
|
@@ -20995,6 +20057,7 @@ class BigQueryAdapter extends Adapter {
|
|
|
20995
20057
|
create or replace view ${this.resolveTarget(target)} as ${query}`;
|
|
20996
20058
|
}
|
|
20997
20059
|
mergeInto(target, columns, query, uniqueKey, updatePartitionFilter) {
|
|
20060
|
+
const backtickedColumns = columns.map(column => `\`${column}\``);
|
|
20998
20061
|
return `
|
|
20999
20062
|
merge ${this.resolveTarget(target)} T
|
|
21000
20063
|
using (${query}
|
|
@@ -21002,9 +20065,9 @@ using (${query}
|
|
|
21002
20065
|
on ${uniqueKey.map(uniqueKeyCol => `T.${uniqueKeyCol} = S.${uniqueKeyCol}`).join(` and `)}
|
|
21003
20066
|
${updatePartitionFilter ? `and T.${updatePartitionFilter}` : ""}
|
|
21004
20067
|
when matched then
|
|
21005
|
-
update set ${columns.map(column =>
|
|
20068
|
+
update set ${columns.map(column => `\`${column}\` = S.${column}`).join(",")}
|
|
21006
20069
|
when not matched then
|
|
21007
|
-
insert (${
|
|
20070
|
+
insert (${backtickedColumns.join(",")}) values (${backtickedColumns.join(",")})`;
|
|
21008
20071
|
}
|
|
21009
20072
|
}
|
|
21010
20073
|
|
|
@@ -21035,11 +20098,7 @@ class PrestoAdapter extends Adapter {
|
|
|
21035
20098
|
}
|
|
21036
20099
|
assertTasks(assertion, projectConfig) {
|
|
21037
20100
|
const tasks = Tasks.create();
|
|
21038
|
-
const target = assertion.target
|
|
21039
|
-
dataform.Target.create({
|
|
21040
|
-
schema: projectConfig.assertionSchema,
|
|
21041
|
-
name: assertion.name
|
|
21042
|
-
});
|
|
20101
|
+
const target = assertion.target;
|
|
21043
20102
|
tasks.add(Task.statement(this.createOrReplaceView(target, assertion.query)));
|
|
21044
20103
|
tasks.add(Task.assertion(`select sum(1) as row_count from ${this.resolveTarget(target)}`));
|
|
21045
20104
|
return tasks;
|
|
@@ -21095,11 +20154,7 @@ class RedshiftAdapter extends Adapter {
|
|
|
21095
20154
|
return tasks;
|
|
21096
20155
|
}
|
|
21097
20156
|
assertTasks(assertion, projectConfig) {
|
|
21098
|
-
const target = assertion.target
|
|
21099
|
-
dataform.Target.create({
|
|
21100
|
-
schema: projectConfig.assertionSchema,
|
|
21101
|
-
name: assertion.name
|
|
21102
|
-
});
|
|
20157
|
+
const target = assertion.target;
|
|
21103
20158
|
return Tasks.create()
|
|
21104
20159
|
.add(Task.statement(this.dropIfExists(target, dataform.TableMetadata.Type.VIEW)))
|
|
21105
20160
|
.add(Task.statement(this.createOrReplaceView(target, assertion.query, false)))
|
|
@@ -21207,11 +20262,7 @@ class SnowflakeAdapter extends Adapter {
|
|
|
21207
20262
|
}
|
|
21208
20263
|
assertTasks(assertion, projectConfig) {
|
|
21209
20264
|
const tasks = Tasks.create();
|
|
21210
|
-
const target = assertion.target
|
|
21211
|
-
dataform.Target.create({
|
|
21212
|
-
schema: projectConfig.assertionSchema,
|
|
21213
|
-
name: assertion.name
|
|
21214
|
-
});
|
|
20265
|
+
const target = assertion.target;
|
|
21215
20266
|
tasks.add(Task.statement(this.createOrReplaceView(target, assertion.query, false)));
|
|
21216
20267
|
tasks.add(Task.assertion(`select sum(1) as row_count from ${this.resolveTarget(target)}`));
|
|
21217
20268
|
return tasks;
|
|
@@ -21274,11 +20325,7 @@ class SQLDataWarehouseAdapter extends Adapter {
|
|
|
21274
20325
|
return tasks.concatenate();
|
|
21275
20326
|
}
|
|
21276
20327
|
assertTasks(assertion, projectConfig) {
|
|
21277
|
-
const target = assertion.target
|
|
21278
|
-
dataform.Target.create({
|
|
21279
|
-
schema: projectConfig.assertionSchema,
|
|
21280
|
-
name: assertion.name
|
|
21281
|
-
});
|
|
20328
|
+
const target = assertion.target;
|
|
21282
20329
|
return Tasks.create()
|
|
21283
20330
|
.add(Task.statement(this.dropIfExists(target, dataform.TableMetadata.Type.VIEW)))
|
|
21284
20331
|
.add(Task.statement(`
|
|
@@ -21342,8 +20389,7 @@ function supportsCancel(warehouseType) {
|
|
|
21342
20389
|
});
|
|
21343
20390
|
}
|
|
21344
20391
|
const requiredBigQueryWarehouseProps = [
|
|
21345
|
-
"projectId"
|
|
21346
|
-
"credentials"
|
|
20392
|
+
"projectId"
|
|
21347
20393
|
];
|
|
21348
20394
|
const requiredJdbcWarehouseProps = [
|
|
21349
20395
|
"host",
|
|
@@ -21458,12 +20504,18 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
21458
20504
|
collectEvaluationQueries: collectEvaluationQueries
|
|
21459
20505
|
});
|
|
21460
20506
|
|
|
20507
|
+
const pathSeperator = (() => {
|
|
20508
|
+
if (typeof process !== "undefined") {
|
|
20509
|
+
return process.platform === "win32" ? "\\" : "/";
|
|
20510
|
+
}
|
|
20511
|
+
return "/";
|
|
20512
|
+
})();
|
|
21461
20513
|
function relativePath(fullPath, base) {
|
|
21462
20514
|
if (base.length === 0) {
|
|
21463
20515
|
return fullPath;
|
|
21464
20516
|
}
|
|
21465
20517
|
const stripped = fullPath.substr(base.length);
|
|
21466
|
-
if (stripped.startsWith(
|
|
20518
|
+
if (stripped.startsWith(pathSeperator)) {
|
|
21467
20519
|
return stripped.substr(1);
|
|
21468
20520
|
}
|
|
21469
20521
|
else {
|
|
@@ -21471,7 +20523,10 @@ function relativePath(fullPath, base) {
|
|
|
21471
20523
|
}
|
|
21472
20524
|
}
|
|
21473
20525
|
function baseFilename(fullPath) {
|
|
21474
|
-
return
|
|
20526
|
+
return fullPath
|
|
20527
|
+
.split(pathSeperator)
|
|
20528
|
+
.slice(-1)[0]
|
|
20529
|
+
.split(".")[0];
|
|
21475
20530
|
}
|
|
21476
20531
|
function getCallerFile(rootDir) {
|
|
21477
20532
|
let lastfile;
|
|
@@ -21488,8 +20543,8 @@ function getCallerFile(rootDir) {
|
|
|
21488
20543
|
continue;
|
|
21489
20544
|
}
|
|
21490
20545
|
lastfile = nextLastfile;
|
|
21491
|
-
if (!(nextLastfile.includes(`definitions${
|
|
21492
|
-
nextLastfile.includes(`models${
|
|
20546
|
+
if (!(nextLastfile.includes(`definitions${pathSeperator}`) ||
|
|
20547
|
+
nextLastfile.includes(`models${pathSeperator}`))) {
|
|
21493
20548
|
continue;
|
|
21494
20549
|
}
|
|
21495
20550
|
break;
|
|
@@ -21566,14 +20621,6 @@ function target(adapter, config, name, schema, database) {
|
|
|
21566
20621
|
function setNameAndTarget(session, action, name, overrideSchema, overrideDatabase) {
|
|
21567
20622
|
action.target = target(session.adapter(), session.config, name, overrideSchema, overrideDatabase);
|
|
21568
20623
|
action.canonicalTarget = target(session.adapter(), session.canonicalConfig, name, overrideSchema, overrideDatabase);
|
|
21569
|
-
action.name = targetToName(action.target);
|
|
21570
|
-
}
|
|
21571
|
-
function targetToName(actionTarget) {
|
|
21572
|
-
const nameParts = [actionTarget.name, actionTarget.schema];
|
|
21573
|
-
if (!!actionTarget.database) {
|
|
21574
|
-
nameParts.push(actionTarget.database);
|
|
21575
|
-
}
|
|
21576
|
-
return nameParts.reverse().join(".");
|
|
21577
20624
|
}
|
|
21578
20625
|
function strictKeysOf() {
|
|
21579
20626
|
return (array) => array;
|
|
@@ -21589,6 +20636,12 @@ function validateQueryString(session, query, filename) {
|
|
|
21589
20636
|
session.compileError(new Error("Semi-colons are not allowed at the end of SQL statements."), filename);
|
|
21590
20637
|
}
|
|
21591
20638
|
}
|
|
20639
|
+
function throwIfInvalid(proto, verify) {
|
|
20640
|
+
const verifyError = verify(proto);
|
|
20641
|
+
if (verifyError) {
|
|
20642
|
+
throw new Error(verifyError);
|
|
20643
|
+
}
|
|
20644
|
+
}
|
|
21592
20645
|
|
|
21593
20646
|
const IAssertionConfigProperties = strictKeysOf()([
|
|
21594
20647
|
"database",
|
|
@@ -22976,10 +22029,10 @@ function escapeNode(node) {
|
|
|
22976
22029
|
return node.concatenate(SQL_STATEMENT_ESCAPERS);
|
|
22977
22030
|
}
|
|
22978
22031
|
|
|
22979
|
-
function
|
|
22032
|
+
function encode64(protoType, value = {}) {
|
|
22980
22033
|
return toBase64(protoType.encode(protoType.create(value)).finish());
|
|
22981
22034
|
}
|
|
22982
|
-
function
|
|
22035
|
+
function decode64(protoType, encodedValue) {
|
|
22983
22036
|
if (!encodedValue) {
|
|
22984
22037
|
return protoType.create();
|
|
22985
22038
|
}
|
|
@@ -22995,7 +22048,7 @@ function fromBase64(value) {
|
|
|
22995
22048
|
}
|
|
22996
22049
|
|
|
22997
22050
|
function genIndex(base64EncodedConfig) {
|
|
22998
|
-
const config =
|
|
22051
|
+
const config = decode64(dataform.GenerateIndexConfig, base64EncodedConfig);
|
|
22999
22052
|
const includeRequires = config.includePaths
|
|
23000
22053
|
.map(path => {
|
|
23001
22054
|
return `
|
|
@@ -23013,20 +22066,6 @@ function genIndex(base64EncodedConfig) {
|
|
|
23013
22066
|
})
|
|
23014
22067
|
.join("\n");
|
|
23015
22068
|
const projectOverridesJsonString = JSON.stringify(dataform.ProjectConfig.create(config.compileConfig.projectConfigOverride).toJSON());
|
|
23016
|
-
const escapedQuery = config.compileConfig.query
|
|
23017
|
-
.replace(/\\/g, "\\\\")
|
|
23018
|
-
.replace(/`/g, "\\`")
|
|
23019
|
-
.replace(/\${/g, "\\${");
|
|
23020
|
-
const returnValue = config.compileConfig.compileSingleQuery
|
|
23021
|
-
? `(function() {
|
|
23022
|
-
try {
|
|
23023
|
-
const compiled = require("@dataform/core").compileStandaloneSqlxQuery(\`${escapedQuery}\`);
|
|
23024
|
-
return new Function(compiled)();
|
|
23025
|
-
} catch (e) {
|
|
23026
|
-
return e.message;
|
|
23027
|
-
}
|
|
23028
|
-
})()`
|
|
23029
|
-
: "base64EncodedGraphBytes";
|
|
23030
22069
|
return `
|
|
23031
22070
|
// Read the project config.
|
|
23032
22071
|
const originalProjectConfig = require("./dataform.json");
|
|
@@ -23039,11 +22078,8 @@ delete originalProjectConfig.gcloudProjectId;
|
|
|
23039
22078
|
|
|
23040
22079
|
let projectConfig = { ...originalProjectConfig };
|
|
23041
22080
|
|
|
23042
|
-
// For backwards compatibility, in case core version is ahead of api.
|
|
23043
|
-
projectConfig.schemaSuffix = "${config.compileConfig.schemaSuffixOverride}" || projectConfig.schemaSuffix;
|
|
23044
|
-
|
|
23045
22081
|
// Merge in general project config overrides.
|
|
23046
|
-
projectConfig = { ...projectConfig, ...${projectOverridesJsonString} };
|
|
22082
|
+
projectConfig = { ...projectConfig, ...${projectOverridesJsonString}, vars: { ...projectConfig.vars, ...${projectOverridesJsonString}.vars } };
|
|
23047
22083
|
|
|
23048
22084
|
// Initialize the compilation session.
|
|
23049
22085
|
const session = require("@dataform/core").session;
|
|
@@ -23066,8 +22102,7 @@ global.test = session.test.bind(session);
|
|
|
23066
22102
|
${definitionRequires}
|
|
23067
22103
|
|
|
23068
22104
|
// Return a base64 encoded proto via NodeVM. Returning a Uint8Array directly causes issues.
|
|
23069
|
-
|
|
23070
|
-
return ${returnValue};`;
|
|
22105
|
+
return session.compileToBase64();`;
|
|
23071
22106
|
}
|
|
23072
22107
|
|
|
23073
22108
|
class JSONObjectStringifier {
|
|
@@ -23157,6 +22192,90 @@ class StringifiedMap {
|
|
|
23157
22192
|
return this.map.values();
|
|
23158
22193
|
}
|
|
23159
22194
|
}
|
|
22195
|
+
class StringifiedSet {
|
|
22196
|
+
constructor(stringifier, values) {
|
|
22197
|
+
this.stringifier = stringifier;
|
|
22198
|
+
if (values) {
|
|
22199
|
+
this.set = new Set(values.map(value => stringifier.stringify(value)));
|
|
22200
|
+
}
|
|
22201
|
+
else {
|
|
22202
|
+
this.set = new Set();
|
|
22203
|
+
}
|
|
22204
|
+
}
|
|
22205
|
+
get size() {
|
|
22206
|
+
return this.set.size;
|
|
22207
|
+
}
|
|
22208
|
+
get [Symbol.toStringTag]() {
|
|
22209
|
+
return StringifiedSet.name;
|
|
22210
|
+
}
|
|
22211
|
+
add(value) {
|
|
22212
|
+
this.set.add(this.stringifier.stringify(value));
|
|
22213
|
+
return this;
|
|
22214
|
+
}
|
|
22215
|
+
clear() {
|
|
22216
|
+
return this.set.clear();
|
|
22217
|
+
}
|
|
22218
|
+
delete(value) {
|
|
22219
|
+
return this.set.delete(this.stringifier.stringify(value));
|
|
22220
|
+
}
|
|
22221
|
+
forEach(callbackfn, thisArg) {
|
|
22222
|
+
return this.set.forEach((value, value2, _) => callbackfn(this.stringifier.parse(value), this.stringifier.parse(value2), null), thisArg);
|
|
22223
|
+
}
|
|
22224
|
+
has(value) {
|
|
22225
|
+
return this.set.has(this.stringifier.stringify(value));
|
|
22226
|
+
}
|
|
22227
|
+
[Symbol.iterator]() {
|
|
22228
|
+
return this.keys();
|
|
22229
|
+
}
|
|
22230
|
+
entries() {
|
|
22231
|
+
const stringifier = this.stringifier;
|
|
22232
|
+
const innerIterator = this.set[Symbol.iterator]();
|
|
22233
|
+
return new (class Iter {
|
|
22234
|
+
[Symbol.iterator]() {
|
|
22235
|
+
return this;
|
|
22236
|
+
}
|
|
22237
|
+
next() {
|
|
22238
|
+
const next = innerIterator.next();
|
|
22239
|
+
return {
|
|
22240
|
+
value: !next.done ? [stringifier.parse(next.value[0]), next.value[1]] : undefined,
|
|
22241
|
+
done: next.done
|
|
22242
|
+
};
|
|
22243
|
+
}
|
|
22244
|
+
})();
|
|
22245
|
+
}
|
|
22246
|
+
keys() {
|
|
22247
|
+
const stringifier = this.stringifier;
|
|
22248
|
+
const innerIterator = this.set.keys();
|
|
22249
|
+
return new (class Iter {
|
|
22250
|
+
[Symbol.iterator]() {
|
|
22251
|
+
return this;
|
|
22252
|
+
}
|
|
22253
|
+
next() {
|
|
22254
|
+
const next = innerIterator.next();
|
|
22255
|
+
return {
|
|
22256
|
+
value: !next.done ? stringifier.parse(next.value) : undefined,
|
|
22257
|
+
done: next.done
|
|
22258
|
+
};
|
|
22259
|
+
}
|
|
22260
|
+
})();
|
|
22261
|
+
}
|
|
22262
|
+
values() {
|
|
22263
|
+
const stringifier = this.stringifier;
|
|
22264
|
+
const innerIterator = this.set.values();
|
|
22265
|
+
return new (class Iter {
|
|
22266
|
+
[Symbol.iterator]() {
|
|
22267
|
+
return this;
|
|
22268
|
+
}
|
|
22269
|
+
next() {
|
|
22270
|
+
const next = innerIterator.next();
|
|
22271
|
+
return {
|
|
22272
|
+
value: !next.done ? stringifier.parse(next.value) : undefined,
|
|
22273
|
+
done: next.done
|
|
22274
|
+
};
|
|
22275
|
+
}
|
|
22276
|
+
})();
|
|
22277
|
+
}
|
|
22278
|
+
}
|
|
23160
22279
|
|
|
23161
22280
|
const IDeclarationConfigProperties = strictKeysOf()([
|
|
23162
22281
|
"columns",
|
|
@@ -23199,11 +22318,20 @@ class Declaration {
|
|
|
23199
22318
|
}
|
|
23200
22319
|
}
|
|
23201
22320
|
|
|
22321
|
+
const targetStringifier = JSONObjectStringifier.create();
|
|
22322
|
+
function targetAsReadableString(target) {
|
|
22323
|
+
const nameParts = [target.name, target.schema];
|
|
22324
|
+
if (!!target.database) {
|
|
22325
|
+
nameParts.push(target.database);
|
|
22326
|
+
}
|
|
22327
|
+
return nameParts.reverse().join(".");
|
|
22328
|
+
}
|
|
22329
|
+
|
|
23202
22330
|
const ITestConfigProperties = strictKeysOf()(["type", "dataset", "name"]);
|
|
23203
22331
|
class Test {
|
|
23204
22332
|
constructor() {
|
|
23205
22333
|
this.proto = dataform.Test.create();
|
|
23206
|
-
this.contextableInputs = new StringifiedMap(
|
|
22334
|
+
this.contextableInputs = new StringifiedMap(targetStringifier);
|
|
23207
22335
|
}
|
|
23208
22336
|
config(config) {
|
|
23209
22337
|
checkExcessProperties((e) => this.session.compileError(e), config, ITestConfigProperties, "test config");
|
|
@@ -23330,7 +22458,7 @@ class RefReplacingContext {
|
|
|
23330
22458
|
}
|
|
23331
22459
|
}
|
|
23332
22460
|
|
|
23333
|
-
const version = "1.
|
|
22461
|
+
const version = "1.20.1";
|
|
23334
22462
|
|
|
23335
22463
|
const SQL_DATA_WAREHOUSE_DIST_HASH_REGEXP = new RegExp("HASH\\s*\\(\\s*\\w*\\s*\\)\\s*");
|
|
23336
22464
|
const DEFAULT_CONFIG = {
|
|
@@ -23519,11 +22647,12 @@ class Session {
|
|
|
23519
22647
|
this.tests[name] = newTest;
|
|
23520
22648
|
return newTest;
|
|
23521
22649
|
}
|
|
23522
|
-
compileError(err, path,
|
|
22650
|
+
compileError(err, path, actionTarget) {
|
|
23523
22651
|
const fileName = path || getCallerFile(this.rootDir) || __filename;
|
|
23524
22652
|
const compileError = dataform.CompilationError.create({
|
|
23525
22653
|
fileName,
|
|
23526
|
-
actionName
|
|
22654
|
+
actionName: !!actionTarget ? targetAsReadableString(actionTarget) : undefined,
|
|
22655
|
+
actionTarget
|
|
23527
22656
|
});
|
|
23528
22657
|
if (typeof err === "string") {
|
|
23529
22658
|
compileError.message = err;
|
|
@@ -23537,11 +22666,11 @@ class Session {
|
|
|
23537
22666
|
compile() {
|
|
23538
22667
|
const compiledGraph = dataform.CompiledGraph.create({
|
|
23539
22668
|
projectConfig: this.config,
|
|
23540
|
-
tables: this.compileGraphChunk(this.actions.filter(action => action instanceof Table)),
|
|
23541
|
-
operations: this.compileGraphChunk(this.actions.filter(action => action instanceof Operation)),
|
|
23542
|
-
assertions: this.compileGraphChunk(this.actions.filter(action => action instanceof Assertion)),
|
|
23543
|
-
declarations: this.compileGraphChunk(this.actions.filter(action => action instanceof Declaration)),
|
|
23544
|
-
tests: this.compileGraphChunk(Object.values(this.tests)),
|
|
22669
|
+
tables: this.compileGraphChunk(this.actions.filter(action => action instanceof Table), dataform.Table.verify),
|
|
22670
|
+
operations: this.compileGraphChunk(this.actions.filter(action => action instanceof Operation), dataform.Operation.verify),
|
|
22671
|
+
assertions: this.compileGraphChunk(this.actions.filter(action => action instanceof Assertion), dataform.Assertion.verify),
|
|
22672
|
+
declarations: this.compileGraphChunk(this.actions.filter(action => action instanceof Declaration), dataform.Declaration.verify),
|
|
22673
|
+
tests: this.compileGraphChunk(Object.values(this.tests), dataform.Test.verify),
|
|
23545
22674
|
graphErrors: this.graphErrors,
|
|
23546
22675
|
dataformCoreVersion: version,
|
|
23547
22676
|
targets: this.actions.map(action => action.proto.target)
|
|
@@ -23557,10 +22686,11 @@ class Session {
|
|
|
23557
22686
|
if (this.config.useRunCache) {
|
|
23558
22687
|
this.checkRunCachingCorrectness([].concat(compiledGraph.tables, compiledGraph.assertions, compiledGraph.operations.filter(operation => operation.hasOutput)));
|
|
23559
22688
|
}
|
|
22689
|
+
throwIfInvalid(compiledGraph, dataform.CompiledGraph.verify);
|
|
23560
22690
|
return compiledGraph;
|
|
23561
22691
|
}
|
|
23562
22692
|
compileToBase64() {
|
|
23563
|
-
return
|
|
22693
|
+
return encode64(dataform.CompiledGraph, this.compile());
|
|
23564
22694
|
}
|
|
23565
22695
|
findActions(target) {
|
|
23566
22696
|
const adapter = this.adapter();
|
|
@@ -23585,15 +22715,16 @@ class Session {
|
|
|
23585
22715
|
getTablePrefixWithUnderscore() {
|
|
23586
22716
|
return !!this.config.tablePrefix ? `${this.config.tablePrefix}_` : "";
|
|
23587
22717
|
}
|
|
23588
|
-
compileGraphChunk(actions) {
|
|
22718
|
+
compileGraphChunk(actions, verify) {
|
|
23589
22719
|
const compiledChunks = [];
|
|
23590
22720
|
actions.forEach(action => {
|
|
23591
22721
|
try {
|
|
23592
22722
|
const compiledChunk = action.compile();
|
|
22723
|
+
throwIfInvalid(compiledChunk, verify);
|
|
23593
22724
|
compiledChunks.push(compiledChunk);
|
|
23594
22725
|
}
|
|
23595
22726
|
catch (e) {
|
|
23596
|
-
this.compileError(e, action.proto.fileName, action.proto.
|
|
22727
|
+
this.compileError(e, action.proto.fileName, action.proto.target);
|
|
23597
22728
|
}
|
|
23598
22729
|
});
|
|
23599
22730
|
return compiledChunks;
|
|
@@ -23604,7 +22735,7 @@ class Session {
|
|
|
23604
22735
|
for (const dependency of action.dependencyTargets) {
|
|
23605
22736
|
const possibleDeps = this.findActions(dependency);
|
|
23606
22737
|
if (possibleDeps.length === 0) {
|
|
23607
|
-
this.compileError(new Error(`Missing dependency detected: Action "${action.
|
|
22738
|
+
this.compileError(new Error(`Missing dependency detected: Action "${targetAsReadableString(action.target)}" depends on "${stringifyResolvable(dependency)}" which does not exist`), action.fileName, action.target);
|
|
23608
22739
|
}
|
|
23609
22740
|
else if (possibleDeps.length === 1) {
|
|
23610
22741
|
const protoDep = possibleDeps[0].proto;
|
|
@@ -23612,14 +22743,13 @@ class Session {
|
|
|
23612
22743
|
protoDep.dependencyTargets.forEach(inlineDep => action.dependencyTargets.push(inlineDep));
|
|
23613
22744
|
}
|
|
23614
22745
|
else {
|
|
23615
|
-
fullyQualifiedDependencies[protoDep.
|
|
22746
|
+
fullyQualifiedDependencies[targetAsReadableString(protoDep.target)] = protoDep.target;
|
|
23616
22747
|
}
|
|
23617
22748
|
}
|
|
23618
22749
|
else {
|
|
23619
|
-
this.compileError(new Error(ambiguousActionNameMsg(dependency, possibleDeps)), action.fileName, action.
|
|
22750
|
+
this.compileError(new Error(ambiguousActionNameMsg(dependency, possibleDeps)), action.fileName, action.target);
|
|
23620
22751
|
}
|
|
23621
22752
|
}
|
|
23622
|
-
action.dependencies = Object.keys(fullyQualifiedDependencies);
|
|
23623
22753
|
action.dependencyTargets = Object.values(fullyQualifiedDependencies);
|
|
23624
22754
|
});
|
|
23625
22755
|
}
|
|
@@ -23628,69 +22758,74 @@ class Session {
|
|
|
23628
22758
|
if (!tablePrefix && !schemaSuffix && !databaseSuffix) {
|
|
23629
22759
|
return;
|
|
23630
22760
|
}
|
|
23631
|
-
const newTargetByOriginalTarget = new StringifiedMap(
|
|
22761
|
+
const newTargetByOriginalTarget = new StringifiedMap(targetStringifier);
|
|
23632
22762
|
declarationTargets.forEach(declarationTarget => newTargetByOriginalTarget.set(declarationTarget, declarationTarget));
|
|
23633
22763
|
actions.forEach(action => {
|
|
23634
22764
|
newTargetByOriginalTarget.set(action.target, Object.assign(Object.assign({}, action.target), { database: action.target.database &&
|
|
23635
22765
|
this.adapter().normalizeIdentifier(`${action.target.database}${this.getDatabaseSuffixWithUnderscore()}`), schema: this.adapter().normalizeIdentifier(`${action.target.schema}${this.getSchemaSuffixWithUnderscore()}`), name: this.adapter().normalizeIdentifier(`${this.getTablePrefixWithUnderscore()}${action.target.name}`) }));
|
|
23636
22766
|
action.target = newTargetByOriginalTarget.get(action.target);
|
|
23637
|
-
action.name = targetToName(action.target);
|
|
23638
22767
|
});
|
|
22768
|
+
const getUpdatedTarget = (originalTarget) => {
|
|
22769
|
+
if (!newTargetByOriginalTarget.has(originalTarget)) {
|
|
22770
|
+
return originalTarget;
|
|
22771
|
+
}
|
|
22772
|
+
return newTargetByOriginalTarget.get(originalTarget);
|
|
22773
|
+
};
|
|
23639
22774
|
actions.forEach(action => {
|
|
23640
|
-
action.dependencyTargets = (action.dependencyTargets || []).map(
|
|
23641
|
-
action.dependencies = (action.dependencyTargets || []).map(dependencyTarget => targetToName(dependencyTarget));
|
|
22775
|
+
action.dependencyTargets = (action.dependencyTargets || []).map(getUpdatedTarget);
|
|
23642
22776
|
if (!!action.parentAction) {
|
|
23643
|
-
action.parentAction =
|
|
22777
|
+
action.parentAction = getUpdatedTarget(action.parentAction);
|
|
23644
22778
|
}
|
|
23645
22779
|
});
|
|
23646
22780
|
}
|
|
23647
22781
|
checkActionNameUniqueness(actions) {
|
|
23648
22782
|
const allNames = [];
|
|
23649
22783
|
actions.forEach(action => {
|
|
23650
|
-
|
|
23651
|
-
|
|
22784
|
+
const name = targetAsReadableString(action.target);
|
|
22785
|
+
if (allNames.includes(name)) {
|
|
22786
|
+
this.compileError(new Error(`Duplicate action name detected. Names within a schema must be unique across tables, declarations, assertions, and operations`), action.fileName, action.target);
|
|
23652
22787
|
}
|
|
23653
|
-
allNames.push(
|
|
22788
|
+
allNames.push(name);
|
|
23654
22789
|
});
|
|
23655
22790
|
}
|
|
23656
22791
|
checkCanonicalTargetUniqueness(actions) {
|
|
23657
|
-
const allCanonicalTargets = new
|
|
22792
|
+
const allCanonicalTargets = new StringifiedSet(targetStringifier);
|
|
23658
22793
|
actions.forEach(action => {
|
|
23659
22794
|
if (allCanonicalTargets.has(action.canonicalTarget)) {
|
|
23660
|
-
this.compileError(new Error(`Duplicate canonical target detected. Canonical targets must be unique across tables, declarations, assertions, and operations:\n"${JSON.stringify(action.canonicalTarget)}"`), action.fileName, action.
|
|
22795
|
+
this.compileError(new Error(`Duplicate canonical target detected. Canonical targets must be unique across tables, declarations, assertions, and operations:\n"${JSON.stringify(action.canonicalTarget)}"`), action.fileName, action.target);
|
|
23661
22796
|
}
|
|
23662
|
-
allCanonicalTargets.
|
|
22797
|
+
allCanonicalTargets.add(action.canonicalTarget);
|
|
23663
22798
|
});
|
|
23664
22799
|
}
|
|
23665
22800
|
checkTableConfigValidity(tables) {
|
|
23666
22801
|
tables.forEach(table => {
|
|
23667
22802
|
var _a, _b;
|
|
23668
22803
|
if (!!table.type && !TableType.includes(table.type)) {
|
|
23669
|
-
this.compileError(`Wrong type of table detected. Should only use predefined types: ${joinQuoted(TableType)}`, table.fileName, table.
|
|
22804
|
+
this.compileError(`Wrong type of table detected. Should only use predefined types: ${joinQuoted(TableType)}`, table.fileName, table.target);
|
|
23670
22805
|
}
|
|
23671
22806
|
if (!!table.snowflake) {
|
|
23672
22807
|
if (table.snowflake.secure && table.type !== "view") {
|
|
23673
|
-
this.compileError(new Error(`The 'secure' option is only valid for Snowflake views`), table.fileName, table.
|
|
22808
|
+
this.compileError(new Error(`The 'secure' option is only valid for Snowflake views`), table.fileName, table.target);
|
|
23674
22809
|
}
|
|
23675
22810
|
if (table.snowflake.transient && table.type !== "table") {
|
|
23676
|
-
this.compileError(new Error(`The 'transient' option is only valid for Snowflake tables`), table.fileName, table.
|
|
22811
|
+
this.compileError(new Error(`The 'transient' option is only valid for Snowflake tables`), table.fileName, table.target);
|
|
23677
22812
|
}
|
|
23678
22813
|
if (((_a = table.snowflake.clusterBy) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
23679
22814
|
table.type !== "table" &&
|
|
23680
22815
|
table.type !== "incremental") {
|
|
23681
|
-
this.compileError(new Error(`The 'clusterBy' option is only valid for Snowflake tables`), table.fileName, table.
|
|
22816
|
+
this.compileError(new Error(`The 'clusterBy' option is only valid for Snowflake tables`), table.fileName, table.target);
|
|
23682
22817
|
}
|
|
23683
22818
|
}
|
|
23684
22819
|
if (!!table.sqlDataWarehouse) {
|
|
23685
22820
|
if (!!table.uniqueKey && table.uniqueKey.length > 0) {
|
|
23686
|
-
this.compileError(new Error(`Merging using unique keys for SQLDataWarehouse has not yet been implemented`), table.fileName, table.
|
|
22821
|
+
this.compileError(new Error(`Merging using unique keys for SQLDataWarehouse has not yet been implemented`), table.fileName, table.target);
|
|
23687
22822
|
}
|
|
23688
22823
|
if (table.sqlDataWarehouse.distribution) {
|
|
23689
22824
|
const distribution = table.sqlDataWarehouse.distribution.toUpperCase();
|
|
23690
22825
|
if (distribution !== "REPLICATE" &&
|
|
23691
22826
|
distribution !== "ROUND_ROBIN" &&
|
|
23692
22827
|
!SQL_DATA_WAREHOUSE_DIST_HASH_REGEXP.test(distribution)) {
|
|
23693
|
-
this.compileError(new Error(`Invalid value for sqldatawarehouse distribution: ${distribution}`), table.fileName, table.
|
|
22828
|
+
this.compileError(new Error(`Invalid value for sqldatawarehouse distribution: ${distribution}`), table.fileName, table.target);
|
|
23694
22829
|
}
|
|
23695
22830
|
}
|
|
23696
22831
|
}
|
|
@@ -23698,18 +22833,18 @@ class Session {
|
|
|
23698
22833
|
const validatePropertyDefined = (opts, prop) => {
|
|
23699
22834
|
const value = opts[prop];
|
|
23700
22835
|
if (!opts.hasOwnProperty(prop)) {
|
|
23701
|
-
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.
|
|
22836
|
+
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.target);
|
|
23702
22837
|
}
|
|
23703
22838
|
else if (value instanceof Array) {
|
|
23704
22839
|
if (value.length === 0) {
|
|
23705
|
-
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.
|
|
22840
|
+
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.target);
|
|
23706
22841
|
}
|
|
23707
22842
|
}
|
|
23708
22843
|
};
|
|
23709
22844
|
const validatePropertiesDefined = (opts, props) => props.forEach(prop => validatePropertyDefined(opts, prop));
|
|
23710
22845
|
const validatePropertyValueInValues = (opts, prop, values) => {
|
|
23711
22846
|
if (!!opts[prop] && !values.includes(opts[prop])) {
|
|
23712
|
-
this.compileError(`Wrong value of "${prop}" property. Should only use predefined values: ${joinQuoted(values)}`, table.fileName, table.
|
|
22847
|
+
this.compileError(`Wrong value of "${prop}" property. Should only use predefined values: ${joinQuoted(values)}`, table.fileName, table.target);
|
|
23713
22848
|
}
|
|
23714
22849
|
};
|
|
23715
22850
|
if (table.redshift.distStyle || table.redshift.distKey) {
|
|
@@ -23725,13 +22860,13 @@ class Session {
|
|
|
23725
22860
|
if (!!table.bigquery) {
|
|
23726
22861
|
if ((table.bigquery.partitionBy || ((_b = table.bigquery.clusterBy) === null || _b === void 0 ? void 0 : _b.length)) &&
|
|
23727
22862
|
table.type === "view") {
|
|
23728
|
-
this.compileError(`partitionBy/clusterBy are not valid for BigQuery views; they are only valid for tables`, table.fileName, table.
|
|
22863
|
+
this.compileError(`partitionBy/clusterBy are not valid for BigQuery views; they are only valid for tables`, table.fileName, table.target);
|
|
23729
22864
|
}
|
|
23730
22865
|
}
|
|
23731
22866
|
if (!!Table.IGNORED_PROPS[table.type]) {
|
|
23732
22867
|
Table.IGNORED_PROPS[table.type].forEach(ignoredProp => {
|
|
23733
22868
|
if (objectExistsOrIsNonEmpty(table[ignoredProp])) {
|
|
23734
|
-
this.compileError(`Unused property was detected: "${ignoredProp}". This property is not used for tables with type "${table.type}" and will be ignored`, table.fileName, table.
|
|
22869
|
+
this.compileError(`Unused property was detected: "${ignoredProp}". This property is not used for tables with type "${table.type}" and will be ignored`, table.fileName, table.target);
|
|
23735
22870
|
}
|
|
23736
22871
|
});
|
|
23737
22872
|
}
|
|
@@ -23741,48 +22876,43 @@ class Session {
|
|
|
23741
22876
|
const allNames = [];
|
|
23742
22877
|
tests.forEach(testProto => {
|
|
23743
22878
|
if (allNames.includes(testProto.name)) {
|
|
23744
|
-
this.compileError(new Error(`Duplicate test name detected: "${testProto.name}"`), testProto.fileName
|
|
22879
|
+
this.compileError(new Error(`Duplicate test name detected: "${testProto.name}"`), testProto.fileName);
|
|
23745
22880
|
}
|
|
23746
22881
|
allNames.push(testProto.name);
|
|
23747
22882
|
});
|
|
23748
22883
|
}
|
|
23749
22884
|
checkCircularity(actions) {
|
|
23750
|
-
const
|
|
22885
|
+
const allActionsByStringifiedTarget = new Map(actions.map(action => [targetStringifier.stringify(action.target), action]));
|
|
23751
22886
|
const tarjanGraph = new TarjanGraphConstructor();
|
|
23752
22887
|
actions.forEach(action => {
|
|
23753
|
-
const cleanedDependencies = (action.
|
|
23754
|
-
tarjanGraph.add(action.
|
|
22888
|
+
const cleanedDependencies = (action.dependencyTargets || []).filter(dependency => !!allActionsByStringifiedTarget.get(targetStringifier.stringify(dependency)));
|
|
22889
|
+
tarjanGraph.add(targetStringifier.stringify(action.target), cleanedDependencies.map(target => targetStringifier.stringify(target)));
|
|
23755
22890
|
});
|
|
23756
22891
|
const cycles = tarjanGraph.getCycles();
|
|
23757
22892
|
cycles.forEach(cycle => {
|
|
23758
|
-
const firstActionInCycle =
|
|
22893
|
+
const firstActionInCycle = allActionsByStringifiedTarget.get(cycle[0].name);
|
|
23759
22894
|
const message = `Circular dependency detected in chain: [${cycle
|
|
23760
22895
|
.map(vertex => vertex.name)
|
|
23761
|
-
.join(" > ")} > ${firstActionInCycle.
|
|
23762
|
-
this.compileError(new Error(message), firstActionInCycle.fileName);
|
|
22896
|
+
.join(" > ")} > ${targetAsReadableString(firstActionInCycle.target)}]`;
|
|
22897
|
+
this.compileError(new Error(message), firstActionInCycle.fileName, firstActionInCycle.target);
|
|
23763
22898
|
});
|
|
23764
22899
|
}
|
|
23765
22900
|
checkRunCachingCorrectness(actionsWithOutput) {
|
|
23766
22901
|
actionsWithOutput.forEach(action => {
|
|
23767
22902
|
var _a;
|
|
23768
|
-
if (((_a = action.
|
|
22903
|
+
if (((_a = action.dependencyTargets) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
23769
22904
|
return;
|
|
23770
22905
|
}
|
|
23771
22906
|
if ([dataform.ActionHermeticity.HERMETIC, dataform.ActionHermeticity.NON_HERMETIC].includes(action.hermeticity)) {
|
|
23772
22907
|
return;
|
|
23773
22908
|
}
|
|
23774
|
-
this.compileError(new Error("Zero-dependency actions which create datasets are required to explicitly declare 'hermetic: (true|false)' when run caching is turned on."), action.fileName, action.
|
|
22909
|
+
this.compileError(new Error("Zero-dependency actions which create datasets are required to explicitly declare 'hermetic: (true|false)' when run caching is turned on."), action.fileName, action.target);
|
|
23775
22910
|
});
|
|
23776
22911
|
}
|
|
23777
22912
|
}
|
|
23778
22913
|
function definesDataset(type) {
|
|
23779
22914
|
return type === "view" || type === "table" || type === "inline" || type === "incremental";
|
|
23780
22915
|
}
|
|
23781
|
-
function keyByName(actions) {
|
|
23782
|
-
const actionsByName = {};
|
|
23783
|
-
actions.forEach(action => (actionsByName[action.name] = action));
|
|
23784
|
-
return actionsByName;
|
|
23785
|
-
}
|
|
23786
22916
|
function getCanonicalProjectConfig(originalProjectConfig) {
|
|
23787
22917
|
return {
|
|
23788
22918
|
warehouse: originalProjectConfig.warehouse,
|
|
@@ -23803,11 +22933,57 @@ function objectExistsOrIsNonEmpty(prop) {
|
|
|
23803
22933
|
typeof prop !== "object");
|
|
23804
22934
|
}
|
|
23805
22935
|
|
|
22936
|
+
function main(encodedCoreExecutionRequest) {
|
|
22937
|
+
var _a;
|
|
22938
|
+
const globalAny = global;
|
|
22939
|
+
const request = decode64(dataform.CoreExecutionRequest, encodedCoreExecutionRequest);
|
|
22940
|
+
const compileRequest = request.compile;
|
|
22941
|
+
const originalProjectConfig = require("dataform.json");
|
|
22942
|
+
const projectConfigOverride = (_a = compileRequest.compileConfig.projectConfigOverride) !== null && _a !== void 0 ? _a : {};
|
|
22943
|
+
if (!originalProjectConfig.defaultDatabase) {
|
|
22944
|
+
originalProjectConfig.defaultDatabase = originalProjectConfig.gcloudProjectId;
|
|
22945
|
+
}
|
|
22946
|
+
delete originalProjectConfig.gcloudProjectId;
|
|
22947
|
+
let projectConfig = Object.assign({}, originalProjectConfig);
|
|
22948
|
+
projectConfig = Object.assign(Object.assign(Object.assign({}, projectConfig), projectConfigOverride), { vars: Object.assign(Object.assign({}, projectConfig.vars), projectConfigOverride.vars) });
|
|
22949
|
+
const session = require("@dataform/core").session;
|
|
22950
|
+
session.init(compileRequest.compileConfig.projectDir, projectConfig, originalProjectConfig);
|
|
22951
|
+
globalAny.dataform = session;
|
|
22952
|
+
compileRequest.compileConfig.filePaths
|
|
22953
|
+
.filter(path => path.startsWith("includes/"))
|
|
22954
|
+
.filter(path => path.endsWith(".js"))
|
|
22955
|
+
.forEach(includePath => {
|
|
22956
|
+
try {
|
|
22957
|
+
globalAny[baseFilename(includePath)] = require(includePath);
|
|
22958
|
+
}
|
|
22959
|
+
catch (e) {
|
|
22960
|
+
session.compileError(e, includePath);
|
|
22961
|
+
}
|
|
22962
|
+
});
|
|
22963
|
+
globalAny.publish = session.publish.bind(session);
|
|
22964
|
+
globalAny.operate = session.operate.bind(session);
|
|
22965
|
+
globalAny.assert = session.assert.bind(session);
|
|
22966
|
+
globalAny.declare = session.declare.bind(session);
|
|
22967
|
+
globalAny.test = session.test.bind(session);
|
|
22968
|
+
compileRequest.compileConfig.filePaths
|
|
22969
|
+
.filter(path => path.startsWith("definitions/"))
|
|
22970
|
+
.filter(path => path.endsWith(".js") || path.endsWith(".sqlx"))
|
|
22971
|
+
.forEach(definitionPath => {
|
|
22972
|
+
try {
|
|
22973
|
+
require(definitionPath);
|
|
22974
|
+
}
|
|
22975
|
+
catch (e) {
|
|
22976
|
+
session.compileError(e, definitionPath);
|
|
22977
|
+
}
|
|
22978
|
+
});
|
|
22979
|
+
return encode64(dataform.CoreExecutionResponse, dataform.CoreExecutionResponse.create({ compile: { compiledGraph: session.compile() } }));
|
|
22980
|
+
}
|
|
22981
|
+
|
|
23806
22982
|
const indexFileGenerator = genIndex;
|
|
23807
22983
|
const compiler = compile;
|
|
23808
22984
|
function globalSession() {
|
|
23809
22985
|
if (!global._DF_SESSION) {
|
|
23810
|
-
global._DF_SESSION = new Session(
|
|
22986
|
+
global._DF_SESSION = new Session();
|
|
23811
22987
|
}
|
|
23812
22988
|
return global._DF_SESSION;
|
|
23813
22989
|
}
|
|
@@ -23818,4 +22994,5 @@ exports.adapters = index;
|
|
|
23818
22994
|
exports.compileStandaloneSqlxQuery = compileStandaloneSqlxQuery$1;
|
|
23819
22995
|
exports.compiler = compiler;
|
|
23820
22996
|
exports.indexFileGenerator = indexFileGenerator;
|
|
22997
|
+
exports.main = main;
|
|
23821
22998
|
exports.session = session;
|