@headspace/protos-events 1.482.0 → 1.483.0

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.
Files changed (3) hide show
  1. package/lib/index.d.ts +132 -12
  2. package/lib/index.js +384 -46
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -11864,6 +11864,114 @@ export namespace elf {
11864
11864
  */
11865
11865
  public toJSON(): { [k: string]: any };
11866
11866
  }
11867
+
11868
+ /** Properties of an ElfOfferingProcessingStats. */
11869
+ interface IElfOfferingProcessingStats {
11870
+
11871
+ /** ElfOfferingProcessingStats offering */
11872
+ offering?: (b2b.SubscriptionOffering|null);
11873
+
11874
+ /** ElfOfferingProcessingStats recordsTotal */
11875
+ recordsTotal?: (number|null);
11876
+
11877
+ /** ElfOfferingProcessingStats recordsToBeRemoved */
11878
+ recordsToBeRemoved?: (number|null);
11879
+
11880
+ /** ElfOfferingProcessingStats recordsUpdated */
11881
+ recordsUpdated?: (number|null);
11882
+ }
11883
+
11884
+ /** Represents an ElfOfferingProcessingStats. */
11885
+ class ElfOfferingProcessingStats implements IElfOfferingProcessingStats {
11886
+
11887
+ /**
11888
+ * Constructs a new ElfOfferingProcessingStats.
11889
+ * @param [properties] Properties to set
11890
+ */
11891
+ constructor(properties?: elf.IElfOfferingProcessingStats);
11892
+
11893
+ /** ElfOfferingProcessingStats offering. */
11894
+ public offering: b2b.SubscriptionOffering;
11895
+
11896
+ /** ElfOfferingProcessingStats recordsTotal. */
11897
+ public recordsTotal: number;
11898
+
11899
+ /** ElfOfferingProcessingStats recordsToBeRemoved. */
11900
+ public recordsToBeRemoved: number;
11901
+
11902
+ /** ElfOfferingProcessingStats recordsUpdated. */
11903
+ public recordsUpdated: number;
11904
+
11905
+ /**
11906
+ * Creates a new ElfOfferingProcessingStats instance using the specified properties.
11907
+ * @param [properties] Properties to set
11908
+ * @returns ElfOfferingProcessingStats instance
11909
+ */
11910
+ public static create(properties?: elf.IElfOfferingProcessingStats): elf.ElfOfferingProcessingStats;
11911
+
11912
+ /**
11913
+ * Encodes the specified ElfOfferingProcessingStats message. Does not implicitly {@link elf.ElfOfferingProcessingStats.verify|verify} messages.
11914
+ * @param message ElfOfferingProcessingStats message or plain object to encode
11915
+ * @param [writer] Writer to encode to
11916
+ * @returns Writer
11917
+ */
11918
+ public static encode(message: elf.IElfOfferingProcessingStats, writer?: $protobuf.Writer): $protobuf.Writer;
11919
+
11920
+ /**
11921
+ * Encodes the specified ElfOfferingProcessingStats message, length delimited. Does not implicitly {@link elf.ElfOfferingProcessingStats.verify|verify} messages.
11922
+ * @param message ElfOfferingProcessingStats message or plain object to encode
11923
+ * @param [writer] Writer to encode to
11924
+ * @returns Writer
11925
+ */
11926
+ public static encodeDelimited(message: elf.IElfOfferingProcessingStats, writer?: $protobuf.Writer): $protobuf.Writer;
11927
+
11928
+ /**
11929
+ * Decodes an ElfOfferingProcessingStats message from the specified reader or buffer.
11930
+ * @param reader Reader or buffer to decode from
11931
+ * @param [length] Message length if known beforehand
11932
+ * @returns ElfOfferingProcessingStats
11933
+ * @throws {Error} If the payload is not a reader or valid buffer
11934
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11935
+ */
11936
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): elf.ElfOfferingProcessingStats;
11937
+
11938
+ /**
11939
+ * Decodes an ElfOfferingProcessingStats message from the specified reader or buffer, length delimited.
11940
+ * @param reader Reader or buffer to decode from
11941
+ * @returns ElfOfferingProcessingStats
11942
+ * @throws {Error} If the payload is not a reader or valid buffer
11943
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11944
+ */
11945
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): elf.ElfOfferingProcessingStats;
11946
+
11947
+ /**
11948
+ * Verifies an ElfOfferingProcessingStats message.
11949
+ * @param message Plain object to verify
11950
+ * @returns `null` if valid, otherwise the reason why it is not
11951
+ */
11952
+ public static verify(message: { [k: string]: any }): (string|null);
11953
+
11954
+ /**
11955
+ * Creates an ElfOfferingProcessingStats message from a plain object. Also converts values to their respective internal types.
11956
+ * @param object Plain object
11957
+ * @returns ElfOfferingProcessingStats
11958
+ */
11959
+ public static fromObject(object: { [k: string]: any }): elf.ElfOfferingProcessingStats;
11960
+
11961
+ /**
11962
+ * Creates a plain object from an ElfOfferingProcessingStats message. Also converts values to other types if specified.
11963
+ * @param message ElfOfferingProcessingStats
11964
+ * @param [options] Conversion options
11965
+ * @returns Plain object
11966
+ */
11967
+ public static toObject(message: elf.ElfOfferingProcessingStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
11968
+
11969
+ /**
11970
+ * Converts this ElfOfferingProcessingStats to JSON.
11971
+ * @returns JSON object
11972
+ */
11973
+ public toJSON(): { [k: string]: any };
11974
+ }
11867
11975
  }
