@declaro/data 2.0.0-beta.121 → 2.0.0-beta.125

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.
@@ -247,14 +247,17 @@ var ModelMutationAction;
247
247
  })(ModelMutationAction ||= {});
248
248
  // src/domain/events/request-event.ts
249
249
  class RequestEvent extends DomainEvent {
250
+ input;
250
251
  constructor(descriptor, input, meta = {}) {
251
252
  super({
252
- meta: {
253
- ...meta,
254
- input
255
- },
253
+ meta,
256
254
  descriptor
257
255
  });
256
+ this.input = input;
257
+ }
258
+ setInput(input) {
259
+ this.input = input;
260
+ return this;
258
261
  }
259
262
  setMeta(meta) {
260
263
  this.meta = { ...this.meta, ...meta };
@@ -264,6 +267,12 @@ class RequestEvent extends DomainEvent {
264
267
  this.data = result;
265
268
  return this;
266
269
  }
270
+ toJSON() {
271
+ return {
272
+ ...super.toJSON(),
273
+ input: this.input
274
+ };
275
+ }
267
276
  }
268
277
 
269
278
  // src/domain/events/mutation-event.ts
@@ -13201,5 +13210,5 @@ export {
13201
13210
  BaseModelService
13202
13211
  };
13203
13212
 
13204
- //# debugId=9D73859281C0828564756E2164756E21
13213
+ //# debugId=4FCC17E6392BEFF464756E2164756E21
13205
13214
  //# sourceMappingURL=index.js.map