@wix/metro-common-builders 1.0.1485 → 1.0.1486

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.
@@ -10,7 +10,7 @@ $root.__options = {
10
10
  'stringLongs': true,
11
11
  'stdCase': false,
12
12
  'generatorVersion': '2.0.1156',
13
- 'contentHash': '842a5be13eb21c2803986e7b6597e7ef1927a209'
13
+ 'contentHash': '9dbc4302cfc6ddb6994ad3ffa324a26f48ce244e'
14
14
  };
15
15
  $root.__lookup = function (pbjs) {
16
16
  const root = pbjs.Root.fromJSON({
@@ -3869,6 +3869,38 @@ $root.__lookup = function (pbjs) {
3869
3869
  'id': 16,
3870
3870
  'comment': null,
3871
3871
  'parsedOptions': null
3872
+ },
3873
+ 'persistence': {
3874
+ 'type': 'Persistence',
3875
+ 'id': 17,
3876
+ 'comment': null,
3877
+ 'parsedOptions': null
3878
+ }
3879
+ },
3880
+ 'comment': null
3881
+ },
3882
+ 'Persistence': {
3883
+ 'fields': {
3884
+ 'type': {
3885
+ 'type': 'Type',
3886
+ 'id': 1,
3887
+ 'comment': null,
3888
+ 'parsedOptions': null
3889
+ }
3890
+ },
3891
+ 'nested': {
3892
+ 'Type': {
3893
+ 'values': {
3894
+ 'STANDARD': 0,
3895
+ 'SINGLETON': 1,
3896
+ 'NONE': 2
3897
+ },
3898
+ 'comment': null,
3899
+ 'comments': {
3900
+ 'STANDARD': null,
3901
+ 'SINGLETON': null,
3902
+ 'NONE': null
3903
+ }
3872
3904
  }
3873
3905
  },
3874
3906
  'comment': null
@@ -4324,7 +4356,8 @@ $root.__lookup = function (pbjs) {
4324
4356
  'removeFromTrashbinOptions',
4325
4357
  'countOptions',
4326
4358
  'searchRelatedOptions',
4327
- 'updateExtendedFieldsOptions'
4359
+ 'updateExtendedFieldsOptions',
4360
+ 'customActionOptions'
4328
4361
  ],
4329
4362
  'comment': null
4330
4363
  }
@@ -4462,6 +4495,12 @@ $root.__lookup = function (pbjs) {
4462
4495
  'id': 23,
4463
4496
  'comment': null,
4464
4497
  'parsedOptions': null
4498
+ },
4499
+ 'customActionOptions': {
4500
+ 'type': 'CustomActionOptions',
4501
+ 'id': 24,
4502
+ 'comment': null,
4503
+ 'parsedOptions': null
4465
4504
  }
4466
4505
  },
4467
4506
  'nested': {
@@ -4490,7 +4529,8 @@ $root.__lookup = function (pbjs) {
4490
4529
  'SEARCH_RELATED': 20,
4491
4530
  'UPDATE_EXTENDED_FIELDS': 21,
4492
4531
  'BULK_UPDATE_TAGS': 22,
4493
- 'BULK_UPDATE_TAGS_BY_FILTER': 23
4532
+ 'BULK_UPDATE_TAGS_BY_FILTER': 23,
4533
+ 'CUSTOM_ACTION': 24
4494
4534
  },
4495
4535
  'comment': null,
4496
4536
  'comments': {
@@ -4517,7 +4557,8 @@ $root.__lookup = function (pbjs) {
4517
4557
  'SEARCH_RELATED': null,
4518
4558
  'UPDATE_EXTENDED_FIELDS': null,
4519
4559
  'BULK_UPDATE_TAGS': null,
4520
- 'BULK_UPDATE_TAGS_BY_FILTER': null
4560
+ 'BULK_UPDATE_TAGS_BY_FILTER': null,
4561
+ 'CUSTOM_ACTION': null
4521
4562
  }
4522
4563
  }
4523
4564
  },
@@ -4555,6 +4596,17 @@ $root.__lookup = function (pbjs) {
4555
4596
  },
4556
4597
  'comment': null
4557
4598
  },
