@wix/metro-common-builders 1.0.1502 → 1.0.1504

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.
@@ -377,6 +377,7 @@ declare namespace $requests {
377
377
  inferredFieldmask?: $requests.wix.coreservices.businessschema.v1.IInferredFieldmask;
378
378
  applicableIdentities?: $requests.wix.coreservices.businessschema.v1.ApplicableIdentity[];
379
379
  externalPermissionScopes?: $requests.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
380
+ cacheSettings?: $requests.wix.coreservices.businessschema.v1.ICacheSettings;
380
381
  }
381
382
  export class Action implements IAction {
382
383
  constructor(data?: IAction);
@@ -400,6 +401,7 @@ declare namespace $requests {
400
401
  inferredFieldmask?: $requests.wix.coreservices.businessschema.v1.IInferredFieldmask;
401
402
  applicableIdentities?: $requests.wix.coreservices.businessschema.v1.ApplicableIdentity[];
402
403
  externalPermissionScopes?: $requests.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
404
+ cacheSettings?: $requests.wix.coreservices.businessschema.v1.ICacheSettings;
403
405
  static __$$generatedFromProtobuf$$__: Symbol;
404
406
  }
405
407
  export enum ApplicableIdentity {
@@ -409,6 +411,16 @@ declare namespace $requests {
409
411
  USER = "USER",
410
412
  APP = "APP",
411
413
  }
414
+ export interface ICacheSettings {
415
+ maxAgeSeconds?: number;
416
+ manual?: boolean;
417
+ }
418
+ export class CacheSettings implements ICacheSettings {
419
+ constructor(data?: ICacheSettings);
420
+ maxAgeSeconds?: number;
421
+ manual?: boolean;
422
+ static __$$generatedFromProtobuf$$__: Symbol;
423
+ }
412
424
  export interface IExternalPermissionScope {
413
425
  name?: string;
414
426
  scopeId?: string;
@@ -4124,6 +4136,7 @@ declare namespace $responses {
4124
4136
  inferredFieldmask?: $responses.wix.coreservices.businessschema.v1.IInferredFieldmask;
4125
4137
  applicableIdentities: $responses.wix.coreservices.businessschema.v1.ApplicableIdentity[];
4126
4138
  externalPermissionScopes: $responses.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
4139
+ cacheSettings?: $responses.wix.coreservices.businessschema.v1.ICacheSettings;
4127
4140
  }
4128
4141
  export class Action implements IAction {
4129
4142
  constructor(data?: IAction);
@@ -4147,6 +4160,7 @@ declare namespace $responses {
4147
4160
  inferredFieldmask?: $responses.wix.coreservices.businessschema.v1.IInferredFieldmask;
4148
4161
  applicableIdentities: $responses.wix.coreservices.businessschema.v1.ApplicableIdentity[];
4149
4162
  externalPermissionScopes: $responses.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
4163
+ cacheSettings?: $responses.wix.coreservices.businessschema.v1.ICacheSettings;
4150
4164
  static __$$generatedFromProtobuf$$__: Symbol;
4151
4165
  }
4152
4166
  export enum ApplicableIdentity {
@@ -4156,6 +4170,16 @@ declare namespace $responses {
4156
4170
  USER = "USER",
4157
4171
  APP = "APP",
4158
4172
  }
4173
+ export interface ICacheSettings {
4174
+ maxAgeSeconds?: number;
4175
+ manual?: boolean;
4176
+ }
4177
+ export class CacheSettings implements ICacheSettings {
4178
+ constructor(data?: ICacheSettings);
4179
+ maxAgeSeconds?: number;
4180
+ manual?: boolean;
4181
+ static __$$generatedFromProtobuf$$__: Symbol;
4182
+ }
4159
4183
  export interface IExternalPermissionScope {
4160
4184
  name: string;
4161
4185
  scopeId: string;
@@ -377,6 +377,7 @@ declare namespace $wrapper {
377
377
  inferredFieldmask?: ($wrapper.wix.coreservices.businessschema.v1.IInferredFieldmask | null);
378
378
  applicableIdentities?: ($wrapper.wix.coreservices.businessschema.v1.ApplicableIdentity[] | null);
379
379
  externalPermissionScopes?: ($wrapper.wix.coreservices.businessschema.v1.IExternalPermissionScope[] | null);
380
+ cacheSettings?: ($wrapper.wix.coreservices.businessschema.v1.ICacheSettings | null);
380
381
  }
381
382
  export class Action implements IAction {
382
383
  constructor(data?: IAction);
@@ -400,6 +401,7 @@ declare namespace $wrapper {
400
401
  inferredFieldmask?: ($wrapper.wix.coreservices.businessschema.v1.IInferredFieldmask | null);
401
402
  applicableIdentities?: ($wrapper.wix.coreservices.businessschema.v1.ApplicableIdentity[] | null);
402
403
  externalPermissionScopes?: ($wrapper.wix.coreservices.businessschema.v1.IExternalPermissionScope[] | null);
404
+ cacheSettings?: ($wrapper.wix.coreservices.businessschema.v1.ICacheSettings | null);
403
405
  static __$$generatedFromProtobuf$$__: Symbol;
404
406
  }
405
407
  export enum ApplicableIdentity {
@@ -409,6 +411,16 @@ declare namespace $wrapper {
409
411
  USER = "USER",
410
412
  APP = "APP",
411
413
  }
414
+ export interface ICacheSettings {
415
+ maxAgeSeconds?: (number | null);
416
+ manual?: (boolean | null);
417
+ }
418
+ export class CacheSettings implements ICacheSettings {
419
+ constructor(data?: ICacheSettings);
420
+ maxAgeSeconds?: (number | null);
421
+ manual?: (boolean | null);
422
+ static __$$generatedFromProtobuf$$__: Symbol;
423
+ }
412
424
  export interface IExternalPermissionScope {
413
425
  name?: (string | null);
414
426
  scopeId?: (string | null);
@@ -10,7 +10,7 @@ $root.__options = {
10
10
  'stringLongs': true,
11
11
  'stdCase': false,
12
12
  'generatorVersion': '2.0.1156',
13
- 'contentHash': '4d1f71142d4d2069e240e51f18909b04fd7d46f5'
13
+ 'contentHash': '12dac1e15a1f6fd7e794b915b177de0485cba825'
14
14
  };
15
15
  $root.__lookup = function (pbjs) {
16
16
  const root = pbjs.Root.fromJSON({
@@ -1098,6 +1098,12 @@ $root.__lookup = function (pbjs) {
1098
1098
  '(.wix.api.maxSize)': 20,
1099
1099
  '__comment': null
1100
1100
  }]
1101
+ },
1102
+ 'cacheSettings': {
1103
+ 'type': 'CacheSettings',
1104
+ 'id': 21,
1105
+ 'comment': null,
1106
+ 'parsedOptions': null
1101
1107
  }
1102
1108
  },
1103
1109
  'comment': null
@@ -1119,6 +1125,23 @@ $root.__lookup = function (pbjs) {
1119
1125
  'APP': null
1120
1126
  }
1121
1127
  },
1128
+ 'CacheSettings': {
1129
+ 'fields': {
1130
+ 'maxAgeSeconds': {
1131
+ 'type': 'google.protobuf.Int32Value',
1132
+ 'id': 1,
1133
+ 'comment': null,
1134
+ 'parsedOptions': null
1135
+ },
1136
+ 'manual': {
1137
+ 'type': 'google.protobuf.BoolValue',
1138
+ 'id': 2,
1139
+ 'comment': null,
1140
+ 'parsedOptions': null
1141
+ }
1142
+ },
1143
+ 'comment': null
1144
+ },
1122
1145
  'ExternalPermissionScope': {
1123
1146
  'fields': {
1124
1147
  'name': {
@@ -13313,6 +13336,7 @@ $root.wix = (function () {
13313
13336
  this.inferredFieldmask = props && props.inferredFieldmask;
13314
13337
  this.applicableIdentities = props && props.applicableIdentities;
13315
13338
  this.externalPermissionScopes = props && props.externalPermissionScopes;
13339
+ this.cacheSettings = props && props.cacheSettings;
13316
13340
  }
13317
13341
  static toJSON(obj, helper, withDefaults) {
13318
13342
  if (obj == null) {
@@ -13431,6 +13455,11 @@ $root.wix = (function () {
13431
13455
  } else if (withDefaults) {
13432
13456
  json['externalPermissionScopes'] = [];
13433
13457
  }
13458
+ if (obj['cacheSettings'] != null) {
13459
+ json['cacheSettings'] = $root.wix.coreservices.businessschema.v1.CacheSettings.toJSON(obj['cacheSettings'], helper, withDefaults);
13460
+ } else if (withDefaults) {
13461
+ delete json['cacheSettings'];
13462
+ }
13434
13463
  return json;
13435
13464
  }
13436
13465
  }
@@ -13589,6 +13618,13 @@ $root.wix = (function () {
13589
13618
  } else {
13590
13619
  delete result['externalPermissionScopes'];
13591
13620
  }
13621
+ if (json['cacheSettings'] != null) {
13622
+ result['cacheSettings'] = $root.wix.coreservices.businessschema.v1.CacheSettings.fromJSON(json['cacheSettings'], helper);
13623
+ } else if (withDefaults !== false) {
13624
+ delete result['cacheSettings'];
13625
+ } else {
13626
+ delete result['cacheSettings'];
13627
+ }
13592
13628
  return result;
13593
13629
  } else
13594
13630
  return json;
@@ -13670,6 +13706,9 @@ $root.wix = (function () {
13670
13706
  return $root.wix.coreservices.businessschema.v1.ExternalPermissionScope.toGRPC(e, helper);
13671
13707
  });
13672
13708
  }
13709
+ if (obj['cacheSettings'] != null) {
13710
+ grpc['cacheSettings'] = $root.wix.coreservices.businessschema.v1.CacheSettings.toGRPC(obj['cacheSettings'], helper);
13711
+ }
13673
13712
  return grpc;
13674
13713
  }
13675
13714
  }
@@ -13790,6 +13829,11 @@ $root.wix = (function () {
13790
13829
  } else {
13791
13830
  result['externalPermissionScopes'] = [];
13792
13831
  }
13832
+ if (grpc['cacheSettings'] != null) {
13833
+ result['cacheSettings'] = $root.wix.coreservices.businessschema.v1.CacheSettings.fromGRPC(grpc['cacheSettings'], helper);
13834
+ } else {
13835
+ delete result['cacheSettings'];
13836
+ }
13793
13837
  return result;
13794
13838
  }
13795
13839
  }
@@ -13830,6 +13874,108 @@ $root.wix = (function () {
13830
13874
  'APP': 'APP',
13831
13875
  4: 'APP'
13832
13876
  };
13877
+ _v1.CacheSettings = (function () {
13878
+ class CacheSettings {
13879
+ constructor(props) {
13880
+ this.maxAgeSeconds = props && props.maxAgeSeconds;
13881
+ this.manual = props && props.manual;
13882
+ }
13883
+ static toJSON(obj, helper, withDefaults) {
13884
+ if (obj == null) {
13885
+ return null;
13886
+ } else {
13887
+ const json = {};
13888
+ if (obj['maxAgeSeconds'] != null) {
13889
+ json['maxAgeSeconds'] = $root.google.protobuf.Int32Value.toJSON(obj['maxAgeSeconds'], helper, withDefaults);
13890
+ } else if (withDefaults) {
13891
+ delete json['maxAgeSeconds'];
13892
+ }
13893
+ if (obj['manual'] != null) {
13894
+ json['manual'] = $root.google.protobuf.BoolValue.toJSON(obj['manual'], helper, withDefaults);
13895
+ } else if (withDefaults) {
13896
+ delete json['manual'];
13897
+ }
13898
+ return json;
13899
+ }
13900
+ }
13901
+ static fromJSON(json, helper, withDefaults) {
13902
+ if (typeof json === 'object' && !Array.isArray(json)) {
13903
+ const result = new $root.wix.coreservices.businessschema.v1.CacheSettings();
13904
+ if (json['maxAgeSeconds'] != null) {
13905
+ result['maxAgeSeconds'] = $root.google.protobuf.Int32Value.fromJSON(json['maxAgeSeconds'], helper);
13906
+ } else if (withDefaults !== false) {
13907
+ delete result['maxAgeSeconds'];
13908
+ } else {
13909
+ delete result['maxAgeSeconds'];
13910
+ }
13911
+ if (json['manual'] != null) {
13912
+ result['manual'] = $root.google.protobuf.BoolValue.fromJSON(json['manual'], helper);
13913
+ } else if (withDefaults !== false) {
13914
+ delete result['manual'];
13915
+ } else {
13916
+ delete result['manual'];
13917
+ }
13918
+ return result;
13919
+ } else
13920
+ return json;
13921
+ }
13922
+ static toGRPC(obj, helper) {
13923
+ if (obj == null) {
13924
+ return null;
13925
+ } else {
13926
+ const grpc = {};
13927
+ if (obj['maxAgeSeconds'] != null) {
13928
+ grpc['maxAgeSeconds'] = $root.google.protobuf.Int32Value.toGRPC(obj['maxAgeSeconds'], helper);
13929
+ }
13930
+ if (obj['manual'] != null) {
13931
+ grpc['manual'] = $root.google.protobuf.BoolValue.toGRPC(obj['manual'], helper);
13932
+ }
13933
+ return grpc;
13934
+ }
13935
+ }
13936
+ static fromGRPC(grpc, helper) {
13937
+ if (grpc == null) {
13938
+ return null;
13939
+ } else {
13940
+ const result = new $root.wix.coreservices.businessschema.v1.CacheSettings();
13941
+ if (grpc['maxAgeSeconds'] != null) {
13942
+ result['maxAgeSeconds'] = $root.google.protobuf.Int32Value.fromGRPC(grpc['maxAgeSeconds'], helper);
13943
+ } else {
13944
+ delete result['maxAgeSeconds'];
13945
+ }
13946
+ if (grpc['manual'] != null) {
13947
+ result['manual'] = $root.google.protobuf.BoolValue.fromGRPC(grpc['manual'], helper);
13948
+ } else {
13949
+ delete result['manual'];
13950
+ }
13951
+ return result;
13952
+ }
13953
+ }
13954
+ }
13955
+ __builtIn.Object.defineProperty(CacheSettings.prototype, '__proto', {
13956
+ value: pbjs => {
13957
+ return $root.__lookup(pbjs)('wix.coreservices.businessschema.v1.CacheSettings');
13958
+ },
13959
+ enumerable: false,
13960
+ configurable: false
13961
+ });
13962
+ __builtIn.Object.defineProperty(CacheSettings.prototype, '__fqn__', {
13963
+ value: 'wix.coreservices.businessschema.v1.CacheSettings',
13964
+ enumerable: false,
13965
+ configurable: false
13966
+ });
13967
+ __builtIn.Object.defineProperty(CacheSettings.prototype, '__options__', {
13968
+ value: $root.__options,
13969
+ enumerable: false,
13970
+ configurable: false
13971
+ });
13972
+ __builtIn.Object.defineProperty(CacheSettings.prototype, '__root__', {
13973
+ value: $root,
13974
+ enumerable: false,
13975
+ configurable: false
13976
+ });
13977
+ return CacheSettings;
13978
+ }());;
13833
13979
  _v1.ExternalPermissionScope = (function () {
13834
13980
  class ExternalPermissionScope {
13835
13981
  constructor(props) {
@@ -377,6 +377,7 @@ declare namespace $requests {
377
377
  inferredFieldmask?: $requests.wix.coreservices.businessschema.v1.IInferredFieldmask;
378
378
  applicableIdentities: $requests.wix.coreservices.businessschema.v1.ApplicableIdentity[];
379
379
  externalPermissionScopes: $requests.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
380
+ cacheSettings?: $requests.wix.coreservices.businessschema.v1.ICacheSettings;
380
381
  }
381
382
  export class Action implements IAction {
382
383
  constructor(data?: IAction);
@@ -400,6 +401,7 @@ declare namespace $requests {
400
401
  inferredFieldmask?: $requests.wix.coreservices.businessschema.v1.IInferredFieldmask;
401
402
  applicableIdentities: $requests.wix.coreservices.businessschema.v1.ApplicableIdentity[];
402
403
  externalPermissionScopes: $requests.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
404
+ cacheSettings?: $requests.wix.coreservices.businessschema.v1.ICacheSettings;
403
405
  static __$$generatedFromProtobuf$$__: Symbol;
404
406
  }
405
407
  export enum ApplicableIdentity {
@@ -409,6 +411,16 @@ declare namespace $requests {
409
411
  USER = "USER",
410
412
  APP = "APP",
411
413
  }
414
+ export interface ICacheSettings {
415
+ maxAgeSeconds?: number;
416
+ manual?: boolean;
417
+ }
418
+ export class CacheSettings implements ICacheSettings {
419
+ constructor(data?: ICacheSettings);
420
+ maxAgeSeconds?: number;
421
+ manual?: boolean;
422
+ static __$$generatedFromProtobuf$$__: Symbol;
423
+ }
412
424
  export interface IExternalPermissionScope {
413
425
  name: string;
414
426
  scopeId: string;
@@ -4124,6 +4136,7 @@ declare namespace $responses {
4124
4136
  inferredFieldmask?: $responses.wix.coreservices.businessschema.v1.IInferredFieldmask;
4125
4137
  applicableIdentities?: $responses.wix.coreservices.businessschema.v1.ApplicableIdentity[];
4126
4138
  externalPermissionScopes?: $responses.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
4139
+ cacheSettings?: $responses.wix.coreservices.businessschema.v1.ICacheSettings;
4127
4140
  }
4128
4141
  export class Action implements IAction {
4129
4142
  constructor(data?: IAction);
@@ -4147,6 +4160,7 @@ declare namespace $responses {
4147
4160
  inferredFieldmask?: $responses.wix.coreservices.businessschema.v1.IInferredFieldmask;
4148
4161
  applicableIdentities?: $responses.wix.coreservices.businessschema.v1.ApplicableIdentity[];
4149
4162
  externalPermissionScopes?: $responses.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
4163
+ cacheSettings?: $responses.wix.coreservices.businessschema.v1.ICacheSettings;
4150
4164
  static __$$generatedFromProtobuf$$__: Symbol;
4151
4165
  }
4152
4166
  export enum ApplicableIdentity {
@@ -4156,6 +4170,16 @@ declare namespace $responses {
4156
4170
  USER = "USER",
4157
4171
  APP = "APP",
4158
4172
  }
4173
+ export interface ICacheSettings {
4174
+ maxAgeSeconds?: number;
4175
+ manual?: boolean;
4176
+ }
4177
+ export class CacheSettings implements ICacheSettings {
4178
+ constructor(data?: ICacheSettings);
4179
+ maxAgeSeconds?: number;
4180
+ manual?: boolean;
4181
+ static __$$generatedFromProtobuf$$__: Symbol;
4182
+ }
4159
4183
  export interface IExternalPermissionScope {
4160
4184
  name?: string;
4161
4185
  scopeId?: string;
@@ -377,6 +377,7 @@ declare namespace $requests {
377
377
  inferredFieldmask?: $requests.wix.coreservices.businessschema.v1.IInferredFieldmask;
378
378
  applicableIdentities?: $requests.wix.coreservices.businessschema.v1.ApplicableIdentity[];
379
379
  externalPermissionScopes?: $requests.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
380
+ cacheSettings?: $requests.wix.coreservices.businessschema.v1.ICacheSettings;
380
381
  }
381
382
  export class Action implements IAction {
382
383
  constructor(data?: IAction);
@@ -400,6 +401,7 @@ declare namespace $requests {
400
401
  inferredFieldmask?: $requests.wix.coreservices.businessschema.v1.IInferredFieldmask;
401
402
  applicableIdentities?: $requests.wix.coreservices.businessschema.v1.ApplicableIdentity[];
402
403
  externalPermissionScopes?: $requests.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
404
+ cacheSettings?: $requests.wix.coreservices.businessschema.v1.ICacheSettings;
403
405
  static __$$generatedFromProtobuf$$__: Symbol;
404
406
  }
405
407
  export enum ApplicableIdentity {
@@ -409,6 +411,16 @@ declare namespace $requests {
409
411
  USER = "USER",
410
412
  APP = "APP",
411
413
  }
414
+ export interface ICacheSettings {
415
+ maxAgeSeconds?: number;
416
+ manual?: boolean;
417
+ }
418
+ export class CacheSettings implements ICacheSettings {
419
+ constructor(data?: ICacheSettings);
420
+ maxAgeSeconds?: number;
421
+ manual?: boolean;
422
+ static __$$generatedFromProtobuf$$__: Symbol;
423
+ }
412
424
  export interface IExternalPermissionScope {
413
425
  name?: string;
414
426
  scopeId?: string;
@@ -4124,6 +4136,7 @@ declare namespace $responses {
4124
4136
  inferredFieldmask?: $responses.wix.coreservices.businessschema.v1.IInferredFieldmask;
4125
4137
  applicableIdentities: $responses.wix.coreservices.businessschema.v1.ApplicableIdentity[];
4126
4138
  externalPermissionScopes: $responses.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
4139
+ cacheSettings?: $responses.wix.coreservices.businessschema.v1.ICacheSettings;
4127
4140
  }
4128
4141
  export class Action implements IAction {
4129
4142
  constructor(data?: IAction);
@@ -4147,6 +4160,7 @@ declare namespace $responses {
4147
4160
  inferredFieldmask?: $responses.wix.coreservices.businessschema.v1.IInferredFieldmask;
4148
4161
  applicableIdentities: $responses.wix.coreservices.businessschema.v1.ApplicableIdentity[];
4149
4162
  externalPermissionScopes: $responses.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
4163
+ cacheSettings?: $responses.wix.coreservices.businessschema.v1.ICacheSettings;
4150
4164
  static __$$generatedFromProtobuf$$__: Symbol;
4151
4165
  }
4152
4166
  export enum ApplicableIdentity {
@@ -4156,6 +4170,16 @@ declare namespace $responses {
4156
4170
  USER = "USER",
4157
4171
  APP = "APP",
4158
4172
  }
4173
+ export interface ICacheSettings {
4174
+ maxAgeSeconds?: number;
4175
+ manual?: boolean;
4176
+ }
4177
+ export class CacheSettings implements ICacheSettings {
4178
+ constructor(data?: ICacheSettings);
4179
+ maxAgeSeconds?: number;
4180
+ manual?: boolean;
4181
+ static __$$generatedFromProtobuf$$__: Symbol;
4182
+ }
4159
4183
  export interface IExternalPermissionScope {
4160
4184
  name: string;
4161
4185
  scopeId: string;
@@ -377,6 +377,7 @@ declare namespace $wrapper {
377
377
  inferredFieldmask?: ($wrapper.wix.coreservices.businessschema.v1.IInferredFieldmask | null);
378
378
  applicableIdentities?: ($wrapper.wix.coreservices.businessschema.v1.ApplicableIdentity[] | null);
379
379
  externalPermissionScopes?: ($wrapper.wix.coreservices.businessschema.v1.IExternalPermissionScope[] | null);
380
+ cacheSettings?: ($wrapper.wix.coreservices.businessschema.v1.ICacheSettings | null);
380
381
  }
381
382
  export class Action implements IAction {
382
383
  constructor(data?: IAction);
@@ -400,6 +401,7 @@ declare namespace $wrapper {
400
401
  inferredFieldmask?: ($wrapper.wix.coreservices.businessschema.v1.IInferredFieldmask | null);
401
402
  applicableIdentities?: ($wrapper.wix.coreservices.businessschema.v1.ApplicableIdentity[] | null);
402
403
  externalPermissionScopes?: ($wrapper.wix.coreservices.businessschema.v1.IExternalPermissionScope[] | null);
404
+ cacheSettings?: ($wrapper.wix.coreservices.businessschema.v1.ICacheSettings | null);
403
405
  static __$$generatedFromProtobuf$$__: Symbol;
404
406
  }
405
407
  export enum ApplicableIdentity {
@@ -409,6 +411,16 @@ declare namespace $wrapper {
409
411
  USER = "USER",
410
412
  APP = "APP",
411
413
  }
414
+ export interface ICacheSettings {
415
+ maxAgeSeconds?: (number | null);
416
+ manual?: (boolean | null);
417
+ }
418
+ export class CacheSettings implements ICacheSettings {
419
+ constructor(data?: ICacheSettings);
420
+ maxAgeSeconds?: (number | null);
421
+ manual?: (boolean | null);
422
+ static __$$generatedFromProtobuf$$__: Symbol;
423
+ }
412
424
  export interface IExternalPermissionScope {
413
425
  name?: (string | null);
414
426
  scopeId?: (string | null);
@@ -10,7 +10,7 @@ $root.__options = {
10
10
  'stringLongs': true,
11
11
  'stdCase': false,
12
12
  'generatorVersion': '2.0.1156',
13
- 'contentHash': '4d1f71142d4d2069e240e51f18909b04fd7d46f5'
13
+ 'contentHash': '12dac1e15a1f6fd7e794b915b177de0485cba825'
14
14
  };
15
15
  $root.__lookup = function (pbjs) {
16
16
  const root = pbjs.Root.fromJSON({
@@ -1098,6 +1098,12 @@ $root.__lookup = function (pbjs) {
1098
1098
  '(.wix.api.maxSize)': 20,
1099
1099
  '__comment': null
1100
1100
  }]
1101
+ },
1102
+ 'cacheSettings': {
1103
+ 'type': 'CacheSettings',
1104
+ 'id': 21,
1105
+ 'comment': null,
1106
+ 'parsedOptions': null
1101
1107
  }
1102
1108
  },
1103
1109
  'comment': null
@@ -1119,6 +1125,23 @@ $root.__lookup = function (pbjs) {
1119
1125
  'APP': null
1120
1126
  }
1121
1127
  },
1128
+ 'CacheSettings': {
1129
+ 'fields': {
1130
+ 'maxAgeSeconds': {
1131
+ 'type': 'google.protobuf.Int32Value',
1132
+ 'id': 1,
1133
+ 'comment': null,
1134
+ 'parsedOptions': null
1135
+ },
1136
+ 'manual': {
1137
+ 'type': 'google.protobuf.BoolValue',
1138
+ 'id': 2,
1139
+ 'comment': null,
1140
+ 'parsedOptions': null
1141
+ }
1142
+ },
1143
+ 'comment': null
1144
+ },
1122
1145
  'ExternalPermissionScope': {
1123
1146
  'fields': {
1124
1147
  'name': {
@@ -13313,6 +13336,7 @@ $root.wix = (function () {
13313
13336
  this.inferredFieldmask = props && props.inferredFieldmask;
13314
13337
  this.applicableIdentities = props && props.applicableIdentities;
13315
13338
  this.externalPermissionScopes = props && props.externalPermissionScopes;
13339
+ this.cacheSettings = props && props.cacheSettings;
13316
13340
  }
13317
13341
  static toJSON(obj, helper, withDefaults) {
13318
13342
  if (obj == null) {
@@ -13431,6 +13455,11 @@ $root.wix = (function () {
13431
13455
  } else if (withDefaults) {
13432
13456
  json['externalPermissionScopes'] = [];
13433
13457
  }
13458
+ if (obj['cacheSettings'] != null) {
13459
+ json['cacheSettings'] = $root.wix.coreservices.businessschema.v1.CacheSettings.toJSON(obj['cacheSettings'], helper, withDefaults);
13460
+ } else if (withDefaults) {
13461
+ delete json['cacheSettings'];
13462
+ }
13434
13463
  return json;
13435
13464
  }
13436
13465
  }
@@ -13589,6 +13618,13 @@ $root.wix = (function () {
13589
13618
  } else {
13590
13619
  delete result['externalPermissionScopes'];
13591
13620
  }
13621
+ if (json['cacheSettings'] != null) {
13622
+ result['cacheSettings'] = $root.wix.coreservices.businessschema.v1.CacheSettings.fromJSON(json['cacheSettings'], helper);
13623
+ } else if (withDefaults !== false) {
13624
+ delete result['cacheSettings'];
13625
+ } else {
13626
+ delete result['cacheSettings'];
13627
+ }
13592
13628
  return result;
13593
13629
  } else
13594
13630
  return json;
@@ -13670,6 +13706,9 @@ $root.wix = (function () {
13670
13706
  return $root.wix.coreservices.businessschema.v1.ExternalPermissionScope.toGRPC(e, helper);
13671
13707
  });
13672
13708
  }
13709
+ if (obj['cacheSettings'] != null) {
13710
+ grpc['cacheSettings'] = $root.wix.coreservices.businessschema.v1.CacheSettings.toGRPC(obj['cacheSettings'], helper);
13711
+ }
13673
13712
  return grpc;
13674
13713
  }
13675
13714
  }
@@ -13790,6 +13829,11 @@ $root.wix = (function () {
13790
13829
  } else {
13791
13830
  result['externalPermissionScopes'] = [];
13792
13831
  }
13832
+ if (grpc['cacheSettings'] != null) {
13833
+ result['cacheSettings'] = $root.wix.coreservices.businessschema.v1.CacheSettings.fromGRPC(grpc['cacheSettings'], helper);
13834
+ } else {
13835
+ delete result['cacheSettings'];
13836
+ }
13793
13837
  return result;
13794
13838
  }
13795
13839
  }
@@ -13830,6 +13874,108 @@ $root.wix = (function () {
13830
13874
  'APP': 'APP',
13831
13875
  4: 'APP'
13832
13876
  };
13877
+ _v1.CacheSettings = (function () {
13878
+ class CacheSettings {
13879
+ constructor(props) {
13880
+ this.maxAgeSeconds = props && props.maxAgeSeconds;
13881
+ this.manual = props && props.manual;
13882
+ }
13883
+ static toJSON(obj, helper, withDefaults) {
13884
+ if (obj == null) {
13885
+ return null;
13886
+ } else {
13887
+ const json = {};
13888
+ if (obj['maxAgeSeconds'] != null) {
13889
+ json['maxAgeSeconds'] = $root.google.protobuf.Int32Value.toJSON(obj['maxAgeSeconds'], helper, withDefaults);
13890
+ } else if (withDefaults) {
13891
+ delete json['maxAgeSeconds'];
13892
+ }
13893
+ if (obj['manual'] != null) {
13894
+ json['manual'] = $root.google.protobuf.BoolValue.toJSON(obj['manual'], helper, withDefaults);
13895
+ } else if (withDefaults) {
13896
+ delete json['manual'];
13897
+ }
13898
+ return json;
13899
+ }
13900
+ }
13901
+ static fromJSON(json, helper, withDefaults) {
13902
+ if (typeof json === 'object' && !Array.isArray(json)) {
13903
+ const result = new $root.wix.coreservices.businessschema.v1.CacheSettings();
13904
+ if (json['maxAgeSeconds'] != null) {
13905
+ result['maxAgeSeconds'] = $root.google.protobuf.Int32Value.fromJSON(json['maxAgeSeconds'], helper);
13906
+ } else if (withDefaults !== false) {
13907
+ delete result['maxAgeSeconds'];
13908
+ } else {
13909
+ delete result['maxAgeSeconds'];
13910
+ }
13911
+ if (json['manual'] != null) {
13912
+ result['manual'] = $root.google.protobuf.BoolValue.fromJSON(json['manual'], helper);
13913
+ } else if (withDefaults !== false) {
13914
+ delete result['manual'];
13915
+ } else {
13916
+ delete result['manual'];
13917
+ }
13918
+ return result;
13919
+ } else
13920
+ return json;
13921
+ }
13922
+ static toGRPC(obj, helper) {
13923
+ if (obj == null) {
13924
+ return null;
13925
+ } else {
13926
+ const grpc = {};
13927
+ if (obj['maxAgeSeconds'] != null) {
13928
+ grpc['maxAgeSeconds'] = $root.google.protobuf.Int32Value.toGRPC(obj['maxAgeSeconds'], helper);
13929
+ }
13930
+ if (obj['manual'] != null) {
13931
+ grpc['manual'] = $root.google.protobuf.BoolValue.toGRPC(obj['manual'], helper);
13932
+ }
13933
+ return grpc;
13934
+ }
13935
+ }
13936
+ static fromGRPC(grpc, helper) {
13937
+ if (grpc == null) {
13938
+ return null;
13939
+ } else {
13940
+ const result = new $root.wix.coreservices.businessschema.v1.CacheSettings();
13941
+ if (grpc['maxAgeSeconds'] != null) {
13942
+ result['maxAgeSeconds'] = $root.google.protobuf.Int32Value.fromGRPC(grpc['maxAgeSeconds'], helper);
13943
+ } else {
13944
+ delete result['maxAgeSeconds'];
13945
+ }
13946
+ if (grpc['manual'] != null) {
13947
+ result['manual'] = $root.google.protobuf.BoolValue.fromGRPC(grpc['manual'], helper);
13948
+ } else {
13949
+ delete result['manual'];
13950
+ }
13951
+ return result;
13952
+ }
13953
+ }
13954
+ }
13955
+ __builtIn.Object.defineProperty(CacheSettings.prototype, '__proto', {
13956
+ value: pbjs => {
13957
+ return $root.__lookup(pbjs)('wix.coreservices.businessschema.v1.CacheSettings');
13958
+ },
13959
+ enumerable: false,
13960
+ configurable: false
13961
+ });
13962
+ __builtIn.Object.defineProperty(CacheSettings.prototype, '__fqn__', {
13963
+ value: 'wix.coreservices.businessschema.v1.CacheSettings',
13964
+ enumerable: false,
13965
+ configurable: false
13966
+ });
13967
+ __builtIn.Object.defineProperty(CacheSettings.prototype, '__options__', {
13968
+ value: $root.__options,
13969
+ enumerable: false,
13970
+ configurable: false
13971
+ });
13972
+ __builtIn.Object.defineProperty(CacheSettings.prototype, '__root__', {
13973
+ value: $root,
13974
+ enumerable: false,
13975
+ configurable: false
13976
+ });
13977
+ return CacheSettings;
13978
+ }());;
13833
13979
  _v1.ExternalPermissionScope = (function () {
13834
13980
  class ExternalPermissionScope {
13835
13981
  constructor(props) {
@@ -377,6 +377,7 @@ declare namespace $requests {
377
377
  inferredFieldmask?: $requests.wix.coreservices.businessschema.v1.IInferredFieldmask;
378
378
  applicableIdentities: $requests.wix.coreservices.businessschema.v1.ApplicableIdentity[];
379
379
  externalPermissionScopes: $requests.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
380
+ cacheSettings?: $requests.wix.coreservices.businessschema.v1.ICacheSettings;
380
381
  }
381
382
  export class Action implements IAction {
382
383
  constructor(data?: IAction);
@@ -400,6 +401,7 @@ declare namespace $requests {
400
401
  inferredFieldmask?: $requests.wix.coreservices.businessschema.v1.IInferredFieldmask;
401
402
  applicableIdentities: $requests.wix.coreservices.businessschema.v1.ApplicableIdentity[];
402
403
  externalPermissionScopes: $requests.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
404
+ cacheSettings?: $requests.wix.coreservices.businessschema.v1.ICacheSettings;
403
405
  static __$$generatedFromProtobuf$$__: Symbol;
404
406
  }
405
407
  export enum ApplicableIdentity {
@@ -409,6 +411,16 @@ declare namespace $requests {
409
411
  USER = "USER",
410
412
  APP = "APP",
411
413
  }
414
+ export interface ICacheSettings {
415
+ maxAgeSeconds?: number;
416
+ manual?: boolean;
417
+ }
418
+ export class CacheSettings implements ICacheSettings {
419
+ constructor(data?: ICacheSettings);
420
+ maxAgeSeconds?: number;
421
+ manual?: boolean;
422
+ static __$$generatedFromProtobuf$$__: Symbol;
423
+ }
412
424
  export interface IExternalPermissionScope {
413
425
  name: string;
414
426
  scopeId: string;
@@ -4124,6 +4136,7 @@ declare namespace $responses {
4124
4136
  inferredFieldmask?: $responses.wix.coreservices.businessschema.v1.IInferredFieldmask;
4125
4137
  applicableIdentities?: $responses.wix.coreservices.businessschema.v1.ApplicableIdentity[];
4126
4138
  externalPermissionScopes?: $responses.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
4139
+ cacheSettings?: $responses.wix.coreservices.businessschema.v1.ICacheSettings;
4127
4140
  }
4128
4141
  export class Action implements IAction {
4129
4142
  constructor(data?: IAction);
@@ -4147,6 +4160,7 @@ declare namespace $responses {
4147
4160
  inferredFieldmask?: $responses.wix.coreservices.businessschema.v1.IInferredFieldmask;
4148
4161
  applicableIdentities?: $responses.wix.coreservices.businessschema.v1.ApplicableIdentity[];
4149
4162
  externalPermissionScopes?: $responses.wix.coreservices.businessschema.v1.IExternalPermissionScope[];
4163
+ cacheSettings?: $responses.wix.coreservices.businessschema.v1.ICacheSettings;
4150
4164
  static __$$generatedFromProtobuf$$__: Symbol;
4151
4165
  }
4152
4166
  export enum ApplicableIdentity {
@@ -4156,6 +4170,16 @@ declare namespace $responses {
4156
4170
  USER = "USER",
4157
4171
  APP = "APP",
4158
4172
  }
4173
+ export interface ICacheSettings {
4174
+ maxAgeSeconds?: number;
4175
+ manual?: boolean;
4176
+ }
4177
+ export class CacheSettings implements ICacheSettings {
4178
+ constructor(data?: ICacheSettings);
4179
+ maxAgeSeconds?: number;
4180
+ manual?: boolean;
4181
+ static __$$generatedFromProtobuf$$__: Symbol;
4182
+ }
4159
4183
  export interface IExternalPermissionScope {
4160
4184
  name?: string;
4161
4185
  scopeId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/metro-common-builders",
3
- "version": "1.0.1502",
3
+ "version": "1.0.1504",
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.1857.0",
36
+ "@wix/metro-runtime": "1.1859.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.1534",
43
+ "@wix/business-schema-api": "^1.7.1536",
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": "ab860b95e77f9f0df7d126bb0bae6512e2cbc752570306eec8716a53"
74
+ "falconPackageHash": "c0cfd9879e61834a42b3329b5fbf5aad1987b126dc8503f4aaaa343a"
75
75
  }