11868
11976
 
11869
11977
  /** Namespace asset. */
@@ -34377,14 +34485,14 @@ export interface IElfProcessingStats {
34377
34485
  /** ElfProcessingStats isDryRun */
34378
34486
  isDryRun?: (boolean|null);
34379
34487
 
34380
- /** ElfProcessingStats total */
34381
- total?: (number|null);
34488
+ /** ElfProcessingStats recordsTotal */
34489
+ recordsTotal?: (number|null);
34382
34490
 
34383
- /** ElfProcessingStats toBeRemoved */
34384
- toBeRemoved?: (number|null);
34491
+ /** ElfProcessingStats recordsToBeRemoved */
34492
+ recordsToBeRemoved?: (number|null);
34385
34493
 
34386
- /** ElfProcessingStats skipped */
34387
- skipped?: (number|null);
34494
+ /** ElfProcessingStats recordsSkipped */
34495
+ recordsSkipped?: (number|null);
34388
34496
 
34389
34497
  /** ElfProcessingStats errors */
34390
34498
  errors?: ({ [k: string]: string }|null);
@@ -34418,6 +34526,12 @@ export interface IElfProcessingStats {
34418
34526
 
34419
34527
  /** ElfProcessingStats elfErrorsCsvUrl */
34420
34528
  elfErrorsCsvUrl?: (string|null);
34529
+
34530
+ /** ElfProcessingStats recordsUpdated */
34531
+ recordsUpdated?: (number|null);
34532
+
34533
+ /** ElfProcessingStats statsByOffering */
34534
+ statsByOffering?: (elf.IElfOfferingProcessingStats[]|null);
34421
34535
  }
34422
34536
 
34423
34537
  /** Represents an ElfProcessingStats. */
@@ -34441,14 +34555,14 @@ export class ElfProcessingStats implements IElfProcessingStats {
34441
34555
  /** ElfProcessingStats isDryRun. */
34442
34556
  public isDryRun: boolean;
34443
34557
 
34444
- /** ElfProcessingStats total. */
34445
- public total: number;
34558
+ /** ElfProcessingStats recordsTotal. */
34559
+ public recordsTotal: number;
34446
34560
 
34447
- /** ElfProcessingStats toBeRemoved. */
34448
- public toBeRemoved: number;
34561
+ /** ElfProcessingStats recordsToBeRemoved. */
34562
+ public recordsToBeRemoved: number;
34449
34563
 
34450
- /** ElfProcessingStats skipped. */
34451
- public skipped: number;
34564
+ /** ElfProcessingStats recordsSkipped. */
34565
+ public recordsSkipped: number;
34452
34566
 
34453
34567
  /** ElfProcessingStats errors. */
34454
34568
  public errors: { [k: string]: string };
@@ -34483,6 +34597,12 @@ export class ElfProcessingStats implements IElfProcessingStats {
34483
34597
  /** ElfProcessingStats elfErrorsCsvUrl. */
34484
34598
  public elfErrorsCsvUrl: string;
34485
34599
 
34600
+ /** ElfProcessingStats recordsUpdated. */
34601
+ public recordsUpdated: number;
34602
+
34603
+ /** ElfProcessingStats statsByOffering. */
34604
+ public statsByOffering: elf.IElfOfferingProcessingStats[];
34605
+
34486
34606
  /**
34487
34607
  * Creates a new ElfProcessingStats instance using the specified properties.
34488
34608
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -28978,6 +28978,278 @@ $root.elf = (function() {
28978
28978
  return NormalizationJobError;
28979
28979
  })();
28980
28980
 
28981
+ elf.ElfOfferingProcessingStats = (function() {
28982
+
28983
+ /**
28984
+ * Properties of an ElfOfferingProcessingStats.
28985
+ * @memberof elf
28986
+ * @interface IElfOfferingProcessingStats
28987
+ * @property {b2b.SubscriptionOffering|null} [offering] ElfOfferingProcessingStats offering
28988
+ * @property {number|null} [recordsTotal] ElfOfferingProcessingStats recordsTotal
28989
+ * @property {number|null} [recordsToBeRemoved] ElfOfferingProcessingStats recordsToBeRemoved
28990
+ * @property {number|null} [recordsUpdated] ElfOfferingProcessingStats recordsUpdated
28991
+ */
28992
+
28993
+ /**
28994
+ * Constructs a new ElfOfferingProcessingStats.
28995
+ * @memberof elf
28996
+ * @classdesc Represents an ElfOfferingProcessingStats.
28997
+ * @implements IElfOfferingProcessingStats
28998
+ * @constructor
28999
+ * @param {elf.IElfOfferingProcessingStats=} [properties] Properties to set
29000
+ */
29001
+ function ElfOfferingProcessingStats(properties) {
29002
+ if (properties)
29003
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
29004
+ if (properties[keys[i]] != null)
29005
+ this[keys[i]] = properties[keys[i]];
29006
+ }
29007
+
29008
+ /**
29009
+ * ElfOfferingProcessingStats offering.
29010
+ * @member {b2b.SubscriptionOffering} offering
29011
+ * @memberof elf.ElfOfferingProcessingStats
29012
+ * @instance
29013
+ */
29014
+ ElfOfferingProcessingStats.prototype.offering = 0;
29015
+
29016
+ /**
29017
+ * ElfOfferingProcessingStats recordsTotal.
29018
+ * @member {number} recordsTotal
29019
+ * @memberof elf.ElfOfferingProcessingStats
29020
+ * @instance
29021
+ */
29022
+ ElfOfferingProcessingStats.prototype.recordsTotal = 0;
29023
+
29024
+ /**
29025
+ * ElfOfferingProcessingStats recordsToBeRemoved.
29026
+ * @member {number} recordsToBeRemoved
29027
+ * @memberof elf.ElfOfferingProcessingStats
29028
+ * @instance
29029
+ */
29030
+ ElfOfferingProcessingStats.prototype.recordsToBeRemoved = 0;
29031
+
29032
+ /**
29033
+ * ElfOfferingProcessingStats recordsUpdated.
29034
+ * @member {number} recordsUpdated
29035
+ * @memberof elf.ElfOfferingProcessingStats
29036
+ * @instance
29037
+ */
29038
+ ElfOfferingProcessingStats.prototype.recordsUpdated = 0;
29039
+
29040
+ /**
29041
+ * Creates a new ElfOfferingProcessingStats instance using the specified properties.
29042
+ * @function create
29043
+ * @memberof elf.ElfOfferingProcessingStats
29044
+ * @static
29045
+ * @param {elf.IElfOfferingProcessingStats=} [properties] Properties to set
29046
+ * @returns {elf.ElfOfferingProcessingStats} ElfOfferingProcessingStats instance
29047
+ */
29048
+ ElfOfferingProcessingStats.create = function create(properties) {
29049
+ return new ElfOfferingProcessingStats(properties);
29050
+ };
29051
+
29052
+ /**
29053
+ * Encodes the specified ElfOfferingProcessingStats message. Does not implicitly {@link elf.ElfOfferingProcessingStats.verify|verify} messages.
29054
+ * @function encode
29055
+ * @memberof elf.ElfOfferingProcessingStats
29056
+ * @static
29057
+ * @param {elf.IElfOfferingProcessingStats} message ElfOfferingProcessingStats message or plain object to encode
29058
+ * @param {$protobuf.Writer} [writer] Writer to encode to
29059
+ * @returns {$protobuf.Writer} Writer
29060
+ */
29061
+ ElfOfferingProcessingStats.encode = function encode(message, writer) {
29062
+ if (!writer)
29063
+ writer = $Writer.create();
29064
+ if (message.offering != null && message.hasOwnProperty("offering"))
29065
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.offering);
29066
+ if (message.recordsTotal != null && message.hasOwnProperty("recordsTotal"))
29067
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.recordsTotal);
29068
+ if (message.recordsToBeRemoved != null && message.hasOwnProperty("recordsToBeRemoved"))
29069
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.recordsToBeRemoved);
29070
+ if (message.recordsUpdated != null && message.hasOwnProperty("recordsUpdated"))
29071
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.recordsUpdated);
29072
+ return writer;
29073
+ };
29074
+
29075
+ /**
29076
+ * Encodes the specified ElfOfferingProcessingStats message, length delimited. Does not implicitly {@link elf.ElfOfferingProcessingStats.verify|verify} messages.
29077
+ * @function encodeDelimited
29078
+ * @memberof elf.ElfOfferingProcessingStats
29079
+ * @static
29080
+ * @param {elf.IElfOfferingProcessingStats} message ElfOfferingProcessingStats message or plain object to encode
29081
+ * @param {$protobuf.Writer} [writer] Writer to encode to
29082
+ * @returns {$protobuf.Writer} Writer
29083
+ */
29084
+ ElfOfferingProcessingStats.encodeDelimited = function encodeDelimited(message, writer) {
29085
+ return this.encode(message, writer).ldelim();
29086
+ };
29087
+
29088
+ /**
29089
+ * Decodes an ElfOfferingProcessingStats message from the specified reader or buffer.
29090
+ * @function decode
29091
+ * @memberof elf.ElfOfferingProcessingStats
29092
+ * @static
29093
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29094
+ * @param {number} [length] Message length if known beforehand
29095
+ * @returns {elf.ElfOfferingProcessingStats} ElfOfferingProcessingStats
29096
+ * @throws {Error} If the payload is not a reader or valid buffer
29097
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29098
+ */
29099
+ ElfOfferingProcessingStats.decode = function decode(reader, length) {
29100
+ if (!(reader instanceof $Reader))
29101
+ reader = $Reader.create(reader);
29102
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.elf.ElfOfferingProcessingStats();
29103
+ while (reader.pos < end) {
29104
+ var tag = reader.uint32();
29105
+ switch (tag >>> 3) {
29106
+ case 1:
29107
+ message.offering = reader.int32();
29108
+ break;
29109
+ case 2:
29110
+ message.recordsTotal = reader.int32();
29111
+ break;
29112
+ case 3:
29113
+ message.recordsToBeRemoved = reader.int32();
29114
+ break;
29115
+ case 4:
29116
+ message.recordsUpdated = reader.int32();
29117
+ break;
29118
+ default:
29119
+ reader.skipType(tag & 7);
29120
+ break;
29121
+ }
29122
+ }
29123
+ return message;
29124
+ };
29125
+
29126
+ /**
29127
+ * Decodes an ElfOfferingProcessingStats message from the specified reader or buffer, length delimited.
29128
+ * @function decodeDelimited
29129
+ * @memberof elf.ElfOfferingProcessingStats
29130
+ * @static
29131
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29132
+ * @returns {elf.ElfOfferingProcessingStats} ElfOfferingProcessingStats
29133
+ * @throws {Error} If the payload is not a reader or valid buffer
29134
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29135
+ */
29136
+ ElfOfferingProcessingStats.decodeDelimited = function decodeDelimited(reader) {
29137
+ if (!(reader instanceof $Reader))
29138
+ reader = new $Reader(reader);
29139
+ return this.decode(reader, reader.uint32());
29140
+ };
29141
+
29142
+ /**
29143
+ * Verifies an ElfOfferingProcessingStats message.
29144
+ * @function verify
29145
+ * @memberof elf.ElfOfferingProcessingStats
29146
+ * @static
29147
+ * @param {Object.<string,*>} message Plain object to verify
29148
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
29149
+ */
29150
+ ElfOfferingProcessingStats.verify = function verify(message) {
29151
+ if (typeof message !== "object" || message === null)
29152
+ return "object expected";
29153
+ if (message.offering != null && message.hasOwnProperty("offering"))
29154
+ switch (message.offering) {
29155
+ default:
29156
+ return "offering: enum value expected";
29157
+ case 0:
29158
+ case 1:
29159
+ case 2:
29160
+ break;
29161
+ }
29162
+ if (message.recordsTotal != null && message.hasOwnProperty("recordsTotal"))
29163
+ if (!$util.isInteger(message.recordsTotal))
29164
+ return "recordsTotal: integer expected";
29165
+ if (message.recordsToBeRemoved != null && message.hasOwnProperty("recordsToBeRemoved"))
29166
+ if (!$util.isInteger(message.recordsToBeRemoved))
29167
+ return "recordsToBeRemoved: integer expected";
29168
+ if (message.recordsUpdated != null && message.hasOwnProperty("recordsUpdated"))
29169
+ if (!$util.isInteger(message.recordsUpdated))
29170
+ return "recordsUpdated: integer expected";
29171
+ return null;
29172
+ };
29173
+
29174
+ /**
29175
+ * Creates an ElfOfferingProcessingStats message from a plain object. Also converts values to their respective internal types.
29176
+ * @function fromObject
29177
+ * @memberof elf.ElfOfferingProcessingStats
29178
+ * @static
29179
+ * @param {Object.<string,*>} object Plain object
29180
+ * @returns {elf.ElfOfferingProcessingStats} ElfOfferingProcessingStats
29181
+ */
29182
+ ElfOfferingProcessingStats.fromObject = function fromObject(object) {
29183
+ if (object instanceof $root.elf.ElfOfferingProcessingStats)
29184
+ return object;
29185
+ var message = new $root.elf.ElfOfferingProcessingStats();
29186
+ switch (object.offering) {
29187
+ case "SUBSCRIPTION_OFFERING_UNKNOWN":
29188
+ case 0:
29189
+ message.offering = 0;
29190
+ break;
29191
+ case "SUBSCRIPTION_OFFERING_HEADSPACE":
29192
+ case 1:
29193
+ message.offering = 1;
29194
+ break;
29195
+ case "SUBSCRIPTION_OFFERING_GINGER":
29196
+ case 2:
29197
+ message.offering = 2;
29198
+ break;
29199
+ }
29200
+ if (object.recordsTotal != null)
29201
+ message.recordsTotal = object.recordsTotal | 0;
29202
+ if (object.recordsToBeRemoved != null)
29203
+ message.recordsToBeRemoved = object.recordsToBeRemoved | 0;
29204
+ if (object.recordsUpdated != null)
29205
+ message.recordsUpdated = object.recordsUpdated | 0;
29206
+ return message;
29207
+ };
29208
+
29209
+ /**
29210
+ * Creates a plain object from an ElfOfferingProcessingStats message. Also converts values to other types if specified.
29211
+ * @function toObject
29212
+ * @memberof elf.ElfOfferingProcessingStats
29213
+ * @static
29214
+ * @param {elf.ElfOfferingProcessingStats} message ElfOfferingProcessingStats
29215
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
29216
+ * @returns {Object.<string,*>} Plain object
29217
+ */
29218
+ ElfOfferingProcessingStats.toObject = function toObject(message, options) {
29219
+ if (!options)
29220
+ options = {};
29221
+ var object = {};
29222
+ if (options.defaults) {
29223
+ object.offering = options.enums === String ? "SUBSCRIPTION_OFFERING_UNKNOWN" : 0;
29224
+ object.recordsTotal = 0;
29225
+ object.recordsToBeRemoved = 0;
29226
+ object.recordsUpdated = 0;
29227
+ }
29228
+ if (message.offering != null && message.hasOwnProperty("offering"))
29229
+ object.offering = options.enums === String ? $root.b2b.SubscriptionOffering[message.offering] : message.offering;
29230
+ if (message.recordsTotal != null && message.hasOwnProperty("recordsTotal"))
29231
+ object.recordsTotal = message.recordsTotal;
29232
+ if (message.recordsToBeRemoved != null && message.hasOwnProperty("recordsToBeRemoved"))
29233
+ object.recordsToBeRemoved = message.recordsToBeRemoved;
29234
+ if (message.recordsUpdated != null && message.hasOwnProperty("recordsUpdated"))
29235
+ object.recordsUpdated = message.recordsUpdated;
29236
+ return object;
29237
+ };
29238
+
29239
+ /**
29240
+ * Converts this ElfOfferingProcessingStats to JSON.
29241
+ * @function toJSON
29242
+ * @memberof elf.ElfOfferingProcessingStats
29243
+ * @instance
29244
+ * @returns {Object.<string,*>} JSON object
29245
+ */
29246
+ ElfOfferingProcessingStats.prototype.toJSON = function toJSON() {
29247
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
29248
+ };
29249
+
29250
+ return ElfOfferingProcessingStats;
29251
+ })();
29252
+
28981
29253
  return elf;
