From dd8c833e55a09bdca59fdf10e67f2f9d4396a2a9 Mon Sep 17 00:00:00 2001 From: PlayFabJenkinsBot Date: Mon, 18 Jun 2018 22:22:07 +0000 Subject: [PATCH] https://api.playfab.com/releaseNotes/#180618 --- PlayFabSdk/package.json | 2 +- PlayFabSdk/src/PlayFab/PlayFabAdminApi.js | 4 +- PlayFabSdk/src/PlayFab/PlayFabClientApi.js | 82 ++++++++++++------- PlayFabSdk/src/PlayFab/PlayFabEntityApi.js | 4 +- .../src/PlayFab/PlayFabMatchmakerApi.js | 4 +- PlayFabSdk/src/PlayFab/PlayFabServerApi.js | 4 +- .../src/Typings/PlayFab/PlayFabAdminApi.d.ts | 77 ++++++++++------- .../src/Typings/PlayFab/PlayFabClientApi.d.ts | 7 -- .../Typings/PlayFab/PlayFabMatchmakerApi.d.ts | 49 ----------- .../src/Typings/PlayFab/PlayFabServerApi.d.ts | 52 +++++++++--- PlayFabTestingExample/PlayFabApiTest.js | 6 +- PlayFabTestingExample/PlayFabApiTest.ts | 6 +- .../src/PlayFab/PlayFabAdminApi.js | 4 +- .../src/PlayFab/PlayFabClientApi.js | 82 ++++++++++++------- .../src/PlayFab/PlayFabEntityApi.js | 4 +- .../src/PlayFab/PlayFabMatchmakerApi.js | 4 +- .../src/PlayFab/PlayFabServerApi.js | 4 +- .../src/typings/PlayFab/PlayFabAdminApi.d.ts | 77 ++++++++++------- .../src/typings/PlayFab/PlayFabClientApi.d.ts | 7 -- .../typings/PlayFab/PlayFabMatchmakerApi.d.ts | 49 ----------- .../src/typings/PlayFab/PlayFabServerApi.d.ts | 52 +++++++++--- 21 files changed, 311 insertions(+), 269 deletions(-) diff --git a/PlayFabSdk/package.json b/PlayFabSdk/package.json index 11ffba47..25d18e47 100644 --- a/PlayFabSdk/package.json +++ b/PlayFabSdk/package.json @@ -1,6 +1,6 @@ { "name": "playfab-web-sdk", - "version": "1.22.180529", + "version": "1.23.180618", "description": "Playfab SDK for JS client applications", "license": "Apache-2.0", "repository": { diff --git a/PlayFabSdk/src/PlayFab/PlayFabAdminApi.js b/PlayFabSdk/src/PlayFab/PlayFabAdminApi.js index 5f98cb0c..f1811fd5 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabAdminApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabAdminApi.js @@ -21,7 +21,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.22.180529", + sdkVersion: "1.23.180618", sessionTicket: null, productionServerUrl: ".playfabapi.com", errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) { } PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; -PlayFab.sdkVersion = "1.22.180529"; +PlayFab.sdkVersion = "1.23.180618"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabClientApi.js b/PlayFabSdk/src/PlayFab/PlayFabClientApi.js index d466c14d..2cc4781c 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabClientApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabClientApi.js @@ -21,7 +21,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.22.180529", + sdkVersion: "1.23.180618", sessionTicket: null, productionServerUrl: ".playfabapi.com", errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) { } PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; -PlayFab.sdkVersion = "1.22.180529"; +PlayFab.sdkVersion = "1.23.180618"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; @@ -528,9 +528,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -544,9 +546,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -560,9 +564,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -576,9 +582,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -592,9 +600,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -608,9 +618,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -624,9 +636,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -640,9 +654,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -656,9 +672,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -672,9 +690,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -688,9 +708,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -704,9 +726,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -763,9 +787,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); diff --git a/PlayFabSdk/src/PlayFab/PlayFabEntityApi.js b/PlayFabSdk/src/PlayFab/PlayFabEntityApi.js index cc067d05..ade4aab7 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabEntityApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabEntityApi.js @@ -21,7 +21,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.22.180529", + sdkVersion: "1.23.180618", sessionTicket: null, productionServerUrl: ".playfabapi.com", errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) { } PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; -PlayFab.sdkVersion = "1.22.180529"; +PlayFab.sdkVersion = "1.23.180618"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js b/PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js index f6bb476f..3b57f758 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js @@ -21,7 +21,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.22.180529", + sdkVersion: "1.23.180618", sessionTicket: null, productionServerUrl: ".playfabapi.com", errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) { } PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; -PlayFab.sdkVersion = "1.22.180529"; +PlayFab.sdkVersion = "1.23.180618"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/PlayFab/PlayFabServerApi.js b/PlayFabSdk/src/PlayFab/PlayFabServerApi.js index 57af02a3..30b4c23c 100644 --- a/PlayFabSdk/src/PlayFab/PlayFabServerApi.js +++ b/PlayFabSdk/src/PlayFab/PlayFabServerApi.js @@ -21,7 +21,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.22.180529", + sdkVersion: "1.23.180618", sessionTicket: null, productionServerUrl: ".playfabapi.com", errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) { } PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; -PlayFab.sdkVersion = "1.22.180529"; +PlayFab.sdkVersion = "1.23.180618"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts index ef19d994..4e43c8f2 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts @@ -1584,23 +1584,6 @@ declare module PlayFabAdminModels { } - /** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.DeleteUsersRequest */ - export interface DeleteUsersRequest extends PlayFabModule.IPlayFabRequestCommon { - /** An array of unique PlayFab assigned ID of the user on whom the operation will be performed. */ - PlayFabIds: string[]; - /** - * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a - * title has been selected. - */ - TitleId: string; - - } - - /** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.DeleteUsersResult */ - export interface DeleteUsersResult extends PlayFabModule.IPlayFabResultCommon { - - } - type EffectType = "Allow" | "Deny"; @@ -1707,6 +1690,7 @@ declare module PlayFabAdminModels { } type GenericErrorCodes = "Success" + | "MatchmakingHopperIdInvalid" | "UnkownError" | "InvalidParams" | "AccountNotFound" @@ -2075,16 +2059,47 @@ declare module PlayFabAdminModels { | "NoValidCertificateForAad" | "InvalidCertificateForAad" | "DuplicateDropTableId" - | "ComputeOK" - | "ComputeAccepted" - | "ComputeNoContent" - | "ComputeBadRequest" - | "ComputeUnauthorized" - | "ComputeForbidden" - | "ComputeNotFound" - | "ComputeConflict" - | "ComputeInternalServerError" - | "ComputeServiceUnavailable"; + | "GameServerOk" + | "GameServerAccepted" + | "GameServerNoContent" + | "GameServerBadRequest" + | "GameServerUnauthorized" + | "GameServerForbidden" + | "GameServerNotFound" + | "GameServerConflict" + | "GameServerInternalServerError" + | "GameServerServiceUnavailable" + | "MatchmakingInvalidEntityKeyList" + | "MatchmakingInvalidTicketCreatorProfile" + | "MatchmakingInvalidUserAttributes" + | "MatchmakingCreateRequestMissing" + | "MatchmakingCreateRequestCreatorMissing" + | "MatchmakingCreateRequestCreatorIdMissing" + | "MatchmakingCreateRequestUserListMissing" + | "MatchmakingCreateRequestGiveUpAfterInvalid" + | "MatchmakingTicketIdMissing" + | "MatchmakingMatchIdMissing" + | "MatchmakingMatchIdIdMissing" + | "MatchmakingHopperIdMissing" + | "MatchmakingTitleIdMissing" + | "MatchmakingTicketIdIdMissing" + | "MatchmakingUserIdMissing" + | "MatchmakingJoinRequestUserMissing" + | "MatchmakingHopperConfigNotFound" + | "MatchmakingMatchNotFound" + | "MatchmakingTicketNotFound" + | "MatchmakingCreateTicketServerIdentityInvalid" + | "MatchmakingCreateTicketClientIdentityInvalid" + | "MatchmakingGetTicketUserMismatch" + | "MatchmakingJoinTicketServerIdentityInvalid" + | "MatchmakingJoinTicketUserIdentityMismatch" + | "MatchmakingCancelTicketServerIdentityInvalid" + | "MatchmakingCancelTicketUserIdentityMismatch" + | "MatchmakingGetMatchIdentityMismatch" + | "MatchmakingUserIdentityMismatch" + | "MatchmakingAlreadyJoinedTicket" + | "MatchmakingTicketAlreadyCompleted" + | "MatchmakingHopperConfigInvalid"; /** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetActionsOnPlayersInSegmentTaskInstanceResult */ export interface GetActionsOnPlayersInSegmentTaskInstanceResult extends PlayFabModule.IPlayFabResultCommon { @@ -3028,7 +3043,9 @@ declare module PlayFabAdminModels { /** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.NameIdentifier */ export interface NameIdentifier { + /** Id Identifier, if present */ Id?: string; + /** Name Identifier, if present */ Name?: string; } @@ -3308,7 +3325,8 @@ declare module PlayFabAdminModels { /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ PlayFabId: string; /** - * Reason for refund. In the case of Facebook this must match one of their refund or dispute resolution enums (See: + * The Reason parameter should correspond with the payment providers reason field, if they require one such as Facebook. In + * the case of Facebook this must match one of their refund or dispute resolution enums (See: * https://developers.facebook.com/docs/payments/implementation-guide/handling-disputes-refunds) */ Reason?: string; @@ -3419,7 +3437,8 @@ declare module PlayFabAdminModels { /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ PlayFabId: string; /** - * Reason for refund. In the case of Facebook this must match one of their refund or dispute resolution enums (See: + * The Reason parameter should correspond with the payment providers reason field, if they require one such as Facebook. In + * the case of Facebook this must match one of their refund or dispute resolution enums (See: * https://developers.facebook.com/docs/payments/implementation-guide/handling-disputes-refunds) */ Reason?: string; diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts index 37999452..408d9c3c 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts @@ -3440,13 +3440,6 @@ declare module PlayFabClientModels { } - /** https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.NameIdentifier */ - export interface NameIdentifier { - Id?: string; - Name?: string; - - } - /** https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.OpenTradeRequest */ export interface OpenTradeRequest extends PlayFabModule.IPlayFabRequestCommon { /** diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabMatchmakerApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabMatchmakerApi.d.ts index 93866194..fc992efb 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabMatchmakerApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabMatchmakerApi.d.ts @@ -51,18 +51,6 @@ declare module PlayFabMatchmakerModels { } - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.DeregisterGameRequest */ - export interface DeregisterGameRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Unique identifier for the Game Server Instance that is being deregistered. */ - LobbyId: string; - - } - - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.DeregisterGameResponse */ - export interface DeregisterGameResponse extends PlayFabModule.IPlayFabResultCommon { - - } - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.ItemInstance */ export interface ItemInstance { /** Game specific comment associated with this instance when it was added to the user inventory. */ @@ -143,43 +131,6 @@ declare module PlayFabMatchmakerModels { | "Brazil" | "Australia"; - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.RegisterGameRequest */ - export interface RegisterGameRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Unique identifier of the build running on the Game Server Instance. */ - Build: string; - /** - * Game Mode the Game Server instance is running. Note that this must be defined in the Game Modes tab in the PlayFab Game - * Manager, along with the Build ID (the same Game Mode can be defined for multiple Build IDs). - */ - GameMode: string; - /** Previous lobby id if re-registering an existing game. */ - LobbyId?: string; - /** - * Region in which the Game Server Instance is running. For matchmaking using non-AWS region names, set this to any AWS - * region and use Tags (below) to specify your custom region. - */ - Region: string; - /** IPV4 address of the Game Server Instance. */ - ServerHost: string; - /** IPV6 address of the Game Server Instance. */ - ServerIPV6Address?: string; - /** Port number for communication with the Game Server Instance. */ - ServerPort: string; - /** Tags for the Game Server Instance */ - Tags?: { [key: string]: string | null }; - - } - - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.RegisterGameResponse */ - export interface RegisterGameResponse extends PlayFabModule.IPlayFabResultCommon { - /** - * Unique identifier generated for the Game Server Instance that is registered. If LobbyId is specified in request and the - * game still exists in PlayFab, the LobbyId in request is returned. Otherwise a new lobby id will be returned. - */ - LobbyId?: string; - - } - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.StartGameRequest */ export interface StartGameRequest extends PlayFabModule.IPlayFabRequestCommon { /** Unique identifier of the previously uploaded build executable which is to be started. */ diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts index d90ebe31..d9110bcd 100644 --- a/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts +++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts @@ -1639,6 +1639,7 @@ declare module PlayFabServerModels { | "Closed"; type GenericErrorCodes = "Success" + | "MatchmakingHopperIdInvalid" | "UnkownError" | "InvalidParams" | "AccountNotFound" @@ -2007,16 +2008,47 @@ declare module PlayFabServerModels { | "NoValidCertificateForAad" | "InvalidCertificateForAad" | "DuplicateDropTableId" - | "ComputeOK" - | "ComputeAccepted" - | "ComputeNoContent" - | "ComputeBadRequest" - | "ComputeUnauthorized" - | "ComputeForbidden" - | "ComputeNotFound" - | "ComputeConflict" - | "ComputeInternalServerError" - | "ComputeServiceUnavailable"; + | "GameServerOk" + | "GameServerAccepted" + | "GameServerNoContent" + | "GameServerBadRequest" + | "GameServerUnauthorized" + | "GameServerForbidden" + | "GameServerNotFound" + | "GameServerConflict" + | "GameServerInternalServerError" + | "GameServerServiceUnavailable" + | "MatchmakingInvalidEntityKeyList" + | "MatchmakingInvalidTicketCreatorProfile" + | "MatchmakingInvalidUserAttributes" + | "MatchmakingCreateRequestMissing" + | "MatchmakingCreateRequestCreatorMissing" + | "MatchmakingCreateRequestCreatorIdMissing" + | "MatchmakingCreateRequestUserListMissing" + | "MatchmakingCreateRequestGiveUpAfterInvalid" + | "MatchmakingTicketIdMissing" + | "MatchmakingMatchIdMissing" + | "MatchmakingMatchIdIdMissing" + | "MatchmakingHopperIdMissing" + | "MatchmakingTitleIdMissing" + | "MatchmakingTicketIdIdMissing" + | "MatchmakingUserIdMissing" + | "MatchmakingJoinRequestUserMissing" + | "MatchmakingHopperConfigNotFound" + | "MatchmakingMatchNotFound" + | "MatchmakingTicketNotFound" + | "MatchmakingCreateTicketServerIdentityInvalid" + | "MatchmakingCreateTicketClientIdentityInvalid" + | "MatchmakingGetTicketUserMismatch" + | "MatchmakingJoinTicketServerIdentityInvalid" + | "MatchmakingJoinTicketUserIdentityMismatch" + | "MatchmakingCancelTicketServerIdentityInvalid" + | "MatchmakingCancelTicketUserIdentityMismatch" + | "MatchmakingGetMatchIdentityMismatch" + | "MatchmakingUserIdentityMismatch" + | "MatchmakingAlreadyJoinedTicket" + | "MatchmakingTicketAlreadyCompleted" + | "MatchmakingHopperConfigInvalid"; /** https://api.playfab.com/Documentation/Server/datatype/PlayFab.Server.Models/PlayFab.Server.Models.GetAllSegmentsRequest */ export interface GetAllSegmentsRequest extends PlayFabModule.IPlayFabRequestCommon { diff --git a/PlayFabTestingExample/PlayFabApiTest.js b/PlayFabTestingExample/PlayFabApiTest.js index 5477a26b..42a3a73f 100644 --- a/PlayFabTestingExample/PlayFabApiTest.js +++ b/PlayFabTestingExample/PlayFabApiTest.js @@ -460,9 +460,9 @@ var PlayFabApiTests = { var getObjectCallback1 = function (result, error) { PlayFabApiTests.VerifyNullError(result, error, assert, "Testing GetObjects result"); assert.ok(result.data.Objects != null, "Testing GetObjects Objects"); - PlayFabApiTests.testData.testNumber = JSON.parse(result.data.Objects[PlayFabApiTests.testConstants.TEST_DATA_KEY].EscapedDataObject); - if (typeof PlayFabApiTests.testData.testNumber === "number") - PlayFabApiTests.testData.testNumber = 0; // Default number if not set yet + PlayFabApiTests.testData.testNumber = 0; + if (result.data.Objects.hasOwnProperty(PlayFabApiTests.testConstants.TEST_DATA_KEY)) + PlayFabApiTests.testData.testNumber = JSON.parse(result.data.Objects[PlayFabApiTests.testConstants.TEST_DATA_KEY].EscapedDataObject); PlayFabApiTests.testData.testNumber = (PlayFabApiTests.testData.testNumber + 1) % 100; // This test is about the expected value changing - but not testing more complicated issues like bounds var updateDataRequest = { Entity: PlayFabApiTests.testData.entityKey, diff --git a/PlayFabTestingExample/PlayFabApiTest.ts b/PlayFabTestingExample/PlayFabApiTest.ts index 50cb2e7b..ce1ffa19 100644 --- a/PlayFabTestingExample/PlayFabApiTest.ts +++ b/PlayFabTestingExample/PlayFabApiTest.ts @@ -534,9 +534,9 @@ var PlayFabApiTests = { var getObjectCallback1 = function (result: PlayFabModule.SuccessContainer, error: PlayFabModule.IPlayFabError): void { PlayFabApiTests.VerifyNullError(result, error, assert, "Testing GetObjects result"); assert.ok(result.data.Objects != null, "Testing GetObjects Objects"); - PlayFabApiTests.testData.testNumber = JSON.parse(result.data.Objects[PlayFabApiTests.testConstants.TEST_DATA_KEY].EscapedDataObject); - if (typeof PlayFabApiTests.testData.testNumber === "number") - PlayFabApiTests.testData.testNumber = 0; // Default number if not set yet + PlayFabApiTests.testData.testNumber = 0; + if (result.data.Objects.hasOwnProperty(PlayFabApiTests.testConstants.TEST_DATA_KEY)) + PlayFabApiTests.testData.testNumber = JSON.parse(result.data.Objects[PlayFabApiTests.testConstants.TEST_DATA_KEY].EscapedDataObject); PlayFabApiTests.testData.testNumber = (PlayFabApiTests.testData.testNumber + 1) % 100; // This test is about the expected value changing - but not testing more complicated issues like bounds var updateDataRequest = { diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js index 5f98cb0c..f1811fd5 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js @@ -21,7 +21,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.22.180529", + sdkVersion: "1.23.180618", sessionTicket: null, productionServerUrl: ".playfabapi.com", errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) { } PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; -PlayFab.sdkVersion = "1.22.180529"; +PlayFab.sdkVersion = "1.23.180618"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabClientApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabClientApi.js index d466c14d..2cc4781c 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabClientApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabClientApi.js @@ -21,7 +21,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.22.180529", + sdkVersion: "1.23.180618", sessionTicket: null, productionServerUrl: ".playfabapi.com", errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) { } PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; -PlayFab.sdkVersion = "1.22.180529"; +PlayFab.sdkVersion = "1.23.180618"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; @@ -528,9 +528,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -544,9 +546,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -560,9 +564,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -576,9 +582,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -592,9 +600,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -608,9 +618,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -624,9 +636,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -640,9 +654,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -656,9 +672,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -672,9 +690,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -688,9 +708,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -704,9 +726,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); @@ -763,9 +787,11 @@ PlayFab.ClientApi = { if (result != null) { if(result.data.SessionTicket != null) { PlayFab._internalSettings.sessionTicket = result.data.SessionTicket; - } if (result.data.EntityToken != null) { + } + if (result.data.EntityToken != null) { PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken; - } PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); + } + PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution); } if (callback != null && typeof (callback) == "function") callback(result, error); diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabEntityApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabEntityApi.js index cc067d05..ade4aab7 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabEntityApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabEntityApi.js @@ -21,7 +21,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.22.180529", + sdkVersion: "1.23.180618", sessionTicket: null, productionServerUrl: ".playfabapi.com", errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) { } PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; -PlayFab.sdkVersion = "1.22.180529"; +PlayFab.sdkVersion = "1.23.180618"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabMatchmakerApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabMatchmakerApi.js index f6bb476f..3b57f758 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabMatchmakerApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabMatchmakerApi.js @@ -21,7 +21,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.22.180529", + sdkVersion: "1.23.180618", sessionTicket: null, productionServerUrl: ".playfabapi.com", errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) { } PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; -PlayFab.sdkVersion = "1.22.180529"; +PlayFab.sdkVersion = "1.23.180618"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/PlayFab/PlayFabServerApi.js b/PlayFabTestingExample/src/PlayFab/PlayFabServerApi.js index 57af02a3..30b4c23c 100644 --- a/PlayFabTestingExample/src/PlayFab/PlayFabServerApi.js +++ b/PlayFabTestingExample/src/PlayFab/PlayFabServerApi.js @@ -21,7 +21,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { entityToken: null, - sdkVersion: "1.22.180529", + sdkVersion: "1.23.180618", sessionTicket: null, productionServerUrl: ".playfabapi.com", errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) { } PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; -PlayFab.sdkVersion = "1.22.180529"; +PlayFab.sdkVersion = "1.23.180618"; PlayFab.GenerateErrorReport = function (error) { if (error == null) return ""; diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts index ef19d994..4e43c8f2 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabAdminApi.d.ts @@ -1584,23 +1584,6 @@ declare module PlayFabAdminModels { } - /** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.DeleteUsersRequest */ - export interface DeleteUsersRequest extends PlayFabModule.IPlayFabRequestCommon { - /** An array of unique PlayFab assigned ID of the user on whom the operation will be performed. */ - PlayFabIds: string[]; - /** - * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a - * title has been selected. - */ - TitleId: string; - - } - - /** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.DeleteUsersResult */ - export interface DeleteUsersResult extends PlayFabModule.IPlayFabResultCommon { - - } - type EffectType = "Allow" | "Deny"; @@ -1707,6 +1690,7 @@ declare module PlayFabAdminModels { } type GenericErrorCodes = "Success" + | "MatchmakingHopperIdInvalid" | "UnkownError" | "InvalidParams" | "AccountNotFound" @@ -2075,16 +2059,47 @@ declare module PlayFabAdminModels { | "NoValidCertificateForAad" | "InvalidCertificateForAad" | "DuplicateDropTableId" - | "ComputeOK" - | "ComputeAccepted" - | "ComputeNoContent" - | "ComputeBadRequest" - | "ComputeUnauthorized" - | "ComputeForbidden" - | "ComputeNotFound" - | "ComputeConflict" - | "ComputeInternalServerError" - | "ComputeServiceUnavailable"; + | "GameServerOk" + | "GameServerAccepted" + | "GameServerNoContent" + | "GameServerBadRequest" + | "GameServerUnauthorized" + | "GameServerForbidden" + | "GameServerNotFound" + | "GameServerConflict" + | "GameServerInternalServerError" + | "GameServerServiceUnavailable" + | "MatchmakingInvalidEntityKeyList" + | "MatchmakingInvalidTicketCreatorProfile" + | "MatchmakingInvalidUserAttributes" + | "MatchmakingCreateRequestMissing" + | "MatchmakingCreateRequestCreatorMissing" + | "MatchmakingCreateRequestCreatorIdMissing" + | "MatchmakingCreateRequestUserListMissing" + | "MatchmakingCreateRequestGiveUpAfterInvalid" + | "MatchmakingTicketIdMissing" + | "MatchmakingMatchIdMissing" + | "MatchmakingMatchIdIdMissing" + | "MatchmakingHopperIdMissing" + | "MatchmakingTitleIdMissing" + | "MatchmakingTicketIdIdMissing" + | "MatchmakingUserIdMissing" + | "MatchmakingJoinRequestUserMissing" + | "MatchmakingHopperConfigNotFound" + | "MatchmakingMatchNotFound" + | "MatchmakingTicketNotFound" + | "MatchmakingCreateTicketServerIdentityInvalid" + | "MatchmakingCreateTicketClientIdentityInvalid" + | "MatchmakingGetTicketUserMismatch" + | "MatchmakingJoinTicketServerIdentityInvalid" + | "MatchmakingJoinTicketUserIdentityMismatch" + | "MatchmakingCancelTicketServerIdentityInvalid" + | "MatchmakingCancelTicketUserIdentityMismatch" + | "MatchmakingGetMatchIdentityMismatch" + | "MatchmakingUserIdentityMismatch" + | "MatchmakingAlreadyJoinedTicket" + | "MatchmakingTicketAlreadyCompleted" + | "MatchmakingHopperConfigInvalid"; /** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetActionsOnPlayersInSegmentTaskInstanceResult */ export interface GetActionsOnPlayersInSegmentTaskInstanceResult extends PlayFabModule.IPlayFabResultCommon { @@ -3028,7 +3043,9 @@ declare module PlayFabAdminModels { /** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.NameIdentifier */ export interface NameIdentifier { + /** Id Identifier, if present */ Id?: string; + /** Name Identifier, if present */ Name?: string; } @@ -3308,7 +3325,8 @@ declare module PlayFabAdminModels { /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ PlayFabId: string; /** - * Reason for refund. In the case of Facebook this must match one of their refund or dispute resolution enums (See: + * The Reason parameter should correspond with the payment providers reason field, if they require one such as Facebook. In + * the case of Facebook this must match one of their refund or dispute resolution enums (See: * https://developers.facebook.com/docs/payments/implementation-guide/handling-disputes-refunds) */ Reason?: string; @@ -3419,7 +3437,8 @@ declare module PlayFabAdminModels { /** Unique PlayFab assigned ID of the user on whom the operation will be performed. */ PlayFabId: string; /** - * Reason for refund. In the case of Facebook this must match one of their refund or dispute resolution enums (See: + * The Reason parameter should correspond with the payment providers reason field, if they require one such as Facebook. In + * the case of Facebook this must match one of their refund or dispute resolution enums (See: * https://developers.facebook.com/docs/payments/implementation-guide/handling-disputes-refunds) */ Reason?: string; diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabClientApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabClientApi.d.ts index 37999452..408d9c3c 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabClientApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabClientApi.d.ts @@ -3440,13 +3440,6 @@ declare module PlayFabClientModels { } - /** https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.NameIdentifier */ - export interface NameIdentifier { - Id?: string; - Name?: string; - - } - /** https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.OpenTradeRequest */ export interface OpenTradeRequest extends PlayFabModule.IPlayFabRequestCommon { /** diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabMatchmakerApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabMatchmakerApi.d.ts index 93866194..fc992efb 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabMatchmakerApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabMatchmakerApi.d.ts @@ -51,18 +51,6 @@ declare module PlayFabMatchmakerModels { } - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.DeregisterGameRequest */ - export interface DeregisterGameRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Unique identifier for the Game Server Instance that is being deregistered. */ - LobbyId: string; - - } - - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.DeregisterGameResponse */ - export interface DeregisterGameResponse extends PlayFabModule.IPlayFabResultCommon { - - } - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.ItemInstance */ export interface ItemInstance { /** Game specific comment associated with this instance when it was added to the user inventory. */ @@ -143,43 +131,6 @@ declare module PlayFabMatchmakerModels { | "Brazil" | "Australia"; - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.RegisterGameRequest */ - export interface RegisterGameRequest extends PlayFabModule.IPlayFabRequestCommon { - /** Unique identifier of the build running on the Game Server Instance. */ - Build: string; - /** - * Game Mode the Game Server instance is running. Note that this must be defined in the Game Modes tab in the PlayFab Game - * Manager, along with the Build ID (the same Game Mode can be defined for multiple Build IDs). - */ - GameMode: string; - /** Previous lobby id if re-registering an existing game. */ - LobbyId?: string; - /** - * Region in which the Game Server Instance is running. For matchmaking using non-AWS region names, set this to any AWS - * region and use Tags (below) to specify your custom region. - */ - Region: string; - /** IPV4 address of the Game Server Instance. */ - ServerHost: string; - /** IPV6 address of the Game Server Instance. */ - ServerIPV6Address?: string; - /** Port number for communication with the Game Server Instance. */ - ServerPort: string; - /** Tags for the Game Server Instance */ - Tags?: { [key: string]: string | null }; - - } - - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.RegisterGameResponse */ - export interface RegisterGameResponse extends PlayFabModule.IPlayFabResultCommon { - /** - * Unique identifier generated for the Game Server Instance that is registered. If LobbyId is specified in request and the - * game still exists in PlayFab, the LobbyId in request is returned. Otherwise a new lobby id will be returned. - */ - LobbyId?: string; - - } - /** https://api.playfab.com/Documentation/Matchmaker/datatype/PlayFab.Matchmaker.Models/PlayFab.Matchmaker.Models.StartGameRequest */ export interface StartGameRequest extends PlayFabModule.IPlayFabRequestCommon { /** Unique identifier of the previously uploaded build executable which is to be started. */ diff --git a/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts b/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts index d90ebe31..d9110bcd 100644 --- a/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts +++ b/PlayFabTestingExample/src/typings/PlayFab/PlayFabServerApi.d.ts @@ -1639,6 +1639,7 @@ declare module PlayFabServerModels { | "Closed"; type GenericErrorCodes = "Success" + | "MatchmakingHopperIdInvalid" | "UnkownError" | "InvalidParams" | "AccountNotFound" @@ -2007,16 +2008,47 @@ declare module PlayFabServerModels { | "NoValidCertificateForAad" | "InvalidCertificateForAad" | "DuplicateDropTableId" - | "ComputeOK" - | "ComputeAccepted" - | "ComputeNoContent" - | "ComputeBadRequest" - | "ComputeUnauthorized" - | "ComputeForbidden" - | "ComputeNotFound" - | "ComputeConflict" - | "ComputeInternalServerError" - | "ComputeServiceUnavailable"; + | "GameServerOk" + | "GameServerAccepted" + | "GameServerNoContent" + | "GameServerBadRequest" + | "GameServerUnauthorized" + | "GameServerForbidden" + | "GameServerNotFound" + | "GameServerConflict" + | "GameServerInternalServerError" + | "GameServerServiceUnavailable" + | "MatchmakingInvalidEntityKeyList" + | "MatchmakingInvalidTicketCreatorProfile" + | "MatchmakingInvalidUserAttributes" + | "MatchmakingCreateRequestMissing" + | "MatchmakingCreateRequestCreatorMissing" + | "MatchmakingCreateRequestCreatorIdMissing" + | "MatchmakingCreateRequestUserListMissing" + | "MatchmakingCreateRequestGiveUpAfterInvalid" + | "MatchmakingTicketIdMissing" + | "MatchmakingMatchIdMissing" + | "MatchmakingMatchIdIdMissing" + | "MatchmakingHopperIdMissing" + | "MatchmakingTitleIdMissing" + | "MatchmakingTicketIdIdMissing" + | "MatchmakingUserIdMissing" + | "MatchmakingJoinRequestUserMissing" + | "MatchmakingHopperConfigNotFound" + | "MatchmakingMatchNotFound" + | "MatchmakingTicketNotFound" + | "MatchmakingCreateTicketServerIdentityInvalid" + | "MatchmakingCreateTicketClientIdentityInvalid" + | "MatchmakingGetTicketUserMismatch" + | "MatchmakingJoinTicketServerIdentityInvalid" + | "MatchmakingJoinTicketUserIdentityMismatch" + | "MatchmakingCancelTicketServerIdentityInvalid" + | "MatchmakingCancelTicketUserIdentityMismatch" + | "MatchmakingGetMatchIdentityMismatch" + | "MatchmakingUserIdentityMismatch" + | "MatchmakingAlreadyJoinedTicket" + | "MatchmakingTicketAlreadyCompleted" + | "MatchmakingHopperConfigInvalid"; /** https://api.playfab.com/Documentation/Server/datatype/PlayFab.Server.Models/PlayFab.Server.Models.GetAllSegmentsRequest */ export interface GetAllSegmentsRequest extends PlayFabModule.IPlayFabRequestCommon {