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

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.
@@ -286,14 +286,17 @@ var ModelMutationAction;
286
286
  })(ModelMutationAction ||= {});
287
287
  // src/domain/events/request-event.ts
288
288
  class RequestEvent extends DomainEvent {
289
+ input;
289
290
  constructor(descriptor, input, meta = {}) {
290
291
  super({
291
- meta: {
292
- ...meta,
293
- input
294
- },
292
+ meta,
295
293
  descriptor
296
294
  });
295
+ this.input = input;
296
+ }
297
+ setInput(input) {
298
+ this.input = input;
299
+ return this;
297
300
  }
298
301
  setMeta(meta) {
299
302
  this.meta = { ...this.meta, ...meta };
@@ -303,6 +306,12 @@ class RequestEvent extends DomainEvent {
303
306
  this.data = result;
304
307
  return this;
305
308
  }
309
+ toJSON() {
310
+ return {
311
+ ...super.toJSON(),
312
+ input: this.input
313
+ };
314
+ }
306
315
  }
307
316
 
308
317
  // src/domain/events/mutation-event.ts
@@ -13222,5 +13231,5 @@ class MockMemoryRepository {
13222
13231
  }
13223
13232
  }
13224
13233
 
13225
- //# debugId=DC46120685DB9C9464756E2164756E21
13234
+ //# debugId=E3CA467BBFBED82664756E2164756E21
13226
13235
  //# sourceMappingURL=index.cjs.map