28982
29254
  })();
28983
29255
 
@@ -95605,9 +95877,9 @@ $root.ElfProcessingStats = (function() {
95605
95877
  * @property {string|null} [b2bOrgId] ElfProcessingStats b2bOrgId
95606
95878
  * @property {string|null} [gingerOrgId] ElfProcessingStats gingerOrgId
95607
95879
  * @property {boolean|null} [isDryRun] ElfProcessingStats isDryRun
95608
- * @property {number|null} [total] ElfProcessingStats total
95609
- * @property {number|null} [toBeRemoved] ElfProcessingStats toBeRemoved
95610
- * @property {number|null} [skipped] ElfProcessingStats skipped
95880
+ * @property {number|null} [recordsTotal] ElfProcessingStats recordsTotal
95881
+ * @property {number|null} [recordsToBeRemoved] ElfProcessingStats recordsToBeRemoved
95882
+ * @property {number|null} [recordsSkipped] ElfProcessingStats recordsSkipped
95611
95883
  * @property {Object.<string,string>|null} [errors] ElfProcessingStats errors
95612
95884
  * @property {Object.<string,number>|null} [totalByOffering] ElfProcessingStats totalByOffering
95613
95885
  * @property {Array.<string>|null} [customHeaders] ElfProcessingStats customHeaders
@@ -95619,6 +95891,8 @@ $root.ElfProcessingStats = (function() {
95619
95891
  * @property {string|null} [emailMessage] ElfProcessingStats emailMessage
95620
95892
  * @property {number|Long|null} [fileImportedTimestamp] ElfProcessingStats fileImportedTimestamp
95621
95893
  * @property {string|null} [elfErrorsCsvUrl] ElfProcessingStats elfErrorsCsvUrl
95894
+ * @property {number|null} [recordsUpdated] ElfProcessingStats recordsUpdated
95895
+ * @property {Array.<elf.IElfOfferingProcessingStats>|null} [statsByOffering] ElfProcessingStats statsByOffering
95622
95896
  */
95623
95897
 
95624
95898
  /**
@@ -95633,6 +95907,7 @@ $root.ElfProcessingStats = (function() {
95633
95907
  this.errors = {};
95634
95908
  this.totalByOffering = {};
95635
95909
  this.customHeaders = [];
95910
+ this.statsByOffering = [];
95636
95911
  if (properties)
95637
95912
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
95638
95913
  if (properties[keys[i]] != null)
@@ -95672,28 +95947,28 @@ $root.ElfProcessingStats = (function() {
95672
95947
  ElfProcessingStats.prototype.isDryRun = false;
95673
95948
 
95674
95949
  /**
95675
- * ElfProcessingStats total.
95676
- * @member {number} total
95950
+ * ElfProcessingStats recordsTotal.
95951
+ * @member {number} recordsTotal
95677
95952
  * @memberof ElfProcessingStats
95678
95953
  * @instance
95679
95954
  */
95680
- ElfProcessingStats.prototype.total = 0;
95955
+ ElfProcessingStats.prototype.recordsTotal = 0;
95681
95956
 
95682
95957
  /**
95683
- * ElfProcessingStats toBeRemoved.
95684
- * @member {number} toBeRemoved
95958
+ * ElfProcessingStats recordsToBeRemoved.
95959
+ * @member {number} recordsToBeRemoved
95685
95960
  * @memberof ElfProcessingStats
95686
95961
  * @instance
95687
95962
  */
95688
- ElfProcessingStats.prototype.toBeRemoved = 0;
95963
+ ElfProcessingStats.prototype.recordsToBeRemoved = 0;
95689
95964
 
95690
95965
  /**
95691
- * ElfProcessingStats skipped.
95692
- * @member {number} skipped
95966
+ * ElfProcessingStats recordsSkipped.
95967
+ * @member {number} recordsSkipped
95693
95968
  * @memberof ElfProcessingStats
95694
95969
  * @instance
95695
95970
  */
95696
- ElfProcessingStats.prototype.skipped = 0;
95971
+ ElfProcessingStats.prototype.recordsSkipped = 0;
95697
95972
 
95698
95973
  /**
95699
95974
  * ElfProcessingStats errors.
@@ -95783,6 +96058,22 @@ $root.ElfProcessingStats = (function() {
95783
96058
  */
95784
96059
  ElfProcessingStats.prototype.elfErrorsCsvUrl = "";
95785
96060
 
96061
+ /**
96062
+ * ElfProcessingStats recordsUpdated.
96063
+ * @member {number} recordsUpdated
96064
+ * @memberof ElfProcessingStats
96065
+ * @instance
96066
+ */
96067
+ ElfProcessingStats.prototype.recordsUpdated = 0;
96068
+
96069
+ /**
96070
+ * ElfProcessingStats statsByOffering.
96071
+ * @member {Array.<elf.IElfOfferingProcessingStats>} statsByOffering
96072
+ * @memberof ElfProcessingStats
96073
+ * @instance
96074
+ */
96075
+ ElfProcessingStats.prototype.statsByOffering = $util.emptyArray;
96076
+
95786
96077
  /**
95787
96078
  * Creates a new ElfProcessingStats instance using the specified properties.
95788
96079
  * @function create
@@ -95815,12 +96106,12 @@ $root.ElfProcessingStats = (function() {
95815
96106
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.gingerOrgId);
95816
96107
  if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
95817
96108
  writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isDryRun);
95818
- if (message.total != null && message.hasOwnProperty("total"))
95819
- writer.uint32(/* id 6, wireType 0 =*/48).int32(message.total);
95820
- if (message.toBeRemoved != null && message.hasOwnProperty("toBeRemoved"))
95821
- writer.uint32(/* id 7, wireType 0 =*/56).int32(message.toBeRemoved);
95822
- if (message.skipped != null && message.hasOwnProperty("skipped"))
95823
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.skipped);
96109
+ if (message.recordsTotal != null && message.hasOwnProperty("recordsTotal"))
96110
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.recordsTotal);
96111
+ if (message.recordsToBeRemoved != null && message.hasOwnProperty("recordsToBeRemoved"))
96112
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.recordsToBeRemoved);
96113
+ if (message.recordsSkipped != null && message.hasOwnProperty("recordsSkipped"))
96114
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.recordsSkipped);
95824
96115
  if (message.errors != null && message.hasOwnProperty("errors"))