4599
+ 'CustomActionOptions': {
4600
+ 'fields': {
4601
+ 'readOperation': {
4602
+ 'type': 'bool',
4603
+ 'id': 1,
4604
+ 'comment': null,
4605
+ 'parsedOptions': null
4606
+ }
4607
+ },
4608
+ 'comment': null
4609
+ },
4558
4610
  'CreateMethodOptions': {
4559
4611
  'fields': {
4560
4612
  'itemField': {
@@ -5714,6 +5766,13 @@ $root.__lookup = function (pbjs) {
5714
5766
  'comment': null,
5715
5767
  'parsedOptions': null
5716
5768
  },
5769
+ 'writeOnly': {
5770
+ 'type': 'bool',
5771
+ 'id': 50154,
5772
+ 'extend': 'google.protobuf.FieldOptions',
5773
+ 'comment': null,
5774
+ 'parsedOptions': null
5775
+ },
5717
5776
  'decimalValue': {
5718
5777
  'type': 'DecimalValueOptions',
5719
5778
  'id': 50211,
@@ -5825,7 +5884,8 @@ $root.__lookup = function (pbjs) {
5825
5884
  'LOCAL_TIME': 17,
5826
5885
  'LOCAL_DATE_TIME': 18,
5827
5886
  'URL_SLUG': 19,
5828
- 'SYSTEM_SLUG': 20
5887
+ 'SYSTEM_SLUG': 20,
5888
+ 'SECURE_WEB_URL': 21
5829
5889
  },
5830
5890
  'comment': null,
5831
5891
  'comments': {
@@ -5848,7 +5908,8 @@ $root.__lookup = function (pbjs) {
5848
5908
  'LOCAL_TIME': null,
5849
5909
  'LOCAL_DATE_TIME': null,
5850
5910
  'URL_SLUG': null,
5851
- 'SYSTEM_SLUG': null
5911
+ 'SYSTEM_SLUG': null,
5912
+ 'SECURE_WEB_URL': null
5852
5913
  }
5853
5914
  },
5854
5915
  'error': {
@@ -25052,6 +25113,7 @@ $root.wix = (function () {
25052
25113
  this.queryOptions = props && props.queryOptions;
25053
25114
  this.eventsExposure = props && props.eventsExposure;
25054
25115
  this.eventsMaturity = props && props.eventsMaturity;
25116
+ this.persistence = props && props.persistence;
25055
25117
  }
25056
25118
  static toJSON(obj, helper, withDefaults) {
25057
25119
  if (obj == null) {
@@ -25142,6 +25204,11 @@ $root.wix = (function () {
25142
25204
  } else if (withDefaults) {
25143
25205
  json['eventsMaturity'] = 'ALPHA';
25144
25206
  }
25207
+ if (obj['persistence'] != null) {
25208
+ json['persistence'] = $root.wix.api.Persistence.toJSON(obj['persistence'], helper, withDefaults);
25209
+ } else if (withDefaults) {
25210
+ delete json['persistence'];
25211
+ }
25145
25212
  return json;
25146
25213
  }
25147
25214
  }
@@ -25264,6 +25331,13 @@ $root.wix = (function () {
25264
25331
  } else {
25265
25332
  delete result['eventsMaturity'];
25266
25333
  }
25334
+ if (json['persistence'] != null) {
25335
+ result['persistence'] = $root.wix.api.Persistence.fromJSON(json['persistence'], helper);
25336
+ } else if (withDefaults !== false) {
25337
+ delete result['persistence'];
25338
+ } else {
25339
+ delete result['persistence'];
25340
+ }
25267
25341
  return result;
25268
25342
  } else
25269
25343
  return json;
@@ -25325,6 +25399,9 @@ $root.wix = (function () {
25325
25399
  if (obj['eventsMaturity'] != null) {
25326
25400
  grpc['eventsMaturity'] = obj['eventsMaturity'];
25327
25401
  }
25402
+ if (obj['persistence'] != null) {
25403
+ grpc['persistence'] = $root.wix.api.Persistence.toGRPC(obj['persistence'], helper);
25404
+ }
25328
25405
  return grpc;
25329
25406
  }
25330
25407
  }
@@ -25417,6 +25494,11 @@ $root.wix = (function () {
25417
25494
  } else {
25418
25495
  result['eventsMaturity'] = 'ALPHA';
25419
25496
  }
25497
+ if (grpc['persistence'] != null) {
25498
+ result['persistence'] = $root.wix.api.Persistence.fromGRPC(grpc['persistence'], helper);
25499
+ } else {
25500
+ delete result['persistence'];
25501
+ }
25420
25502
  return result;
25421
25503
  }
25422
25504
  }
@@ -25445,6 +25527,103 @@ $root.wix = (function () {
25445
25527
  });
25446
25528
  return Entity;
25447
25529
  }());;
25530
+ _api.Persistence = (function () {
25531
+ class Persistence {
25532
+ constructor(props) {
25533
+ this.type = props && props.type;
25534
+ }
25535
+ static toJSON(obj, helper, withDefaults) {
25536
+ if (obj == null) {
25537
+ return null;
25538
+ } else {
25539
+ const json = {};
25540
+ if (obj['type'] != null) {
25541
+ json['type'] = $root.wix.api.Persistence.Type[obj['type']];
25542
+ } else if (withDefaults) {
25543
+ json['type'] = 'STANDARD';
25544
+ }
25545
+ return json;
25546
+ }
25547
+ }
25548
+ static fromJSON(json, helper, withDefaults) {
25549
+ if (typeof json === 'object' && !Array.isArray(json)) {
25550
+ const result = new $root.wix.api.Persistence();
25551
+ if (json['type'] != null) {
25552
+ result['type'] = typeof json['type'] === 'string' ? json['type'] : $root.wix.api.Persistence.Type[json['type']];
25553
+ } else if (withDefaults !== false) {
25554
+ result['type'] = 'STANDARD';
25555
+ } else {
25556
+ delete result['type'];
25557
+ }
25558
+ return result;
25559
+ } else
25560
+ return json;
25561
+ }
25562
+ static toGRPC(obj, helper) {
25563
+ if (obj == null) {
25564
+ return null;
25565
+ } else {
25566
+ const grpc = {};
25567
+ if (obj['type'] != null) {
25568
+ grpc['type'] = obj['type'];
25569
+ }
25570
+ return grpc;
25571
+ }
25572
+ }
25573
+ static fromGRPC(grpc, helper) {
25574
+ if (grpc == null) {
25575
+ return null;
25576
+ } else {
25577
+ const result = new $root.wix.api.Persistence();
25578
+ if (grpc['type'] != null) {
25579
+ result['type'] = grpc['type'];
25580
+ } else {
25581
+ result['type'] = 'STANDARD';
25582
+ }
25583
+ return result;
25584
+ }
25585
+ }
25586
+ }
25587
+ Persistence.Type = {
25588
+ 'STANDARD': 'STANDARD',
25589
+ 0: 'STANDARD',
25590
+ 'SINGLETON': 'SINGLETON',
25591
+ 1: 'SINGLETON',
25592
+ 'NONE': 'NONE',
25593
+ 2: 'NONE'
25594
+ };
25595
+ Persistence.Type = {
25596
+ 'STANDARD': 'STANDARD',
25597
+ 0: 'STANDARD',
25598
+ 'SINGLETON': 'SINGLETON',
25599
+ 1: 'SINGLETON',
25600
+ 'NONE': 'NONE',
25601
+ 2: 'NONE'
25602
+ };
25603
+ __builtIn.Object.defineProperty(Persistence.prototype, '__proto', {
25604
+ value: pbjs => {
25605
+ return $root.__lookup(pbjs)('wix.api.Persistence');
25606
+ },
25607
+ enumerable: false,
25608
+ configurable: false
25609
+ });
25610
+ __builtIn.Object.defineProperty(Persistence.prototype, '__fqn__', {
25611
+ value: 'wix.api.Persistence',
25612
+ enumerable: false,
25613
+ configurable: false
25614
+ });
25615
+ __builtIn.Object.defineProperty(Persistence.prototype, '__options__', {
25616
+ value: $root.__options,
25617
+ enumerable: false,
25618
+ configurable: false
25619
+ });
25620
+ __builtIn.Object.defineProperty(Persistence.prototype, '__root__', {
25621
+ value: $root,
25622
+ enumerable: false,
25623
+ configurable: false
25624
+ });
25625
+ return Persistence;
25626
+ }());;
25448
25627
  _api.Extensible = (function () {
25449
25628
  class Extensible {
25450
25629
  constructor(props) {
@@ -26749,6 +26928,7 @@ $root.wix = (function () {
26749
26928
  this.countOptions = props && props.countOptions;
26750
26929
  this.searchRelatedOptions = props && props.searchRelatedOptions;
26751
26930
  this.updateExtendedFieldsOptions = props && props.updateExtendedFieldsOptions;
26931
+ this.customActionOptions = props && props.customActionOptions;
26752
26932
  }
26753
26933
  static toJSON(obj, helper, withDefaults) {
26754
26934
  if (obj == null) {
@@ -26865,6 +27045,11 @@ $root.wix = (function () {
26865
27045
  } else if (withDefaults) {
26866
27046
  delete json['updateExtendedFieldsOptions'];
26867
27047
  }
27048
+ if (obj['customActionOptions'] != null) {
27049
+ json['customActionOptions'] = $root.wix.api.CustomActionOptions.toJSON(obj['customActionOptions'], helper, withDefaults);
27050
+ } else if (withDefaults) {
27051
+ delete json['customActionOptions'];
27052
+ }
26868
27053
  return json;
26869
27054
  }
26870
27055
  }
@@ -27025,6 +27210,13 @@ $root.wix = (function () {
27025
27210
  } else {
27026
27211
  delete result['updateExtendedFieldsOptions'];
27027
27212
  }
27213
+ if (json['customActionOptions'] != null) {
27214
+ result['customActionOptions'] = $root.wix.api.CustomActionOptions.fromJSON(json['customActionOptions'], helper);
27215
+ } else if (withDefaults !== false) {
27216
+ delete result['customActionOptions'];
27217
+ } else {
27218
+ delete result['customActionOptions'];
27219
+ }
27028
27220
  return result;
27029
27221
  } else
27030
27222
  return json;
@@ -27100,6 +27292,9 @@ $root.wix = (function () {
27100
27292
  if (obj['updateExtendedFieldsOptions'] != null) {
27101
27293
  grpc['updateExtendedFieldsOptions'] = $root.wix.api.UpdateExtendedFieldsOptions.toGRPC(obj['updateExtendedFieldsOptions'], helper);
27102
27294
  }
27295
+ if (obj['customActionOptions'] != null) {
27296
+ grpc['customActionOptions'] = $root.wix.api.CustomActionOptions.toGRPC(obj['customActionOptions'], helper);
27297
+ }
27103
27298
  return grpc;
27104
27299
  }
27105
27300
  }
@@ -27218,6 +27413,11 @@ $root.wix = (function () {
27218
27413
  } else {
27219
27414
  delete result['updateExtendedFieldsOptions'];
27220
27415
  }
27416
+ if (grpc['customActionOptions'] != null) {
27417
+ result['customActionOptions'] = $root.wix.api.CustomActionOptions.fromGRPC(grpc['customActionOptions'], helper);
27418
+ } else {
27419
+ delete result['customActionOptions'];
27420
+ }
27221
27421
  return result;
27222
27422
  }
27223
27423
  }
@@ -27270,7 +27470,9 @@ $root.wix = (function () {
27270
27470
  'BULK_UPDATE_TAGS': 'BULK_UPDATE_TAGS',
27271
27471
  22: 'BULK_UPDATE_TAGS',
27272
27472
  'BULK_UPDATE_TAGS_BY_FILTER': 'BULK_UPDATE_TAGS_BY_FILTER',
27273
- 23: 'BULK_UPDATE_TAGS_BY_FILTER'
27473
+ 23: 'BULK_UPDATE_TAGS_BY_FILTER',
27474
+ 'CUSTOM_ACTION': 'CUSTOM_ACTION',
27475
+ 24: 'CUSTOM_ACTION'
27274
27476
  };
27275
27477
  Crud.Method = {
27276
27478
  'UNKNOWN_METHOD': 'UNKNOWN_METHOD',
@@ -27320,7 +27522,9 @@ $root.wix = (function () {
27320
27522
  'BULK_UPDATE_TAGS': 'BULK_UPDATE_TAGS',
27321
27523
  22: 'BULK_UPDATE_TAGS',
27322
27524
  'BULK_UPDATE_TAGS_BY_FILTER': 'BULK_UPDATE_TAGS_BY_FILTER',
27323
- 23: 'BULK_UPDATE_TAGS_BY_FILTER'
27525
+ 23: 'BULK_UPDATE_TAGS_BY_FILTER',
27526
+ 'CUSTOM_ACTION': 'CUSTOM_ACTION',
27527
+ 24: 'CUSTOM_ACTION'
27324
27528
  };
27325
27529
  __builtIn.Object.defineProperty(Crud.prototype, '__proto', {
27326
27530
  value: pbjs => {
@@ -27464,6 +27668,87 @@ $root.wix = (function () {
27464
27668
  });
27465
27669
  return Paging;
27466
27670
  }());;
27671
+ _api.CustomActionOptions = (function () {
27672
+ class CustomActionOptions {
27673
+ constructor(props) {
27674
+ this.readOperation = props && props.readOperation;
27675
+ }
27676
+ static toJSON(obj, helper, withDefaults) {
27677
+ if (obj == null) {
27678
+ return null;
27679
+ } else {
27680
+ const json = {};
27681
+ if (obj['readOperation'] != null) {
27682
+ json['readOperation'] = obj['readOperation'];
27683
+ } else if (withDefaults) {
27684
+ json['readOperation'] = false;
27685
+ }
27686
+ return json;
27687
+ }
27688
+ }
27689
+ static fromJSON(json, helper, withDefaults) {
27690
+ if (typeof json === 'object' && !Array.isArray(json)) {
27691
+ const result = new $root.wix.api.CustomActionOptions();
27692
+ if (json['readOperation'] != null) {
27693
+ result['readOperation'] = json['readOperation'];
27694
+ } else if (withDefaults !== false) {
27695
+ result['readOperation'] = false;
27696
+ } else {
27697
+ delete result['readOperation'];
27698
+ }
27699
+ return result;
27700
+ } else
27701
+ return json;
27702
+ }
27703
+ static toGRPC(obj, helper) {
27704
+ if (obj == null) {
27705
+ return null;
27706
+ } else {
27707
+ const grpc = {};
27708
+ if (obj['readOperation'] != null) {
27709
+ grpc['readOperation'] = obj['readOperation'];
27710
+ }
27711
+ return grpc;
27712
+ }
27713
+ }
27714
+ static fromGRPC(grpc, helper) {
27715
+ if (grpc == null) {
27716
+ return null;
27717
+ } else {
27718
+ const result = new $root.wix.api.CustomActionOptions();
27719
+ if (grpc['readOperation'] != null) {
27720
+ result['readOperation'] = grpc['readOperation'];
27721
+ } else {
27722
+ result['readOperation'] = false;
27723
+ }
27724
+ return result;
27725
+ }
27726
+ }
27727
+ }
27728
+ __builtIn.Object.defineProperty(CustomActionOptions.prototype, '__proto', {
27729
+ value: pbjs => {
27730
+ return $root.__lookup(pbjs)('wix.api.CustomActionOptions');
27731
+ },
27732
+ enumerable: false,
27733
+ configurable: false
27734
+ });
27735
+ __builtIn.Object.defineProperty(CustomActionOptions.prototype, '__fqn__', {
27736
+ value: 'wix.api.CustomActionOptions',
27737
+ enumerable: false,
27738
+ configurable: false
27739
+ });
27740
+ __builtIn.Object.defineProperty(CustomActionOptions.prototype, '__options__', {
27741
+ value: $root.__options,
27742
+ enumerable: false,
27743
+ configurable: false
27744
+ });
27745
+ __builtIn.Object.defineProperty(CustomActionOptions.prototype, '__root__', {
27746
+ value: $root,
27747
+ enumerable: false,
27748
+ configurable: false
27749
+ });
27750
+ return CustomActionOptions;
27751
+ }());;
27467
27752
  _api.CreateMethodOptions = (function () {
27468
27753
  class CreateMethodOptions {
27469
27754
  constructor(props) {
@@ -32771,7 +33056,9 @@ $root.wix = (function () {
32771
33056
  'URL_SLUG': 'URL_SLUG',
32772
33057
  19: 'URL_SLUG',
32773
33058
  'SYSTEM_SLUG': 'SYSTEM_SLUG',
32774
- 20: 'SYSTEM_SLUG'
33059
+ 20: 'SYSTEM_SLUG',
33060
+ 'SECURE_WEB_URL': 'SECURE_WEB_URL',
33061
+ 21: 'SECURE_WEB_URL'
32775
33062
  };
32776
33063
  _api.Error = (function () {
32777
33064
  class Error {
@@ -54833,6 +55120,7 @@ $root.google = (function () {
54833
55120
  this['wix.api.format'] = props && props['wix.api.format'];
54834
55121
  this['wix.api.readOnly'] = props && props['wix.api.readOnly'];
54835
55122
  this['wix.api.immutable'] = props && props['wix.api.immutable'];
55123
+ this['wix.api.writeOnly'] = props && props['wix.api.writeOnly'];
54836
55124
  this['wix.api.decimalValue'] = props && props['wix.api.decimalValue'];
54837
55125
  this['wix.api.customValidation'] = props && props['wix.api.customValidation'];
54838
55126
  }
@@ -54973,6 +55261,11 @@ $root.google = (function () {
54973
55261
  } else if (withDefaults) {
54974
55262
  json['wix.api.immutable'] = false;
54975
55263
  }
55264
+ if (obj['wix.api.writeOnly'] != null) {
55265
+ json['wix.api.writeOnly'] = obj['wix.api.writeOnly'];
55266
+ } else if (withDefaults) {
55267
+ json['wix.api.writeOnly'] = false;
55268
+ }
54976
55269
  if (obj['wix.api.decimalValue'] != null) {
54977
55270
  json['wix.api.decimalValue'] = $root.wix.api.DecimalValueOptions.toJSON(obj['wix.api.decimalValue'], helper, withDefaults);
54978
55271
  } else if (withDefaults) {
@@ -55173,6 +55466,13 @@ $root.google = (function () {
55173
55466
  } else {
55174
55467
  delete result['wix.api.immutable'];
55175
55468
  }
55469
+ if (json['wix.api.writeOnly'] != null) {
55470
+ result['wix.api.writeOnly'] = json['wix.api.writeOnly'];
55471
+ } else if (withDefaults !== false) {
55472
+ result['wix.api.writeOnly'] = false;
55473
+ } else {
55474
+ delete result['wix.api.writeOnly'];
55475
+ }
55176
55476
  if (json['wix.api.decimalValue'] != null) {
55177
55477
  result['wix.api.decimalValue'] = $root.wix.api.DecimalValueOptions.fromJSON(json['wix.api.decimalValue'], helper);
55178
55478
  } else if (withDefaults !== false) {
@@ -55276,6 +55576,9 @@ $root.google = (function () {
55276
55576
  if (obj['wix.api.immutable'] != null) {
55277
55577
  grpc['wix.api.immutable'] = obj['wix.api.immutable'];
55278
55578
  }
55579
+ if (obj['wix.api.writeOnly'] != null) {
55580
+ grpc['wix.api.writeOnly'] = obj['wix.api.writeOnly'];
55581
+ }
55279
55582
  if (obj['wix.api.decimalValue'] != null) {
55280
55583
  grpc['wix.api.decimalValue'] = $root.wix.api.DecimalValueOptions.toGRPC(obj['wix.api.decimalValue'], helper);
55281
55584
  }
@@ -55422,6 +55725,11 @@ $root.google = (function () {
55422
55725
  } else {
55423
55726
  result['wix.api.immutable'] = false;
55424
55727
  }
55728
+ if (grpc['wix.api.writeOnly'] != null) {
55729
+ result['wix.api.writeOnly'] = grpc['wix.api.writeOnly'];
55730
+ } else {
55731
+ result['wix.api.writeOnly'] = false;
55732
+ }
55425
55733
  if (grpc['wix.api.decimalValue'] != null) {
55426
55734
  result['wix.api.decimalValue'] = $root.wix.api.DecimalValueOptions.fromGRPC(grpc['wix.api.decimalValue'], helper);
55427
55735
  } else {