@wix/metro-common-builders 1.0.1093 → 1.0.1095
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/dist/es/src/proto/client/index.d.ts +36 -0
- package/dist/es/src/proto/index.d.ts +18 -0
- package/dist/es/src/proto/index.js +267 -1
- package/dist/es/src/proto/server/index.d.ts +36 -0
- package/dist/src/proto/client/index.d.ts +36 -0
- package/dist/src/proto/index.d.ts +18 -0
- package/dist/src/proto/index.js +267 -1
- package/dist/src/proto/server/index.d.ts +36 -0
- package/package.json +3 -3
|
@@ -821,6 +821,7 @@ declare namespace $requests {
|
|
|
821
821
|
hidden?: boolean;
|
|
822
822
|
grouping?: string;
|
|
823
823
|
type?: $requests.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
824
|
+
displayOnly?: boolean;
|
|
824
825
|
}
|
|
825
826
|
export class Translatable implements ITranslatable {
|
|
826
827
|
constructor(data?: ITranslatable);
|
|
@@ -828,6 +829,7 @@ declare namespace $requests {
|
|
|
828
829
|
hidden?: boolean;
|
|
829
830
|
grouping?: string;
|
|
830
831
|
type?: $requests.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
832
|
+
displayOnly?: boolean;
|
|
831
833
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
832
834
|
}
|
|
833
835
|
export namespace Translatable {
|
|
@@ -1863,6 +1865,22 @@ declare namespace $requests {
|
|
|
1863
1865
|
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1864
1866
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1865
1867
|
}
|
|
1868
|
+
export interface ICursorSearch {
|
|
1869
|
+
filter?: { [key: string]: any };
|
|
1870
|
+
sort?: $requests.wix.common.ISorting[];
|
|
1871
|
+
aggregations?: $requests.wix.common.IAggregation[];
|
|
1872
|
+
search?: $requests.wix.common.ISearchDetails;
|
|
1873
|
+
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1874
|
+
}
|
|
1875
|
+
export class CursorSearch implements ICursorSearch {
|
|
1876
|
+
constructor(data?: ICursorSearch);
|
|
1877
|
+
filter?: { [key: string]: any };
|
|
1878
|
+
sort?: $requests.wix.common.ISorting[];
|
|
1879
|
+
aggregations?: $requests.wix.common.IAggregation[];
|
|
1880
|
+
search?: $requests.wix.common.ISearchDetails;
|
|
1881
|
+
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1882
|
+
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1883
|
+
}
|
|
1866
1884
|
export interface ISearchDetails {
|
|
1867
1885
|
mode?: $requests.wix.common.SearchDetails.Mode;
|
|
1868
1886
|
expression?: string;
|
|
@@ -3583,6 +3601,7 @@ declare namespace $responses {
|
|
|
3583
3601
|
hidden?: boolean;
|
|
3584
3602
|
grouping?: string;
|
|
3585
3603
|
type: $responses.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
3604
|
+
displayOnly?: boolean;
|
|
3586
3605
|
}
|
|
3587
3606
|
export class Translatable implements ITranslatable {
|
|
3588
3607
|
constructor(data?: ITranslatable);
|
|
@@ -3590,6 +3609,7 @@ declare namespace $responses {
|
|
|
3590
3609
|
hidden?: boolean;
|
|
3591
3610
|
grouping?: string;
|
|
3592
3611
|
type: $responses.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
3612
|
+
displayOnly?: boolean;
|
|
3593
3613
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
3594
3614
|
}
|
|
3595
3615
|
export namespace Translatable {
|
|
@@ -4625,6 +4645,22 @@ declare namespace $responses {
|
|
|
4625
4645
|
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4626
4646
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
4627
4647
|
}
|
|
4648
|
+
export interface ICursorSearch {
|
|
4649
|
+
filter?: { [key: string]: any };
|
|
4650
|
+
sort: $responses.wix.common.ISorting[];
|
|
4651
|
+
aggregations: $responses.wix.common.IAggregation[];
|
|
4652
|
+
search?: $responses.wix.common.ISearchDetails;
|
|
4653
|
+
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4654
|
+
}
|
|
4655
|
+
export class CursorSearch implements ICursorSearch {
|
|
4656
|
+
constructor(data?: ICursorSearch);
|
|
4657
|
+
filter?: { [key: string]: any };
|
|
4658
|
+
sort: $responses.wix.common.ISorting[];
|
|
4659
|
+
aggregations: $responses.wix.common.IAggregation[];
|
|
4660
|
+
search?: $responses.wix.common.ISearchDetails;
|
|
4661
|
+
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4662
|
+
static __$$generatedFromProtobuf$$__: Symbol;
|
|
4663
|
+
}
|
|
4628
4664
|
export interface ISearchDetails {
|
|
4629
4665
|
mode: $responses.wix.common.SearchDetails.Mode;
|
|
4630
4666
|
expression?: string;
|
|
@@ -821,6 +821,7 @@ declare namespace $wrapper {
|
|
|
821
821
|
hidden?: (boolean | null);
|
|
822
822
|
grouping?: (string | null);
|
|
823
823
|
type?: ($wrapper.wix.coreservices.businessschema.v1.Translatable.Type | null);
|
|
824
|
+
displayOnly?: (boolean | null);
|
|
824
825
|
}
|
|
825
826
|
export class Translatable implements ITranslatable {
|
|
826
827
|
constructor(data?: ITranslatable);
|
|
@@ -828,6 +829,7 @@ declare namespace $wrapper {
|
|
|
828
829
|
hidden?: (boolean | null);
|
|
829
830
|
grouping?: (string | null);
|
|
830
831
|
type?: ($wrapper.wix.coreservices.businessschema.v1.Translatable.Type | null);
|
|
832
|
+
displayOnly?: (boolean | null);
|
|
831
833
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
832
834
|
}
|
|
833
835
|
export namespace Translatable {
|
|
@@ -1876,6 +1878,22 @@ declare namespace $wrapper {
|
|
|
1876
1878
|
cursorPaging?: ($wrapper.wix.common.ICursorPaging | null);
|
|
1877
1879
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1878
1880
|
}
|
|
1881
|
+
export interface ICursorSearch {
|
|
1882
|
+
filter?: ({ [key: string]: any } | null);
|
|
1883
|
+
sort?: ($wrapper.wix.common.ISorting[] | null);
|
|
1884
|
+
aggregations?: ($wrapper.wix.common.IAggregation[] | null);
|
|
1885
|
+
search?: ($wrapper.wix.common.ISearchDetails | null);
|
|
1886
|
+
cursorPaging?: ($wrapper.wix.common.ICursorPaging | null);
|
|
1887
|
+
}
|
|
1888
|
+
export class CursorSearch implements ICursorSearch {
|
|
1889
|
+
constructor(data?: ICursorSearch);
|
|
1890
|
+
filter?: ({ [key: string]: any } | null);
|
|
1891
|
+
sort?: ($wrapper.wix.common.ISorting[] | null);
|
|
1892
|
+
aggregations?: ($wrapper.wix.common.IAggregation[] | null);
|
|
1893
|
+
search?: ($wrapper.wix.common.ISearchDetails | null);
|
|
1894
|
+
cursorPaging?: ($wrapper.wix.common.ICursorPaging | null);
|
|
1895
|
+
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1896
|
+
}
|
|
1879
1897
|
export interface ISearchDetails {
|
|
1880
1898
|
mode?: ($wrapper.wix.common.SearchDetails.Mode | null);
|
|
1881
1899
|
expression?: (string | null);
|
|
@@ -10,7 +10,7 @@ $root.__options = {
|
|
|
10
10
|
'stringLongs': true,
|
|
11
11
|
'stdCase': false,
|
|
12
12
|
'generatorVersion': '2.0.1096',
|
|
13
|
-
'contentHash': '
|
|
13
|
+
'contentHash': '11ac2c088312b764cbd806bc58fb44585ec0b6ca'
|
|
14
14
|
};
|
|
15
15
|
$root.__lookup = function (pbjs) {
|
|
16
16
|
const root = pbjs.Root.fromJSON({
|
|
@@ -1904,6 +1904,12 @@ $root.__lookup = function (pbjs) {
|
|
|
1904
1904
|
'id': 4,
|
|
1905
1905
|
'comment': null,
|
|
1906
1906
|
'parsedOptions': null
|
|
1907
|
+
},
|
|
1908
|
+
'displayOnly': {
|
|
1909
|
+
'type': 'google.protobuf.BoolValue',
|
|
1910
|
+
'id': 5,
|
|
1911
|
+
'comment': null,
|
|
1912
|
+
'parsedOptions': null
|
|
1907
1913
|
}
|
|
1908
1914
|
},
|
|
1909
1915
|
'nested': {
|
|
@@ -4587,6 +4593,64 @@ $root.__lookup = function (pbjs) {
|
|
|
4587
4593
|
},
|
|
4588
4594
|
'comment': null
|
|
4589
4595
|
},
|
|
4596
|
+
'CursorSearch': {
|
|
4597
|
+
'options': { '(.wix.api.decomposite_of)': 'wix.common.Search' },
|
|
4598
|
+
'oneofs': {
|
|
4599
|
+
'pagingMethod': {
|
|
4600
|
+
'oneof': ['cursorPaging'],
|
|
4601
|
+
'comment': null
|
|
4602
|
+
}
|
|
4603
|
+
},
|
|
4604
|
+
'fields': {
|
|
4605
|
+
'filter': {
|
|
4606
|
+
'type': 'google.protobuf.Struct',
|
|
4607
|
+
'id': 1,
|
|
4608
|
+
'comment': null,
|
|
4609
|
+
'parsedOptions': null
|
|
4610
|
+
},
|
|
4611
|
+
'sort': {
|
|
4612
|
+
'rule': 'repeated',
|
|
4613
|
+
'type': 'Sorting',
|
|
4614
|
+
'id': 2,
|
|
4615
|
+
'comment': null,
|
|
4616
|
+
'parsedOptions': null
|
|
4617
|
+
},
|
|
4618
|
+
'aggregations': {
|
|
4619
|
+
'rule': 'repeated',
|
|
4620
|
+
'type': 'Aggregation',
|
|
4621
|
+
'id': 5,
|
|
4622
|
+
'comment': null,
|
|
4623
|
+
'parsedOptions': null
|
|
4624
|
+
},
|
|
4625
|
+
'search': {
|
|
4626
|
+
'type': 'SearchDetails',
|
|
4627
|
+
'id': 6,
|
|
4628
|
+
'comment': null,
|
|
4629
|
+
'parsedOptions': null
|
|
4630
|
+
},
|
|
4631
|
+
'cursorPaging': {
|
|
4632
|
+
'type': 'CursorPaging',
|
|
4633
|
+
'id': 8,
|
|
4634
|
+
'comment': null,
|
|
4635
|
+
'parsedOptions': null
|
|
4636
|
+
}
|
|
4637
|
+
},
|
|
4638
|
+
'reserved': [
|
|
4639
|
+
[
|
|
4640
|
+
3,
|
|
4641
|
+
3
|
|
4642
|
+
],
|
|
4643
|
+
[
|
|
4644
|
+
4,
|
|
4645
|
+
4
|
|
4646
|
+
],
|
|
4647
|
+
[
|
|
4648
|
+
7,
|
|
4649
|
+
7
|
|
4650
|
+
]
|
|
4651
|
+
],
|
|
4652
|
+
'comment': null
|
|
4653
|
+
},
|
|
4590
4654
|
'SearchDetails': {
|
|
4591
4655
|
'fields': {
|
|
4592
4656
|
'mode': {
|
|
@@ -15697,6 +15761,7 @@ $root.wix = (function () {
|
|
|
15697
15761
|
this.hidden = props && props.hidden;
|
|
15698
15762
|
this.grouping = props && props.grouping;
|
|
15699
15763
|
this.type = props && props.type;
|
|
15764
|
+
this.displayOnly = props && props.displayOnly;
|
|
15700
15765
|
}
|
|
15701
15766
|
static toJSON(obj, helper, withDefaults) {
|
|
15702
15767
|
if (obj == null) {
|
|
@@ -15723,6 +15788,11 @@ $root.wix = (function () {
|
|
|
15723
15788
|
} else if (withDefaults) {
|
|
15724
15789
|
json['type'] = 'UNDEFINED_TYPE';
|
|
15725
15790
|
}
|
|
15791
|
+
if (obj['displayOnly'] != null) {
|
|
15792
|
+
json['displayOnly'] = $root.google.protobuf.BoolValue.toJSON(obj['displayOnly'], helper, withDefaults);
|
|
15793
|
+
} else if (withDefaults) {
|
|
15794
|
+
delete json['displayOnly'];
|
|
15795
|
+
}
|
|
15726
15796
|
return json;
|
|
15727
15797
|
}
|
|
15728
15798
|
}
|
|
@@ -15757,6 +15827,13 @@ $root.wix = (function () {
|
|
|
15757
15827
|
} else {
|
|
15758
15828
|
delete result['type'];
|
|
15759
15829
|
}
|
|
15830
|
+
if (json['displayOnly'] != null) {
|
|
15831
|
+
result['displayOnly'] = $root.google.protobuf.BoolValue.fromJSON(json['displayOnly'], helper);
|
|
15832
|
+
} else if (withDefaults !== false) {
|
|
15833
|
+
delete result['displayOnly'];
|
|
15834
|
+
} else {
|
|
15835
|
+
delete result['displayOnly'];
|
|
15836
|
+
}
|
|
15760
15837
|
return result;
|
|
15761
15838
|
} else
|
|
15762
15839
|
return json;
|
|
@@ -15778,6 +15855,9 @@ $root.wix = (function () {
|
|
|
15778
15855
|
if (obj['type'] != null) {
|
|
15779
15856
|
grpc['type'] = obj['type'];
|
|
15780
15857
|
}
|
|
15858
|
+
if (obj['displayOnly'] != null) {
|
|
15859
|
+
grpc['displayOnly'] = $root.google.protobuf.BoolValue.toGRPC(obj['displayOnly'], helper);
|
|
15860
|
+
}
|
|
15781
15861
|
return grpc;
|
|
15782
15862
|
}
|
|
15783
15863
|
}
|
|
@@ -15806,6 +15886,11 @@ $root.wix = (function () {
|
|
|
15806
15886
|
} else {
|
|
15807
15887
|
result['type'] = 'UNDEFINED_TYPE';
|
|
15808
15888
|
}
|
|
15889
|
+
if (grpc['displayOnly'] != null) {
|
|
15890
|
+
result['displayOnly'] = $root.google.protobuf.BoolValue.fromGRPC(grpc['displayOnly'], helper);
|
|
15891
|
+
} else {
|
|
15892
|
+
delete result['displayOnly'];
|
|
15893
|
+
}
|
|
15809
15894
|
return result;
|
|
15810
15895
|
}
|
|
15811
15896
|
}
|
|
@@ -25834,6 +25919,187 @@ $root.wix = (function () {
|
|
|
25834
25919
|
});
|
|
25835
25920
|
return Search;
|
|
25836
25921
|
}());;
|
|
25922
|
+
_common.CursorSearch = (function () {
|
|
25923
|
+
class CursorSearch {
|
|
25924
|
+
constructor(props) {
|
|
25925
|
+
this.filter = props && props.filter;
|
|
25926
|
+
this.sort = props && props.sort;
|
|
25927
|
+
this.aggregations = props && props.aggregations;
|
|
25928
|
+
this.search = props && props.search;
|
|
25929
|
+
this.cursorPaging = props && props.cursorPaging;
|
|
25930
|
+
}
|
|
25931
|
+
static toJSON(obj, helper, withDefaults) {
|
|
25932
|
+
if (obj == null) {
|
|
25933
|
+
return null;
|
|
25934
|
+
} else {
|
|
25935
|
+
const json = {};
|
|
25936
|
+
if (obj['filter'] != null) {
|
|
25937
|
+
json['filter'] = $root.google.protobuf.Struct.toJSON(obj['filter'], helper, withDefaults);
|
|
25938
|
+
} else if (withDefaults) {
|
|
25939
|
+
delete json['filter'];
|
|
25940
|
+
}
|
|
25941
|
+
if (obj['sort'] != null) {
|
|
25942
|
+
json['sort'] = obj['sort'].map(e => {
|
|
25943
|
+
return $root.wix.common.Sorting.toJSON(e, helper, withDefaults);
|
|
25944
|
+
});
|
|
25945
|
+
} else if (withDefaults) {
|
|
25946
|
+
json['sort'] = [];
|
|
25947
|
+
}
|
|
25948
|
+
if (obj['aggregations'] != null) {
|
|
25949
|
+
json['aggregations'] = obj['aggregations'].map(e => {
|
|
25950
|
+
return $root.wix.common.Aggregation.toJSON(e, helper, withDefaults);
|
|
25951
|
+
});
|
|
25952
|
+
} else if (withDefaults) {
|
|
25953
|
+
json['aggregations'] = [];
|
|
25954
|
+
}
|
|
25955
|
+
if (obj['search'] != null) {
|
|
25956
|
+
json['search'] = $root.wix.common.SearchDetails.toJSON(obj['search'], helper, withDefaults);
|
|
25957
|
+
} else if (withDefaults) {
|
|
25958
|
+
delete json['search'];
|
|
25959
|
+
}
|
|
25960
|
+
if (obj['cursorPaging'] != null) {
|
|
25961
|
+
json['cursorPaging'] = $root.wix.common.CursorPaging.toJSON(obj['cursorPaging'], helper, withDefaults);
|
|
25962
|
+
} else if (withDefaults) {
|
|
25963
|
+
delete json['cursorPaging'];
|
|
25964
|
+
}
|
|
25965
|
+
return json;
|
|
25966
|
+
}
|
|
25967
|
+
}
|
|
25968
|
+
static fromJSON(json, helper, withDefaults) {
|
|
25969
|
+
if (typeof json === 'object' && !Array.isArray(json)) {
|
|
25970
|
+
const result = new $root.wix.common.CursorSearch();
|
|
25971
|
+
if (json['filter'] != null) {
|
|
25972
|
+
result['filter'] = $root.google.protobuf.Struct.fromJSON(json['filter'], helper);
|
|
25973
|
+
} else if (withDefaults !== false) {
|
|
25974
|
+
delete result['filter'];
|
|
25975
|
+
} else {
|
|
25976
|
+
delete result['filter'];
|
|
25977
|
+
}
|
|
25978
|
+
if (json['sort'] != null) {
|
|
25979
|
+
result['sort'] = Array.isArray(json['sort']) ? json['sort'].map(e => {
|
|
25980
|
+
return $root.wix.common.Sorting.fromJSON(e, helper);
|
|
25981
|
+
}) : json['sort'];
|
|
25982
|
+
} else if (withDefaults !== false) {
|
|
25983
|
+
result['sort'] = [];
|
|
25984
|
+
} else {
|
|
25985
|
+
delete result['sort'];
|
|
25986
|
+
}
|
|
25987
|
+
if (json['aggregations'] != null) {
|
|
25988
|
+
result['aggregations'] = Array.isArray(json['aggregations']) ? json['aggregations'].map(e => {
|
|
25989
|
+
return $root.wix.common.Aggregation.fromJSON(e, helper);
|
|
25990
|
+
}) : json['aggregations'];
|
|
25991
|
+
} else if (withDefaults !== false) {
|
|
25992
|
+
result['aggregations'] = [];
|
|
25993
|
+
} else {
|
|
25994
|
+
delete result['aggregations'];
|
|
25995
|
+
}
|
|
25996
|
+
if (json['search'] != null) {
|
|
25997
|
+
result['search'] = $root.wix.common.SearchDetails.fromJSON(json['search'], helper);
|
|
25998
|
+
} else if (withDefaults !== false) {
|
|
25999
|
+
delete result['search'];
|
|
26000
|
+
} else {
|
|
26001
|
+
delete result['search'];
|
|
26002
|
+
}
|
|
26003
|
+
if (json['cursorPaging'] != null) {
|
|
26004
|
+
result['cursorPaging'] = $root.wix.common.CursorPaging.fromJSON(json['cursorPaging'], helper);
|
|
26005
|
+
} else if (withDefaults !== false) {
|
|
26006
|
+
delete result['cursorPaging'];
|
|
26007
|
+
} else {
|
|
26008
|
+
delete result['cursorPaging'];
|
|
26009
|
+
}
|
|
26010
|
+
return result;
|
|
26011
|
+
} else
|
|
26012
|
+
return json;
|
|
26013
|
+
}
|
|
26014
|
+
static toGRPC(obj, helper) {
|
|
26015
|
+
if (obj == null) {
|
|
26016
|
+
return null;
|
|
26017
|
+
} else {
|
|
26018
|
+
const grpc = {};
|
|
26019
|
+
if (obj['filter'] != null) {
|
|
26020
|
+
grpc['filter'] = $root.google.protobuf.Struct.toGRPC(obj['filter'], helper);
|
|
26021
|
+
}
|
|
26022
|
+
if (obj['sort'] != null) {
|
|
26023
|
+
grpc['sort'] = obj['sort'].map(e => {
|
|
26024
|
+
return $root.wix.common.Sorting.toGRPC(e, helper);
|
|
26025
|
+
});
|
|
26026
|
+
}
|
|
26027
|
+
if (obj['aggregations'] != null) {
|
|
26028
|
+
grpc['aggregations'] = obj['aggregations'].map(e => {
|
|
26029
|
+
return $root.wix.common.Aggregation.toGRPC(e, helper);
|
|
26030
|
+
});
|
|
26031
|
+
}
|
|
26032
|
+
if (obj['search'] != null) {
|
|
26033
|
+
grpc['search'] = $root.wix.common.SearchDetails.toGRPC(obj['search'], helper);
|
|
26034
|
+
}
|
|
26035
|
+
if (obj['cursorPaging'] != null) {
|
|
26036
|
+
grpc['cursorPaging'] = $root.wix.common.CursorPaging.toGRPC(obj['cursorPaging'], helper);
|
|
26037
|
+
}
|
|
26038
|
+
return grpc;
|
|
26039
|
+
}
|
|
26040
|
+
}
|
|
26041
|
+
static fromGRPC(grpc, helper) {
|
|
26042
|
+
if (grpc == null) {
|
|
26043
|
+
return null;
|
|
26044
|
+
} else {
|
|
26045
|
+
const result = new $root.wix.common.CursorSearch();
|
|
26046
|
+
if (grpc['filter'] != null) {
|
|
26047
|
+
result['filter'] = $root.google.protobuf.Struct.fromGRPC(grpc['filter'], helper);
|
|
26048
|
+
} else {
|
|
26049
|
+
delete result['filter'];
|
|
26050
|
+
}
|
|
26051
|
+
if (grpc['sort'] != null) {
|
|
26052
|
+
result['sort'] = grpc['sort'].map(e => {
|
|
26053
|
+
return $root.wix.common.Sorting.fromGRPC(e, helper);
|
|
26054
|
+
});
|
|
26055
|
+
} else {
|
|
26056
|
+
result['sort'] = [];
|
|
26057
|
+
}
|
|
26058
|
+
if (grpc['aggregations'] != null) {
|
|
26059
|
+
result['aggregations'] = grpc['aggregations'].map(e => {
|
|
26060
|
+
return $root.wix.common.Aggregation.fromGRPC(e, helper);
|
|
26061
|
+
});
|
|
26062
|
+
} else {
|
|
26063
|
+
result['aggregations'] = [];
|
|
26064
|
+
}
|
|
26065
|
+
if (grpc['search'] != null) {
|
|
26066
|
+
result['search'] = $root.wix.common.SearchDetails.fromGRPC(grpc['search'], helper);
|
|
26067
|
+
} else {
|
|
26068
|
+
delete result['search'];
|
|
26069
|
+
}
|
|
26070
|
+
if (grpc['cursorPaging'] != null) {
|
|
26071
|
+
result['cursorPaging'] = $root.wix.common.CursorPaging.fromGRPC(grpc['cursorPaging'], helper);
|
|
26072
|
+
} else {
|
|
26073
|
+
delete result['cursorPaging'];
|
|
26074
|
+
}
|
|
26075
|
+
return result;
|
|
26076
|
+
}
|
|
26077
|
+
}
|
|
26078
|
+
}
|
|
26079
|
+
__builtIn.Object.defineProperty(CursorSearch.prototype, '__proto', {
|
|
26080
|
+
value: pbjs => {
|
|
26081
|
+
return $root.__lookup(pbjs)('wix.common.CursorSearch');
|
|
26082
|
+
},
|
|
26083
|
+
enumerable: false,
|
|
26084
|
+
configurable: false
|
|
26085
|
+
});
|
|
26086
|
+
__builtIn.Object.defineProperty(CursorSearch.prototype, '__fqn__', {
|
|
26087
|
+
value: 'wix.common.CursorSearch',
|
|
26088
|
+
enumerable: false,
|
|
26089
|
+
configurable: false
|
|
26090
|
+
});
|
|
26091
|
+
__builtIn.Object.defineProperty(CursorSearch.prototype, '__options__', {
|
|
26092
|
+
value: $root.__options,
|
|
26093
|
+
enumerable: false,
|
|
26094
|
+
configurable: false
|
|
26095
|
+
});
|
|
26096
|
+
__builtIn.Object.defineProperty(CursorSearch.prototype, '__root__', {
|
|
26097
|
+
value: $root,
|
|
26098
|
+
enumerable: false,
|
|
26099
|
+
configurable: false
|
|
26100
|
+
});
|
|
26101
|
+
return CursorSearch;
|
|
26102
|
+
}());;
|
|
25837
26103
|
_common.SearchDetails = (function () {
|
|
25838
26104
|
class SearchDetails {
|
|
25839
26105
|
constructor(props) {
|
|
@@ -821,6 +821,7 @@ declare namespace $requests {
|
|
|
821
821
|
hidden?: boolean;
|
|
822
822
|
grouping?: string;
|
|
823
823
|
type: $requests.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
824
|
+
displayOnly?: boolean;
|
|
824
825
|
}
|
|
825
826
|
export class Translatable implements ITranslatable {
|
|
826
827
|
constructor(data?: ITranslatable);
|
|
@@ -828,6 +829,7 @@ declare namespace $requests {
|
|
|
828
829
|
hidden?: boolean;
|
|
829
830
|
grouping?: string;
|
|
830
831
|
type: $requests.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
832
|
+
displayOnly?: boolean;
|
|
831
833
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
832
834
|
}
|
|
833
835
|
export namespace Translatable {
|
|
@@ -1863,6 +1865,22 @@ declare namespace $requests {
|
|
|
1863
1865
|
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1864
1866
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1865
1867
|
}
|
|
1868
|
+
export interface ICursorSearch {
|
|
1869
|
+
filter?: { [key: string]: any };
|
|
1870
|
+
sort: $requests.wix.common.ISorting[];
|
|
1871
|
+
aggregations: $requests.wix.common.IAggregation[];
|
|
1872
|
+
search?: $requests.wix.common.ISearchDetails;
|
|
1873
|
+
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1874
|
+
}
|
|
1875
|
+
export class CursorSearch implements ICursorSearch {
|
|
1876
|
+
constructor(data?: ICursorSearch);
|
|
1877
|
+
filter?: { [key: string]: any };
|
|
1878
|
+
sort: $requests.wix.common.ISorting[];
|
|
1879
|
+
aggregations: $requests.wix.common.IAggregation[];
|
|
1880
|
+
search?: $requests.wix.common.ISearchDetails;
|
|
1881
|
+
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1882
|
+
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1883
|
+
}
|
|
1866
1884
|
export interface ISearchDetails {
|
|
1867
1885
|
mode: $requests.wix.common.SearchDetails.Mode;
|
|
1868
1886
|
expression?: string;
|
|
@@ -3583,6 +3601,7 @@ declare namespace $responses {
|
|
|
3583
3601
|
hidden?: boolean;
|
|
3584
3602
|
grouping?: string;
|
|
3585
3603
|
type?: $responses.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
3604
|
+
displayOnly?: boolean;
|
|
3586
3605
|
}
|
|
3587
3606
|
export class Translatable implements ITranslatable {
|
|
3588
3607
|
constructor(data?: ITranslatable);
|
|
@@ -3590,6 +3609,7 @@ declare namespace $responses {
|
|
|
3590
3609
|
hidden?: boolean;
|
|
3591
3610
|
grouping?: string;
|
|
3592
3611
|
type?: $responses.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
3612
|
+
displayOnly?: boolean;
|
|
3593
3613
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
3594
3614
|
}
|
|
3595
3615
|
export namespace Translatable {
|
|
@@ -4625,6 +4645,22 @@ declare namespace $responses {
|
|
|
4625
4645
|
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4626
4646
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
4627
4647
|
}
|
|
4648
|
+
export interface ICursorSearch {
|
|
4649
|
+
filter?: { [key: string]: any };
|
|
4650
|
+
sort?: $responses.wix.common.ISorting[];
|
|
4651
|
+
aggregations?: $responses.wix.common.IAggregation[];
|
|
4652
|
+
search?: $responses.wix.common.ISearchDetails;
|
|
4653
|
+
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4654
|
+
}
|
|
4655
|
+
export class CursorSearch implements ICursorSearch {
|
|
4656
|
+
constructor(data?: ICursorSearch);
|
|
4657
|
+
filter?: { [key: string]: any };
|
|
4658
|
+
sort?: $responses.wix.common.ISorting[];
|
|
4659
|
+
aggregations?: $responses.wix.common.IAggregation[];
|
|
4660
|
+
search?: $responses.wix.common.ISearchDetails;
|
|
4661
|
+
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4662
|
+
static __$$generatedFromProtobuf$$__: Symbol;
|
|
4663
|
+
}
|
|
4628
4664
|
export interface ISearchDetails {
|
|
4629
4665
|
mode?: $responses.wix.common.SearchDetails.Mode;
|
|
4630
4666
|
expression?: string;
|
|
@@ -821,6 +821,7 @@ declare namespace $requests {
|
|
|
821
821
|
hidden?: boolean;
|
|
822
822
|
grouping?: string;
|
|
823
823
|
type?: $requests.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
824
|
+
displayOnly?: boolean;
|
|
824
825
|
}
|
|
825
826
|
export class Translatable implements ITranslatable {
|
|
826
827
|
constructor(data?: ITranslatable);
|
|
@@ -828,6 +829,7 @@ declare namespace $requests {
|
|
|
828
829
|
hidden?: boolean;
|
|
829
830
|
grouping?: string;
|
|
830
831
|
type?: $requests.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
832
|
+
displayOnly?: boolean;
|
|
831
833
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
832
834
|
}
|
|
833
835
|
export namespace Translatable {
|
|
@@ -1863,6 +1865,22 @@ declare namespace $requests {
|
|
|
1863
1865
|
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1864
1866
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1865
1867
|
}
|
|
1868
|
+
export interface ICursorSearch {
|
|
1869
|
+
filter?: { [key: string]: any };
|
|
1870
|
+
sort?: $requests.wix.common.ISorting[];
|
|
1871
|
+
aggregations?: $requests.wix.common.IAggregation[];
|
|
1872
|
+
search?: $requests.wix.common.ISearchDetails;
|
|
1873
|
+
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1874
|
+
}
|
|
1875
|
+
export class CursorSearch implements ICursorSearch {
|
|
1876
|
+
constructor(data?: ICursorSearch);
|
|
1877
|
+
filter?: { [key: string]: any };
|
|
1878
|
+
sort?: $requests.wix.common.ISorting[];
|
|
1879
|
+
aggregations?: $requests.wix.common.IAggregation[];
|
|
1880
|
+
search?: $requests.wix.common.ISearchDetails;
|
|
1881
|
+
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1882
|
+
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1883
|
+
}
|
|
1866
1884
|
export interface ISearchDetails {
|
|
1867
1885
|
mode?: $requests.wix.common.SearchDetails.Mode;
|
|
1868
1886
|
expression?: string;
|
|
@@ -3583,6 +3601,7 @@ declare namespace $responses {
|
|
|
3583
3601
|
hidden?: boolean;
|
|
3584
3602
|
grouping?: string;
|
|
3585
3603
|
type: $responses.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
3604
|
+
displayOnly?: boolean;
|
|
3586
3605
|
}
|
|
3587
3606
|
export class Translatable implements ITranslatable {
|
|
3588
3607
|
constructor(data?: ITranslatable);
|
|
@@ -3590,6 +3609,7 @@ declare namespace $responses {
|
|
|
3590
3609
|
hidden?: boolean;
|
|
3591
3610
|
grouping?: string;
|
|
3592
3611
|
type: $responses.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
3612
|
+
displayOnly?: boolean;
|
|
3593
3613
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
3594
3614
|
}
|
|
3595
3615
|
export namespace Translatable {
|
|
@@ -4625,6 +4645,22 @@ declare namespace $responses {
|
|
|
4625
4645
|
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4626
4646
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
4627
4647
|
}
|
|
4648
|
+
export interface ICursorSearch {
|
|
4649
|
+
filter?: { [key: string]: any };
|
|
4650
|
+
sort: $responses.wix.common.ISorting[];
|
|
4651
|
+
aggregations: $responses.wix.common.IAggregation[];
|
|
4652
|
+
search?: $responses.wix.common.ISearchDetails;
|
|
4653
|
+
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4654
|
+
}
|
|
4655
|
+
export class CursorSearch implements ICursorSearch {
|
|
4656
|
+
constructor(data?: ICursorSearch);
|
|
4657
|
+
filter?: { [key: string]: any };
|
|
4658
|
+
sort: $responses.wix.common.ISorting[];
|
|
4659
|
+
aggregations: $responses.wix.common.IAggregation[];
|
|
4660
|
+
search?: $responses.wix.common.ISearchDetails;
|
|
4661
|
+
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4662
|
+
static __$$generatedFromProtobuf$$__: Symbol;
|
|
4663
|
+
}
|
|
4628
4664
|
export interface ISearchDetails {
|
|
4629
4665
|
mode: $responses.wix.common.SearchDetails.Mode;
|
|
4630
4666
|
expression?: string;
|
|
@@ -821,6 +821,7 @@ declare namespace $wrapper {
|
|
|
821
821
|
hidden?: (boolean | null);
|
|
822
822
|
grouping?: (string | null);
|
|
823
823
|
type?: ($wrapper.wix.coreservices.businessschema.v1.Translatable.Type | null);
|
|
824
|
+
displayOnly?: (boolean | null);
|
|
824
825
|
}
|
|
825
826
|
export class Translatable implements ITranslatable {
|
|
826
827
|
constructor(data?: ITranslatable);
|
|
@@ -828,6 +829,7 @@ declare namespace $wrapper {
|
|
|
828
829
|
hidden?: (boolean | null);
|
|
829
830
|
grouping?: (string | null);
|
|
830
831
|
type?: ($wrapper.wix.coreservices.businessschema.v1.Translatable.Type | null);
|
|
832
|
+
displayOnly?: (boolean | null);
|
|
831
833
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
832
834
|
}
|
|
833
835
|
export namespace Translatable {
|
|
@@ -1876,6 +1878,22 @@ declare namespace $wrapper {
|
|
|
1876
1878
|
cursorPaging?: ($wrapper.wix.common.ICursorPaging | null);
|
|
1877
1879
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1878
1880
|
}
|
|
1881
|
+
export interface ICursorSearch {
|
|
1882
|
+
filter?: ({ [key: string]: any } | null);
|
|
1883
|
+
sort?: ($wrapper.wix.common.ISorting[] | null);
|
|
1884
|
+
aggregations?: ($wrapper.wix.common.IAggregation[] | null);
|
|
1885
|
+
search?: ($wrapper.wix.common.ISearchDetails | null);
|
|
1886
|
+
cursorPaging?: ($wrapper.wix.common.ICursorPaging | null);
|
|
1887
|
+
}
|
|
1888
|
+
export class CursorSearch implements ICursorSearch {
|
|
1889
|
+
constructor(data?: ICursorSearch);
|
|
1890
|
+
filter?: ({ [key: string]: any } | null);
|
|
1891
|
+
sort?: ($wrapper.wix.common.ISorting[] | null);
|
|
1892
|
+
aggregations?: ($wrapper.wix.common.IAggregation[] | null);
|
|
1893
|
+
search?: ($wrapper.wix.common.ISearchDetails | null);
|
|
1894
|
+
cursorPaging?: ($wrapper.wix.common.ICursorPaging | null);
|
|
1895
|
+
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1896
|
+
}
|
|
1879
1897
|
export interface ISearchDetails {
|
|
1880
1898
|
mode?: ($wrapper.wix.common.SearchDetails.Mode | null);
|
|
1881
1899
|
expression?: (string | null);
|
package/dist/src/proto/index.js
CHANGED
|
@@ -10,7 +10,7 @@ $root.__options = {
|
|
|
10
10
|
'stringLongs': true,
|
|
11
11
|
'stdCase': false,
|
|
12
12
|
'generatorVersion': '2.0.1096',
|
|
13
|
-
'contentHash': '
|
|
13
|
+
'contentHash': '11ac2c088312b764cbd806bc58fb44585ec0b6ca'
|
|
14
14
|
};
|
|
15
15
|
$root.__lookup = function (pbjs) {
|
|
16
16
|
const root = pbjs.Root.fromJSON({
|
|
@@ -1904,6 +1904,12 @@ $root.__lookup = function (pbjs) {
|
|
|
1904
1904
|
'id': 4,
|
|
1905
1905
|
'comment': null,
|
|
1906
1906
|
'parsedOptions': null
|
|
1907
|
+
},
|
|
1908
|
+
'displayOnly': {
|
|
1909
|
+
'type': 'google.protobuf.BoolValue',
|
|
1910
|
+
'id': 5,
|
|
1911
|
+
'comment': null,
|
|
1912
|
+
'parsedOptions': null
|
|
1907
1913
|
}
|
|
1908
1914
|
},
|
|
1909
1915
|
'nested': {
|
|
@@ -4587,6 +4593,64 @@ $root.__lookup = function (pbjs) {
|
|
|
4587
4593
|
},
|
|
4588
4594
|
'comment': null
|
|
4589
4595
|
},
|
|
4596
|
+
'CursorSearch': {
|
|
4597
|
+
'options': { '(.wix.api.decomposite_of)': 'wix.common.Search' },
|
|
4598
|
+
'oneofs': {
|
|
4599
|
+
'pagingMethod': {
|
|
4600
|
+
'oneof': ['cursorPaging'],
|
|
4601
|
+
'comment': null
|
|
4602
|
+
}
|
|
4603
|
+
},
|
|
4604
|
+
'fields': {
|
|
4605
|
+
'filter': {
|
|
4606
|
+
'type': 'google.protobuf.Struct',
|
|
4607
|
+
'id': 1,
|
|
4608
|
+
'comment': null,
|
|
4609
|
+
'parsedOptions': null
|
|
4610
|
+
},
|
|
4611
|
+
'sort': {
|
|
4612
|
+
'rule': 'repeated',
|
|
4613
|
+
'type': 'Sorting',
|
|
4614
|
+
'id': 2,
|
|
4615
|
+
'comment': null,
|
|
4616
|
+
'parsedOptions': null
|
|
4617
|
+
},
|
|
4618
|
+
'aggregations': {
|
|
4619
|
+
'rule': 'repeated',
|
|
4620
|
+
'type': 'Aggregation',
|
|
4621
|
+
'id': 5,
|
|
4622
|
+
'comment': null,
|
|
4623
|
+
'parsedOptions': null
|
|
4624
|
+
},
|
|
4625
|
+
'search': {
|
|
4626
|
+
'type': 'SearchDetails',
|
|
4627
|
+
'id': 6,
|
|
4628
|
+
'comment': null,
|
|
4629
|
+
'parsedOptions': null
|
|
4630
|
+
},
|
|
4631
|
+
'cursorPaging': {
|
|
4632
|
+
'type': 'CursorPaging',
|
|
4633
|
+
'id': 8,
|
|
4634
|
+
'comment': null,
|
|
4635
|
+
'parsedOptions': null
|
|
4636
|
+
}
|
|
4637
|
+
},
|
|
4638
|
+
'reserved': [
|
|
4639
|
+
[
|
|
4640
|
+
3,
|
|
4641
|
+
3
|
|
4642
|
+
],
|
|
4643
|
+
[
|
|
4644
|
+
4,
|
|
4645
|
+
4
|
|
4646
|
+
],
|
|
4647
|
+
[
|
|
4648
|
+
7,
|
|
4649
|
+
7
|
|
4650
|
+
]
|
|
4651
|
+
],
|
|
4652
|
+
'comment': null
|
|
4653
|
+
},
|
|
4590
4654
|
'SearchDetails': {
|
|
4591
4655
|
'fields': {
|
|
4592
4656
|
'mode': {
|
|
@@ -15697,6 +15761,7 @@ $root.wix = (function () {
|
|
|
15697
15761
|
this.hidden = props && props.hidden;
|
|
15698
15762
|
this.grouping = props && props.grouping;
|
|
15699
15763
|
this.type = props && props.type;
|
|
15764
|
+
this.displayOnly = props && props.displayOnly;
|
|
15700
15765
|
}
|
|
15701
15766
|
static toJSON(obj, helper, withDefaults) {
|
|
15702
15767
|
if (obj == null) {
|
|
@@ -15723,6 +15788,11 @@ $root.wix = (function () {
|
|
|
15723
15788
|
} else if (withDefaults) {
|
|
15724
15789
|
json['type'] = 'UNDEFINED_TYPE';
|
|
15725
15790
|
}
|
|
15791
|
+
if (obj['displayOnly'] != null) {
|
|
15792
|
+
json['displayOnly'] = $root.google.protobuf.BoolValue.toJSON(obj['displayOnly'], helper, withDefaults);
|
|
15793
|
+
} else if (withDefaults) {
|
|
15794
|
+
delete json['displayOnly'];
|
|
15795
|
+
}
|
|
15726
15796
|
return json;
|
|
15727
15797
|
}
|
|
15728
15798
|
}
|
|
@@ -15757,6 +15827,13 @@ $root.wix = (function () {
|
|
|
15757
15827
|
} else {
|
|
15758
15828
|
delete result['type'];
|
|
15759
15829
|
}
|
|
15830
|
+
if (json['displayOnly'] != null) {
|
|
15831
|
+
result['displayOnly'] = $root.google.protobuf.BoolValue.fromJSON(json['displayOnly'], helper);
|
|
15832
|
+
} else if (withDefaults !== false) {
|
|
15833
|
+
delete result['displayOnly'];
|
|
15834
|
+
} else {
|
|
15835
|
+
delete result['displayOnly'];
|
|
15836
|
+
}
|
|
15760
15837
|
return result;
|
|
15761
15838
|
} else
|
|
15762
15839
|
return json;
|
|
@@ -15778,6 +15855,9 @@ $root.wix = (function () {
|
|
|
15778
15855
|
if (obj['type'] != null) {
|
|
15779
15856
|
grpc['type'] = obj['type'];
|
|
15780
15857
|
}
|
|
15858
|
+
if (obj['displayOnly'] != null) {
|
|
15859
|
+
grpc['displayOnly'] = $root.google.protobuf.BoolValue.toGRPC(obj['displayOnly'], helper);
|
|
15860
|
+
}
|
|
15781
15861
|
return grpc;
|
|
15782
15862
|
}
|
|
15783
15863
|
}
|
|
@@ -15806,6 +15886,11 @@ $root.wix = (function () {
|
|
|
15806
15886
|
} else {
|
|
15807
15887
|
result['type'] = 'UNDEFINED_TYPE';
|
|
15808
15888
|
}
|
|
15889
|
+
if (grpc['displayOnly'] != null) {
|
|
15890
|
+
result['displayOnly'] = $root.google.protobuf.BoolValue.fromGRPC(grpc['displayOnly'], helper);
|
|
15891
|
+
} else {
|
|
15892
|
+
delete result['displayOnly'];
|
|
15893
|
+
}
|
|
15809
15894
|
return result;
|
|
15810
15895
|
}
|
|
15811
15896
|
}
|
|
@@ -25834,6 +25919,187 @@ $root.wix = (function () {
|
|
|
25834
25919
|
});
|
|
25835
25920
|
return Search;
|
|
25836
25921
|
}());;
|
|
25922
|
+
_common.CursorSearch = (function () {
|
|
25923
|
+
class CursorSearch {
|
|
25924
|
+
constructor(props) {
|
|
25925
|
+
this.filter = props && props.filter;
|
|
25926
|
+
this.sort = props && props.sort;
|
|
25927
|
+
this.aggregations = props && props.aggregations;
|
|
25928
|
+
this.search = props && props.search;
|
|
25929
|
+
this.cursorPaging = props && props.cursorPaging;
|
|
25930
|
+
}
|
|
25931
|
+
static toJSON(obj, helper, withDefaults) {
|
|
25932
|
+
if (obj == null) {
|
|
25933
|
+
return null;
|
|
25934
|
+
} else {
|
|
25935
|
+
const json = {};
|
|
25936
|
+
if (obj['filter'] != null) {
|
|
25937
|
+
json['filter'] = $root.google.protobuf.Struct.toJSON(obj['filter'], helper, withDefaults);
|
|
25938
|
+
} else if (withDefaults) {
|
|
25939
|
+
delete json['filter'];
|
|
25940
|
+
}
|
|
25941
|
+
if (obj['sort'] != null) {
|
|
25942
|
+
json['sort'] = obj['sort'].map(e => {
|
|
25943
|
+
return $root.wix.common.Sorting.toJSON(e, helper, withDefaults);
|
|
25944
|
+
});
|
|
25945
|
+
} else if (withDefaults) {
|
|
25946
|
+
json['sort'] = [];
|
|
25947
|
+
}
|
|
25948
|
+
if (obj['aggregations'] != null) {
|
|
25949
|
+
json['aggregations'] = obj['aggregations'].map(e => {
|
|
25950
|
+
return $root.wix.common.Aggregation.toJSON(e, helper, withDefaults);
|
|
25951
|
+
});
|
|
25952
|
+
} else if (withDefaults) {
|
|
25953
|
+
json['aggregations'] = [];
|
|
25954
|
+
}
|
|
25955
|
+
if (obj['search'] != null) {
|
|
25956
|
+
json['search'] = $root.wix.common.SearchDetails.toJSON(obj['search'], helper, withDefaults);
|
|
25957
|
+
} else if (withDefaults) {
|
|
25958
|
+
delete json['search'];
|
|
25959
|
+
}
|
|
25960
|
+
if (obj['cursorPaging'] != null) {
|
|
25961
|
+
json['cursorPaging'] = $root.wix.common.CursorPaging.toJSON(obj['cursorPaging'], helper, withDefaults);
|
|
25962
|
+
} else if (withDefaults) {
|
|
25963
|
+
delete json['cursorPaging'];
|
|
25964
|
+
}
|
|
25965
|
+
return json;
|
|
25966
|
+
}
|
|
25967
|
+
}
|
|
25968
|
+
static fromJSON(json, helper, withDefaults) {
|
|
25969
|
+
if (typeof json === 'object' && !Array.isArray(json)) {
|
|
25970
|
+
const result = new $root.wix.common.CursorSearch();
|
|
25971
|
+
if (json['filter'] != null) {
|
|
25972
|
+
result['filter'] = $root.google.protobuf.Struct.fromJSON(json['filter'], helper);
|
|
25973
|
+
} else if (withDefaults !== false) {
|
|
25974
|
+
delete result['filter'];
|
|
25975
|
+
} else {
|
|
25976
|
+
delete result['filter'];
|
|
25977
|
+
}
|
|
25978
|
+
if (json['sort'] != null) {
|
|
25979
|
+
result['sort'] = Array.isArray(json['sort']) ? json['sort'].map(e => {
|
|
25980
|
+
return $root.wix.common.Sorting.fromJSON(e, helper);
|
|
25981
|
+
}) : json['sort'];
|
|
25982
|
+
} else if (withDefaults !== false) {
|
|
25983
|
+
result['sort'] = [];
|
|
25984
|
+
} else {
|
|
25985
|
+
delete result['sort'];
|
|
25986
|
+
}
|
|
25987
|
+
if (json['aggregations'] != null) {
|
|
25988
|
+
result['aggregations'] = Array.isArray(json['aggregations']) ? json['aggregations'].map(e => {
|
|
25989
|
+
return $root.wix.common.Aggregation.fromJSON(e, helper);
|
|
25990
|
+
}) : json['aggregations'];
|
|
25991
|
+
} else if (withDefaults !== false) {
|
|
25992
|
+
result['aggregations'] = [];
|
|
25993
|
+
} else {
|
|
25994
|
+
delete result['aggregations'];
|
|
25995
|
+
}
|
|
25996
|
+
if (json['search'] != null) {
|
|
25997
|
+
result['search'] = $root.wix.common.SearchDetails.fromJSON(json['search'], helper);
|
|
25998
|
+
} else if (withDefaults !== false) {
|
|
25999
|
+
delete result['search'];
|
|
26000
|
+
} else {
|
|
26001
|
+
delete result['search'];
|
|
26002
|
+
}
|
|
26003
|
+
if (json['cursorPaging'] != null) {
|
|
26004
|
+
result['cursorPaging'] = $root.wix.common.CursorPaging.fromJSON(json['cursorPaging'], helper);
|
|
26005
|
+
} else if (withDefaults !== false) {
|
|
26006
|
+
delete result['cursorPaging'];
|
|
26007
|
+
} else {
|
|
26008
|
+
delete result['cursorPaging'];
|
|
26009
|
+
}
|
|
26010
|
+
return result;
|
|
26011
|
+
} else
|
|
26012
|
+
return json;
|
|
26013
|
+
}
|
|
26014
|
+
static toGRPC(obj, helper) {
|
|
26015
|
+
if (obj == null) {
|
|
26016
|
+
return null;
|
|
26017
|
+
} else {
|
|
26018
|
+
const grpc = {};
|
|
26019
|
+
if (obj['filter'] != null) {
|
|
26020
|
+
grpc['filter'] = $root.google.protobuf.Struct.toGRPC(obj['filter'], helper);
|
|
26021
|
+
}
|
|
26022
|
+
if (obj['sort'] != null) {
|
|
26023
|
+
grpc['sort'] = obj['sort'].map(e => {
|
|
26024
|
+
return $root.wix.common.Sorting.toGRPC(e, helper);
|
|
26025
|
+
});
|
|
26026
|
+
}
|
|
26027
|
+
if (obj['aggregations'] != null) {
|
|
26028
|
+
grpc['aggregations'] = obj['aggregations'].map(e => {
|
|
26029
|
+
return $root.wix.common.Aggregation.toGRPC(e, helper);
|
|
26030
|
+
});
|
|
26031
|
+
}
|
|
26032
|
+
if (obj['search'] != null) {
|
|
26033
|
+
grpc['search'] = $root.wix.common.SearchDetails.toGRPC(obj['search'], helper);
|
|
26034
|
+
}
|
|
26035
|
+
if (obj['cursorPaging'] != null) {
|
|
26036
|
+
grpc['cursorPaging'] = $root.wix.common.CursorPaging.toGRPC(obj['cursorPaging'], helper);
|
|
26037
|
+
}
|
|
26038
|
+
return grpc;
|
|
26039
|
+
}
|
|
26040
|
+
}
|
|
26041
|
+
static fromGRPC(grpc, helper) {
|
|
26042
|
+
if (grpc == null) {
|
|
26043
|
+
return null;
|
|
26044
|
+
} else {
|
|
26045
|
+
const result = new $root.wix.common.CursorSearch();
|
|
26046
|
+
if (grpc['filter'] != null) {
|
|
26047
|
+
result['filter'] = $root.google.protobuf.Struct.fromGRPC(grpc['filter'], helper);
|
|
26048
|
+
} else {
|
|
26049
|
+
delete result['filter'];
|
|
26050
|
+
}
|
|
26051
|
+
if (grpc['sort'] != null) {
|
|
26052
|
+
result['sort'] = grpc['sort'].map(e => {
|
|
26053
|
+
return $root.wix.common.Sorting.fromGRPC(e, helper);
|
|
26054
|
+
});
|
|
26055
|
+
} else {
|
|
26056
|
+
result['sort'] = [];
|
|
26057
|
+
}
|
|
26058
|
+
if (grpc['aggregations'] != null) {
|
|
26059
|
+
result['aggregations'] = grpc['aggregations'].map(e => {
|
|
26060
|
+
return $root.wix.common.Aggregation.fromGRPC(e, helper);
|
|
26061
|
+
});
|
|
26062
|
+
} else {
|
|
26063
|
+
result['aggregations'] = [];
|
|
26064
|
+
}
|
|
26065
|
+
if (grpc['search'] != null) {
|
|
26066
|
+
result['search'] = $root.wix.common.SearchDetails.fromGRPC(grpc['search'], helper);
|
|
26067
|
+
} else {
|
|
26068
|
+
delete result['search'];
|
|
26069
|
+
}
|
|
26070
|
+
if (grpc['cursorPaging'] != null) {
|
|
26071
|
+
result['cursorPaging'] = $root.wix.common.CursorPaging.fromGRPC(grpc['cursorPaging'], helper);
|
|
26072
|
+
} else {
|
|
26073
|
+
delete result['cursorPaging'];
|
|
26074
|
+
}
|
|
26075
|
+
return result;
|
|
26076
|
+
}
|
|
26077
|
+
}
|
|
26078
|
+
}
|
|
26079
|
+
__builtIn.Object.defineProperty(CursorSearch.prototype, '__proto', {
|
|
26080
|
+
value: pbjs => {
|
|
26081
|
+
return $root.__lookup(pbjs)('wix.common.CursorSearch');
|
|
26082
|
+
},
|
|
26083
|
+
enumerable: false,
|
|
26084
|
+
configurable: false
|
|
26085
|
+
});
|
|
26086
|
+
__builtIn.Object.defineProperty(CursorSearch.prototype, '__fqn__', {
|
|
26087
|
+
value: 'wix.common.CursorSearch',
|
|
26088
|
+
enumerable: false,
|
|
26089
|
+
configurable: false
|
|
26090
|
+
});
|
|
26091
|
+
__builtIn.Object.defineProperty(CursorSearch.prototype, '__options__', {
|
|
26092
|
+
value: $root.__options,
|
|
26093
|
+
enumerable: false,
|
|
26094
|
+
configurable: false
|
|
26095
|
+
});
|
|
26096
|
+
__builtIn.Object.defineProperty(CursorSearch.prototype, '__root__', {
|
|
26097
|
+
value: $root,
|
|
26098
|
+
enumerable: false,
|
|
26099
|
+
configurable: false
|
|
26100
|
+
});
|
|
26101
|
+
return CursorSearch;
|
|
26102
|
+
}());;
|
|
25837
26103
|
_common.SearchDetails = (function () {
|
|
25838
26104
|
class SearchDetails {
|
|
25839
26105
|
constructor(props) {
|
|
@@ -821,6 +821,7 @@ declare namespace $requests {
|
|
|
821
821
|
hidden?: boolean;
|
|
822
822
|
grouping?: string;
|
|
823
823
|
type: $requests.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
824
|
+
displayOnly?: boolean;
|
|
824
825
|
}
|
|
825
826
|
export class Translatable implements ITranslatable {
|
|
826
827
|
constructor(data?: ITranslatable);
|
|
@@ -828,6 +829,7 @@ declare namespace $requests {
|
|
|
828
829
|
hidden?: boolean;
|
|
829
830
|
grouping?: string;
|
|
830
831
|
type: $requests.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
832
|
+
displayOnly?: boolean;
|
|
831
833
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
832
834
|
}
|
|
833
835
|
export namespace Translatable {
|
|
@@ -1863,6 +1865,22 @@ declare namespace $requests {
|
|
|
1863
1865
|
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1864
1866
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1865
1867
|
}
|
|
1868
|
+
export interface ICursorSearch {
|
|
1869
|
+
filter?: { [key: string]: any };
|
|
1870
|
+
sort: $requests.wix.common.ISorting[];
|
|
1871
|
+
aggregations: $requests.wix.common.IAggregation[];
|
|
1872
|
+
search?: $requests.wix.common.ISearchDetails;
|
|
1873
|
+
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1874
|
+
}
|
|
1875
|
+
export class CursorSearch implements ICursorSearch {
|
|
1876
|
+
constructor(data?: ICursorSearch);
|
|
1877
|
+
filter?: { [key: string]: any };
|
|
1878
|
+
sort: $requests.wix.common.ISorting[];
|
|
1879
|
+
aggregations: $requests.wix.common.IAggregation[];
|
|
1880
|
+
search?: $requests.wix.common.ISearchDetails;
|
|
1881
|
+
cursorPaging?: $requests.wix.common.ICursorPaging;
|
|
1882
|
+
static __$$generatedFromProtobuf$$__: Symbol;
|
|
1883
|
+
}
|
|
1866
1884
|
export interface ISearchDetails {
|
|
1867
1885
|
mode: $requests.wix.common.SearchDetails.Mode;
|
|
1868
1886
|
expression?: string;
|
|
@@ -3583,6 +3601,7 @@ declare namespace $responses {
|
|
|
3583
3601
|
hidden?: boolean;
|
|
3584
3602
|
grouping?: string;
|
|
3585
3603
|
type?: $responses.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
3604
|
+
displayOnly?: boolean;
|
|
3586
3605
|
}
|
|
3587
3606
|
export class Translatable implements ITranslatable {
|
|
3588
3607
|
constructor(data?: ITranslatable);
|
|
@@ -3590,6 +3609,7 @@ declare namespace $responses {
|
|
|
3590
3609
|
hidden?: boolean;
|
|
3591
3610
|
grouping?: string;
|
|
3592
3611
|
type?: $responses.wix.coreservices.businessschema.v1.Translatable.Type;
|
|
3612
|
+
displayOnly?: boolean;
|
|
3593
3613
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
3594
3614
|
}
|
|
3595
3615
|
export namespace Translatable {
|
|
@@ -4625,6 +4645,22 @@ declare namespace $responses {
|
|
|
4625
4645
|
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4626
4646
|
static __$$generatedFromProtobuf$$__: Symbol;
|
|
4627
4647
|
}
|
|
4648
|
+
export interface ICursorSearch {
|
|
4649
|
+
filter?: { [key: string]: any };
|
|
4650
|
+
sort?: $responses.wix.common.ISorting[];
|
|
4651
|
+
aggregations?: $responses.wix.common.IAggregation[];
|
|
4652
|
+
search?: $responses.wix.common.ISearchDetails;
|
|
4653
|
+
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4654
|
+
}
|
|
4655
|
+
export class CursorSearch implements ICursorSearch {
|
|
4656
|
+
constructor(data?: ICursorSearch);
|
|
4657
|
+
filter?: { [key: string]: any };
|
|
4658
|
+
sort?: $responses.wix.common.ISorting[];
|
|
4659
|
+
aggregations?: $responses.wix.common.IAggregation[];
|
|
4660
|
+
search?: $responses.wix.common.ISearchDetails;
|
|
4661
|
+
cursorPaging?: $responses.wix.common.ICursorPaging;
|
|
4662
|
+
static __$$generatedFromProtobuf$$__: Symbol;
|
|
4663
|
+
}
|
|
4628
4664
|
export interface ISearchDetails {
|
|
4629
4665
|
mode?: $responses.wix.common.SearchDetails.Mode;
|
|
4630
4666
|
expression?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/metro-common-builders",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1095",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Eli Ponyatovski",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"*.{js,ts}": "yoshi lint"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@wix/metro-runtime": "1.
|
|
36
|
+
"@wix/metro-runtime": "1.1454.0",
|
|
37
37
|
"long": "^5.1.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"wallaby": {
|
|
70
70
|
"autoDetect": true
|
|
71
71
|
},
|
|
72
|
-
"falconPackageHash": "
|
|
72
|
+
"falconPackageHash": "347d8854b02df5f566960fe6dd2dd58b76820126050cecee58f769e2"
|
|
73
73
|
}
|