@wix/metro-common-builders 1.0.1508 → 1.0.1510

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.
@@ -284,6 +284,7 @@ declare namespace $requests {
284
284
  bulkDeleteByFilter?: $requests.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
285
285
  upsert?: $requests.wix.coreservices.businessschema.v1.IUpsertMethod;
286
286
  bulkUpsert?: $requests.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
287
+ count?: $requests.wix.coreservices.businessschema.v1.ICountMethod;
287
288
  }
288
289
  export class Methods implements IMethods {
289
290
  constructor(data?: IMethods);
@@ -300,6 +301,7 @@ declare namespace $requests {
300
301
  bulkDeleteByFilter?: $requests.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
301
302
  upsert?: $requests.wix.coreservices.businessschema.v1.IUpsertMethod;
302
303
  bulkUpsert?: $requests.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
304
+ count?: $requests.wix.coreservices.businessschema.v1.ICountMethod;
303
305
  static __$$generatedFromProtobuf$$__: Symbol;
304
306
  }
305
307
  export interface IEventPayload {
@@ -708,6 +710,18 @@ declare namespace $requests {
708
710
  namespace?: string;
709
711
  static __$$generatedFromProtobuf$$__: Symbol;
710
712
  }
713
+ export interface ICountMethod {
714
+ actionName?: string;
715
+ wqlOptions?: $requests.wix.coreservices.businessschema.v1.IWqlOptions;
716
+ namespace?: string;
717
+ }
718
+ export class CountMethod implements ICountMethod {
719
+ constructor(data?: ICountMethod);
720
+ actionName?: string;
721
+ wqlOptions?: $requests.wix.coreservices.businessschema.v1.IWqlOptions;
722
+ namespace?: string;
723
+ static __$$generatedFromProtobuf$$__: Symbol;
724
+ }
711
725
  export interface IQueryMethod {
712
726
  actionName?: string;
713
727
  queryField?: string;
@@ -812,6 +826,16 @@ declare namespace $requests {
812
826
  namespace?: string;
813
827
  static __$$generatedFromProtobuf$$__: Symbol;
814
828
  }
829
+ export interface IWqlOptions {
830
+ wql?: $requests.wix.coreservices.businessschema.v1.IWql;
831
+ queryOptionsName?: string;
832
+ }
833
+ export class WqlOptions implements IWqlOptions {
834
+ constructor(data?: IWqlOptions);
835
+ wql?: $requests.wix.coreservices.businessschema.v1.IWql;
836
+ queryOptionsName?: string;
837
+ static __$$generatedFromProtobuf$$__: Symbol;
838
+ }
815
839
  export interface IWql {
816
840
  operatorFieldSupport?: $requests.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
817
841
  pattern?: $requests.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
@@ -4059,6 +4083,7 @@ declare namespace $responses {
4059
4083
  bulkDeleteByFilter?: $responses.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
4060
4084
  upsert?: $responses.wix.coreservices.businessschema.v1.IUpsertMethod;
4061
4085
  bulkUpsert?: $responses.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
4086
+ count?: $responses.wix.coreservices.businessschema.v1.ICountMethod;
4062
4087
  }
4063
4088
  export class Methods implements IMethods {
4064
4089
  constructor(data?: IMethods);
@@ -4075,6 +4100,7 @@ declare namespace $responses {
4075
4100
  bulkDeleteByFilter?: $responses.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
4076
4101
  upsert?: $responses.wix.coreservices.businessschema.v1.IUpsertMethod;
4077
4102
  bulkUpsert?: $responses.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
4103
+ count?: $responses.wix.coreservices.businessschema.v1.ICountMethod;
4078
4104
  static __$$generatedFromProtobuf$$__: Symbol;
4079
4105
  }
4080
4106
  export interface IEventPayload {
@@ -4483,6 +4509,18 @@ declare namespace $responses {
4483
4509
  namespace?: string;
4484
4510
  static __$$generatedFromProtobuf$$__: Symbol;
4485
4511
  }
4512
+ export interface ICountMethod {
4513
+ actionName: string;
4514
+ wqlOptions?: $responses.wix.coreservices.businessschema.v1.IWqlOptions;
4515
+ namespace?: string;
4516
+ }
4517
+ export class CountMethod implements ICountMethod {
4518
+ constructor(data?: ICountMethod);
4519
+ actionName: string;
4520
+ wqlOptions?: $responses.wix.coreservices.businessschema.v1.IWqlOptions;
4521
+ namespace?: string;
4522
+ static __$$generatedFromProtobuf$$__: Symbol;
4523
+ }
4486
4524
  export interface IQueryMethod {
4487
4525
  actionName: string;
4488
4526
  queryField: string;
@@ -4587,6 +4625,16 @@ declare namespace $responses {
4587
4625
  namespace?: string;
4588
4626
  static __$$generatedFromProtobuf$$__: Symbol;
4589
4627
  }
4628
+ export interface IWqlOptions {
4629
+ wql?: $responses.wix.coreservices.businessschema.v1.IWql;
4630
+ queryOptionsName?: string;
4631
+ }
4632
+ export class WqlOptions implements IWqlOptions {
4633
+ constructor(data?: IWqlOptions);
4634
+ wql?: $responses.wix.coreservices.businessschema.v1.IWql;
4635
+ queryOptionsName?: string;
4636
+ static __$$generatedFromProtobuf$$__: Symbol;
4637
+ }
4590
4638
  export interface IWql {
4591
4639
  operatorFieldSupport: $responses.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
4592
4640
  pattern: $responses.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
@@ -284,6 +284,7 @@ declare namespace $wrapper {
284
284
  bulkDeleteByFilter?: ($wrapper.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod | null);
285
285
  upsert?: ($wrapper.wix.coreservices.businessschema.v1.IUpsertMethod | null);
286
286
  bulkUpsert?: ($wrapper.wix.coreservices.businessschema.v1.IBulkUpsertMethod | null);
287
+ count?: ($wrapper.wix.coreservices.businessschema.v1.ICountMethod | null);
287
288
  }
288
289
  export class Methods implements IMethods {
289
290
  constructor(data?: IMethods);
@@ -300,6 +301,7 @@ declare namespace $wrapper {
300
301
  bulkDeleteByFilter?: ($wrapper.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod | null);
301
302
  upsert?: ($wrapper.wix.coreservices.businessschema.v1.IUpsertMethod | null);
302
303
  bulkUpsert?: ($wrapper.wix.coreservices.businessschema.v1.IBulkUpsertMethod | null);
304
+ count?: ($wrapper.wix.coreservices.businessschema.v1.ICountMethod | null);
303
305
  static __$$generatedFromProtobuf$$__: Symbol;
304
306
  }
305
307
  export interface IEventPayload {
@@ -708,6 +710,18 @@ declare namespace $wrapper {
708
710
  namespace?: (string | null);
709
711
  static __$$generatedFromProtobuf$$__: Symbol;
710
712
  }
713
+ export interface ICountMethod {
714
+ actionName?: (string | null);
715
+ wqlOptions?: ($wrapper.wix.coreservices.businessschema.v1.IWqlOptions | null);
716
+ namespace?: (string | null);
717
+ }
718
+ export class CountMethod implements ICountMethod {
719
+ constructor(data?: ICountMethod);
720
+ actionName?: (string | null);
721
+ wqlOptions?: ($wrapper.wix.coreservices.businessschema.v1.IWqlOptions | null);
722
+ namespace?: (string | null);
723
+ static __$$generatedFromProtobuf$$__: Symbol;
724
+ }
711
725
  export interface IQueryMethod {
712
726
  actionName?: (string | null);
713
727
  queryField?: (string | null);
@@ -812,6 +826,16 @@ declare namespace $wrapper {
812
826
  namespace?: (string | null);
813
827
  static __$$generatedFromProtobuf$$__: Symbol;
814
828
  }
829
+ export interface IWqlOptions {
830
+ wql?: ($wrapper.wix.coreservices.businessschema.v1.IWql | null);
831
+ queryOptionsName?: (string | null);
832
+ }
833
+ export class WqlOptions implements IWqlOptions {
834
+ constructor(data?: IWqlOptions);
835
+ wql?: ($wrapper.wix.coreservices.businessschema.v1.IWql | null);
836
+ queryOptionsName?: (string | null);
837
+ static __$$generatedFromProtobuf$$__: Symbol;
838
+ }
815
839
  export interface IWql {
816
840
  operatorFieldSupport?: ($wrapper.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[] | null);
817
841
  pattern?: ($wrapper.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[] | null);
@@ -10,7 +10,7 @@ $root.__options = {
10
10
  'stringLongs': true,
11
11
  'stdCase': false,
12
12
  'generatorVersion': '2.0.1156',
13
- 'contentHash': 'bfe2d3e4861e44d10843a57faca423f5d60de75e'
13
+ 'contentHash': 'aed7bfa5b9dae7f5e54938805215af497d1b3450'
14
14
  };
15
15
  $root.__lookup = function (pbjs) {
16
16
  const root = pbjs.Root.fromJSON({
@@ -816,6 +816,12 @@ $root.__lookup = function (pbjs) {
816
816
  'id': 13,
817
817
  'comment': null,
818
818
  'parsedOptions': null
819
+ },
820
+ 'count': {
821
+ 'type': 'CountMethod',
822
+ 'id': 14,
823
+ 'comment': null,
824
+ 'parsedOptions': null
819
825
  }
820
826
  },
821
827
  'comment': null
@@ -1780,6 +1786,37 @@ $root.__lookup = function (pbjs) {
1780
1786
  },
1781
1787
  'comment': null
1782
1788
  },
1789
+ 'CountMethod': {
1790
+ 'fields': {
1791
+ 'actionName': {
1792
+ 'type': 'string',
1793
+ 'id': 1,
1794
+ 'options': { '(wix.api.maxLength)': 100 },
1795
+ 'comment': null,
1796
+ 'parsedOptions': [{
1797
+ '(wix.api.maxLength)': 100,
1798
+ '__comment': null
1799
+ }]
1800
+ },
1801
+ 'wqlOptions': {
1802
+ 'type': 'WqlOptions',
1803
+ 'id': 2,
1804
+ 'comment': null,
1805
+ 'parsedOptions': null
1806
+ },
1807
+ 'namespace': {
1808
+ 'type': 'google.protobuf.StringValue',
1809
+ 'id': 3,
1810
+ 'options': { '(wix.api.maxLength)': 100 },
1811
+ 'comment': null,
1812
+ 'parsedOptions': [{
1813
+ '(wix.api.maxLength)': 100,
1814
+ '__comment': null
1815
+ }]
1816
+ }
1817
+ },
1818
+ 'comment': null
1819
+ },
1783
1820
  'QueryMethod': {
1784
1821
  'oneofs': {
1785
1822
  'wqlOptions': {
@@ -2014,6 +2051,36 @@ $root.__lookup = function (pbjs) {
2014
2051
  },
2015
2052
  'comment': null
2016
2053
  },
2054
+ 'WqlOptions': {
2055
+ 'oneofs': {
2056
+ 'wqlOptions': {
2057
+ 'oneof': [
2058
+ 'wql',
2059
+ 'queryOptionsName'
2060
+ ],
2061
+ 'comment': null
2062
+ }
2063
+ },
2064
+ 'fields': {
2065
+ 'wql': {
2066
+ 'type': 'Wql',
2067
+ 'id': 1,
2068
+ 'comment': null,
2069
+ 'parsedOptions': null
2070
+ },
2071
+ 'queryOptionsName': {
2072
+ 'type': 'google.protobuf.StringValue',
2073
+ 'id': 2,
2074
+ 'options': { '(wix.api.maxLength)': 200 },
2075
+ 'comment': null,
2076
+ 'parsedOptions': [{
2077
+ '(wix.api.maxLength)': 200,
2078
+ '__comment': null
2079
+ }]
2080
+ }
2081
+ },
2082
+ 'comment': null
2083
+ },
2017
2084
  'Wql': {
2018
2085
  'fields': {
2019
2086
  'operatorFieldSupport': {
@@ -12467,6 +12534,7 @@ $root.wix = (function () {
12467
12534
  this.bulkDeleteByFilter = props && props.bulkDeleteByFilter;
12468
12535
  this.upsert = props && props.upsert;
12469
12536
  this.bulkUpsert = props && props.bulkUpsert;
12537
+ this.count = props && props.count;
12470
12538
  }
12471
12539
  static toJSON(obj, helper, withDefaults) {
12472
12540
  if (obj == null) {
@@ -12538,6 +12606,11 @@ $root.wix = (function () {
12538
12606
  } else if (withDefaults) {
12539
12607
  delete json['bulkUpsert'];
12540
12608
  }
12609
+ if (obj['count'] != null) {
12610
+ json['count'] = $root.wix.coreservices.businessschema.v1.CountMethod.toJSON(obj['count'], helper, withDefaults);
12611
+ } else if (withDefaults) {
12612
+ delete json['count'];
12613
+ }
12541
12614
  return json;
12542
12615
  }
12543
12616
  }
@@ -12635,6 +12708,13 @@ $root.wix = (function () {
12635
12708
  } else {
12636
12709
  delete result['bulkUpsert'];
12637
12710
  }
12711
+ if (json['count'] != null) {
12712
+ result['count'] = $root.wix.coreservices.businessschema.v1.CountMethod.fromJSON(json['count'], helper);
12713
+ } else if (withDefaults !== false) {
12714
+ delete result['count'];
12715
+ } else {
12716
+ delete result['count'];
12717
+ }
12638
12718
  return result;
12639
12719
  } else
12640
12720
  return json;
@@ -12683,6 +12763,9 @@ $root.wix = (function () {
12683
12763
  if (obj['bulkUpsert'] != null) {
12684
12764
  grpc['bulkUpsert'] = $root.wix.coreservices.businessschema.v1.BulkUpsertMethod.toGRPC(obj['bulkUpsert'], helper);
12685
12765
  }
12766
+ if (obj['count'] != null) {
12767
+ grpc['count'] = $root.wix.coreservices.businessschema.v1.CountMethod.toGRPC(obj['count'], helper);
12768
+ }
12686
12769
  return grpc;
12687
12770
  }
12688
12771
  }
@@ -12756,6 +12839,11 @@ $root.wix = (function () {
12756
12839
  } else {
12757
12840
  delete result['bulkUpsert'];
12758
12841
  }
12842
+ if (grpc['count'] != null) {
12843
+ result['count'] = $root.wix.coreservices.businessschema.v1.CountMethod.fromGRPC(grpc['count'], helper);
12844
+ } else {
12845
+ delete result['count'];
12846
+ }
12759
12847
  return result;
12760
12848
  }
12761
12849
  }
@@ -17620,6 +17708,129 @@ $root.wix = (function () {
17620
17708
  });
17621
17709
  return ListMethod;
17622
17710
  }());;
17711
+ _v1.CountMethod = (function () {
17712
+ class CountMethod {
17713
+ constructor(props) {
17714
+ this.actionName = props && props.actionName;
17715
+ this.wqlOptions = props && props.wqlOptions;
17716
+ this.namespace = props && props.namespace;
17717
+ }
17718
+ static toJSON(obj, helper, withDefaults) {
17719
+ if (obj == null) {
17720
+ return null;
17721
+ } else {
17722
+ const json = {};
17723
+ if (obj['actionName'] != null) {
17724
+ json['actionName'] = obj['actionName'];
17725
+ } else if (withDefaults) {
17726
+ json['actionName'] = '';
17727
+ }
17728
+ if (obj['wqlOptions'] != null) {
17729
+ json['wqlOptions'] = $root.wix.coreservices.businessschema.v1.WqlOptions.toJSON(obj['wqlOptions'], helper, withDefaults);
17730
+ } else if (withDefaults) {
17731
+ delete json['wqlOptions'];
17732
+ }
17733
+ if (obj['namespace'] != null) {
17734
+ json['namespace'] = $root.google.protobuf.StringValue.toJSON(obj['namespace'], helper, withDefaults);
17735
+ } else if (withDefaults) {
17736
+ delete json['namespace'];
17737
+ }
17738
+ return json;
17739
+ }
17740
+ }
17741
+ static fromJSON(json, helper, withDefaults) {
17742
+ if (typeof json === 'object' && !Array.isArray(json)) {
17743
+ const result = new $root.wix.coreservices.businessschema.v1.CountMethod();
17744
+ if (json['actionName'] != null) {
17745
+ result['actionName'] = json['actionName'];
17746
+ } else if (withDefaults !== false) {
17747
+ result['actionName'] = '';
17748
+ } else {
17749
+ delete result['actionName'];
17750
+ }
17751
+ if (json['wqlOptions'] != null) {
17752
+ result['wqlOptions'] = $root.wix.coreservices.businessschema.v1.WqlOptions.fromJSON(json['wqlOptions'], helper);
17753
+ } else if (withDefaults !== false) {
17754
+ delete result['wqlOptions'];
17755
+ } else {
17756
+ delete result['wqlOptions'];
17757
+ }
17758
+ if (json['namespace'] != null) {
17759
+ result['namespace'] = $root.google.protobuf.StringValue.fromJSON(json['namespace'], helper);
17760
+ } else if (withDefaults !== false) {
17761
+ delete result['namespace'];
17762
+ } else {
17763
+ delete result['namespace'];
17764
+ }
17765
+ return result;
17766
+ } else
17767
+ return json;
17768
+ }
17769
+ static toGRPC(obj, helper) {
17770
+ if (obj == null) {
17771
+ return null;
17772
+ } else {
17773
+ const grpc = {};
17774
+ if (obj['actionName'] != null) {
17775
+ grpc['actionName'] = obj['actionName'];
17776
+ }
17777
+ if (obj['wqlOptions'] != null) {
17778
+ grpc['wqlOptions'] = $root.wix.coreservices.businessschema.v1.WqlOptions.toGRPC(obj['wqlOptions'], helper);
17779
+ }
17780
+ if (obj['namespace'] != null) {
17781
+ grpc['namespace'] = $root.google.protobuf.StringValue.toGRPC(obj['namespace'], helper);
17782
+ }
17783
+ return grpc;
17784
+ }
17785
+ }
17786
+ static fromGRPC(grpc, helper) {
17787
+ if (grpc == null) {
17788
+ return null;
17789
+ } else {
17790
+ const result = new $root.wix.coreservices.businessschema.v1.CountMethod();
17791
+ if (grpc['actionName'] != null) {
17792
+ result['actionName'] = grpc['actionName'];
17793
+ } else {
17794
+ result['actionName'] = '';
17795
+ }
17796
+ if (grpc['wqlOptions'] != null) {
17797
+ result['wqlOptions'] = $root.wix.coreservices.businessschema.v1.WqlOptions.fromGRPC(grpc['wqlOptions'], helper);
17798
+ } else {
17799
+ delete result['wqlOptions'];
17800
+ }
17801
+ if (grpc['namespace'] != null) {
17802
+ result['namespace'] = $root.google.protobuf.StringValue.fromGRPC(grpc['namespace'], helper);
17803
+ } else {
17804
+ delete result['namespace'];
17805
+ }
17806
+ return result;
17807
+ }
17808
+ }
17809
+ }
17810
+ __builtIn.Object.defineProperty(CountMethod.prototype, '__proto', {
17811
+ value: pbjs => {
17812
+ return $root.__lookup(pbjs)('wix.coreservices.businessschema.v1.CountMethod');
17813
+ },
17814
+ enumerable: false,
17815
+ configurable: false
17816
+ });
17817
+ __builtIn.Object.defineProperty(CountMethod.prototype, '__fqn__', {
17818
+ value: 'wix.coreservices.businessschema.v1.CountMethod',
17819
+ enumerable: false,
17820
+ configurable: false
17821
+ });
17822
+ __builtIn.Object.defineProperty(CountMethod.prototype, '__options__', {
17823
+ value: $root.__options,
17824
+ enumerable: false,
17825
+ configurable: false
17826
+ });
17827
+ __builtIn.Object.defineProperty(CountMethod.prototype, '__root__', {
17828
+ value: $root,
17829
+ enumerable: false,
17830
+ configurable: false
17831
+ });
17832
+ return CountMethod;
17833
+ }());;
17623
17834
  _v1.QueryMethod = (function () {
17624
17835
  class QueryMethod {
17625
17836
  constructor(props) {
@@ -18691,6 +18902,108 @@ $root.wix = (function () {
18691
18902
  });
18692
18903
  return BulkDeleteByFilterMethod;
18693
18904
  }());;
18905
+ _v1.WqlOptions = (function () {
18906
+ class WqlOptions {
18907
+ constructor(props) {
18908
+ this.wql = props && props.wql;
18909
+ this.queryOptionsName = props && props.queryOptionsName;
18910
+ }
18911
+ static toJSON(obj, helper, withDefaults) {
18912
+ if (obj == null) {
18913
+ return null;
18914
+ } else {
18915
+ const json = {};
18916
+ if (obj['wql'] != null) {
18917
+ json['wql'] = $root.wix.coreservices.businessschema.v1.Wql.toJSON(obj['wql'], helper, withDefaults);
18918
+ } else if (withDefaults) {
18919
+ delete json['wql'];
18920
+ }
18921
+ if (obj['queryOptionsName'] != null) {
18922
+ json['queryOptionsName'] = $root.google.protobuf.StringValue.toJSON(obj['queryOptionsName'], helper, withDefaults);
18923
+ } else if (withDefaults) {
18924
+ delete json['queryOptionsName'];
18925
+ }
18926
+ return json;
18927
+ }
18928
+ }
18929
+ static fromJSON(json, helper, withDefaults) {
18930
+ if (typeof json === 'object' && !Array.isArray(json)) {
18931
+ const result = new $root.wix.coreservices.businessschema.v1.WqlOptions();
18932
+ if (json['wql'] != null) {
18933
+ result['wql'] = $root.wix.coreservices.businessschema.v1.Wql.fromJSON(json['wql'], helper);
18934
+ } else if (withDefaults !== false) {
18935
+ delete result['wql'];
18936
+ } else {
18937
+ delete result['wql'];
18938
+ }
18939
+ if (json['queryOptionsName'] != null) {
18940
+ result['queryOptionsName'] = $root.google.protobuf.StringValue.fromJSON(json['queryOptionsName'], helper);
18941
+ } else if (withDefaults !== false) {
18942
+ delete result['queryOptionsName'];
18943
+ } else {
18944
+ delete result['queryOptionsName'];
18945
+ }
18946
+ return result;
18947
+ } else
18948
+ return json;
18949
+ }
18950
+ static toGRPC(obj, helper) {
18951
+ if (obj == null) {
18952
+ return null;
18953
+ } else {
18954
+ const grpc = {};
18955
+ if (obj['wql'] != null) {
18956
+ grpc['wql'] = $root.wix.coreservices.businessschema.v1.Wql.toGRPC(obj['wql'], helper);
18957
+ }
18958
+ if (obj['queryOptionsName'] != null) {
18959
+ grpc['queryOptionsName'] = $root.google.protobuf.StringValue.toGRPC(obj['queryOptionsName'], helper);
18960
+ }
18961
+ return grpc;
18962
+ }
18963
+ }
18964
+ static fromGRPC(grpc, helper) {
18965
+ if (grpc == null) {
18966
+ return null;
18967
+ } else {
18968
+ const result = new $root.wix.coreservices.businessschema.v1.WqlOptions();
18969
+ if (grpc['wql'] != null) {
18970
+ result['wql'] = $root.wix.coreservices.businessschema.v1.Wql.fromGRPC(grpc['wql'], helper);
18971
+ } else {
18972
+ delete result['wql'];
18973
+ }
18974
+ if (grpc['queryOptionsName'] != null) {
18975
+ result['queryOptionsName'] = $root.google.protobuf.StringValue.fromGRPC(grpc['queryOptionsName'], helper);
18976
+ } else {
18977
+ delete result['queryOptionsName'];
18978
+ }
18979
+ return result;
18980
+ }
18981
+ }
18982
+ }
18983
+ __builtIn.Object.defineProperty(WqlOptions.prototype, '__proto', {
18984
+ value: pbjs => {
18985
+ return $root.__lookup(pbjs)('wix.coreservices.businessschema.v1.WqlOptions');
18986
+ },
18987
+ enumerable: false,
18988
+ configurable: false
18989
+ });
18990
+ __builtIn.Object.defineProperty(WqlOptions.prototype, '__fqn__', {
18991
+ value: 'wix.coreservices.businessschema.v1.WqlOptions',
18992
+ enumerable: false,
18993
+ configurable: false
18994
+ });
18995
+ __builtIn.Object.defineProperty(WqlOptions.prototype, '__options__', {
18996
+ value: $root.__options,
18997
+ enumerable: false,
18998
+ configurable: false
18999
+ });
19000
+ __builtIn.Object.defineProperty(WqlOptions.prototype, '__root__', {
19001
+ value: $root,
19002
+ enumerable: false,
19003
+ configurable: false
19004
+ });
19005
+ return WqlOptions;
19006
+ }());;
18694
19007
  _v1.Wql = (function () {
18695
19008
  class Wql {
18696
19009
  constructor(props) {
@@ -284,6 +284,7 @@ declare namespace $requests {
284
284
  bulkDeleteByFilter?: $requests.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
285
285
  upsert?: $requests.wix.coreservices.businessschema.v1.IUpsertMethod;
286
286
  bulkUpsert?: $requests.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
287
+ count?: $requests.wix.coreservices.businessschema.v1.ICountMethod;
287
288
  }
288
289
  export class Methods implements IMethods {
289
290
  constructor(data?: IMethods);
@@ -300,6 +301,7 @@ declare namespace $requests {
300
301
  bulkDeleteByFilter?: $requests.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
301
302
  upsert?: $requests.wix.coreservices.businessschema.v1.IUpsertMethod;
302
303
  bulkUpsert?: $requests.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
304
+ count?: $requests.wix.coreservices.businessschema.v1.ICountMethod;
303
305
  static __$$generatedFromProtobuf$$__: Symbol;
304
306
  }
305
307
  export interface IEventPayload {
@@ -708,6 +710,18 @@ declare namespace $requests {
708
710
  namespace?: string;
709
711
  static __$$generatedFromProtobuf$$__: Symbol;
710
712
  }
713
+ export interface ICountMethod {
714
+ actionName: string;
715
+ wqlOptions?: $requests.wix.coreservices.businessschema.v1.IWqlOptions;
716
+ namespace?: string;
717
+ }
718
+ export class CountMethod implements ICountMethod {
719
+ constructor(data?: ICountMethod);
720
+ actionName: string;
721
+ wqlOptions?: $requests.wix.coreservices.businessschema.v1.IWqlOptions;
722
+ namespace?: string;
723
+ static __$$generatedFromProtobuf$$__: Symbol;
724
+ }
711
725
  export interface IQueryMethod {
712
726
  actionName: string;
713
727
  queryField: string;
@@ -812,6 +826,16 @@ declare namespace $requests {
812
826
  namespace?: string;
813
827
  static __$$generatedFromProtobuf$$__: Symbol;
814
828
  }
829
+ export interface IWqlOptions {
830
+ wql?: $requests.wix.coreservices.businessschema.v1.IWql;
831
+ queryOptionsName?: string;
832
+ }
833
+ export class WqlOptions implements IWqlOptions {
834
+ constructor(data?: IWqlOptions);
835
+ wql?: $requests.wix.coreservices.businessschema.v1.IWql;
836
+ queryOptionsName?: string;
837
+ static __$$generatedFromProtobuf$$__: Symbol;
838
+ }
815
839
  export interface IWql {
816
840
  operatorFieldSupport: $requests.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
817
841
  pattern: $requests.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
@@ -4059,6 +4083,7 @@ declare namespace $responses {
4059
4083
  bulkDeleteByFilter?: $responses.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
4060
4084
  upsert?: $responses.wix.coreservices.businessschema.v1.IUpsertMethod;
4061
4085
  bulkUpsert?: $responses.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
4086
+ count?: $responses.wix.coreservices.businessschema.v1.ICountMethod;
4062
4087
  }
4063
4088
  export class Methods implements IMethods {
4064
4089
  constructor(data?: IMethods);
@@ -4075,6 +4100,7 @@ declare namespace $responses {
4075
4100
  bulkDeleteByFilter?: $responses.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
4076
4101
  upsert?: $responses.wix.coreservices.businessschema.v1.IUpsertMethod;
4077
4102
  bulkUpsert?: $responses.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
4103
+ count?: $responses.wix.coreservices.businessschema.v1.ICountMethod;
4078
4104
  static __$$generatedFromProtobuf$$__: Symbol;
4079
4105
  }
4080
4106
  export interface IEventPayload {
@@ -4483,6 +4509,18 @@ declare namespace $responses {
4483
4509
  namespace?: string;
4484
4510
  static __$$generatedFromProtobuf$$__: Symbol;
4485
4511
  }
4512
+ export interface ICountMethod {
4513
+ actionName?: string;
4514
+ wqlOptions?: $responses.wix.coreservices.businessschema.v1.IWqlOptions;
4515
+ namespace?: string;
4516
+ }
4517
+ export class CountMethod implements ICountMethod {
4518
+ constructor(data?: ICountMethod);
4519
+ actionName?: string;
4520
+ wqlOptions?: $responses.wix.coreservices.businessschema.v1.IWqlOptions;
4521
+ namespace?: string;
4522
+ static __$$generatedFromProtobuf$$__: Symbol;
4523
+ }
4486
4524
  export interface IQueryMethod {
4487
4525
  actionName?: string;
4488
4526
  queryField?: string;
@@ -4587,6 +4625,16 @@ declare namespace $responses {
4587
4625
  namespace?: string;
4588
4626
  static __$$generatedFromProtobuf$$__: Symbol;
4589
4627
  }
4628
+ export interface IWqlOptions {
4629
+ wql?: $responses.wix.coreservices.businessschema.v1.IWql;
4630
+ queryOptionsName?: string;
4631
+ }
4632
+ export class WqlOptions implements IWqlOptions {
4633
+ constructor(data?: IWqlOptions);
4634
+ wql?: $responses.wix.coreservices.businessschema.v1.IWql;
4635
+ queryOptionsName?: string;
4636
+ static __$$generatedFromProtobuf$$__: Symbol;
4637
+ }
4590
4638
  export interface IWql {
4591
4639
  operatorFieldSupport?: $responses.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
4592
4640
  pattern?: $responses.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
@@ -284,6 +284,7 @@ declare namespace $requests {
284
284
  bulkDeleteByFilter?: $requests.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
285
285
  upsert?: $requests.wix.coreservices.businessschema.v1.IUpsertMethod;
286
286
  bulkUpsert?: $requests.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
287
+ count?: $requests.wix.coreservices.businessschema.v1.ICountMethod;
287
288
  }
288
289
  export class Methods implements IMethods {
289
290
  constructor(data?: IMethods);
@@ -300,6 +301,7 @@ declare namespace $requests {
300
301
  bulkDeleteByFilter?: $requests.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
301
302
  upsert?: $requests.wix.coreservices.businessschema.v1.IUpsertMethod;
302
303
  bulkUpsert?: $requests.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
304
+ count?: $requests.wix.coreservices.businessschema.v1.ICountMethod;
303
305
  static __$$generatedFromProtobuf$$__: Symbol;
304
306
  }
305
307
  export interface IEventPayload {
@@ -708,6 +710,18 @@ declare namespace $requests {
708
710
  namespace?: string;
709
711
  static __$$generatedFromProtobuf$$__: Symbol;
710
712
  }
713
+ export interface ICountMethod {
714
+ actionName?: string;
715
+ wqlOptions?: $requests.wix.coreservices.businessschema.v1.IWqlOptions;
716
+ namespace?: string;
717
+ }
718
+ export class CountMethod implements ICountMethod {
719
+ constructor(data?: ICountMethod);
720
+ actionName?: string;
721
+ wqlOptions?: $requests.wix.coreservices.businessschema.v1.IWqlOptions;
722
+ namespace?: string;
723
+ static __$$generatedFromProtobuf$$__: Symbol;
724
+ }
711
725
  export interface IQueryMethod {
712
726
  actionName?: string;
713
727
  queryField?: string;
@@ -812,6 +826,16 @@ declare namespace $requests {
812
826
  namespace?: string;
813
827
  static __$$generatedFromProtobuf$$__: Symbol;
814
828
  }
829
+ export interface IWqlOptions {
830
+ wql?: $requests.wix.coreservices.businessschema.v1.IWql;
831
+ queryOptionsName?: string;
832
+ }
833
+ export class WqlOptions implements IWqlOptions {
834
+ constructor(data?: IWqlOptions);
835
+ wql?: $requests.wix.coreservices.businessschema.v1.IWql;
836
+ queryOptionsName?: string;
837
+ static __$$generatedFromProtobuf$$__: Symbol;
838
+ }
815
839
  export interface IWql {
816
840
  operatorFieldSupport?: $requests.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
817
841
  pattern?: $requests.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
@@ -4059,6 +4083,7 @@ declare namespace $responses {
4059
4083
  bulkDeleteByFilter?: $responses.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
4060
4084
  upsert?: $responses.wix.coreservices.businessschema.v1.IUpsertMethod;
4061
4085
  bulkUpsert?: $responses.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
4086
+ count?: $responses.wix.coreservices.businessschema.v1.ICountMethod;
4062
4087
  }
4063
4088
  export class Methods implements IMethods {
4064
4089
  constructor(data?: IMethods);
@@ -4075,6 +4100,7 @@ declare namespace $responses {
4075
4100
  bulkDeleteByFilter?: $responses.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
4076
4101
  upsert?: $responses.wix.coreservices.businessschema.v1.IUpsertMethod;
4077
4102
  bulkUpsert?: $responses.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
4103
+ count?: $responses.wix.coreservices.businessschema.v1.ICountMethod;
4078
4104
  static __$$generatedFromProtobuf$$__: Symbol;
4079
4105
  }
4080
4106
  export interface IEventPayload {
@@ -4483,6 +4509,18 @@ declare namespace $responses {
4483
4509
  namespace?: string;
4484
4510
  static __$$generatedFromProtobuf$$__: Symbol;
4485
4511
  }
4512
+ export interface ICountMethod {
4513
+ actionName: string;
4514
+ wqlOptions?: $responses.wix.coreservices.businessschema.v1.IWqlOptions;
4515
+ namespace?: string;
4516
+ }
4517
+ export class CountMethod implements ICountMethod {
4518
+ constructor(data?: ICountMethod);
4519
+ actionName: string;
4520
+ wqlOptions?: $responses.wix.coreservices.businessschema.v1.IWqlOptions;
4521
+ namespace?: string;
4522
+ static __$$generatedFromProtobuf$$__: Symbol;
4523
+ }
4486
4524
  export interface IQueryMethod {
4487
4525
  actionName: string;
4488
4526
  queryField: string;
@@ -4587,6 +4625,16 @@ declare namespace $responses {
4587
4625
  namespace?: string;
4588
4626
  static __$$generatedFromProtobuf$$__: Symbol;
4589
4627
  }
4628
+ export interface IWqlOptions {
4629
+ wql?: $responses.wix.coreservices.businessschema.v1.IWql;
4630
+ queryOptionsName?: string;
4631
+ }
4632
+ export class WqlOptions implements IWqlOptions {
4633
+ constructor(data?: IWqlOptions);
4634
+ wql?: $responses.wix.coreservices.businessschema.v1.IWql;
4635
+ queryOptionsName?: string;
4636
+ static __$$generatedFromProtobuf$$__: Symbol;
4637
+ }
4590
4638
  export interface IWql {
4591
4639
  operatorFieldSupport: $responses.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
4592
4640
  pattern: $responses.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
@@ -284,6 +284,7 @@ declare namespace $wrapper {
284
284
  bulkDeleteByFilter?: ($wrapper.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod | null);
285
285
  upsert?: ($wrapper.wix.coreservices.businessschema.v1.IUpsertMethod | null);
286
286
  bulkUpsert?: ($wrapper.wix.coreservices.businessschema.v1.IBulkUpsertMethod | null);
287
+ count?: ($wrapper.wix.coreservices.businessschema.v1.ICountMethod | null);
287
288
  }
288
289
  export class Methods implements IMethods {
289
290
  constructor(data?: IMethods);
@@ -300,6 +301,7 @@ declare namespace $wrapper {
300
301
  bulkDeleteByFilter?: ($wrapper.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod | null);
301
302
  upsert?: ($wrapper.wix.coreservices.businessschema.v1.IUpsertMethod | null);
302
303
  bulkUpsert?: ($wrapper.wix.coreservices.businessschema.v1.IBulkUpsertMethod | null);
304
+ count?: ($wrapper.wix.coreservices.businessschema.v1.ICountMethod | null);
303
305
  static __$$generatedFromProtobuf$$__: Symbol;
304
306
  }
305
307
  export interface IEventPayload {
@@ -708,6 +710,18 @@ declare namespace $wrapper {
708
710
  namespace?: (string | null);
709
711
  static __$$generatedFromProtobuf$$__: Symbol;
710
712
  }
713
+ export interface ICountMethod {
714
+ actionName?: (string | null);
715
+ wqlOptions?: ($wrapper.wix.coreservices.businessschema.v1.IWqlOptions | null);
716
+ namespace?: (string | null);
717
+ }
718
+ export class CountMethod implements ICountMethod {
719
+ constructor(data?: ICountMethod);
720
+ actionName?: (string | null);
721
+ wqlOptions?: ($wrapper.wix.coreservices.businessschema.v1.IWqlOptions | null);
722
+ namespace?: (string | null);
723
+ static __$$generatedFromProtobuf$$__: Symbol;
724
+ }
711
725
  export interface IQueryMethod {
712
726
  actionName?: (string | null);
713
727
  queryField?: (string | null);
@@ -812,6 +826,16 @@ declare namespace $wrapper {
812
826
  namespace?: (string | null);
813
827
  static __$$generatedFromProtobuf$$__: Symbol;
814
828
  }
829
+ export interface IWqlOptions {
830
+ wql?: ($wrapper.wix.coreservices.businessschema.v1.IWql | null);
831
+ queryOptionsName?: (string | null);
832
+ }
833
+ export class WqlOptions implements IWqlOptions {
834
+ constructor(data?: IWqlOptions);
835
+ wql?: ($wrapper.wix.coreservices.businessschema.v1.IWql | null);
836
+ queryOptionsName?: (string | null);
837
+ static __$$generatedFromProtobuf$$__: Symbol;
838
+ }
815
839
  export interface IWql {
816
840
  operatorFieldSupport?: ($wrapper.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[] | null);
817
841
  pattern?: ($wrapper.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[] | null);
@@ -10,7 +10,7 @@ $root.__options = {
10
10
  'stringLongs': true,
11
11
  'stdCase': false,
12
12
  'generatorVersion': '2.0.1156',
13
- 'contentHash': 'bfe2d3e4861e44d10843a57faca423f5d60de75e'
13
+ 'contentHash': 'aed7bfa5b9dae7f5e54938805215af497d1b3450'
14
14
  };
15
15
  $root.__lookup = function (pbjs) {
16
16
  const root = pbjs.Root.fromJSON({
@@ -816,6 +816,12 @@ $root.__lookup = function (pbjs) {
816
816
  'id': 13,
817
817
  'comment': null,
818
818
  'parsedOptions': null
819
+ },
820
+ 'count': {
821
+ 'type': 'CountMethod',
822
+ 'id': 14,
823
+ 'comment': null,
824
+ 'parsedOptions': null
819
825
  }
820
826
  },
821
827
  'comment': null
@@ -1780,6 +1786,37 @@ $root.__lookup = function (pbjs) {
1780
1786
  },
1781
1787
  'comment': null
1782
1788
  },
1789
+ 'CountMethod': {
1790
+ 'fields': {
1791
+ 'actionName': {
1792
+ 'type': 'string',
1793
+ 'id': 1,
1794
+ 'options': { '(wix.api.maxLength)': 100 },
1795
+ 'comment': null,
1796
+ 'parsedOptions': [{
1797
+ '(wix.api.maxLength)': 100,
1798
+ '__comment': null
1799
+ }]
1800
+ },
1801
+ 'wqlOptions': {
1802
+ 'type': 'WqlOptions',
1803
+ 'id': 2,
1804
+ 'comment': null,
1805
+ 'parsedOptions': null
1806
+ },
1807
+ 'namespace': {
1808
+ 'type': 'google.protobuf.StringValue',
1809
+ 'id': 3,
1810
+ 'options': { '(wix.api.maxLength)': 100 },
1811
+ 'comment': null,
1812
+ 'parsedOptions': [{
1813
+ '(wix.api.maxLength)': 100,
1814
+ '__comment': null
1815
+ }]
1816
+ }
1817
+ },
1818
+ 'comment': null
1819
+ },
1783
1820
  'QueryMethod': {
1784
1821
  'oneofs': {
1785
1822
  'wqlOptions': {
@@ -2014,6 +2051,36 @@ $root.__lookup = function (pbjs) {
2014
2051
  },
2015
2052
  'comment': null
2016
2053
  },
2054
+ 'WqlOptions': {
2055
+ 'oneofs': {
2056
+ 'wqlOptions': {
2057
+ 'oneof': [
2058
+ 'wql',
2059
+ 'queryOptionsName'
2060
+ ],
2061
+ 'comment': null
2062
+ }
2063
+ },
2064
+ 'fields': {
2065
+ 'wql': {
2066
+ 'type': 'Wql',
2067
+ 'id': 1,
2068
+ 'comment': null,
2069
+ 'parsedOptions': null
2070
+ },
2071
+ 'queryOptionsName': {
2072
+ 'type': 'google.protobuf.StringValue',
2073
+ 'id': 2,
2074
+ 'options': { '(wix.api.maxLength)': 200 },
2075
+ 'comment': null,
2076
+ 'parsedOptions': [{
2077
+ '(wix.api.maxLength)': 200,
2078
+ '__comment': null
2079
+ }]
2080
+ }
2081
+ },
2082
+ 'comment': null
2083
+ },
2017
2084
  'Wql': {
2018
2085
  'fields': {
2019
2086
  'operatorFieldSupport': {
@@ -12467,6 +12534,7 @@ $root.wix = (function () {
12467
12534
  this.bulkDeleteByFilter = props && props.bulkDeleteByFilter;
12468
12535
  this.upsert = props && props.upsert;
12469
12536
  this.bulkUpsert = props && props.bulkUpsert;
12537
+ this.count = props && props.count;
12470
12538
  }
12471
12539
  static toJSON(obj, helper, withDefaults) {
12472
12540
  if (obj == null) {
@@ -12538,6 +12606,11 @@ $root.wix = (function () {
12538
12606
  } else if (withDefaults) {
12539
12607
  delete json['bulkUpsert'];
12540
12608
  }
12609
+ if (obj['count'] != null) {
12610
+ json['count'] = $root.wix.coreservices.businessschema.v1.CountMethod.toJSON(obj['count'], helper, withDefaults);
12611
+ } else if (withDefaults) {
12612
+ delete json['count'];
12613
+ }
12541
12614
  return json;
12542
12615
  }
12543
12616
  }
@@ -12635,6 +12708,13 @@ $root.wix = (function () {
12635
12708
  } else {
12636
12709
  delete result['bulkUpsert'];
12637
12710
  }
12711
+ if (json['count'] != null) {
12712
+ result['count'] = $root.wix.coreservices.businessschema.v1.CountMethod.fromJSON(json['count'], helper);
12713
+ } else if (withDefaults !== false) {
12714
+ delete result['count'];
12715
+ } else {
12716
+ delete result['count'];
12717
+ }
12638
12718
  return result;
12639
12719
  } else
12640
12720
  return json;
@@ -12683,6 +12763,9 @@ $root.wix = (function () {
12683
12763
  if (obj['bulkUpsert'] != null) {
12684
12764
  grpc['bulkUpsert'] = $root.wix.coreservices.businessschema.v1.BulkUpsertMethod.toGRPC(obj['bulkUpsert'], helper);
12685
12765
  }
12766
+ if (obj['count'] != null) {
12767
+ grpc['count'] = $root.wix.coreservices.businessschema.v1.CountMethod.toGRPC(obj['count'], helper);
12768
+ }
12686
12769
  return grpc;
12687
12770
  }
12688
12771
  }
@@ -12756,6 +12839,11 @@ $root.wix = (function () {
12756
12839
  } else {
12757
12840
  delete result['bulkUpsert'];
12758
12841
  }
12842
+ if (grpc['count'] != null) {
12843
+ result['count'] = $root.wix.coreservices.businessschema.v1.CountMethod.fromGRPC(grpc['count'], helper);
12844
+ } else {
12845
+ delete result['count'];
12846
+ }
12759
12847
  return result;
12760
12848
  }
12761
12849
  }
@@ -17620,6 +17708,129 @@ $root.wix = (function () {
17620
17708
  });
17621
17709
  return ListMethod;
17622
17710
  }());;
17711
+ _v1.CountMethod = (function () {
17712
+ class CountMethod {
17713
+ constructor(props) {
17714
+ this.actionName = props && props.actionName;
17715
+ this.wqlOptions = props && props.wqlOptions;
17716
+ this.namespace = props && props.namespace;
17717
+ }
17718
+ static toJSON(obj, helper, withDefaults) {
17719
+ if (obj == null) {
17720
+ return null;
17721
+ } else {
17722
+ const json = {};
17723
+ if (obj['actionName'] != null) {
17724
+ json['actionName'] = obj['actionName'];
17725
+ } else if (withDefaults) {
17726
+ json['actionName'] = '';
17727
+ }
17728
+ if (obj['wqlOptions'] != null) {
17729
+ json['wqlOptions'] = $root.wix.coreservices.businessschema.v1.WqlOptions.toJSON(obj['wqlOptions'], helper, withDefaults);
17730
+ } else if (withDefaults) {
17731
+ delete json['wqlOptions'];
17732
+ }
17733
+ if (obj['namespace'] != null) {
17734
+ json['namespace'] = $root.google.protobuf.StringValue.toJSON(obj['namespace'], helper, withDefaults);
17735
+ } else if (withDefaults) {
17736
+ delete json['namespace'];
17737
+ }
17738
+ return json;
17739
+ }
17740
+ }
17741
+ static fromJSON(json, helper, withDefaults) {
17742
+ if (typeof json === 'object' && !Array.isArray(json)) {
17743
+ const result = new $root.wix.coreservices.businessschema.v1.CountMethod();
17744
+ if (json['actionName'] != null) {
17745
+ result['actionName'] = json['actionName'];
17746
+ } else if (withDefaults !== false) {
17747
+ result['actionName'] = '';
17748
+ } else {
17749
+ delete result['actionName'];
17750
+ }
17751
+ if (json['wqlOptions'] != null) {
17752
+ result['wqlOptions'] = $root.wix.coreservices.businessschema.v1.WqlOptions.fromJSON(json['wqlOptions'], helper);
17753
+ } else if (withDefaults !== false) {
17754
+ delete result['wqlOptions'];
17755
+ } else {
17756
+ delete result['wqlOptions'];
17757
+ }
17758
+ if (json['namespace'] != null) {
17759
+ result['namespace'] = $root.google.protobuf.StringValue.fromJSON(json['namespace'], helper);
17760
+ } else if (withDefaults !== false) {
17761
+ delete result['namespace'];
17762
+ } else {
17763
+ delete result['namespace'];
17764
+ }
17765
+ return result;
17766
+ } else
17767
+ return json;
17768
+ }
17769
+ static toGRPC(obj, helper) {
17770
+ if (obj == null) {
17771
+ return null;
17772
+ } else {
17773
+ const grpc = {};
17774
+ if (obj['actionName'] != null) {
17775
+ grpc['actionName'] = obj['actionName'];
17776
+ }
17777
+ if (obj['wqlOptions'] != null) {
17778
+ grpc['wqlOptions'] = $root.wix.coreservices.businessschema.v1.WqlOptions.toGRPC(obj['wqlOptions'], helper);
17779
+ }
17780
+ if (obj['namespace'] != null) {
17781
+ grpc['namespace'] = $root.google.protobuf.StringValue.toGRPC(obj['namespace'], helper);
17782
+ }
17783
+ return grpc;
17784
+ }
17785
+ }
17786
+ static fromGRPC(grpc, helper) {
17787
+ if (grpc == null) {
17788
+ return null;
17789
+ } else {
17790
+ const result = new $root.wix.coreservices.businessschema.v1.CountMethod();
17791
+ if (grpc['actionName'] != null) {
17792
+ result['actionName'] = grpc['actionName'];
17793
+ } else {
17794
+ result['actionName'] = '';
17795
+ }
17796
+ if (grpc['wqlOptions'] != null) {
17797
+ result['wqlOptions'] = $root.wix.coreservices.businessschema.v1.WqlOptions.fromGRPC(grpc['wqlOptions'], helper);
17798
+ } else {
17799
+ delete result['wqlOptions'];
17800
+ }
17801
+ if (grpc['namespace'] != null) {
17802
+ result['namespace'] = $root.google.protobuf.StringValue.fromGRPC(grpc['namespace'], helper);
17803
+ } else {
17804
+ delete result['namespace'];
17805
+ }
17806
+ return result;
17807
+ }
17808
+ }
17809
+ }
17810
+ __builtIn.Object.defineProperty(CountMethod.prototype, '__proto', {
17811
+ value: pbjs => {
17812
+ return $root.__lookup(pbjs)('wix.coreservices.businessschema.v1.CountMethod');
17813
+ },
17814
+ enumerable: false,
17815
+ configurable: false
17816
+ });
17817
+ __builtIn.Object.defineProperty(CountMethod.prototype, '__fqn__', {
17818
+ value: 'wix.coreservices.businessschema.v1.CountMethod',
17819
+ enumerable: false,
17820
+ configurable: false
17821
+ });
17822
+ __builtIn.Object.defineProperty(CountMethod.prototype, '__options__', {
17823
+ value: $root.__options,
17824
+ enumerable: false,
17825
+ configurable: false
17826
+ });
17827
+ __builtIn.Object.defineProperty(CountMethod.prototype, '__root__', {
17828
+ value: $root,
17829
+ enumerable: false,
17830
+ configurable: false
17831
+ });
17832
+ return CountMethod;
17833
+ }());;
17623
17834
  _v1.QueryMethod = (function () {
17624
17835
  class QueryMethod {
17625
17836
  constructor(props) {
@@ -18691,6 +18902,108 @@ $root.wix = (function () {
18691
18902
  });
18692
18903
  return BulkDeleteByFilterMethod;
18693
18904
  }());;
18905
+ _v1.WqlOptions = (function () {
18906
+ class WqlOptions {
18907
+ constructor(props) {
18908
+ this.wql = props && props.wql;
18909
+ this.queryOptionsName = props && props.queryOptionsName;
18910
+ }
18911
+ static toJSON(obj, helper, withDefaults) {
18912
+ if (obj == null) {
18913
+ return null;
18914
+ } else {
18915
+ const json = {};
18916
+ if (obj['wql'] != null) {
18917
+ json['wql'] = $root.wix.coreservices.businessschema.v1.Wql.toJSON(obj['wql'], helper, withDefaults);
18918
+ } else if (withDefaults) {
18919
+ delete json['wql'];
18920
+ }
18921
+ if (obj['queryOptionsName'] != null) {
18922
+ json['queryOptionsName'] = $root.google.protobuf.StringValue.toJSON(obj['queryOptionsName'], helper, withDefaults);
18923
+ } else if (withDefaults) {
18924
+ delete json['queryOptionsName'];
18925
+ }
18926
+ return json;
18927
+ }
18928
+ }
18929
+ static fromJSON(json, helper, withDefaults) {
18930
+ if (typeof json === 'object' && !Array.isArray(json)) {
18931
+ const result = new $root.wix.coreservices.businessschema.v1.WqlOptions();
18932
+ if (json['wql'] != null) {
18933
+ result['wql'] = $root.wix.coreservices.businessschema.v1.Wql.fromJSON(json['wql'], helper);
18934
+ } else if (withDefaults !== false) {
18935
+ delete result['wql'];
18936
+ } else {
18937
+ delete result['wql'];
18938
+ }
18939
+ if (json['queryOptionsName'] != null) {
18940
+ result['queryOptionsName'] = $root.google.protobuf.StringValue.fromJSON(json['queryOptionsName'], helper);
18941
+ } else if (withDefaults !== false) {
18942
+ delete result['queryOptionsName'];
18943
+ } else {
18944
+ delete result['queryOptionsName'];
18945
+ }
18946
+ return result;
18947
+ } else
18948
+ return json;
18949
+ }
18950
+ static toGRPC(obj, helper) {
18951
+ if (obj == null) {
18952
+ return null;
18953
+ } else {
18954
+ const grpc = {};
18955
+ if (obj['wql'] != null) {
18956
+ grpc['wql'] = $root.wix.coreservices.businessschema.v1.Wql.toGRPC(obj['wql'], helper);
18957
+ }
18958
+ if (obj['queryOptionsName'] != null) {
18959
+ grpc['queryOptionsName'] = $root.google.protobuf.StringValue.toGRPC(obj['queryOptionsName'], helper);
18960
+ }
18961
+ return grpc;
18962
+ }
18963
+ }
18964
+ static fromGRPC(grpc, helper) {
18965
+ if (grpc == null) {
18966
+ return null;
18967
+ } else {
18968
+ const result = new $root.wix.coreservices.businessschema.v1.WqlOptions();
18969
+ if (grpc['wql'] != null) {
18970
+ result['wql'] = $root.wix.coreservices.businessschema.v1.Wql.fromGRPC(grpc['wql'], helper);
18971
+ } else {
18972
+ delete result['wql'];
18973
+ }
18974
+ if (grpc['queryOptionsName'] != null) {
18975
+ result['queryOptionsName'] = $root.google.protobuf.StringValue.fromGRPC(grpc['queryOptionsName'], helper);
18976
+ } else {
18977
+ delete result['queryOptionsName'];
18978
+ }
18979
+ return result;
18980
+ }
18981
+ }
18982
+ }
18983
+ __builtIn.Object.defineProperty(WqlOptions.prototype, '__proto', {
18984
+ value: pbjs => {
18985
+ return $root.__lookup(pbjs)('wix.coreservices.businessschema.v1.WqlOptions');
18986
+ },
18987
+ enumerable: false,
18988
+ configurable: false
18989
+ });
18990
+ __builtIn.Object.defineProperty(WqlOptions.prototype, '__fqn__', {
18991
+ value: 'wix.coreservices.businessschema.v1.WqlOptions',
18992
+ enumerable: false,
18993
+ configurable: false
18994
+ });
18995
+ __builtIn.Object.defineProperty(WqlOptions.prototype, '__options__', {
18996
+ value: $root.__options,
18997
+ enumerable: false,
18998
+ configurable: false
18999
+ });
19000
+ __builtIn.Object.defineProperty(WqlOptions.prototype, '__root__', {
19001
+ value: $root,
19002
+ enumerable: false,
19003
+ configurable: false
19004
+ });
19005
+ return WqlOptions;
19006
+ }());;
18694
19007
  _v1.Wql = (function () {
18695
19008
  class Wql {
18696
19009
  constructor(props) {
@@ -284,6 +284,7 @@ declare namespace $requests {
284
284
  bulkDeleteByFilter?: $requests.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
285
285
  upsert?: $requests.wix.coreservices.businessschema.v1.IUpsertMethod;
286
286
  bulkUpsert?: $requests.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
287
+ count?: $requests.wix.coreservices.businessschema.v1.ICountMethod;
287
288
  }
288
289
  export class Methods implements IMethods {
289
290
  constructor(data?: IMethods);
@@ -300,6 +301,7 @@ declare namespace $requests {
300
301
  bulkDeleteByFilter?: $requests.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
301
302
  upsert?: $requests.wix.coreservices.businessschema.v1.IUpsertMethod;
302
303
  bulkUpsert?: $requests.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
304
+ count?: $requests.wix.coreservices.businessschema.v1.ICountMethod;
303
305
  static __$$generatedFromProtobuf$$__: Symbol;
304
306
  }
305
307
  export interface IEventPayload {
@@ -708,6 +710,18 @@ declare namespace $requests {
708
710
  namespace?: string;
709
711
  static __$$generatedFromProtobuf$$__: Symbol;
710
712
  }
713
+ export interface ICountMethod {
714
+ actionName: string;
715
+ wqlOptions?: $requests.wix.coreservices.businessschema.v1.IWqlOptions;
716
+ namespace?: string;
717
+ }
718
+ export class CountMethod implements ICountMethod {
719
+ constructor(data?: ICountMethod);
720
+ actionName: string;
721
+ wqlOptions?: $requests.wix.coreservices.businessschema.v1.IWqlOptions;
722
+ namespace?: string;
723
+ static __$$generatedFromProtobuf$$__: Symbol;
724
+ }
711
725
  export interface IQueryMethod {
712
726
  actionName: string;
713
727
  queryField: string;
@@ -812,6 +826,16 @@ declare namespace $requests {
812
826
  namespace?: string;
813
827
  static __$$generatedFromProtobuf$$__: Symbol;
814
828
  }
829
+ export interface IWqlOptions {
830
+ wql?: $requests.wix.coreservices.businessschema.v1.IWql;
831
+ queryOptionsName?: string;
832
+ }
833
+ export class WqlOptions implements IWqlOptions {
834
+ constructor(data?: IWqlOptions);
835
+ wql?: $requests.wix.coreservices.businessschema.v1.IWql;
836
+ queryOptionsName?: string;
837
+ static __$$generatedFromProtobuf$$__: Symbol;
838
+ }
815
839
  export interface IWql {
816
840
  operatorFieldSupport: $requests.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
817
841
  pattern: $requests.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
@@ -4059,6 +4083,7 @@ declare namespace $responses {
4059
4083
  bulkDeleteByFilter?: $responses.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
4060
4084
  upsert?: $responses.wix.coreservices.businessschema.v1.IUpsertMethod;
4061
4085
  bulkUpsert?: $responses.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
4086
+ count?: $responses.wix.coreservices.businessschema.v1.ICountMethod;
4062
4087
  }
4063
4088
  export class Methods implements IMethods {
4064
4089
  constructor(data?: IMethods);
@@ -4075,6 +4100,7 @@ declare namespace $responses {
4075
4100
  bulkDeleteByFilter?: $responses.wix.coreservices.businessschema.v1.IBulkDeleteByFilterMethod;
4076
4101
  upsert?: $responses.wix.coreservices.businessschema.v1.IUpsertMethod;
4077
4102
  bulkUpsert?: $responses.wix.coreservices.businessschema.v1.IBulkUpsertMethod;
4103
+ count?: $responses.wix.coreservices.businessschema.v1.ICountMethod;
4078
4104
  static __$$generatedFromProtobuf$$__: Symbol;
4079
4105
  }
4080
4106
  export interface IEventPayload {
@@ -4483,6 +4509,18 @@ declare namespace $responses {
4483
4509
  namespace?: string;
4484
4510
  static __$$generatedFromProtobuf$$__: Symbol;
4485
4511
  }
4512
+ export interface ICountMethod {
4513
+ actionName?: string;
4514
+ wqlOptions?: $responses.wix.coreservices.businessschema.v1.IWqlOptions;
4515
+ namespace?: string;
4516
+ }
4517
+ export class CountMethod implements ICountMethod {
4518
+ constructor(data?: ICountMethod);
4519
+ actionName?: string;
4520
+ wqlOptions?: $responses.wix.coreservices.businessschema.v1.IWqlOptions;
4521
+ namespace?: string;
4522
+ static __$$generatedFromProtobuf$$__: Symbol;
4523
+ }
4486
4524
  export interface IQueryMethod {
4487
4525
  actionName?: string;
4488
4526
  queryField?: string;
@@ -4587,6 +4625,16 @@ declare namespace $responses {
4587
4625
  namespace?: string;
4588
4626
  static __$$generatedFromProtobuf$$__: Symbol;
4589
4627
  }
4628
+ export interface IWqlOptions {
4629
+ wql?: $responses.wix.coreservices.businessschema.v1.IWql;
4630
+ queryOptionsName?: string;
4631
+ }
4632
+ export class WqlOptions implements IWqlOptions {
4633
+ constructor(data?: IWqlOptions);
4634
+ wql?: $responses.wix.coreservices.businessschema.v1.IWql;
4635
+ queryOptionsName?: string;
4636
+ static __$$generatedFromProtobuf$$__: Symbol;
4637
+ }
4590
4638
  export interface IWql {
4591
4639
  operatorFieldSupport?: $responses.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
4592
4640
  pattern?: $responses.wix.coreservices.businessschema.v1.Wql.IOperatorFieldSupport[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/metro-common-builders",
3
- "version": "1.0.1508",
3
+ "version": "1.0.1510",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Eli Ponyatovski",
@@ -33,14 +33,14 @@
33
33
  "*.{js,ts}": "yoshi lint"
34
34
  },
35
35
  "dependencies": {
36
- "@wix/metro-runtime": "1.1863.0",
36
+ "@wix/metro-runtime": "1.1865.0",
37
37
  "long": "^5.1.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@rushstack/eslint-patch": "^1.1.0",
41
41
  "@types/jest": "^24.9.1",
42
42
  "@types/node": "^16.11.7",
43
- "@wix/business-schema-api": "^1.7.1537",
43
+ "@wix/business-schema-api": "^1.7.1539",
44
44
  "@wix/wix-proto-codegen": "^2.0.1156",
45
45
  "@wix/yoshi": "^6.95.1",
46
46
  "eslint-plugin-simple-import-sort": "^10.0.0",
@@ -71,5 +71,5 @@
71
71
  "wallaby": {
72
72
  "autoDetect": true
73
73
  },
74
- "falconPackageHash": "491624f403feaaebe0d2d4b598cc92cdb54657d25003b57a1249e877"
74
+ "falconPackageHash": "159affcfa4f1d8ab0178ace13551cf622b74ec9420e52088e87faa5a"
75
75
  }