gs2-cdk 1.0.62 → 1.0.63

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 (33) hide show
  1. package/matchmaking/model/CurrentMasterData.d.ts +3 -1
  2. package/matchmaking/model/CurrentMasterData.js +7 -3
  3. package/matchmaking/model/CurrentMasterData.js.map +1 -1
  4. package/matchmaking/model/CurrentMasterData.ts +10 -2
  5. package/matchmaking/model/Namespace.d.ts +2 -1
  6. package/matchmaking/model/Namespace.js +2 -2
  7. package/matchmaking/model/Namespace.js.map +1 -1
  8. package/matchmaking/model/Namespace.ts +3 -0
  9. package/matchmaking/model/SeasonModel.d.ts +12 -0
  10. package/matchmaking/model/SeasonModel.js +35 -0
  11. package/matchmaking/model/SeasonModel.js.map +1 -0
  12. package/matchmaking/model/SeasonModel.ts +60 -0
  13. package/matchmaking/model/index.d.ts +3 -1
  14. package/matchmaking/model/index.js +3 -1
  15. package/matchmaking/model/index.js.map +1 -1
  16. package/matchmaking/model/index.ts +4 -0
  17. package/matchmaking/model/options/SeasonModelOptions.d.ts +4 -0
  18. package/matchmaking/model/options/SeasonModelOptions.js +18 -0
  19. package/matchmaking/model/options/SeasonModelOptions.js.map +1 -0
  20. package/matchmaking/model/options/SeasonModelOptions.ts +21 -0
  21. package/matchmaking/ref/NamespaceRef.d.ts +2 -0
  22. package/matchmaking/ref/NamespaceRef.js +4 -0
  23. package/matchmaking/ref/NamespaceRef.js.map +1 -1
  24. package/matchmaking/ref/NamespaceRef.ts +10 -0
  25. package/matchmaking/ref/SeasonModelRef.d.ts +6 -0
  26. package/matchmaking/ref/SeasonModelRef.js +38 -0
  27. package/matchmaking/ref/SeasonModelRef.js.map +1 -0
  28. package/matchmaking/ref/SeasonModelRef.ts +52 -0
  29. package/matchmaking/ref/index.d.ts +2 -1
  30. package/matchmaking/ref/index.js +3 -1
  31. package/matchmaking/ref/index.js.map +1 -1
  32. package/matchmaking/ref/index.ts +2 -0
  33. package/package.json +1 -1
@@ -1,10 +1,12 @@
1
1
  import { CdkResource, Stack } from "../../core/model";
2
2
  import RatingModel from "./RatingModel";
