@social-mail/social-mail-client 1.2.394 → 1.2.395

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.
@@ -13000,7 +13000,13 @@ System.register(["tslib", "../models/Cloner", "../models/IEntityModel", "./HttpS
13000
13000
  body
13001
13001
  });
13002
13002
  }
13003
- invoke(m, method, entity, ...args) {
13003
+ invoke(m, method, argEntity, ...args) {
13004
+ const entity = {
13005
+ $type: m.name
13006
+ };
13007
+ for (const key of m.schema.keys) {
13008
+ entity[key.name] = argEntity[key.name];
13009
+ }
13004
13010
  return this.postJson({
13005
13011
  url: `${this.url}invoke/${entity.$type}/${method}`,
13006
13012
  method: "POST",