@anweather/game-plugin-ssdk 1.3.1 → 1.5.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.
@@ -104,6 +104,14 @@ var PluginStateUpdate;
104
104
  ]);
105
105
  break;
106
106
  }
107
+ case "loggedPayload": {
108
+ memberValidators["loggedPayload"] = new server_common_1.NoOpValidator();
109
+ break;
110
+ }
111
+ case "awaitingParticipantIds": {
112
+ memberValidators["awaitingParticipantIds"] = new server_common_1.CompositeCollectionValidator(new server_common_1.NoOpValidator(), new server_common_1.NoOpValidator());
113
+ break;
114
+ }
107
115
  }
108
116
  }
109
117
  return memberValidators[member];
@@ -111,6 +119,8 @@ var PluginStateUpdate;
111
119
  return [
112
120
  ...getMemberValidator("nextTurnParticipantId").validate(obj.nextTurnParticipantId, `${path}/nextTurnParticipantId`),
113
121
  ...getMemberValidator("pluginState").validate(obj.pluginState, `${path}/pluginState`),
122
+ ...getMemberValidator("loggedPayload").validate(obj.loggedPayload, `${path}/loggedPayload`),
123
+ ...getMemberValidator("awaitingParticipantIds").validate(obj.awaitingParticipantIds, `${path}/awaitingParticipantIds`),
114
124
  ];
115
125
  };
116
126
  })(PluginStateUpdate || (exports.PluginStateUpdate = PluginStateUpdate = {}));
@@ -442,6 +442,8 @@ const serializeApplyMoveResponse = async (input, ctx) => {
442
442
  });
443
443
  let body;
444
444
  body = JSON.stringify((0, smithy_client_1.take)(input, {
445
+ 'awaitingParticipantIds': _ => se_ParticipantIdList(_, context),
446
+ 'loggedPayload': _ => se_Document(_, context),
445
447
  'nextTurnParticipantId': [],
446
448
  'pluginState': _ => se_Document(_, context),
447
449
  }));
@@ -761,6 +763,8 @@ const serializeInitializeGameResponse = async (input, ctx) => {
761
763
  });
762
764
  let body;
763
765
  body = JSON.stringify((0, smithy_client_1.take)(input, {
766
+ 'awaitingParticipantIds': _ => se_ParticipantIdList(_, context),
767
+ 'loggedPayload': _ => se_Document(_, context),
764
768
  'nextTurnParticipantId': [],
765
769
  'pluginState': _ => se_Document(_, context),
766
770
  }));