3
+ import SeasonModel from "./SeasonModel";
3
4
  export default class CurrentMasterData extends CdkResource {
4
5
  private readonly version;
5
6
  private readonly namespaceName;
6
7
  private readonly ratingModels;
7
- constructor(stack: Stack, namespaceName: string, ratingModels: RatingModel[]);
8
+ private readonly seasonModels;
9
+ constructor(stack: Stack, namespaceName: string, ratingModels: RatingModel[], seasonModels: SeasonModel[]);
8
10
  alternateKeys(): string;
9
11
  resourceType(): string;
10
12
  properties(): {
@@ -17,18 +17,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  */
18
18
  const model_1 = require("../../core/model");
19
19
  class CurrentMasterData extends model_1.CdkResource {
20
- constructor(stack, namespaceName, ratingModels) {
21
- super("Matchmaking_CurrentRatingModelMaster_" + namespaceName);
20
+ constructor(stack, namespaceName, ratingModels, seasonModels) {
21
+ super("Matchmaking_CurrentModelMaster_" + namespaceName);
22
22
  this.version = "2020-06-24";
23
23
  this.namespaceName = namespaceName;
24
24
  this.ratingModels = ratingModels;
25
+ this.seasonModels = seasonModels;
25
26
  stack.addResource(this);
26
27
  }
27
28
  alternateKeys() {
28
29
  return this.namespaceName;
29
30
  }
30
31
  resourceType() {
31
- return "GS2::Matchmaking::CurrentRatingModelMaster";
32
+ return "GS2::Matchmaking::CurrentModelMaster";
32
33
  }
33
34
  properties() {
34
35
  let properties = {};
@@ -37,6 +38,9 @@ class CurrentMasterData extends model_1.CdkResource {
37
38
  if (this.ratingModels != null) {
38
39
  settings["ratingModels"] = this.ratingModels.map(v => v.properties());
39
40
  }
41
+ if (this.seasonModels != null) {
42
+ settings["seasonModels"] = this.seasonModels.map(v => v.properties());
43
+ }
40
44
  if (this.namespaceName != null) {
41
45
  properties["NamespaceName"] = this.namespaceName;
42
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"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@@ -15,23 +15,27 @@
15
15
  */
16
16
  import {CdkResource, Stack} from "../../core/model";
17
17
  import RatingModel from "./RatingModel";
18
+ import SeasonModel from "./SeasonModel";
18
19
 
19
20
  export default class CurrentMasterData extends CdkResource {
20
21
  private readonly version: string= "2020-06-24";
21
22
  private readonly namespaceName: string;
22
23
  private readonly ratingModels: RatingModel[];
24
+ private readonly seasonModels: SeasonModel[];
23
25
 
24
26
  public constructor(
25
27
  stack: Stack,
26
28
  namespaceName: string,
27
29
  ratingModels: RatingModel[],
30
+ seasonModels: SeasonModel[],
28
31
  ) {
29
32
  super(
30
- "Matchmaking_CurrentRatingModelMaster_" + namespaceName
33
+ "Matchmaking_CurrentModelMaster_" + namespaceName
31
34
  );
32
35
 
33
36
  this.namespaceName = namespaceName;
34
37
  this.ratingModels = ratingModels;
38
+ this.seasonModels = seasonModels;
35
39
  stack.addResource(
36
40
  this,
37
41
  );
@@ -44,7 +48,7 @@ export default class CurrentMasterData extends CdkResource {
44
48
 
45
49
  public resourceType(
46
50
  ): string {
47
- return "GS2::Matchmaking::CurrentRatingModelMaster";
51
+ return "GS2::Matchmaking::CurrentModelMaster";
48
52
  }
49
53
 
50
54
  public properties(
@@ -57,6 +61,10 @@ export default class CurrentMasterData extends CdkResource {
57
61
  settings["ratingModels"] = this.ratingModels.map(v => v.properties(
58
62
  ));
59
63
  }
64
+ if (this.seasonModels != null) {
65
+ settings["seasonModels"] = this.seasonModels.map(v => v.properties(
66
+ ));
67
+ }
60
68
 
61
69
  if (this.namespaceName != null) {
62
70
  properties["NamespaceName"] = this.namespaceName;
@@ -2,6 +2,7 @@ import { CdkResource, Stack } from "../../core/model";
2
2
  import { GetAttr } from "../../core/func";
3
3
  import NamespaceRef from "../ref/NamespaceRef";
4
4
  import RatingModel from "./RatingModel";
5
+ import SeasonModel from "./SeasonModel";
5
6
  import { NamespaceCreateGatheringTriggerType } from "./enum/NamespaceCreateGatheringTriggerType";
6
7
  import { NamespaceCompleteMatchmakingTriggerType } from "./enum/NamespaceCompleteMatchmakingTriggerType";
7
8
  import { NamespaceOptions } from "./options/NamespaceOptions";
@@ -35,5 +36,5 @@ export default class Namespace extends CdkResource {
35
36
  };
36
37
  ref(): NamespaceRef;
37
38
  getAttrNamespaceId(): GetAttr;
38
- masterData(ratingModels: RatingModel[]): Namespace;
39
+ masterData(ratingModels: RatingModel[], seasonModels: SeasonModel[]): Namespace;
39
40
  }
@@ -141,8 +141,8 @@ class Namespace extends model_1.CdkResource {
141
141
  getAttrNamespaceId() {
142
142
  return new func_1.GetAttr(this, "Item.NamespaceId", null);
143
143
  }
144
- masterData(ratingModels) {
145
- new CurrentMasterData_1.default(this.stack, this.name, ratingModels).addDependsOn(this);
144
+ masterData(ratingModels, seasonModels) {
145
+ new CurrentMasterData_1.default(this.stack, this.name, ratingModels, seasonModels).addDependsOn(this);
146
146
  return this;
147
147
  }
148
148
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AASpD,MAAqB,SAAU,SAAQ,mBAAW;IAuB9C,YACI,KAAY,EACZ,IAAY,EACZ,0BAA+D,EAC/D,8BAAuE,EACvE,UAAiC,IAAI;;QAErC,KAAK,CACD,wBAAwB,GAAG,IAAI,CAClC,CAAC;QA3BW,gBAAW,GAAgB,IAAI,CAAC;QAChC,iBAAY,GAAiB,IAAI,CAAC;QAClC,8BAAyB,GAA4C,IAAI,CAAC;QAC1E,sCAAiC,GAAgB,IAAI,CAAC;QACtD,8CAAyC,GAAgB,IAAI,CAAC;QAC9D,mCAA8B,GAAgB,IAAI,CAAC;QACnD,kDAA6C,GAAgB,IAAI,CAAC;QAClE,uCAAkC,GAAgB,IAAI,CAAC;QACvD,kCAA6B,GAAgD,IAAI,CAAC;QAClF,uCAAkC,GAAgB,IAAI,CAAC;QACvD,+BA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kB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,YAA2B,EAC3B,YAA2B;QAE3B,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,YAAY,EACZ,YAAY,CACf,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA/KD,4BA+KC"}
@@ -23,6 +23,7 @@ import LogSetting from "../../core/model/LogSetting";
23
23
  import NamespaceRef from "../ref/NamespaceRef";
24
24
  import CurrentMasterData from "./CurrentMasterData";
25
25
  import RatingModel from "./RatingModel";
26
+ import SeasonModel from "./SeasonModel";
26
27
  import { NamespaceEnableDisconnectDetection } from "./enum/NamespaceEnableDisconnectDetection";
27
28
  import { NamespaceCreateGatheringTriggerType } from "./enum/NamespaceCreateGatheringTriggerType";
28
29
  import { NamespaceCompleteMatchmakingTriggerType } from "./enum/NamespaceCompleteMatchmakingTriggerType";
@@ -193,11 +194,13 @@ export default class Namespace extends CdkResource {
193
194
 
194
195
  public masterData(
195
196
  ratingModels: RatingModel[],
197
+ seasonModels: SeasonModel[],
196
198
  ): Namespace {
197
199
  new CurrentMasterData(
198
200
  this.stack,
199
201
  this.name,
200
202
  ratingModels,
203
+ seasonModels,
201
204
  ).addDependsOn(
202
205
  this,
203
206
  );
@@ -0,0 +1,12 @@
1
+ import { SeasonModelOptions } from "./options/SeasonModelOptions";
2
+ export default class SeasonModel {
3
+ private readonly name;
4
+ private readonly maximumParticipants;
5
+ private readonly challengePeriodEventId;
6
+ private readonly metadata;
7
+ private readonly experienceModelId;
8
+ constructor(name: string, maximumParticipants: number, challengePeriodEventId: string, options?: SeasonModelOptions | null);
9
+ properties(): {
10
+ [name: string]: any;
11
+ };
12
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class SeasonModel {
4
+ constructor(name, maximumParticipants, challengePeriodEventId, options = null) {
5
+ var _a, _b;
6
+ this.metadata = null;
7
+ this.experienceModelId = null;
8
+ this.name = name;
9
+ this.maximumParticipants = maximumParticipants;
10
+ this.challengePeriodEventId = challengePeriodEventId;
11
+ this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
12
+ this.experienceModelId = (_b = options === null || options === void 0 ? void 0 : options.experienceModelId) !== null && _b !== void 0 ? _b : null;
13
+ }
14
+ properties() {
15
+ let properties = {};
16
+ if (this.name != null) {
17
+ properties["name"] = this.name;
18
+ }
19
+ if (this.metadata != null) {
20
+ properties["metadata"] = this.metadata;
21
+ }
22
+ if (this.maximumParticipants != null) {
23
+ properties["maximumParticipants"] = this.maximumParticipants;
24
+ }
25
+ if (this.experienceModelId != null) {
26
+ properties["experienceModelId"] = this.experienceModelId;
27
+ }
28
+ if (this.challengePeriodEventId != null) {
29
+ properties["challengePeriodEventId"] = this.challengePeriodEventId;
30
+ }
31
+ return properties;
32
+ }
33
+ }
34
+ exports.default = SeasonModel;
35
+ //# sourceMappingURL=SeasonModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonModel.js","sourceRoot":"","sources":["SeasonModel.ts"],"names":[],"mappings":";;AAiBA,MAAqB,WAAW;IAO5B,YACI,IAAY,EACZ,mBAA2B,EAC3B,sBAA8B,EAC9B,UAAmC,IAAI;;QAP1B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,sBAAiB,GAAgB,IAAI,CAAC;QAQnD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,mCAAI,IAAI,CAAC;IAChE,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE;YAClC,UAAU,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC;SAChE;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1CD,8BA0CC"}
@@ -0,0 +1,60 @@
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
+ import { SeasonModelOptions } from "./options/SeasonModelOptions";
17
+
18
+ export default class SeasonModel {
19
+ private readonly name: string;
20
+ private readonly maximumParticipants: number;
21
+ private readonly challengePeriodEventId: string;
22
+ private readonly metadata: string|null = null;
23
+ private readonly experienceModelId: string|null = null;
24
+
25
+ public constructor(
26
+ name: string,
27
+ maximumParticipants: number,
28
+ challengePeriodEventId: string,
29
+ options: SeasonModelOptions|null = null,
30
+ ) {
31
+ this.name = name;
32
+ this.maximumParticipants = maximumParticipants;
33
+ this.challengePeriodEventId = challengePeriodEventId;
34
+ this.metadata = options?.metadata ?? null;
35
+ this.experienceModelId = options?.experienceModelId ?? null;
36
+ }
37
+
38
+ public properties(
39
+ ): {[name: string]: any} {
40
+ let properties: {[name: string]: any} = {};
41
+
42
+ if (this.name != null) {
43
+ properties["name"] = this.name;
44
+ }
45
+ if (this.metadata != null) {
46
+ properties["metadata"] = this.metadata;
47
+ }
48
+ if (this.maximumParticipants != null) {
49
+ properties["maximumParticipants"] = this.maximumParticipants;
50
+ }
51
+ if (this.experienceModelId != null) {
52
+ properties["experienceModelId"] = this.experienceModelId;
53
+ }
54
+ if (this.challengePeriodEventId != null) {
55
+ properties["challengePeriodEventId"] = this.challengePeriodEventId;
56
+ }
57
+
58
+ return properties;
59
+ }
60
+ }
@@ -16,6 +16,8 @@ import { NamespaceEnableCollaborateSeasonRatingIsEnableOptions } from "./options
16
16
  import { NamespaceEnableCollaborateSeasonRatingIsDisableOptions } from "./options/NamespaceEnableCollaborateSeasonRatingIsDisableOptions";
17
17
  import RatingModel from "./RatingModel";
18
18
  import { RatingModelOptions } from "./options/RatingModelOptions";
19
+ import SeasonModel from "./SeasonModel";
20
+ import { SeasonModelOptions } from "./options/SeasonModelOptions";
19
21
  import AttributeRange from "./AttributeRange";
20
22
  import { AttributeRangeOptions } from "./options/AttributeRangeOptions";
21
23
  import CapacityOfRole from "./CapacityOfRole";
@@ -31,4 +33,4 @@ import { SignedBallotOptions } from "./options/SignedBallotOptions";
31
33
  import TimeSpan from "./TimeSpan";
32
34
  import { TimeSpanOptions } from "./options/TimeSpanOptions";
33
35
  import CurrentMasterData from "./CurrentMasterData";
34
- export { Namespace, NamespaceOptions, NamespaceEnableDisconnectDetection, NamespaceCreateGatheringTriggerType, NamespaceCompleteMatchmakingTriggerType, NamespaceEnableCollaborateSeasonRating, NamespaceEnableDisconnectDetectionIsDisableOptions, NamespaceEnableDisconnectDetectionIsEnableOptions, NamespaceCreateGatheringTriggerTypeIsNoneOptions, NamespaceCreateGatheringTriggerTypeIsGs2RealtimeOptions, NamespaceCreateGatheringTriggerTypeIsGs2ScriptOptions, NamespaceCompleteMatchmakingTriggerTypeIsNoneOptions, NamespaceCompleteMatchmakingTriggerTypeIsGs2RealtimeOptions, NamespaceCompleteMatchmakingTriggerTypeIsGs2ScriptOptions, NamespaceEnableCollaborateSeasonRatingIsEnableOptions, NamespaceEnableCollaborateSeasonRatingIsDisableOptions, RatingModel, RatingModelOptions, AttributeRange, AttributeRangeOptions, CapacityOfRole, CapacityOfRoleOptions, Attribute, AttributeOptions, Player, PlayerOptions, GameResult, GameResultOptions, SignedBallot, SignedBallotOptions, TimeSpan, TimeSpanOptions, CurrentMasterData, };
36
+ export { Namespace, NamespaceOptions, NamespaceEnableDisconnectDetection, NamespaceCreateGatheringTriggerType, NamespaceCompleteMatchmakingTriggerType, NamespaceEnableCollaborateSeasonRating, NamespaceEnableDisconnectDetectionIsDisableOptions, NamespaceEnableDisconnectDetectionIsEnableOptions, NamespaceCreateGatheringTriggerTypeIsNoneOptions, NamespaceCreateGatheringTriggerTypeIsGs2RealtimeOptions, NamespaceCreateGatheringTriggerTypeIsGs2ScriptOptions, NamespaceCompleteMatchmakingTriggerTypeIsNoneOptions, NamespaceCompleteMatchmakingTriggerTypeIsGs2RealtimeOptions, NamespaceCompleteMatchmakingTriggerTypeIsGs2ScriptOptions, NamespaceEnableCollaborateSeasonRatingIsEnableOptions, NamespaceEnableCollaborateSeasonRatingIsDisableOptions, RatingModel, RatingModelOptions, SeasonModel, SeasonModelOptions, AttributeRange, AttributeRangeOptions, CapacityOfRole, CapacityOfRoleOptions, Attribute, AttributeOptions, Player, PlayerOptions, GameResult, GameResultOptions, SignedBallot, SignedBallotOptions, TimeSpan, TimeSpanOptions, CurrentMasterData, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CurrentMasterData = exports.TimeSpan = exports.SignedBallot = exports.GameResult = exports.Player = exports.Attribute = exports.CapacityOfRole = exports.AttributeRange = exports.RatingModel = exports.NamespaceEnableCollaborateSeasonRating = exports.NamespaceCompleteMatchmakingTriggerType = exports.NamespaceCreateGatheringTriggerType = exports.NamespaceEnableDisconnectDetection = exports.Namespace = void 0;
3
+ exports.CurrentMasterData = exports.TimeSpan = exports.SignedBallot = exports.GameResult = exports.Player = exports.Attribute = exports.CapacityOfRole = exports.AttributeRange = exports.SeasonModel = exports.RatingModel = exports.NamespaceEnableCollaborateSeasonRating = exports.NamespaceCompleteMatchmakingTriggerType = exports.NamespaceCreateGatheringTriggerType = exports.NamespaceEnableDisconnectDetection = exports.Namespace = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -29,6 +29,8 @@ const NamespaceEnableCollaborateSeasonRating_1 = require("./enum/NamespaceEnable
29
29
  Object.defineProperty(exports, "NamespaceEnableCollaborateSeasonRating", { enumerable: true, get: function () { return NamespaceEnableCollaborateSeasonRating_1.NamespaceEnableCollaborateSeasonRating; } });
30
30
  const RatingModel_1 = tslib_1.__importDefault(require("./RatingModel"));
31
31
  exports.RatingModel = RatingModel_1.default;
32
+ const SeasonModel_1 = tslib_1.__importDefault(require("./SeasonModel"));
33
+ exports.SeasonModel = SeasonModel_1.default;
32
34
  const AttributeRange_1 = tslib_1.__importDefault(require("./AttributeRange"));
33
35
  exports.AttributeRange = AttributeRange_1.default;
34
36
  const CapacityOfRole_1 = tslib_1.__importDefault(require("./CapacityOfRole"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;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8DAA8B;AAqC1B,iBArCG,gBAAM,CAqCH;AAnCV,sEAAsC;AAqClC,qBArCG,oBAAU,CAqCH;AAnCd,0EAA0C;AAqCtC,uBArCG,sBAAY,CAqCH;AAnChB,kEAAkC;AAqC9B,mBArCG,kBAAQ,CAqCH;AAnCZ,oFAAoD;AAqChD,4BArCG,2BAAiB,CAqCH"}
@@ -31,6 +31,8 @@ import { NamespaceEnableCollaborateSeasonRatingIsEnableOptions } from "./options
31
31
  import { NamespaceEnableCollaborateSeasonRatingIsDisableOptions } from "./options/NamespaceEnableCollaborateSeasonRatingIsDisableOptions"
32
32
  import RatingModel from "./RatingModel";
33
33
  import { RatingModelOptions } from "./options/RatingModelOptions";
34
+ import SeasonModel from "./SeasonModel";
35
+ import { SeasonModelOptions } from "./options/SeasonModelOptions";
34
36
  import AttributeRange from "./AttributeRange";
35
37
  import { AttributeRangeOptions } from "./options/AttributeRangeOptions";
36
38
  import CapacityOfRole from "./CapacityOfRole";
@@ -66,6 +68,8 @@ export {
66
68
  NamespaceEnableCollaborateSeasonRatingIsDisableOptions,
67
69
  RatingModel,
68
70
  RatingModelOptions,
71
+ SeasonModel,
72
+ SeasonModelOptions,
69
73
  AttributeRange,
70
74
  AttributeRangeOptions,
71
75
  CapacityOfRole,
@@ -0,0 +1,4 @@
1
+ export interface SeasonModelOptions {
2
+ metadata?: string | null;
3
+ experienceModelId?: string | null;
4
+ }
@@ -0,0 +1,18 @@
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
+ //# sourceMappingURL=SeasonModelOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonModelOptions.js","sourceRoot":"","sources":["SeasonModelOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,21 @@
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
+ export interface SeasonModelOptions {
18
+ metadata?: string|null;
19
+ experienceModelId?: string|null;
20
+ }
21
+
@@ -1,7 +1,9 @@
1
1
  import RatingModelRef from "./RatingModelRef";
2
+ import SeasonModelRef from "./SeasonModelRef";
2
3
  export default class NamespaceRef {
3
4
  private readonly namespaceName;
4
5
  constructor(namespaceName: string);
5
6
  ratingModel(ratingName: string): RatingModelRef;
7
+ seasonModel(seasonName: string): SeasonModelRef;
6
8
  grn(): string;
7
9
  }
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const tslib_1 = require("tslib");
19
19
  const func_1 = require("../../core/func");
20
20
  const RatingModelRef_1 = tslib_1.__importDefault(require("./RatingModelRef"));
21
+ const SeasonModelRef_1 = tslib_1.__importDefault(require("./SeasonModelRef"));
21
22
  class NamespaceRef {
22
23
  constructor(namespaceName) {
23
24
  this.namespaceName = namespaceName;
@@ -25,6 +26,9 @@ class NamespaceRef {
25
26
  ratingModel(ratingName) {
26
27
  return new RatingModelRef_1.default(this.namespaceName, ratingName);
27
28
  }
29
+ seasonModel(seasonName) {
30
+ return new SeasonModelRef_1.default(this.namespaceName, seasonName);
31
+ }
28
32
  grn() {
29
33
  return new func_1.Join(":", [
30
34
  "grn",
@@ -1 +1 @@
1
- {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,8EAA8C;AAE9C,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,WAAW,CACd,UAAkB;QAElB,OAAO,IAAI,wBAAc,CACrB,IAAI,CAAC,aAAa,EAClB,UAAU,CACb,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,aAAa;YACb,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AArCD,+BAqCC"}
1
+ {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,8EAA8C;AAC9C,8EAA8C;AAE9C,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,WAAW,CACd,UAAkB;QAElB,OAAO,IAAI,wBAAc,CACrB,IAAI,CAAC,aAAa,EAClB,UAAU,CACb,CAAC;IACN,CAAC;IAEM,WAAW,CACd,UAAkB;QAElB,OAAO,IAAI,wBAAc,CACrB,IAAI,CAAC,aAAa,EAClB,UAAU,CACb,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,aAAa;YACb,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA9CD,+BA8CC"}
@@ -16,6 +16,7 @@
16
16
 
17
17
  import {GetAttr, Join} from "../../core/func";
18
18
  import RatingModelRef from "./RatingModelRef";
19
+ import SeasonModelRef from "./SeasonModelRef";
19
20
 
20
21
  export default class NamespaceRef {
21
22
  private readonly namespaceName: string;
@@ -35,6 +36,15 @@ export default class NamespaceRef {
35
36
  );
36
37
  }
37
38
 
39
+ public seasonModel(
40
+ seasonName: string,
41
+ ): SeasonModelRef {
42
+ return new SeasonModelRef(
43
+ this.namespaceName,
44
+ seasonName,
45
+ );
46
+ }
47
+
38
48
  public grn(
39
49
  ): string {
40
50
  return new Join(
@@ -0,0 +1,6 @@
1
+ export default class SeasonModelRef {
2
+ private readonly namespaceName;
3
+ private readonly seasonName;
4
+ constructor(namespaceName: string, seasonName: string);
5
+ grn(): string;
6
+ }
@@ -0,0 +1,38 @@
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
+ const func_1 = require("../../core/func");
19
+ class SeasonModelRef {
20
+ constructor(namespaceName, seasonName) {
21
+ this.namespaceName = namespaceName;
22
+ this.seasonName = seasonName;
23
+ }
24
+ grn() {
25
+ return new func_1.Join(":", [
26
+ "grn",
27
+ "gs2",
28
+ func_1.GetAttr.region().str(),
29
+ func_1.GetAttr.ownerId().str(),
30
+ "matchmaking",
31
+ this.namespaceName,
32
+ "model",
33
+ this.seasonName,
34
+ ]).str();
35
+ }
36
+ }
37
+ exports.default = SeasonModelRef;
38
+ //# sourceMappingURL=SeasonModelRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonModelRef.js","sourceRoot":"","sources":["SeasonModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,cAAc;IAI/B,YACI,aAAqB,EACrB,UAAkB;QAElB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,aAAa;YACb,IAAI,CAAC,aAAa;YAClB,OAAO;YACP,IAAI,CAAC,UAAU;SAClB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,iCAiCC"}
@@ -0,0 +1,52 @@
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 {GetAttr, Join} from "../../core/func";
18
+
19
+ export default class SeasonModelRef {
20
+ private readonly namespaceName: string;
21
+ private readonly seasonName: string;
22
+
23
+ public constructor(
24
+ namespaceName: string,
25
+ seasonName: string,
26
+ ) {
27
+ this.namespaceName = namespaceName;
28
+ this.seasonName = seasonName;
29
+ }
30
+
31
+ public grn(
32
+ ): string {
33
+ return new Join(
34
+ ":",
35
+ [
36
+ "grn",
37
+ "gs2",
38
+ GetAttr.region(
39
+ ).str(
40
+ ),
41
+ GetAttr.ownerId(
42
+ ).str(
43
+ ),
44
+ "matchmaking",
45
+ this.namespaceName,
46
+ "model",
47
+ this.seasonName,
48
+ ],
49
+ ).str(
50
+ );
51
+ }
52
+ }
@@ -1,3 +1,4 @@
1
1
  import NamespaceRef from "./NamespaceRef";
2
2
  import RatingModelRef from "./RatingModelRef";
3
- export { NamespaceRef, RatingModelRef, };
3
+ import SeasonModelRef from "./SeasonModelRef";
4
+ export { NamespaceRef, RatingModelRef, SeasonModelRef, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RatingModelRef = exports.NamespaceRef = void 0;
3
+ exports.SeasonModelRef = exports.RatingModelRef = exports.NamespaceRef = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -21,4 +21,6 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
21
21
  exports.NamespaceRef = NamespaceRef_1.default;
22
22
  const RatingModelRef_1 = tslib_1.__importDefault(require("./RatingModelRef"));
23
23
  exports.RatingModelRef = RatingModelRef_1.default;
24
+ const SeasonModelRef_1 = tslib_1.__importDefault(require("./SeasonModelRef"));
25
+ exports.SeasonModelRef = SeasonModelRef_1.default;
24
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAItC,uBAJG,sBAAY,CAIH;AAHhB,8EAA8C;AAI1C,yBAJG,wBAAc,CAIH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAKtC,uBALG,sBAAY,CAKH;AAJhB,8EAA8C;AAK1C,yBALG,wBAAc,CAKH;AAJlB,8EAA8C;AAK1C,yBALG,wBAAc,CAKH"}
@@ -15,8 +15,10 @@
15
15
  */
16
16
  import NamespaceRef from "./NamespaceRef";
17
17
  import RatingModelRef from "./RatingModelRef";
18
+ import SeasonModelRef from "./SeasonModelRef";
18
19
 
19
20
  export {
20
21
  NamespaceRef,
21
22
  RatingModelRef,
23
+ SeasonModelRef,
22
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"