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