95825
96116
  for (var keys = Object.keys(message.errors), i = 0; i < keys.length; ++i)
95826
96117
  writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 0 =*/8).int32(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.errors[keys[i]]).ldelim();
@@ -95846,6 +96137,11 @@ $root.ElfProcessingStats = (function() {
95846
96137
  writer.uint32(/* id 18, wireType 0 =*/144).uint64(message.fileImportedTimestamp);
95847
96138
  if (message.elfErrorsCsvUrl != null && message.hasOwnProperty("elfErrorsCsvUrl"))
95848
96139
  writer.uint32(/* id 19, wireType 2 =*/154).string(message.elfErrorsCsvUrl);
96140
+ if (message.recordsUpdated != null && message.hasOwnProperty("recordsUpdated"))
96141
+ writer.uint32(/* id 20, wireType 0 =*/160).int32(message.recordsUpdated);
96142
+ if (message.statsByOffering != null && message.statsByOffering.length)
96143
+ for (var i = 0; i < message.statsByOffering.length; ++i)
96144
+ $root.elf.ElfOfferingProcessingStats.encode(message.statsByOffering[i], writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
95849
96145
  return writer;
95850
96146
  };
95851
96147
 
@@ -95893,13 +96189,13 @@ $root.ElfProcessingStats = (function() {
95893
96189
  message.isDryRun = reader.bool();
95894
96190
  break;
95895
96191
  case 6:
95896
- message.total = reader.int32();
96192
+ message.recordsTotal = reader.int32();
95897
96193
  break;
95898
96194
  case 7:
95899
- message.toBeRemoved = reader.int32();
96195
+ message.recordsToBeRemoved = reader.int32();
95900
96196
  break;
95901
96197
  case 8:
95902
- message.skipped = reader.int32();
96198
+ message.recordsSkipped = reader.int32();
95903
96199
  break;
95904
96200
  case 9:
95905
96201
  reader.skip().pos++;
@@ -95946,6 +96242,14 @@ $root.ElfProcessingStats = (function() {
95946
96242
  case 19:
95947
96243
  message.elfErrorsCsvUrl = reader.string();
95948
96244
  break;
96245
+ case 20:
96246
+ message.recordsUpdated = reader.int32();
96247
+ break;
96248
+ case 21:
96249
+ if (!(message.statsByOffering && message.statsByOffering.length))
96250
+ message.statsByOffering = [];
96251
+ message.statsByOffering.push($root.elf.ElfOfferingProcessingStats.decode(reader, reader.uint32()));
96252
+ break;
95949
96253
  default:
95950
96254
  reader.skipType(tag & 7);
95951
96255
  break;
@@ -95993,15 +96297,15 @@ $root.ElfProcessingStats = (function() {
95993
96297
  if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
95994
96298
  if (typeof message.isDryRun !== "boolean")
95995
96299
  return "isDryRun: boolean expected";
95996
- if (message.total != null && message.hasOwnProperty("total"))
95997
- if (!$util.isInteger(message.total))
95998
- return "total: integer expected";
95999
- if (message.toBeRemoved != null && message.hasOwnProperty("toBeRemoved"))
96000
- if (!$util.isInteger(message.toBeRemoved))
96001
- return "toBeRemoved: integer expected";
96002
- if (message.skipped != null && message.hasOwnProperty("skipped"))
96003
- if (!$util.isInteger(message.skipped))
96004
- return "skipped: integer expected";
96300
+ if (message.recordsTotal != null && message.hasOwnProperty("recordsTotal"))
96301
+ if (!$util.isInteger(message.recordsTotal))
96302
+ return "recordsTotal: integer expected";
96303
+ if (message.recordsToBeRemoved != null && message.hasOwnProperty("recordsToBeRemoved"))
96304
+ if (!$util.isInteger(message.recordsToBeRemoved))
96305
+ return "recordsToBeRemoved: integer expected";
96306
+ if (message.recordsSkipped != null && message.hasOwnProperty("recordsSkipped"))
96307
+ if (!$util.isInteger(message.recordsSkipped))
96308
+ return "recordsSkipped: integer expected";
96005
96309
  if (message.errors != null && message.hasOwnProperty("errors")) {
96006
96310
  if (!$util.isObject(message.errors))
96007
96311
  return "errors: object expected";
@@ -96052,6 +96356,18 @@ $root.ElfProcessingStats = (function() {
96052
96356
  if (message.elfErrorsCsvUrl != null && message.hasOwnProperty("elfErrorsCsvUrl"))
96053
96357
  if (!$util.isString(message.elfErrorsCsvUrl))
96054
96358
  return "elfErrorsCsvUrl: string expected";
96359
+ if (message.recordsUpdated != null && message.hasOwnProperty("recordsUpdated"))
96360
+ if (!$util.isInteger(message.recordsUpdated))
96361
+ return "recordsUpdated: integer expected";
96362
+ if (message.statsByOffering != null && message.hasOwnProperty("statsByOffering")) {
96363
+ if (!Array.isArray(message.statsByOffering))
96364
+ return "statsByOffering: array expected";
96365
+ for (var i = 0; i < message.statsByOffering.length; ++i) {
96366
+ var error = $root.elf.ElfOfferingProcessingStats.verify(message.statsByOffering[i]);
96367
+ if (error)
96368
+ return "statsByOffering." + error;
96369
+ }
96370
+ }
96055
96371
  return null;
96056
96372
  };
96057
96373
 
@@ -96075,12 +96391,12 @@ $root.ElfProcessingStats = (function() {
96075
96391
  message.gingerOrgId = String(object.gingerOrgId);
96076
96392
  if (object.isDryRun != null)
96077
96393
  message.isDryRun = Boolean(object.isDryRun);
96078
- if (object.total != null)
96079
- message.total = object.total | 0;
96080
- if (object.toBeRemoved != null)
96081
- message.toBeRemoved = object.toBeRemoved | 0;
96082
- if (object.skipped != null)
96083
- message.skipped = object.skipped | 0;
96394
+ if (object.recordsTotal != null)
96395
+ message.recordsTotal = object.recordsTotal | 0;
96396
+ if (object.recordsToBeRemoved != null)
96397
+ message.recordsToBeRemoved = object.recordsToBeRemoved | 0;
96398
+ if (object.recordsSkipped != null)
96399
+ message.recordsSkipped = object.recordsSkipped | 0;
96084
96400
  if (object.errors) {
96085
96401
  if (typeof object.errors !== "object")
96086
96402
  throw TypeError(".ElfProcessingStats.errors: object expected");
@@ -96132,6 +96448,18 @@ $root.ElfProcessingStats = (function() {
96132
96448
  message.fileImportedTimestamp = new $util.LongBits(object.fileImportedTimestamp.low >>> 0, object.fileImportedTimestamp.high >>> 0).toNumber(true);
96133
96449
  if (object.elfErrorsCsvUrl != null)
96134
96450
  message.elfErrorsCsvUrl = String(object.elfErrorsCsvUrl);
96451
+ if (object.recordsUpdated != null)
96452
+ message.recordsUpdated = object.recordsUpdated | 0;
96453
+ if (object.statsByOffering) {
96454
+ if (!Array.isArray(object.statsByOffering))
96455
+ throw TypeError(".ElfProcessingStats.statsByOffering: array expected");
96456
+ message.statsByOffering = [];
96457
+ for (var i = 0; i < object.statsByOffering.length; ++i) {
96458
+ if (typeof object.statsByOffering[i] !== "object")
96459
+ throw TypeError(".ElfProcessingStats.statsByOffering: object expected");
96460
+ message.statsByOffering[i] = $root.elf.ElfOfferingProcessingStats.fromObject(object.statsByOffering[i]);
96461
+ }
96462
+ }
96135
96463
  return message;
96136
96464
  };
96137
96465
 
@@ -96148,8 +96476,10 @@ $root.ElfProcessingStats = (function() {
96148
96476
  if (!options)
96149
96477
  options = {};
96150
96478
  var object = {};
96151
- if (options.arrays || options.defaults)
96479
+ if (options.arrays || options.defaults) {
96152
96480
  object.customHeaders = [];
96481
+ object.statsByOffering = [];
96482
+ }
96153
96483
  if (options.objects || options.defaults) {
96154
96484
  object.errors = {};
96155
96485
  object.totalByOffering = {};
@@ -96159,9 +96489,9 @@ $root.ElfProcessingStats = (function() {
96159
96489
  object.b2bOrgId = "";
96160
96490
  object.gingerOrgId = "";
96161
96491
  object.isDryRun = false;
96162
- object.total = 0;
96163
- object.toBeRemoved = 0;
96164
- object.skipped = 0;
96492
+ object.recordsTotal = 0;
96493
+ object.recordsToBeRemoved = 0;
96494
+ object.recordsSkipped = 0;
96165
96495
  object.gingerShouldProcess = false;
96166
96496
  object.headspaceShouldProcess = false;
96167
96497
  object.originalS3Key = "";
@@ -96178,6 +96508,7 @@ $root.ElfProcessingStats = (function() {
96178
96508
  } else
96179
96509
  object.fileImportedTimestamp = options.longs === String ? "0" : 0;
96180
96510
  object.elfErrorsCsvUrl = "";
96511
+ object.recordsUpdated = 0;
96181
96512
  }
96182
96513
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
96183
96514
  object.headspaceHealthOrgId = message.headspaceHealthOrgId;
@@ -96187,12 +96518,12 @@ $root.ElfProcessingStats = (function() {
96187
96518
  object.gingerOrgId = message.gingerOrgId;
96188
96519
  if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
96189
96520
  object.isDryRun = message.isDryRun;
96190
- if (message.total != null && message.hasOwnProperty("total"))
96191
- object.total = message.total;
96192
- if (message.toBeRemoved != null && message.hasOwnProperty("toBeRemoved"))
96193
- object.toBeRemoved = message.toBeRemoved;
96194
- if (message.skipped != null && message.hasOwnProperty("skipped"))
96195
- object.skipped = message.skipped;
96521
+ if (message.recordsTotal != null && message.hasOwnProperty("recordsTotal"))
96522
+ object.recordsTotal = message.recordsTotal;
96523
+ if (message.recordsToBeRemoved != null && message.hasOwnProperty("recordsToBeRemoved"))
96524
+ object.recordsToBeRemoved = message.recordsToBeRemoved;
96525
+ if (message.recordsSkipped != null && message.hasOwnProperty("recordsSkipped"))
96526
+ object.recordsSkipped = message.recordsSkipped;
96196
96527
  var keys2;
96197
96528
  if (message.errors && (keys2 = Object.keys(message.errors)).length) {
96198
96529
  object.errors = {};
@@ -96231,6 +96562,13 @@ $root.ElfProcessingStats = (function() {
96231
96562
  object.fileImportedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.fileImportedTimestamp) : options.longs === Number ? new $util.LongBits(message.fileImportedTimestamp.low >>> 0, message.fileImportedTimestamp.high >>> 0).toNumber(true) : message.fileImportedTimestamp;
96232
96563
  if (message.elfErrorsCsvUrl != null && message.hasOwnProperty("elfErrorsCsvUrl"))
96233
96564
  object.elfErrorsCsvUrl = message.elfErrorsCsvUrl;
96565
+ if (message.recordsUpdated != null && message.hasOwnProperty("recordsUpdated"))
96566
+ object.recordsUpdated = message.recordsUpdated;
96567
+ if (message.statsByOffering && message.statsByOffering.length) {
96568
+ object.statsByOffering = [];
96569
+ for (var j = 0; j < message.statsByOffering.length; ++j)
96570
+ object.statsByOffering[j] = $root.elf.ElfOfferingProcessingStats.toObject(message.statsByOffering[j], options);
96571
+ }
96234
96572
  return object;
96235
96573
  };
96236
96574
 
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.482.0"
19
+ "version": "1.483.0"
20
20
  }