gs2 1.3.261 → 1.3.263

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.
Files changed (57) hide show
  1. package/package.json +1 -1
  2. package/project/model/Account.d.ts +9 -0
  3. package/project/model/Account.js +31 -0
  4. package/project/model/Account.js.map +1 -1
  5. package/project/model/Account.ts +29 -0
  6. package/project/model/TwoFactorAuthenticationSetting.d.ts +13 -0
  7. package/project/model/TwoFactorAuthenticationSetting.js +48 -0
  8. package/project/model/TwoFactorAuthenticationSetting.js.map +1 -0
  9. package/project/model/TwoFactorAuthenticationSetting.ts +46 -0
  10. package/project/model/index.d.ts +2 -1
  11. package/project/model/index.js +3 -1
  12. package/project/model/index.js.map +1 -1
  13. package/project/model/index.ts +2 -0
  14. package/project/request/ChallengeMfaRequest.d.ts +25 -0
  15. package/project/request/ChallengeMfaRequest.js +83 -0
  16. package/project/request/ChallengeMfaRequest.js.map +1 -0
  17. package/project/request/ChallengeMfaRequest.ts +90 -0
  18. package/project/request/DisableMfaRequest.d.ts +21 -0
  19. package/project/request/DisableMfaRequest.js +69 -0
  20. package/project/request/DisableMfaRequest.js.map +1 -0
  21. package/project/request/DisableMfaRequest.ts +76 -0
  22. package/project/request/EnableMfaRequest.d.ts +21 -0
  23. package/project/request/EnableMfaRequest.js +69 -0
  24. package/project/request/EnableMfaRequest.js.map +1 -0
  25. package/project/request/EnableMfaRequest.ts +76 -0
  26. package/project/request/SignInRequest.d.ts +4 -0
  27. package/project/request/SignInRequest.js +15 -1
  28. package/project/request/SignInRequest.js.map +1 -1
  29. package/project/request/SignInRequest.ts +15 -1
  30. package/project/request/index.d.ts +4 -1
  31. package/project/request/index.js +7 -1
  32. package/project/request/index.js.map +1 -1
  33. package/project/request/index.ts +6 -0
  34. package/project/rest.d.ts +3 -0
  35. package/project/rest.js +77 -1
  36. package/project/rest.js.map +1 -1
  37. package/project/rest.ts +88 -0
  38. package/project/result/ChallengeMfaResult.d.ts +14 -0
  39. package/project/result/ChallengeMfaResult.js +48 -0
  40. package/project/result/ChallengeMfaResult.js.map +1 -0
  41. package/project/result/ChallengeMfaResult.ts +47 -0
  42. package/project/result/DisableMfaResult.d.ts +14 -0
  43. package/project/result/DisableMfaResult.js +48 -0
  44. package/project/result/DisableMfaResult.js.map +1 -0
  45. package/project/result/DisableMfaResult.ts +47 -0
  46. package/project/result/EnableMfaResult.d.ts +18 -0
  47. package/project/result/EnableMfaResult.js +62 -0
  48. package/project/result/EnableMfaResult.js.map +1 -0
  49. package/project/result/EnableMfaResult.ts +64 -0
  50. package/project/result/index.d.ts +4 -1
  51. package/project/result/index.js +7 -1
  52. package/project/result/index.js.map +1 -1
  53. package/project/result/index.ts +6 -0
  54. package/schedule/model/RepeatSetting.d.ts +12 -0
  55. package/schedule/model/RepeatSetting.js +43 -1
  56. package/schedule/model/RepeatSetting.js.map +1 -1
  57. package/schedule/model/RepeatSetting.ts +43 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2",
3
- "version": "1.3.261",
3
+ "version": "1.3.263",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -1,10 +1,13 @@
1
1
  import IModel from '../../core/interface/IModel';
