@wix/metro-common-builders 1.0.1137 → 1.0.1139

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.
@@ -1128,6 +1128,7 @@ declare namespace $requests {
1128
1128
  plural?: string;
1129
1129
  domainEventsReadPermission?: string;
1130
1130
  appDefId?: string;
1131
+ domainEvents?: $requests.wix.api.IDomainEventOptions;
1131
1132
  }
1132
1133
  export class Entity implements IEntity {
1133
1134
  constructor(data?: IEntity);
@@ -1142,6 +1143,7 @@ declare namespace $requests {
1142
1143
  plural?: string;
1143
1144
  domainEventsReadPermission?: string;
1144
1145
  appDefId?: string;
1146
+ domainEvents?: $requests.wix.api.IDomainEventOptions;
1145
1147
  static __$$generatedFromProtobuf$$__: Symbol;
1146
1148
  }
1147
1149
  export interface IExtensible {
@@ -1170,6 +1172,14 @@ declare namespace $requests {
1170
1172
  MULTILINGUAL = "MULTILINGUAL",
1171
1173
  }
1172
1174
  }
1175
+ export interface IDomainEventOptions {
1176
+ eventSequenceNumber?: boolean;
1177
+ }
1178
+ export class DomainEventOptions implements IDomainEventOptions {
1179
+ constructor(data?: IDomainEventOptions);
1180
+ eventSequenceNumber?: boolean;
1181
+ static __$$generatedFromProtobuf$$__: Symbol;
1182
+ }
1173
1183
  export interface ICacheSettings {
1174
1184
  maxAgeSeconds?: number;
1175
1185
  }
@@ -1726,6 +1736,12 @@ declare namespace $requests {
1726
1736
  static __$$generatedFromProtobuf$$__: Symbol;
1727
1737
  }
1728
1738
  export namespace Segment {
1739
+ /**
1740
+ * [Segment] annotation registers to Confluent clusters.
1741
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
1742
+ * However, new topics must provide a segment, or greyhound will throw an exception.
1743
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
1744
+ */
1729
1745
  export enum Segment {
1730
1746
  UNSPECIFIED = "UNSPECIFIED",
1731
1747
  USERS = "USERS",
@@ -3976,6 +3992,7 @@ declare namespace $responses {
3976
3992
  plural: string;
3977
3993
  domainEventsReadPermission: string;
3978
3994
  appDefId: string;
3995
+ domainEvents?: $responses.wix.api.IDomainEventOptions;
3979
3996
  }
3980
3997
  export class Entity implements IEntity {
3981
3998
  constructor(data?: IEntity);
@@ -3990,6 +4007,7 @@ declare namespace $responses {
3990
4007
  plural: string;
3991
4008
  domainEventsReadPermission: string;
3992
4009
  appDefId: string;
4010
+ domainEvents?: $responses.wix.api.IDomainEventOptions;
3993
4011
  static __$$generatedFromProtobuf$$__: Symbol;
3994
4012
  }
3995
4013
  export interface IExtensible {
@@ -4018,6 +4036,14 @@ declare namespace $responses {
4018
4036
  MULTILINGUAL = "MULTILINGUAL",
4019
4037
  }
4020
4038
  }
4039
+ export interface IDomainEventOptions {
4040
+ eventSequenceNumber: boolean;
4041
+ }
4042
+ export class DomainEventOptions implements IDomainEventOptions {
4043
+ constructor(data?: IDomainEventOptions);
4044
+ eventSequenceNumber: boolean;
4045
+ static __$$generatedFromProtobuf$$__: Symbol;
4046
+ }
4021
4047
  export interface ICacheSettings {
4022
4048
  maxAgeSeconds: number;
4023
4049
  }
@@ -4574,6 +4600,12 @@ declare namespace $responses {
4574
4600
  static __$$generatedFromProtobuf$$__: Symbol;
4575
4601
  }
4576
4602
  export namespace Segment {
4603
+ /**
4604
+ * [Segment] annotation registers to Confluent clusters.
4605
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
4606
+ * However, new topics must provide a segment, or greyhound will throw an exception.
4607
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
4608
+ */
4577
4609
  export enum Segment {
4578
4610
  UNSPECIFIED = "UNSPECIFIED",
4579
4611
  USERS = "USERS",
@@ -1142,6 +1142,7 @@ declare namespace $wrapper {
1142
1142
  plural?: (string | null);
1143
1143
  domainEventsReadPermission?: (string | null);
1144
1144
  appDefId?: (string | null);
1145
+ domainEvents?: ($wrapper.wix.api.IDomainEventOptions | null);
1145
1146
  }
1146
1147
  export class Entity implements IEntity {
1147
1148
  constructor(data?: IEntity);
@@ -1156,6 +1157,7 @@ declare namespace $wrapper {
1156
1157
  plural?: (string | null);
1157
1158
  domainEventsReadPermission?: (string | null);
1158
1159
  appDefId?: (string | null);
1160
+ domainEvents?: ($wrapper.wix.api.IDomainEventOptions | null);
1159
1161
  static __$$generatedFromProtobuf$$__: Symbol;
1160
1162
  }
1161
1163
  export interface IExtensible {
@@ -1184,6 +1186,14 @@ declare namespace $wrapper {
1184
1186
  MULTILINGUAL = "MULTILINGUAL",
1185
1187
  }
1186
1188
  }
1189
+ export interface IDomainEventOptions {
1190
+ eventSequenceNumber?: (boolean | null);
1191
+ }
1192
+ export class DomainEventOptions implements IDomainEventOptions {
1193
+ constructor(data?: IDomainEventOptions);
1194
+ eventSequenceNumber?: (boolean | null);
1195
+ static __$$generatedFromProtobuf$$__: Symbol;
1196
+ }
1187
1197
  export interface ICacheSettings {
1188
1198
  maxAgeSeconds?: (number | null);
1189
1199
  }
@@ -1740,6 +1750,12 @@ declare namespace $wrapper {
1740
1750
  static __$$generatedFromProtobuf$$__: Symbol;
1741
1751
  }
1742
1752
  export namespace Segment {
1753
+ /**
1754
+ * [Segment] annotation registers to Confluent clusters.
1755
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
1756
+ * However, new topics must provide a segment, or greyhound will throw an exception.
1757
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
1758
+ */
1743
1759
  export enum Segment {
1744
1760
  UNSPECIFIED = "UNSPECIFIED",
1745
1761
  USERS = "USERS",
@@ -10,7 +10,7 @@ $root.__options = {
10
10
  'stringLongs': true,
11
11
  'stdCase': false,
12
12
  'generatorVersion': '2.0.1113',
13
- 'contentHash': 'cbd5eb06ec18457607647a22b664338a4134f13b'
13
+ 'contentHash': 'da3e2ef868f4edeeef0448ae6e1f9b4e255611eb'
14
14
  };
15
15
  $root.__lookup = function (pbjs) {
16
16
  const root = pbjs.Root.fromJSON({
@@ -2728,6 +2728,12 @@ $root.__lookup = function (pbjs) {
2728
2728
  'id': 11,
2729
2729
  'comment': null,
2730
2730
  'parsedOptions': null
2731
+ },
2732
+ 'domainEvents': {
2733
+ 'type': 'DomainEventOptions',
2734
+ 'id': 12,
2735
+ 'comment': null,
2736
+ 'parsedOptions': null
2731
2737
  }
2732
2738
  },
2733
2739
  'comment': null
@@ -2779,6 +2785,17 @@ $root.__lookup = function (pbjs) {
2779
2785
  },
2780
2786
  'comment': null
2781
2787
  },
2788
+ 'DomainEventOptions': {
2789
+ 'fields': {
2790
+ 'eventSequenceNumber': {
2791
+ 'type': 'bool',
2792
+ 'id': 1,
2793
+ 'comment': null,
2794
+ 'parsedOptions': null
2795
+ }
2796
+ },
2797
+ 'comment': null
2798
+ },
2782
2799
  'serviceMaturity': {
2783
2800
  'type': 'Maturity',
2784
2801
  'id': 50104,
@@ -4185,12 +4202,12 @@ $root.__lookup = function (pbjs) {
4185
4202
  'PUBLIC': 2,
4186
4203
  'OTHERS': 3
4187
4204
  },
4188
- 'comment': null,
4205
+ 'comment': '[Segment] annotation registers to Confluent clusters.\nExisting topics might have a hard-coded segment in Greyhound, so this option is not required in proto.\nHowever, new topics must provide a segment, or greyhound will throw an exception.\n@see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment',
4189
4206
  'comments': {
4190
4207
  'UNSPECIFIED': null,
4191
- 'USERS': null,
4192
- 'PUBLIC': null,
4193
- 'OTHERS': null
4208
+ 'USERS': 'For events that are consumed in 42 and uw2 only.\nThis also includes a case where an event is produced from 84/AE1 via toMainDC',
4209
+ 'PUBLIC': 'For events that are consumed in all DCs.\nThis includes both cases where an event is published from 84/AE1 and cases where it\'s published from 42/uw2 and replicated via Raven to 84/AE1',
4210
+ 'OTHERS': 'For DevEx services/migrations.\nDeployed on 42, uw2.'
4194
4211
  }
4195
4212
  }
4196
4213
  },
@@ -19010,6 +19027,7 @@ $root.wix = (function () {
19010
19027
  this.plural = props && props.plural;
19011
19028
  this.domainEventsReadPermission = props && props.domainEventsReadPermission;
19012
19029
  this.appDefId = props && props.appDefId;
19030
+ this.domainEvents = props && props.domainEvents;
19013
19031
  }
19014
19032
  static toJSON(obj, helper, withDefaults) {
19015
19033
  if (obj == null) {
@@ -19075,6 +19093,11 @@ $root.wix = (function () {
19075
19093
  } else if (withDefaults) {
19076
19094
  json['appDefId'] = '';
19077
19095
  }
19096
+ if (obj['domainEvents'] != null) {
19097
+ json['domainEvents'] = $root.wix.api.DomainEventOptions.toJSON(obj['domainEvents'], helper, withDefaults);
19098
+ } else if (withDefaults) {
19099
+ delete json['domainEvents'];
19100
+ }
19078
19101
  return json;
19079
19102
  }
19080
19103
  }
@@ -19162,6 +19185,13 @@ $root.wix = (function () {
19162
19185
  } else {
19163
19186
  delete result['appDefId'];
19164
19187
  }
19188
+ if (json['domainEvents'] != null) {
19189
+ result['domainEvents'] = $root.wix.api.DomainEventOptions.fromJSON(json['domainEvents'], helper);
19190
+ } else if (withDefaults !== false) {
19191
+ delete result['domainEvents'];
19192
+ } else {
19193
+ delete result['domainEvents'];
19194
+ }
19165
19195
  return result;
19166
19196
  } else
19167
19197
  return json;
@@ -19208,6 +19238,9 @@ $root.wix = (function () {
19208
19238
  if (obj['appDefId'] != null) {
19209
19239
  grpc['appDefId'] = obj['appDefId'];
19210
19240
  }
19241
+ if (obj['domainEvents'] != null) {
19242
+ grpc['domainEvents'] = $root.wix.api.DomainEventOptions.toGRPC(obj['domainEvents'], helper);
19243
+ }
19211
19244
  return grpc;
19212
19245
  }
19213
19246
  }
@@ -19275,6 +19308,11 @@ $root.wix = (function () {
19275
19308
  } else {
19276
19309
  result['appDefId'] = '';
19277
19310
  }
19311
+ if (grpc['domainEvents'] != null) {
19312
+ result['domainEvents'] = $root.wix.api.DomainEventOptions.fromGRPC(grpc['domainEvents'], helper);
19313
+ } else {
19314
+ delete result['domainEvents'];
19315
+ }
19278
19316
  return result;
19279
19317
  }
19280
19318
  }
@@ -19506,6 +19544,87 @@ $root.wix = (function () {
19506
19544
  });
19507
19545
  return MessageAppendix;
19508
19546
  }());;
19547
+ _api.DomainEventOptions = (function () {
19548
+ class DomainEventOptions {
19549
+ constructor(props) {
19550
+ this.eventSequenceNumber = props && props.eventSequenceNumber;
19551
+ }
19552
+ static toJSON(obj, helper, withDefaults) {
19553
+ if (obj == null) {
19554
+ return null;
19555
+ } else {
19556
+ const json = {};
19557
+ if (obj['eventSequenceNumber'] != null) {
19558
+ json['eventSequenceNumber'] = obj['eventSequenceNumber'];
19559
+ } else if (withDefaults) {
19560
+ json['eventSequenceNumber'] = false;
19561
+ }
19562
+ return json;
19563
+ }
19564
+ }
19565
+ static fromJSON(json, helper, withDefaults) {
19566
+ if (typeof json === 'object' && !Array.isArray(json)) {
19567
+ const result = new $root.wix.api.DomainEventOptions();
19568
+ if (json['eventSequenceNumber'] != null) {
19569
+ result['eventSequenceNumber'] = json['eventSequenceNumber'];
19570
+ } else if (withDefaults !== false) {
19571
+ result['eventSequenceNumber'] = false;
19572
+ } else {
19573
+ delete result['eventSequenceNumber'];
19574
+ }
19575
+ return result;
19576
+ } else
19577
+ return json;
19578
+ }
19579
+ static toGRPC(obj, helper) {
19580
+ if (obj == null) {
19581
+ return null;
19582
+ } else {
19583
+ const grpc = {};
19584
+ if (obj['eventSequenceNumber'] != null) {
19585
+ grpc['eventSequenceNumber'] = obj['eventSequenceNumber'];
19586
+ }
19587
+ return grpc;
19588
+ }
19589
+ }
19590
+ static fromGRPC(grpc, helper) {
19591
+ if (grpc == null) {
19592
+ return null;
19593
+ } else {
19594
+ const result = new $root.wix.api.DomainEventOptions();
19595
+ if (grpc['eventSequenceNumber'] != null) {
19596
+ result['eventSequenceNumber'] = grpc['eventSequenceNumber'];
19597
+ } else {
19598
+ result['eventSequenceNumber'] = false;
19599
+ }
19600
+ return result;
19601
+ }
19602
+ }
19603
+ }
19604
+ __builtIn.Object.defineProperty(DomainEventOptions.prototype, '__proto', {
19605
+ value: pbjs => {
19606
+ return $root.__lookup(pbjs)('wix.api.DomainEventOptions');
19607
+ },
19608
+ enumerable: false,
19609
+ configurable: false
19610
+ });
19611
+ __builtIn.Object.defineProperty(DomainEventOptions.prototype, '__fqn__', {
19612
+ value: 'wix.api.DomainEventOptions',
19613
+ enumerable: false,
19614
+ configurable: false
19615
+ });
19616
+ __builtIn.Object.defineProperty(DomainEventOptions.prototype, '__options__', {
19617
+ value: $root.__options,
19618
+ enumerable: false,
19619
+ configurable: false
19620
+ });
19621
+ __builtIn.Object.defineProperty(DomainEventOptions.prototype, '__root__', {
19622
+ value: $root,
19623
+ enumerable: false,
19624
+ configurable: false
19625
+ });
19626
+ return DomainEventOptions;
19627
+ }());;
19509
19628
  _api.CacheSettings = (function () {
19510
19629
  class CacheSettings {
19511
19630
  constructor(props) {
@@ -1128,6 +1128,7 @@ declare namespace $requests {
1128
1128
  plural: string;
1129
1129
  domainEventsReadPermission: string;
1130
1130
  appDefId: string;
1131
+ domainEvents?: $requests.wix.api.IDomainEventOptions;
1131
1132
  }
1132
1133
  export class Entity implements IEntity {
1133
1134
  constructor(data?: IEntity);
@@ -1142,6 +1143,7 @@ declare namespace $requests {
1142
1143
  plural: string;
1143
1144
  domainEventsReadPermission: string;
1144
1145
  appDefId: string;
1146
+ domainEvents?: $requests.wix.api.IDomainEventOptions;
1145
1147
  static __$$generatedFromProtobuf$$__: Symbol;
1146
1148
  }
1147
1149
  export interface IExtensible {
@@ -1170,6 +1172,14 @@ declare namespace $requests {
1170
1172
  MULTILINGUAL = "MULTILINGUAL",
1171
1173
  }
1172
1174
  }
1175
+ export interface IDomainEventOptions {
1176
+ eventSequenceNumber: boolean;
1177
+ }
1178
+ export class DomainEventOptions implements IDomainEventOptions {
1179
+ constructor(data?: IDomainEventOptions);
1180
+ eventSequenceNumber: boolean;
1181
+ static __$$generatedFromProtobuf$$__: Symbol;
1182
+ }
1173
1183
  export interface ICacheSettings {
1174
1184
  maxAgeSeconds: number;
1175
1185
  }
@@ -1726,6 +1736,12 @@ declare namespace $requests {
1726
1736
  static __$$generatedFromProtobuf$$__: Symbol;
1727
1737
  }
1728
1738
  export namespace Segment {
1739
+ /**
1740
+ * [Segment] annotation registers to Confluent clusters.
1741
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
1742
+ * However, new topics must provide a segment, or greyhound will throw an exception.
1743
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
1744
+ */
1729
1745
  export enum Segment {
1730
1746
  UNSPECIFIED = "UNSPECIFIED",
1731
1747
  USERS = "USERS",
@@ -3976,6 +3992,7 @@ declare namespace $responses {
3976
3992
  plural?: string;
3977
3993
  domainEventsReadPermission?: string;
3978
3994
  appDefId?: string;
3995
+ domainEvents?: $responses.wix.api.IDomainEventOptions;
3979
3996
  }
3980
3997
  export class Entity implements IEntity {
3981
3998
  constructor(data?: IEntity);
@@ -3990,6 +4007,7 @@ declare namespace $responses {
3990
4007
  plural?: string;
3991
4008
  domainEventsReadPermission?: string;
3992
4009
  appDefId?: string;
4010
+ domainEvents?: $responses.wix.api.IDomainEventOptions;
3993
4011
  static __$$generatedFromProtobuf$$__: Symbol;
3994
4012
  }
3995
4013
  export interface IExtensible {
@@ -4018,6 +4036,14 @@ declare namespace $responses {
4018
4036
  MULTILINGUAL = "MULTILINGUAL",
4019
4037
  }
4020
4038
  }
4039
+ export interface IDomainEventOptions {
4040
+ eventSequenceNumber?: boolean;
4041
+ }
4042
+ export class DomainEventOptions implements IDomainEventOptions {
4043
+ constructor(data?: IDomainEventOptions);
4044
+ eventSequenceNumber?: boolean;
4045
+ static __$$generatedFromProtobuf$$__: Symbol;
4046
+ }
4021
4047
  export interface ICacheSettings {
4022
4048
  maxAgeSeconds?: number;
4023
4049
  }
@@ -4574,6 +4600,12 @@ declare namespace $responses {
4574
4600
  static __$$generatedFromProtobuf$$__: Symbol;
4575
4601
  }
4576
4602
  export namespace Segment {
4603
+ /**
4604
+ * [Segment] annotation registers to Confluent clusters.
4605
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
4606
+ * However, new topics must provide a segment, or greyhound will throw an exception.
4607
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
4608
+ */
4577
4609
  export enum Segment {
4578
4610
  UNSPECIFIED = "UNSPECIFIED",
4579
4611
  USERS = "USERS",
@@ -1128,6 +1128,7 @@ declare namespace $requests {
1128
1128
  plural?: string;
1129
1129
  domainEventsReadPermission?: string;
1130
1130
  appDefId?: string;
1131
+ domainEvents?: $requests.wix.api.IDomainEventOptions;
1131
1132
  }
1132
1133
  export class Entity implements IEntity {
1133
1134
  constructor(data?: IEntity);
@@ -1142,6 +1143,7 @@ declare namespace $requests {
1142
1143
  plural?: string;
1143
1144
  domainEventsReadPermission?: string;
1144
1145
  appDefId?: string;
1146
+ domainEvents?: $requests.wix.api.IDomainEventOptions;
1145
1147
  static __$$generatedFromProtobuf$$__: Symbol;
1146
1148
  }
1147
1149
  export interface IExtensible {
@@ -1170,6 +1172,14 @@ declare namespace $requests {
1170
1172
  MULTILINGUAL = "MULTILINGUAL",
1171
1173
  }
1172
1174
  }
1175
+ export interface IDomainEventOptions {
1176
+ eventSequenceNumber?: boolean;
1177
+ }
1178
+ export class DomainEventOptions implements IDomainEventOptions {
1179
+ constructor(data?: IDomainEventOptions);
1180
+ eventSequenceNumber?: boolean;
1181
+ static __$$generatedFromProtobuf$$__: Symbol;
1182
+ }
1173
1183
  export interface ICacheSettings {
1174
1184
  maxAgeSeconds?: number;
1175
1185
  }
@@ -1726,6 +1736,12 @@ declare namespace $requests {
1726
1736
  static __$$generatedFromProtobuf$$__: Symbol;
1727
1737
  }
1728
1738
  export namespace Segment {
1739
+ /**
1740
+ * [Segment] annotation registers to Confluent clusters.
1741
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
1742
+ * However, new topics must provide a segment, or greyhound will throw an exception.
1743
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
1744
+ */
1729
1745
  export enum Segment {
1730
1746
  UNSPECIFIED = "UNSPECIFIED",
1731
1747
  USERS = "USERS",
@@ -3976,6 +3992,7 @@ declare namespace $responses {
3976
3992
  plural: string;
3977
3993
  domainEventsReadPermission: string;
3978
3994
  appDefId: string;
3995
+ domainEvents?: $responses.wix.api.IDomainEventOptions;
3979
3996
  }
3980
3997
  export class Entity implements IEntity {
3981
3998
  constructor(data?: IEntity);
@@ -3990,6 +4007,7 @@ declare namespace $responses {
3990
4007
  plural: string;
3991
4008
  domainEventsReadPermission: string;
3992
4009
  appDefId: string;
4010
+ domainEvents?: $responses.wix.api.IDomainEventOptions;
3993
4011
  static __$$generatedFromProtobuf$$__: Symbol;
3994
4012
  }
3995
4013
  export interface IExtensible {
@@ -4018,6 +4036,14 @@ declare namespace $responses {
4018
4036
  MULTILINGUAL = "MULTILINGUAL",
4019
4037
  }
4020
4038
  }
4039
+ export interface IDomainEventOptions {
4040
+ eventSequenceNumber: boolean;
4041
+ }
4042
+ export class DomainEventOptions implements IDomainEventOptions {
4043
+ constructor(data?: IDomainEventOptions);
4044
+ eventSequenceNumber: boolean;
4045
+ static __$$generatedFromProtobuf$$__: Symbol;
4046
+ }
4021
4047
  export interface ICacheSettings {
4022
4048
  maxAgeSeconds: number;
4023
4049
  }
@@ -4574,6 +4600,12 @@ declare namespace $responses {
4574
4600
  static __$$generatedFromProtobuf$$__: Symbol;
4575
4601
  }
4576
4602
  export namespace Segment {
4603
+ /**
4604
+ * [Segment] annotation registers to Confluent clusters.
4605
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
4606
+ * However, new topics must provide a segment, or greyhound will throw an exception.
4607
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
4608
+ */
4577
4609
  export enum Segment {
4578
4610
  UNSPECIFIED = "UNSPECIFIED",
4579
4611
  USERS = "USERS",
@@ -1142,6 +1142,7 @@ declare namespace $wrapper {
1142
1142
  plural?: (string | null);
1143
1143
  domainEventsReadPermission?: (string | null);
1144
1144
  appDefId?: (string | null);
1145
+ domainEvents?: ($wrapper.wix.api.IDomainEventOptions | null);
1145
1146
  }
1146
1147
  export class Entity implements IEntity {
1147
1148
  constructor(data?: IEntity);
@@ -1156,6 +1157,7 @@ declare namespace $wrapper {
1156
1157
  plural?: (string | null);
1157
1158
  domainEventsReadPermission?: (string | null);
1158
1159
  appDefId?: (string | null);
1160
+ domainEvents?: ($wrapper.wix.api.IDomainEventOptions | null);
1159
1161
  static __$$generatedFromProtobuf$$__: Symbol;
1160
1162
  }
1161
1163
  export interface IExtensible {
@@ -1184,6 +1186,14 @@ declare namespace $wrapper {
1184
1186
  MULTILINGUAL = "MULTILINGUAL",
1185
1187
  }
1186
1188
  }
1189
+ export interface IDomainEventOptions {
1190
+ eventSequenceNumber?: (boolean | null);
1191
+ }
1192
+ export class DomainEventOptions implements IDomainEventOptions {
1193
+ constructor(data?: IDomainEventOptions);
1194
+ eventSequenceNumber?: (boolean | null);
1195
+ static __$$generatedFromProtobuf$$__: Symbol;
1196
+ }
1187
1197
  export interface ICacheSettings {
1188
1198
  maxAgeSeconds?: (number | null);
1189
1199
  }
@@ -1740,6 +1750,12 @@ declare namespace $wrapper {
1740
1750
  static __$$generatedFromProtobuf$$__: Symbol;
1741
1751
  }
1742
1752
  export namespace Segment {
1753
+ /**
1754
+ * [Segment] annotation registers to Confluent clusters.
1755
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
1756
+ * However, new topics must provide a segment, or greyhound will throw an exception.
1757
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
1758
+ */
1743
1759
  export enum Segment {
1744
1760
  UNSPECIFIED = "UNSPECIFIED",
1745
1761
  USERS = "USERS",
@@ -10,7 +10,7 @@ $root.__options = {
10
10
  'stringLongs': true,
11
11
  'stdCase': false,
12
12
  'generatorVersion': '2.0.1113',
13
- 'contentHash': 'cbd5eb06ec18457607647a22b664338a4134f13b'
13
+ 'contentHash': 'da3e2ef868f4edeeef0448ae6e1f9b4e255611eb'
14
14
  };
15
15
  $root.__lookup = function (pbjs) {
16
16
  const root = pbjs.Root.fromJSON({
@@ -2728,6 +2728,12 @@ $root.__lookup = function (pbjs) {
2728
2728
  'id': 11,
2729
2729
  'comment': null,
2730
2730
  'parsedOptions': null
2731
+ },
2732
+ 'domainEvents': {
2733
+ 'type': 'DomainEventOptions',
2734
+ 'id': 12,
2735
+ 'comment': null,
2736
+ 'parsedOptions': null
2731
2737
  }
2732
2738
  },
2733
2739
  'comment': null
@@ -2779,6 +2785,17 @@ $root.__lookup = function (pbjs) {
2779
2785
  },
2780
2786
  'comment': null
2781
2787
  },
2788
+ 'DomainEventOptions': {
2789
+ 'fields': {
2790
+ 'eventSequenceNumber': {
2791
+ 'type': 'bool',
2792
+ 'id': 1,
2793
+ 'comment': null,
2794
+ 'parsedOptions': null
2795
+ }
2796
+ },
2797
+ 'comment': null
2798
+ },
2782
2799
  'serviceMaturity': {
2783
2800
  'type': 'Maturity',
2784
2801
  'id': 50104,
@@ -4185,12 +4202,12 @@ $root.__lookup = function (pbjs) {
4185
4202
  'PUBLIC': 2,
4186
4203
  'OTHERS': 3
4187
4204
  },
4188
- 'comment': null,
4205
+ 'comment': '[Segment] annotation registers to Confluent clusters.\nExisting topics might have a hard-coded segment in Greyhound, so this option is not required in proto.\nHowever, new topics must provide a segment, or greyhound will throw an exception.\n@see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment',
4189
4206
  'comments': {
4190
4207
  'UNSPECIFIED': null,
4191
- 'USERS': null,
4192
- 'PUBLIC': null,
4193
- 'OTHERS': null
4208
+ 'USERS': 'For events that are consumed in 42 and uw2 only.\nThis also includes a case where an event is produced from 84/AE1 via toMainDC',
4209
+ 'PUBLIC': 'For events that are consumed in all DCs.\nThis includes both cases where an event is published from 84/AE1 and cases where it\'s published from 42/uw2 and replicated via Raven to 84/AE1',
4210
+ 'OTHERS': 'For DevEx services/migrations.\nDeployed on 42, uw2.'
4194
4211
  }
4195
4212
  }
4196
4213
  },
@@ -19010,6 +19027,7 @@ $root.wix = (function () {
19010
19027
  this.plural = props && props.plural;
19011
19028
  this.domainEventsReadPermission = props && props.domainEventsReadPermission;
19012
19029
  this.appDefId = props && props.appDefId;
19030
+ this.domainEvents = props && props.domainEvents;
19013
19031
  }
19014
19032
  static toJSON(obj, helper, withDefaults) {
19015
19033
  if (obj == null) {
@@ -19075,6 +19093,11 @@ $root.wix = (function () {
19075
19093
  } else if (withDefaults) {
19076
19094
  json['appDefId'] = '';
19077
19095
  }
19096
+ if (obj['domainEvents'] != null) {
19097
+ json['domainEvents'] = $root.wix.api.DomainEventOptions.toJSON(obj['domainEvents'], helper, withDefaults);
19098
+ } else if (withDefaults) {
19099
+ delete json['domainEvents'];
19100
+ }
19078
19101
  return json;
19079
19102
  }
19080
19103
  }
@@ -19162,6 +19185,13 @@ $root.wix = (function () {
19162
19185
  } else {
19163
19186
  delete result['appDefId'];
19164
19187
  }
19188
+ if (json['domainEvents'] != null) {
19189
+ result['domainEvents'] = $root.wix.api.DomainEventOptions.fromJSON(json['domainEvents'], helper);
19190
+ } else if (withDefaults !== false) {
19191
+ delete result['domainEvents'];
19192
+ } else {
19193
+ delete result['domainEvents'];
19194
+ }
19165
19195
  return result;
19166
19196
  } else
19167
19197
  return json;
@@ -19208,6 +19238,9 @@ $root.wix = (function () {
19208
19238
  if (obj['appDefId'] != null) {
19209
19239
  grpc['appDefId'] = obj['appDefId'];
19210
19240
  }
19241
+ if (obj['domainEvents'] != null) {
19242
+ grpc['domainEvents'] = $root.wix.api.DomainEventOptions.toGRPC(obj['domainEvents'], helper);
19243
+ }
19211
19244
  return grpc;
19212
19245
  }
19213
19246
  }
@@ -19275,6 +19308,11 @@ $root.wix = (function () {
19275
19308
  } else {
19276
19309
  result['appDefId'] = '';
19277
19310
  }
19311
+ if (grpc['domainEvents'] != null) {
19312
+ result['domainEvents'] = $root.wix.api.DomainEventOptions.fromGRPC(grpc['domainEvents'], helper);
19313
+ } else {
19314
+ delete result['domainEvents'];
19315
+ }
19278
19316
  return result;
19279
19317
  }
19280
19318
  }
@@ -19506,6 +19544,87 @@ $root.wix = (function () {
19506
19544
  });
19507
19545
  return MessageAppendix;
19508
19546
  }());;
19547
+ _api.DomainEventOptions = (function () {
19548
+ class DomainEventOptions {
19549
+ constructor(props) {
19550
+ this.eventSequenceNumber = props && props.eventSequenceNumber;
19551
+ }
19552
+ static toJSON(obj, helper, withDefaults) {
19553
+ if (obj == null) {
19554
+ return null;
19555
+ } else {
19556
+ const json = {};
19557
+ if (obj['eventSequenceNumber'] != null) {
19558
+ json['eventSequenceNumber'] = obj['eventSequenceNumber'];
19559
+ } else if (withDefaults) {
19560
+ json['eventSequenceNumber'] = false;
19561
+ }
19562
+ return json;
19563
+ }
19564
+ }
19565
+ static fromJSON(json, helper, withDefaults) {
19566
+ if (typeof json === 'object' && !Array.isArray(json)) {
19567
+ const result = new $root.wix.api.DomainEventOptions();
19568
+ if (json['eventSequenceNumber'] != null) {
19569
+ result['eventSequenceNumber'] = json['eventSequenceNumber'];
19570
+ } else if (withDefaults !== false) {
19571
+ result['eventSequenceNumber'] = false;
19572
+ } else {
19573
+ delete result['eventSequenceNumber'];
19574
+ }
19575
+ return result;
19576
+ } else
19577
+ return json;
19578
+ }
19579
+ static toGRPC(obj, helper) {
19580
+ if (obj == null) {
19581
+ return null;
19582
+ } else {
19583
+ const grpc = {};
19584
+ if (obj['eventSequenceNumber'] != null) {
19585
+ grpc['eventSequenceNumber'] = obj['eventSequenceNumber'];
19586
+ }
19587
+ return grpc;
19588
+ }
19589
+ }
19590
+ static fromGRPC(grpc, helper) {
19591
+ if (grpc == null) {
19592
+ return null;
19593
+ } else {
19594
+ const result = new $root.wix.api.DomainEventOptions();
19595
+ if (grpc['eventSequenceNumber'] != null) {
19596
+ result['eventSequenceNumber'] = grpc['eventSequenceNumber'];
19597
+ } else {
19598
+ result['eventSequenceNumber'] = false;
19599
+ }
19600
+ return result;
19601
+ }
19602
+ }
19603
+ }
19604
+ __builtIn.Object.defineProperty(DomainEventOptions.prototype, '__proto', {
19605
+ value: pbjs => {
19606
+ return $root.__lookup(pbjs)('wix.api.DomainEventOptions');
19607
+ },
19608
+ enumerable: false,
19609
+ configurable: false
19610
+ });
19611
+ __builtIn.Object.defineProperty(DomainEventOptions.prototype, '__fqn__', {
19612
+ value: 'wix.api.DomainEventOptions',
19613
+ enumerable: false,
19614
+ configurable: false
19615
+ });
19616
+ __builtIn.Object.defineProperty(DomainEventOptions.prototype, '__options__', {
19617
+ value: $root.__options,
19618
+ enumerable: false,
19619
+ configurable: false
19620
+ });
19621
+ __builtIn.Object.defineProperty(DomainEventOptions.prototype, '__root__', {
19622
+ value: $root,
19623
+ enumerable: false,
19624
+ configurable: false
19625
+ });
19626
+ return DomainEventOptions;
19627
+ }());;
19509
19628
  _api.CacheSettings = (function () {
19510
19629
  class CacheSettings {
19511
19630
  constructor(props) {
@@ -1128,6 +1128,7 @@ declare namespace $requests {
1128
1128
  plural: string;
1129
1129
  domainEventsReadPermission: string;
1130
1130
  appDefId: string;
1131
+ domainEvents?: $requests.wix.api.IDomainEventOptions;
1131
1132
  }
1132
1133
  export class Entity implements IEntity {
1133
1134
  constructor(data?: IEntity);
@@ -1142,6 +1143,7 @@ declare namespace $requests {
1142
1143
  plural: string;
1143
1144
  domainEventsReadPermission: string;
1144
1145
  appDefId: string;
1146
+ domainEvents?: $requests.wix.api.IDomainEventOptions;
1145
1147
  static __$$generatedFromProtobuf$$__: Symbol;
1146
1148
  }
1147
1149
  export interface IExtensible {
@@ -1170,6 +1172,14 @@ declare namespace $requests {
1170
1172
  MULTILINGUAL = "MULTILINGUAL",
1171
1173
  }
1172
1174
  }
1175
+ export interface IDomainEventOptions {
1176
+ eventSequenceNumber: boolean;
1177
+ }
1178
+ export class DomainEventOptions implements IDomainEventOptions {
1179
+ constructor(data?: IDomainEventOptions);
1180
+ eventSequenceNumber: boolean;
1181
+ static __$$generatedFromProtobuf$$__: Symbol;
1182
+ }
1173
1183
  export interface ICacheSettings {
1174
1184
  maxAgeSeconds: number;
1175
1185
  }
@@ -1726,6 +1736,12 @@ declare namespace $requests {
1726
1736
  static __$$generatedFromProtobuf$$__: Symbol;
1727
1737
  }
1728
1738
  export namespace Segment {
1739
+ /**
1740
+ * [Segment] annotation registers to Confluent clusters.
1741
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
1742
+ * However, new topics must provide a segment, or greyhound will throw an exception.
1743
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
1744
+ */
1729
1745
  export enum Segment {
1730
1746
  UNSPECIFIED = "UNSPECIFIED",
1731
1747
  USERS = "USERS",
@@ -3976,6 +3992,7 @@ declare namespace $responses {
3976
3992
  plural?: string;
3977
3993
  domainEventsReadPermission?: string;
3978
3994
  appDefId?: string;
3995
+ domainEvents?: $responses.wix.api.IDomainEventOptions;
3979
3996
  }
3980
3997
  export class Entity implements IEntity {
3981
3998
  constructor(data?: IEntity);
@@ -3990,6 +4007,7 @@ declare namespace $responses {
3990
4007
  plural?: string;
3991
4008
  domainEventsReadPermission?: string;
3992
4009
  appDefId?: string;
4010
+ domainEvents?: $responses.wix.api.IDomainEventOptions;
3993
4011
  static __$$generatedFromProtobuf$$__: Symbol;
3994
4012
  }
3995
4013
  export interface IExtensible {
@@ -4018,6 +4036,14 @@ declare namespace $responses {
4018
4036
  MULTILINGUAL = "MULTILINGUAL",
4019
4037
  }
4020
4038
  }
4039
+ export interface IDomainEventOptions {
4040
+ eventSequenceNumber?: boolean;
4041
+ }
4042
+ export class DomainEventOptions implements IDomainEventOptions {
4043
+ constructor(data?: IDomainEventOptions);
4044
+ eventSequenceNumber?: boolean;
4045
+ static __$$generatedFromProtobuf$$__: Symbol;
4046
+ }
4021
4047
  export interface ICacheSettings {
4022
4048
  maxAgeSeconds?: number;
4023
4049
  }
@@ -4574,6 +4600,12 @@ declare namespace $responses {
4574
4600
  static __$$generatedFromProtobuf$$__: Symbol;
4575
4601
  }
4576
4602
  export namespace Segment {
4603
+ /**
4604
+ * [Segment] annotation registers to Confluent clusters.
4605
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
4606
+ * However, new topics must provide a segment, or greyhound will throw an exception.
4607
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
4608
+ */
4577
4609
  export enum Segment {
4578
4610
  UNSPECIFIED = "UNSPECIFIED",
4579
4611
  USERS = "USERS",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/metro-common-builders",
3
- "version": "1.0.1137",
3
+ "version": "1.0.1139",
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.1495.0",
36
+ "@wix/metro-runtime": "1.1497.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": "69317bb2566352904b6e9582e6e5cfccfc2b29f3dc2b8e0b7240fce4"
72
+ "falconPackageHash": "874240d442a3bf67cae41f9df0c98820c87be7afae19b94a377ef936"
73
73
  }