2
+ import TwoFactorAuthenticationSetting from './TwoFactorAuthenticationSetting';
2
3
  export default class Account implements IModel {
3
4
  private accountId;
4
5
  private name;
5
6
  private email;
6
7
  private fullName;
7
8
  private companyName;
9
+ private enableTwoFactorAuthentication;
10
+ private twoFactorAuthenticationSetting;
8
11
  private status;
9
12
  private createdAt;
10
13
  private updatedAt;
@@ -26,6 +29,12 @@ export default class Account implements IModel {
26
29
  getCompanyName(): string | null;
27
30
  setCompanyName(companyName: string | null): this;
28
31
  withCompanyName(companyName: string | null): this;
32
+ getEnableTwoFactorAuthentication(): string | null;
33
+ setEnableTwoFactorAuthentication(enableTwoFactorAuthentication: string | null): this;
34
+ withEnableTwoFactorAuthentication(enableTwoFactorAuthentication: string | null): this;
35
+ getTwoFactorAuthenticationSetting(): TwoFactorAuthenticationSetting | null;
36
+ setTwoFactorAuthenticationSetting(twoFactorAuthenticationSetting: TwoFactorAuthenticationSetting | null): this;
37
+ withTwoFactorAuthenticationSetting(twoFactorAuthenticationSetting: TwoFactorAuthenticationSetting | null): this;
29
38
  getStatus(): string | null;
30
39
  setStatus(status: string | null): this;
31
40
  withStatus(status: string | null): this;
@@ -15,6 +15,8 @@ express or implied. See the License for the specific language governing
15
15
  permissions and limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ var tslib_1 = require("tslib");
19
+ var TwoFactorAuthenticationSetting_1 = tslib_1.__importDefault(require("./TwoFactorAuthenticationSetting"));
18
20
  var grnFormat = "grn:gs2:::gs2:account:{accountName}";
19
21
  var Account = /** @class */ (function () {
20
22
  function Account() {
@@ -23,6 +25,8 @@ var Account = /** @class */ (function () {
23
25
  this.email = null;
24
26
  this.fullName = null;
25
27
  this.companyName = null;
28
+ this.enableTwoFactorAuthentication = null;
29
+ this.twoFactorAuthenticationSetting = null;
26
30
  this.status = null;
27
31
  this.createdAt = null;
28
32
  this.updatedAt = null;
@@ -100,6 +104,28 @@ var Account = /** @class */ (function () {
100
104
  this.companyName = companyName;
101
105
  return this;
102
106
  };
107
+ Account.prototype.getEnableTwoFactorAuthentication = function () {
108
+ return this.enableTwoFactorAuthentication;
109
+ };
110
+ Account.prototype.setEnableTwoFactorAuthentication = function (enableTwoFactorAuthentication) {
111
+ this.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
112
+ return this;
113
+ };
114
+ Account.prototype.withEnableTwoFactorAuthentication = function (enableTwoFactorAuthentication) {
115
+ this.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
116
+ return this;
117
+ };
118
+ Account.prototype.getTwoFactorAuthenticationSetting = function () {
119
+ return this.twoFactorAuthenticationSetting;
120
+ };
121
+ Account.prototype.setTwoFactorAuthenticationSetting = function (twoFactorAuthenticationSetting) {
122
+ this.twoFactorAuthenticationSetting = twoFactorAuthenticationSetting;
123
+ return this;
124
+ };
125
+ Account.prototype.withTwoFactorAuthenticationSetting = function (twoFactorAuthenticationSetting) {
126
+ this.twoFactorAuthenticationSetting = twoFactorAuthenticationSetting;
127
+ return this;
128
+ };
103
129
  Account.prototype.getStatus = function () {
104
130
  return this.status;
105
131
  };
@@ -143,17 +169,22 @@ var Account = /** @class */ (function () {
143
169
  .withEmail(data["email"])
144
170
  .withFullName(data["fullName"])
145
171
  .withCompanyName(data["companyName"])
172
+ .withEnableTwoFactorAuthentication(data["enableTwoFactorAuthentication"])
173
+ .withTwoFactorAuthenticationSetting(TwoFactorAuthenticationSetting_1.default.fromDict(data["twoFactorAuthenticationSetting"]))
146
174
  .withStatus(data["status"])
147
175
  .withCreatedAt(data["createdAt"])
148
176
  .withUpdatedAt(data["updatedAt"]);
149
177
  };
150
178
  Account.prototype.toDict = function () {
179
+ var _a;
151
180
  return {
152
181
  "accountId": this.getAccountId(),
153
182
  "name": this.getName(),
154
183
  "email": this.getEmail(),
155
184
  "fullName": this.getFullName(),
156
185
  "companyName": this.getCompanyName(),
186
+ "enableTwoFactorAuthentication": this.getEnableTwoFactorAuthentication(),
187
+ "twoFactorAuthenticationSetting": (_a = this.getTwoFactorAuthenticationSetting()) === null || _a === void 0 ? void 0 : _a.toDict(),
157
188
  "status": this.getStatus(),
158
189
  "createdAt": this.getCreatedAt(),
159
190
  "updatedAt": this.getUpdatedAt(),
@@ -1 +1 @@
1
- {"version":3,"file":"Account.js","sourceRoot":"","sources":["Account.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAGH,IAAM,SAAS,GAAW,qCAAqC,CAAC;AAEhE;IAAA;QACY,cAAS,GAAgB,IAAI,CAAC;QAC9B,SAAI,GAAgB,IAAI,CAAC;QACzB,UAAK,GAAgB,IAAI,CAAC;QAC1B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,gBAAW,GAAgB,IAAI,CAAC;QAChC,WAAM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,gCAAgC,CAAC,CAAC,CAAC;aACnH,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC1B,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEM,wBAAM,GAAb;;QACI,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxB,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,+BAA+B,EAAE,IAAI,CAAC,gCAAgC,EAAE;YACxE,gCAAgC,EAAE,MAAA,IAAI,CAAC,iCAAiC,EAAE,0CAAE,MAAM,EAAE;YACpF,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;SACnC,CAAC;IACN,CAAC;IACL,cAAC;AAAD,CAAC,AAjLD,IAiLC"}
@@ -15,6 +15,7 @@ permissions and limitations under the License.
15
15
  */
16
16
 
17
17
  import IModel from '../../core/interface/IModel';
18
+ import TwoFactorAuthenticationSetting from './TwoFactorAuthenticationSetting';
18
19
  const grnFormat: string = "grn:gs2:::gs2:account:{accountName}";
19
20
 
20
21
  export default class Account implements IModel {
@@ -23,6 +24,8 @@ export default class Account implements IModel {
23
24
  private email: string|null = null;
24
25
  private fullName: string|null = null;
25
26
  private companyName: string|null = null;
27
+ private enableTwoFactorAuthentication: string|null = null;
28
+ private twoFactorAuthenticationSetting: TwoFactorAuthenticationSetting|null = null;
26
29
  private status: string|null = null;
27
30
  private createdAt: number|null = null;
28
31
  private updatedAt: number|null = null;
@@ -105,6 +108,28 @@ export default class Account implements IModel {
105
108
  this.companyName = companyName;
106
109
  return this;
107
110
  }
111
+ public getEnableTwoFactorAuthentication(): string|null {
112
+ return this.enableTwoFactorAuthentication;
113
+ }
114
+ public setEnableTwoFactorAuthentication(enableTwoFactorAuthentication: string|null) {
115
+ this.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
116
+ return this;
117
+ }
118
+ public withEnableTwoFactorAuthentication(enableTwoFactorAuthentication: string|null): this {
119
+ this.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
120
+ return this;
121
+ }
122
+ public getTwoFactorAuthenticationSetting(): TwoFactorAuthenticationSetting|null {
123
+ return this.twoFactorAuthenticationSetting;
124
+ }
125
+ public setTwoFactorAuthenticationSetting(twoFactorAuthenticationSetting: TwoFactorAuthenticationSetting|null) {
126
+ this.twoFactorAuthenticationSetting = twoFactorAuthenticationSetting;
127
+ return this;
128
+ }
129
+ public withTwoFactorAuthenticationSetting(twoFactorAuthenticationSetting: TwoFactorAuthenticationSetting|null): this {
130
+ this.twoFactorAuthenticationSetting = twoFactorAuthenticationSetting;
131
+ return this;
132
+ }
108
133
  public getStatus(): string|null {
109
134
  return this.status;
110
135
  }
@@ -149,6 +174,8 @@ export default class Account implements IModel {
149
174
  .withEmail(data["email"])
150
175
  .withFullName(data["fullName"])
151
176
  .withCompanyName(data["companyName"])
177
+ .withEnableTwoFactorAuthentication(data["enableTwoFactorAuthentication"])
178
+ .withTwoFactorAuthenticationSetting(TwoFactorAuthenticationSetting.fromDict(data["twoFactorAuthenticationSetting"]))
152
179
  .withStatus(data["status"])
153
180
  .withCreatedAt(data["createdAt"])
154
181
  .withUpdatedAt(data["updatedAt"]);
@@ -161,6 +188,8 @@ export default class Account implements IModel {
161
188
  "email": this.getEmail(),
162
189
  "fullName": this.getFullName(),
163
190
  "companyName": this.getCompanyName(),
191
+ "enableTwoFactorAuthentication": this.getEnableTwoFactorAuthentication(),
192
+ "twoFactorAuthenticationSetting": this.getTwoFactorAuthenticationSetting()?.toDict(),
164
193
  "status": this.getStatus(),
165
194
  "createdAt": this.getCreatedAt(),
166
195
  "updatedAt": this.getUpdatedAt(),
@@ -0,0 +1,13 @@
1
+ import IModel from '../../core/interface/IModel';
2
+ export default class TwoFactorAuthenticationSetting implements IModel {
3
+ private status;
4
+ getStatus(): string | null;
5
+ setStatus(status: string | null): this;
6
+ withStatus(status: string | null): this;
7
+ static fromDict(data: {
8
+ [key: string]: any;
9
+ }): TwoFactorAuthenticationSetting | null;
10
+ toDict(): {
11
+ [key: string]: any;
12
+ };
13
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var TwoFactorAuthenticationSetting = /** @class */ (function () {
19
+ function TwoFactorAuthenticationSetting() {
20
+ this.status = null;
21
+ }
22
+ TwoFactorAuthenticationSetting.prototype.getStatus = function () {
23
+ return this.status;
24
+ };
25
+ TwoFactorAuthenticationSetting.prototype.setStatus = function (status) {
26
+ this.status = status;
27
+ return this;
28
+ };
29
+ TwoFactorAuthenticationSetting.prototype.withStatus = function (status) {
30
+ this.status = status;
31
+ return this;
32
+ };
33
+ TwoFactorAuthenticationSetting.fromDict = function (data) {
34
+ if (data == undefined || data == null) {
35
+ return null;
36
+ }
37
+ return new TwoFactorAuthenticationSetting()
38
+ .withStatus(data["status"]);
39
+ };
40
+ TwoFactorAuthenticationSetting.prototype.toDict = function () {
41
+ return {
42
+ "status": this.getStatus(),
43
+ };
44
+ };
45
+ return TwoFactorAuthenticationSetting;
46
+ }());
47
+ exports.default = TwoFactorAuthenticationSetting;
48
+ //# sourceMappingURL=TwoFactorAuthenticationSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TwoFactorAuthenticationSetting.js","sourceRoot":"","sources":["TwoFactorAuthenticationSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,WAAM,GAAgB,IAAI,CAAC;IA0BvC,CAAC;IAzBU,kDAAS,GAAhB;QACI,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACM,kDAAS,GAAhB,UAAiB,MAAmB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mDAAU,GAAjB,UAAkB,MAAmB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,uCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,8BAA8B,EAAE;aACtC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpC,CAAC;IAEM,+CAAM,GAAb;QACI,OAAO;YACH,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;SAC7B,CAAC;IACN,CAAC;IACL,qCAAC;AAAD,CAAC,AA3BD,IA2BC"}
@@ -0,0 +1,46 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+
17
+ import IModel from '../../core/interface/IModel';
18
+
19
+ export default class TwoFactorAuthenticationSetting implements IModel {
20
+ private status: string|null = null;
21
+ public getStatus(): string|null {
22
+ return this.status;
23
+ }
24
+ public setStatus(status: string|null) {
25
+ this.status = status;
26
+ return this;
27
+ }
28
+ public withStatus(status: string|null): this {
29
+ this.status = status;
30
+ return this;
31
+ }
32
+
33
+ public static fromDict(data: {[key: string]: any}): TwoFactorAuthenticationSetting|null {
34
+ if (data == undefined || data == null) {
35
+ return null;
36
+ }
37
+ return new TwoFactorAuthenticationSetting()
38
+ .withStatus(data["status"]);
39
+ }
40
+
41
+ public toDict(): {[key: string]: any} {
42
+ return {
43
+ "status": this.getStatus(),
44
+ };
45
+ }
46
+ }
@@ -4,8 +4,9 @@ import Gs2Region from "./Gs2Region";
4
4
  import BillingMethod from "./BillingMethod";
5
5
  import Receipt from "./Receipt";
6
6
  import Billing from "./Billing";
7
+ import TwoFactorAuthenticationSetting from "./TwoFactorAuthenticationSetting";
7
8
  import DumpProgress from "./DumpProgress";
8
9
  import CleanProgress from "./CleanProgress";
9
10
  import ImportProgress from "./ImportProgress";
10
11
  import ImportErrorLog from "./ImportErrorLog";
11
- export { Account, Project, Gs2Region, BillingMethod, Receipt, Billing, DumpProgress, CleanProgress, ImportProgress, ImportErrorLog, };
12
+ export { Account, Project, Gs2Region, BillingMethod, Receipt, Billing, TwoFactorAuthenticationSetting, DumpProgress, CleanProgress, ImportProgress, ImportErrorLog, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportErrorLog = exports.ImportProgress = exports.CleanProgress = exports.DumpProgress = exports.Billing = exports.Receipt = exports.BillingMethod = exports.Gs2Region = exports.Project = exports.Account = void 0;
3
+ exports.ImportErrorLog = exports.ImportProgress = exports.CleanProgress = exports.DumpProgress = exports.TwoFactorAuthenticationSetting = exports.Billing = exports.Receipt = exports.BillingMethod = exports.Gs2Region = exports.Project = exports.Account = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  /*
6
6
  Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
@@ -29,6 +29,8 @@ var Receipt_1 = tslib_1.__importDefault(require("./Receipt"));
29
29
  exports.Receipt = Receipt_1.default;
30
30
  var Billing_1 = tslib_1.__importDefault(require("./Billing"));
31
31
  exports.Billing = Billing_1.default;
32
+ var TwoFactorAuthenticationSetting_1 = tslib_1.__importDefault(require("./TwoFactorAuthenticationSetting"));
33
+ exports.TwoFactorAuthenticationSetting = TwoFactorAuthenticationSetting_1.default;
32
34
  var DumpProgress_1 = tslib_1.__importDefault(require("./DumpProgress"));
33
35
  exports.DumpProgress = DumpProgress_1.default;
34
36
  var CleanProgress_1 = tslib_1.__importDefault(require("./CleanProgress"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,8DAA+B;AAY3B,kBAZG,iBAAO,CAYH;AAXX,8DAA+B;AAY3B,kBAZG,iBAAO,CAYH;AAXX,kEAAmC;AAY/B,oBAZG,mBAAS,CAYH;AAXb,0EAA2C;AAYvC,wBAZG,uBAAa,CAYH;AAXjB,8DAA+B;AAY3B,kBAZG,iBAAO,CAYH;AAXX,8DAA+B;AAY3B,kBAZG,iBAAO,CAYH;AAXX,wEAAyC;AAYrC,uBAZG,sBAAY,CAYH;AAXhB,0EAA2C;AAYvC,wBAZG,uBAAa,CAYH;AAXjB,4EAA6C;AAYzC,yBAZG,wBAAc,CAYH;AAXlB,4EAA6C;AAYzC,yBAZG,wBAAc,CAYH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,8DAA+B;AAa3B,kBAbG,iBAAO,CAaH;AAZX,8DAA+B;AAa3B,kBAbG,iBAAO,CAaH;AAZX,kEAAmC;AAa/B,oBAbG,mBAAS,CAaH;AAZb,0EAA2C;AAavC,wBAbG,uBAAa,CAaH;AAZjB,8DAA+B;AAa3B,kBAbG,iBAAO,CAaH;AAZX,8DAA+B;AAa3B,kBAbG,iBAAO,CAaH;AAZX,4GAA6E;AAazE,yCAbG,wCAA8B,CAaH;AAZlC,wEAAyC;AAarC,uBAbG,sBAAY,CAaH;AAZhB,0EAA2C;AAavC,wBAbG,uBAAa,CAaH;AAZjB,4EAA6C;AAazC,yBAbG,wBAAc,CAaH;AAZlB,4EAA6C;AAazC,yBAbG,wBAAc,CAaH"}
@@ -19,6 +19,7 @@ import Gs2Region from "./Gs2Region"
19
19
  import BillingMethod from "./BillingMethod"
20
20
  import Receipt from "./Receipt"
21
21
  import Billing from "./Billing"
22
+ import TwoFactorAuthenticationSetting from "./TwoFactorAuthenticationSetting"
22
23
  import DumpProgress from "./DumpProgress"
23
24
  import CleanProgress from "./CleanProgress"
24
25
  import ImportProgress from "./ImportProgress"
@@ -31,6 +32,7 @@ export {
31
32
  BillingMethod,
32
33
  Receipt,
33
34
  Billing,
35
+ TwoFactorAuthenticationSetting,
34
36
  DumpProgress,
35
37
  CleanProgress,
36
38
  ImportProgress,
@@ -0,0 +1,25 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ export default class ChallengeMfaRequest implements IRequest {
3
+ private requestId;
4
+ private contextStack;
5
+ private accountToken;
6
+ private passcode;
7
+ getRequestId(): string | null;
8
+ setRequestId(requestId: string | null): this;
9
+ withRequestId(requestId: string | null): this;
10
+ getContextStack(): string | null;
11
+ setContextStack(contextStack: string | null): this;
12
+ withContextStack(contextStack: string | null): this;
13
+ getAccountToken(): string | null;
14
+ setAccountToken(accountToken: string | null): this;
15
+ withAccountToken(accountToken: string | null): this;
16
+ getPasscode(): string | null;
17
+ setPasscode(passcode: string | null): this;
18
+ withPasscode(passcode: string | null): this;
19
+ static fromDict(data: {
20
+ [key: string]: any;
21
+ }): ChallengeMfaRequest;
22
+ toDict(): {
23
+ [key: string]: any;
24
+ };
25
+ }
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var ChallengeMfaRequest = /** @class */ (function () {
19
+ function ChallengeMfaRequest() {
20
+ this.requestId = null;
21
+ this.contextStack = null;
22
+ this.accountToken = null;
23
+ this.passcode = null;
24
+ }
25
+ ChallengeMfaRequest.prototype.getRequestId = function () {
26
+ return this.requestId;
27
+ };
28
+ ChallengeMfaRequest.prototype.setRequestId = function (requestId) {
29
+ this.requestId = requestId;
30
+ return this;
31
+ };
32
+ ChallengeMfaRequest.prototype.withRequestId = function (requestId) {
33
+ this.requestId = requestId;
34
+ return this;
35
+ };
36
+ ChallengeMfaRequest.prototype.getContextStack = function () {
37
+ return this.contextStack;
38
+ };
39
+ ChallengeMfaRequest.prototype.setContextStack = function (contextStack) {
40
+ this.contextStack = contextStack;
41
+ return this;
42
+ };
43
+ ChallengeMfaRequest.prototype.withContextStack = function (contextStack) {
44
+ this.contextStack = contextStack;
45
+ return this;
46
+ };
47
+ ChallengeMfaRequest.prototype.getAccountToken = function () {
48
+ return this.accountToken;
49
+ };
50
+ ChallengeMfaRequest.prototype.setAccountToken = function (accountToken) {
51
+ this.accountToken = accountToken;
52
+ return this;
53
+ };
54
+ ChallengeMfaRequest.prototype.withAccountToken = function (accountToken) {
55
+ this.accountToken = accountToken;
56
+ return this;
57
+ };
58
+ ChallengeMfaRequest.prototype.getPasscode = function () {
59
+ return this.passcode;
60
+ };
61
+ ChallengeMfaRequest.prototype.setPasscode = function (passcode) {
62
+ this.passcode = passcode;
63
+ return this;
64
+ };
65
+ ChallengeMfaRequest.prototype.withPasscode = function (passcode) {
66
+ this.passcode = passcode;
67
+ return this;
68
+ };
69
+ ChallengeMfaRequest.fromDict = function (data) {
70
+ return new ChallengeMfaRequest()
71
+ .withAccountToken(data["accountToken"])
72
+ .withPasscode(data["passcode"]);
73
+ };
74
+ ChallengeMfaRequest.prototype.toDict = function () {
75
+ return {
76
+ "accountToken": this.getAccountToken(),
77
+ "passcode": this.getPasscode(),
78
+ };
79
+ };
80
+ return ChallengeMfaRequest;
81
+ }());
82
+ exports.default = ChallengeMfaRequest;
83
+ //# sourceMappingURL=ChallengeMfaRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChallengeMfaRequest.js","sourceRoot":"","sources":["ChallengeMfaRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,iBAAY,GAAgB,IAAI,CAAC;QACjC,aAAQ,GAAgB,IAAI,CAAC;IAgEzC,CAAC;IA9DU,0CAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,0CAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2CAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,6CAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,6CAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,8CAAgB,GAAvB,UAAwB,YAAyB;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,6CAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IACM,6CAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8CAAgB,GAAvB,UAAwB,YAAyB;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,yCAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,yCAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,0CAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,4BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,mBAAmB,EAAE;aAC3B,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;aACtC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACxC,CAAC;IAEM,oCAAM,GAAb;QACI,OAAO;YACH,cAAc,EAAE,IAAI,CAAC,eAAe,EAAE;YACtC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;SACjC,CAAC;IACN,CAAC;IACL,0BAAC;AAAD,CAAC,AArED,IAqEC"}
@@ -0,0 +1,90 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+
17
+ import IRequest from '../../core/interface/IRequest';
18
+
19
+ import * as Gs2Project from '../model'
20
+
21
+ export default class ChallengeMfaRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private accountToken: string|null = null;
26
+ private passcode: string|null = null;
27
+
28
+ public getRequestId(): string|null {
29
+ return this.requestId;
30
+ }
31
+
32
+ public setRequestId(requestId: string|null) {
33
+ this.requestId = requestId;
34
+ return this;
35
+ }
36
+
37
+ public withRequestId(requestId: string|null): this {
38
+ this.requestId = requestId;
39
+ return this;
40
+ }
41
+
42
+ public getContextStack(): string|null {
43
+ return this.contextStack;
44
+ }
45
+
46
+ public setContextStack(contextStack: string|null) {
47
+ this.contextStack = contextStack;
48
+ return this;
49
+ }
50
+
51
+ public withContextStack(contextStack: string|null): this {
52
+ this.contextStack = contextStack;
53
+ return this;
54
+ }
55
+ public getAccountToken(): string|null {
56
+ return this.accountToken;
57
+ }
58
+ public setAccountToken(accountToken: string|null) {
59
+ this.accountToken = accountToken;
60
+ return this;
61
+ }
62
+ public withAccountToken(accountToken: string|null): this {
63
+ this.accountToken = accountToken;
64
+ return this;
65
+ }
66
+ public getPasscode(): string|null {
67
+ return this.passcode;
68
+ }
69
+ public setPasscode(passcode: string|null) {
70
+ this.passcode = passcode;
71
+ return this;
72
+ }
73
+ public withPasscode(passcode: string|null): this {
74
+ this.passcode = passcode;
75
+ return this;
76
+ }
77
+
78
+ public static fromDict(data: {[key: string]: any}): ChallengeMfaRequest {
79
+ return new ChallengeMfaRequest()
80
+ .withAccountToken(data["accountToken"])
81
+ .withPasscode(data["passcode"]);
82
+ }
83
+
84
+ public toDict(): {[key: string]: any} {
85
+ return {
86
+ "accountToken": this.getAccountToken(),
87
+ "passcode": this.getPasscode(),
88
+ };
89
+ }
90
+ }
@@ -0,0 +1,21 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ export default class DisableMfaRequest implements IRequest {
3
+ private requestId;
4
+ private contextStack;
5
+ private accountToken;
6
+ getRequestId(): string | null;
7
+ setRequestId(requestId: string | null): this;
8
+ withRequestId(requestId: string | null): this;
9
+ getContextStack(): string | null;
10
+ setContextStack(contextStack: string | null): this;
11
+ withContextStack(contextStack: string | null): this;
12
+ getAccountToken(): string | null;
13
+ setAccountToken(accountToken: string | null): this;
14
+ withAccountToken(accountToken: string | null): this;
15
+ static fromDict(data: {
16
+ [key: string]: any;
17
+ }): DisableMfaRequest;
18
+ toDict(): {
19
+ [key: string]: any;
20
+ };
21
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var DisableMfaRequest = /** @class */ (function () {
19
+ function DisableMfaRequest() {
20
+ this.requestId = null;
21
+ this.contextStack = null;
22
+ this.accountToken = null;
23
+ }
24
+ DisableMfaRequest.prototype.getRequestId = function () {
25
+ return this.requestId;
26
+ };
27
+ DisableMfaRequest.prototype.setRequestId = function (requestId) {
28
+ this.requestId = requestId;
29
+ return this;
30
+ };
31
+ DisableMfaRequest.prototype.withRequestId = function (requestId) {
32
+ this.requestId = requestId;
33
+ return this;
34
+ };
35
+ DisableMfaRequest.prototype.getContextStack = function () {
36
+ return this.contextStack;
37
+ };
38
+ DisableMfaRequest.prototype.setContextStack = function (contextStack) {
39
+ this.contextStack = contextStack;
40
+ return this;
41
+ };
42
+ DisableMfaRequest.prototype.withContextStack = function (contextStack) {
43
+ this.contextStack = contextStack;
44
+ return this;
45
+ };
46
+ DisableMfaRequest.prototype.getAccountToken = function () {
47
+ return this.accountToken;
48
+ };
49
+ DisableMfaRequest.prototype.setAccountToken = function (accountToken) {
50
+ this.accountToken = accountToken;
51
+ return this;
52
+ };
53
+ DisableMfaRequest.prototype.withAccountToken = function (accountToken) {
54
+ this.accountToken = accountToken;
55
+ return this;
56
+ };
57
+ DisableMfaRequest.fromDict = function (data) {
58
+ return new DisableMfaRequest()
59
+ .withAccountToken(data["accountToken"]);
60
+ };
61
+ DisableMfaRequest.prototype.toDict = function () {
62
+ return {
63
+ "accountToken": this.getAccountToken(),
64
+ };
65
+ };
66
+ return DisableMfaRequest;
67
+ }());
68
+ exports.default = DisableMfaRequest;
69
+ //# sourceMappingURL=DisableMfaRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DisableMfaRequest.js","sourceRoot":"","sources":["DisableMfaRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,iBAAY,GAAgB,IAAI,CAAC;IAmD7C,CAAC;IAjDU,wCAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,wCAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yCAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2CAAe,GAAtB;QACI,OA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