gs2-cdk 1.0.43 → 1.0.45

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 (39) hide show
  1. package/inventory/model/HeldCount.d.ts +9 -0
  2. package/inventory/model/HeldCount.js +20 -0
  3. package/inventory/model/HeldCount.js.map +1 -0
  4. package/inventory/model/HeldCount.ts +44 -0
  5. package/inventory/model/index.d.ts +3 -1
  6. package/inventory/model/index.js +3 -1
  7. package/inventory/model/index.js.map +1 -1
  8. package/inventory/model/index.ts +4 -0
  9. package/inventory/model/options/HeldCountOptions.d.ts +2 -0
  10. package/inventory/model/options/HeldCountOptions.js +18 -0
  11. package/inventory/model/options/HeldCountOptions.js.map +1 -0
  12. package/inventory/model/options/HeldCountOptions.ts +19 -0
  13. package/inventory/ref/BigInventoryModelRef.d.ts +2 -0
  14. package/inventory/ref/BigInventoryModelRef.js +4 -0
  15. package/inventory/ref/BigInventoryModelRef.js.map +1 -1
  16. package/inventory/ref/BigInventoryModelRef.ts +15 -0
  17. package/inventory/ref/BigItemModelRef.d.ts +2 -0
  18. package/inventory/ref/BigItemModelRef.js +4 -0
  19. package/inventory/ref/BigItemModelRef.js.map +1 -1
  20. package/inventory/ref/BigItemModelRef.ts +14 -0
  21. package/inventory/stampSheet/SetBigItemByUserId.d.ts +4 -0
  22. package/inventory/stampSheet/SetBigItemByUserId.js +31 -0
  23. package/inventory/stampSheet/SetBigItemByUserId.js.map +1 -0
  24. package/inventory/stampSheet/SetBigItemByUserId.ts +41 -0
  25. package/inventory/stampSheet/SetSimpleItemsByUserId.d.ts +5 -0
  26. package/inventory/stampSheet/SetSimpleItemsByUserId.js +30 -0
  27. package/inventory/stampSheet/SetSimpleItemsByUserId.js.map +1 -0
  28. package/inventory/stampSheet/SetSimpleItemsByUserId.ts +40 -0
  29. package/inventory/stampSheet/index.d.ts +3 -1
  30. package/inventory/stampSheet/index.js +5 -1
  31. package/inventory/stampSheet/index.js.map +1 -1
  32. package/inventory/stampSheet/index.ts +4 -0
  33. package/jobQueue/model/Namespace.d.ts +11 -6
  34. package/jobQueue/model/Namespace.js +47 -22
  35. package/jobQueue/model/Namespace.js.map +1 -1
  36. package/jobQueue/model/Namespace.ts +56 -26
  37. package/jobQueue/model/options/NamespaceOptions.d.ts +4 -4
  38. package/jobQueue/model/options/NamespaceOptions.ts +4 -4
  39. package/package.json +1 -1
@@ -0,0 +1,9 @@
1
+ import { HeldCountOptions } from "./options/HeldCountOptions";
2
+ export default class HeldCount {
3
+ private readonly itemName;
4
+ private readonly count;
5
+ constructor(itemName: string, count: number, options?: HeldCountOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class HeldCount {
4
+ constructor(itemName, count, options = null) {
5
+ this.itemName = itemName;
6
+ this.count = count;
7
+ }
8
+ properties() {
9
+ let properties = {};
10
+ if (this.itemName != null) {
11
+ properties["itemName"] = this.itemName;
12
+ }
13
+ if (this.count != null) {
14
+ properties["count"] = this.count;
15
+ }
16
+ return properties;
17
+ }
18
+ }
19
+ exports.default = HeldCount;
20
+ //# sourceMappingURL=HeldCount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeldCount.js","sourceRoot":"","sources":["HeldCount.ts"],"names":[],"mappings":";;AAiBA,MAAqB,SAAS;IAI1B,YACI,QAAgB,EAChB,KAAa,EACb,UAAiC,IAAI;QAErC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,4BA0BC"}
@@ -0,0 +1,44 @@
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 { HeldCountOptions } from "./options/HeldCountOptions";
17
+
18
+ export default class HeldCount {
19
+ private readonly itemName: string;
20
+ private readonly count: number;
21
+
22
+ public constructor(
23
+ itemName: string,
24
+ count: number,
25
+ options: HeldCountOptions|null = null,
26
+ ) {
27
+ this.itemName = itemName;
28
+ this.count = count;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.itemName != null) {
36
+ properties["itemName"] = this.itemName;
37
+ }
38
+ if (this.count != null) {
39
+ properties["count"] = this.count;
40
+ }
41
+
42
+ return properties;
43
+ }
44
+ }
@@ -16,5 +16,7 @@ import AcquireCount from "./AcquireCount";
16
16
  import { AcquireCountOptions } from "./options/AcquireCountOptions";
17
17
  import ConsumeCount from "./ConsumeCount";
18
18
  import { ConsumeCountOptions } from "./options/ConsumeCountOptions";
19
+ import HeldCount from "./HeldCount";
20
+ import { HeldCountOptions } from "./options/HeldCountOptions";
19
21
  import CurrentMasterData from "./CurrentMasterData";
20
- export { Namespace, NamespaceOptions, InventoryModel, InventoryModelOptions, ItemModel, ItemModelOptions, SimpleInventoryModel, SimpleInventoryModelOptions, SimpleItemModel, SimpleItemModelOptions, BigInventoryModel, BigInventoryModelOptions, BigItemModel, BigItemModelOptions, AcquireCount, AcquireCountOptions, ConsumeCount, ConsumeCountOptions, CurrentMasterData, };
22
+ export { Namespace, NamespaceOptions, InventoryModel, InventoryModelOptions, ItemModel, ItemModelOptions, SimpleInventoryModel, SimpleInventoryModelOptions, SimpleItemModel, SimpleItemModelOptions, BigInventoryModel, BigInventoryModelOptions, BigItemModel, BigItemModelOptions, AcquireCount, AcquireCountOptions, ConsumeCount, ConsumeCountOptions, HeldCount, HeldCountOptions, CurrentMasterData, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CurrentMasterData = exports.ConsumeCount = exports.AcquireCount = exports.BigItemModel = exports.BigInventoryModel = exports.SimpleItemModel = exports.SimpleInventoryModel = exports.ItemModel = exports.InventoryModel = exports.Namespace = void 0;
3
+ exports.CurrentMasterData = exports.HeldCount = exports.ConsumeCount = exports.AcquireCount = exports.BigItemModel = exports.BigInventoryModel = exports.SimpleItemModel = exports.SimpleInventoryModel = exports.ItemModel = exports.InventoryModel = 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
@@ -35,6 +35,8 @@ const AcquireCount_1 = tslib_1.__importDefault(require("./AcquireCount"));
35
35
  exports.AcquireCount = AcquireCount_1.default;
36
36
  const ConsumeCount_1 = tslib_1.__importDefault(require("./ConsumeCount"));
37
37
  exports.ConsumeCount = ConsumeCount_1.default;
38
+ const HeldCount_1 = tslib_1.__importDefault(require("./HeldCount"));
39
+ exports.HeldCount = HeldCount_1.default;
38
40
  const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
39
41
  exports.CurrentMasterData = CurrentMasterData_1.default;
40
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAqBhC,oBArBG,mBAAS,CAqBH;AAnBb,8EAA8C;AAqB1C,yBArBG,wBAAc,CAqBH;AAnBlB,oEAAoC;AAqBhC,oBArBG,mBAAS,CAqBH;AAnBb,0FAA0D;AAqBtD,+BArBG,8BAAoB,CAqBH;AAnBxB,gFAAgD;AAqB5C,0BArBG,yBAAe,CAqBH;AAnBnB,oFAAoD;AAqBhD,4BArBG,2BAAiB,CAqBH;AAnBrB,0EAA0C;AAqBtC,uBArBG,sBAAY,CAqBH;AAnBhB,0EAA0C;AAqBtC,uBArBG,sBAAY,CAqBH;AAnBhB,0EAA0C;AAqBtC,uBArBG,sBAAY,CAqBH;AAnBhB,oFAAoD;AAqBhD,4BArBG,2BAAiB,CAqBH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAuBhC,oBAvBG,mBAAS,CAuBH;AArBb,8EAA8C;AAuB1C,yBAvBG,wBAAc,CAuBH;AArBlB,oEAAoC;AAuBhC,oBAvBG,mBAAS,CAuBH;AArBb,0FAA0D;AAuBtD,+BAvBG,8BAAoB,CAuBH;AArBxB,gFAAgD;AAuB5C,0BAvBG,yBAAe,CAuBH;AArBnB,oFAAoD;AAuBhD,4BAvBG,2BAAiB,CAuBH;AArBrB,0EAA0C;AAuBtC,uBAvBG,sBAAY,CAuBH;AArBhB,0EAA0C;AAuBtC,uBAvBG,sBAAY,CAuBH;AArBhB,0EAA0C;AAuBtC,uBAvBG,sBAAY,CAuBH;AArBhB,oEAAoC;AAuBhC,oBAvBG,mBAAS,CAuBH;AArBb,oFAAoD;AAuBhD,4BAvBG,2BAAiB,CAuBH"}
@@ -31,6 +31,8 @@ import AcquireCount from "./AcquireCount";
31
31
  import { AcquireCountOptions } from "./options/AcquireCountOptions";
32
32
  import ConsumeCount from "./ConsumeCount";
33
33
  import { ConsumeCountOptions } from "./options/ConsumeCountOptions";
34
+ import HeldCount from "./HeldCount";
35
+ import { HeldCountOptions } from "./options/HeldCountOptions";
34
36
  import CurrentMasterData from "./CurrentMasterData";
35
37
 
36
38
  export {
@@ -52,5 +54,7 @@ export {
52
54
  AcquireCountOptions,
53
55
  ConsumeCount,
54
56
  ConsumeCountOptions,
57
+ HeldCount,
58
+ HeldCountOptions,
55
59
  CurrentMasterData,
56
60
  }
@@ -0,0 +1,2 @@
1
+ export interface HeldCountOptions {
2
+ }
@@ -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=HeldCountOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeldCountOptions.js","sourceRoot":"","sources":["HeldCountOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,19 @@
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 HeldCountOptions {
18
+ }
19
+
@@ -1,5 +1,6 @@
1
1
  import BigItemModelRef from "./BigItemModelRef";
2
2
  import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
3
+ import SetBigItemByUserId from "../stampSheet/SetBigItemByUserId";
3
4
  import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
4
5
  import VerifyBigItemByUserId from "../stampSheet/VerifyBigItemByUserId";
5
6
  export default class BigInventoryModelRef {
@@ -8,6 +9,7 @@ export default class BigInventoryModelRef {
8
9
  constructor(namespaceName: string, inventoryName: string);
9
10
  bigItemModel(itemName: string): BigItemModelRef;
10
11
  acquireBigItem(itemName: string, acquireCount: string, userId?: string | null): AcquireBigItemByUserId;
12
+ setBigItem(itemName: string, count: string, userId?: string | null): SetBigItemByUserId;
11
13
  consumeBigItem(itemName: string, consumeCount: string, userId?: string | null): ConsumeBigItemByUserId;
12
14
  verifyBigItem(itemName: string, verifyType: string, count: string, userId?: string | null): VerifyBigItemByUserId;
13
15
  grn(): string;
@@ -19,6 +19,7 @@ const tslib_1 = require("tslib");
19
19
  const func_1 = require("../../core/func");
20
20
  const BigItemModelRef_1 = tslib_1.__importDefault(require("./BigItemModelRef"));
21
21
  const AcquireBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/AcquireBigItemByUserId"));
22
+ const SetBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/SetBigItemByUserId"));
22
23
  const ConsumeBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ConsumeBigItemByUserId"));
23
24
  const VerifyBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyBigItemByUserId"));
24
25
  class BigInventoryModelRef {
@@ -32,6 +33,9 @@ class BigInventoryModelRef {
32
33
  acquireBigItem(itemName, acquireCount, userId = "#{userId}") {
33
34
  return new AcquireBigItemByUserId_1.default(this.namespaceName, this.inventoryName, itemName, acquireCount, userId);
34
35
  }
36
+ setBigItem(itemName, count, userId = "#{userId}") {
37
+ return new SetBigItemByUserId_1.default(this.namespaceName, this.inventoryName, itemName, count, userId);
38
+ }
35
39
  consumeBigItem(itemName, consumeCount, userId = "#{userId}") {
36
40
  return new ConsumeBigItemByUserId_1.default(this.namespaceName, this.inventoryName, itemName, consumeCount, userId);
37
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BigInventoryModelRef.js","sourceRoot":"","sources":["BigInventoryModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,gFAAgD;AAChD,0GAA0E;AAC1E,0GAA0E;AAC1E,wGAAwE;AAExE,MAAqB,oBAAoB;IAIrC,YACI,aAAqB,EACrB,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,QAAgB;QAEhB,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,CACX,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,QAAgB,EAChB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,QAAgB,EAChB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,QAAgB,EAChB,UAAkB,EAClB,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,UAAU,EACV,KAAK,EACL,MAAM,CACT,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,WAAW;YACX,IAAI,CAAC,aAAa;YAClB,KAAK;YACL,OAAO;YACP,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAxFD,uCAwFC"}
1
+ {"version":3,"file":"BigInventoryModelRef.js","sourceRoot":"","sources":["BigInventoryModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,gFAAgD;AAChD,0GAA0E;AAC1E,kGAAkE;AAClE,0GAA0E;AAC1E,wGAAwE;AAExE,MAAqB,oBAAoB;IAIrC,YACI,aAAqB,EACrB,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,QAAgB;QAEhB,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,CACX,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,QAAgB,EAChB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,UAAU,CACb,QAAgB,EAChB,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,QAAgB,EAChB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,QAAgB,EAChB,UAAkB,EAClB,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,UAAU,EACV,KAAK,EACL,MAAM,CACT,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,WAAW;YACX,IAAI,CAAC,aAAa;YAClB,KAAK;YACL,OAAO;YACP,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAtGD,uCAsGC"}
@@ -17,6 +17,7 @@
17
17
  import {GetAttr, Join} from "../../core/func";
18
18
  import BigItemModelRef from "./BigItemModelRef";
19
19
  import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
20
+ import SetBigItemByUserId from "../stampSheet/SetBigItemByUserId";
20
21
  import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
21
22
  import VerifyBigItemByUserId from "../stampSheet/VerifyBigItemByUserId";
22
23
 
@@ -56,6 +57,20 @@ export default class BigInventoryModelRef {
56
57
  );
57
58
  }
58
59
 
60
+ public setBigItem(
61
+ itemName: string,
62
+ count: string,
63
+ userId: string|null = "#{userId}",
64
+ ): SetBigItemByUserId {
65
+ return new SetBigItemByUserId(
66
+ this.namespaceName,
67
+ this.inventoryName,
68
+ itemName,
69
+ count,
70
+ userId,
71
+ );
72
+ }
73
+
59
74
  public consumeBigItem(
60
75
  itemName: string,
61
76
  consumeCount: string,
@@ -1,4 +1,5 @@
1
1
  import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
2
+ import SetBigItemByUserId from "../stampSheet/SetBigItemByUserId";
2
3
  import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
3
4
  import VerifyBigItemByUserId from "../stampSheet/VerifyBigItemByUserId";
4
5
  export default class BigItemModelRef {
@@ -7,6 +8,7 @@ export default class BigItemModelRef {
7
8
  private readonly itemName;
8
9
  constructor(namespaceName: string, inventoryName: string, itemName: string);
9
10
  acquireBigItem(acquireCount: string, userId?: string | null): AcquireBigItemByUserId;
11
+ setBigItem(count: string, userId?: string | null): SetBigItemByUserId;
10
12
  consumeBigItem(consumeCount: string, userId?: string | null): ConsumeBigItemByUserId;
11
13
  verifyBigItem(verifyType: string, count: string, userId?: string | null): VerifyBigItemByUserId;
12
14
  grn(): string;
@@ -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 AcquireBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/AcquireBigItemByUserId"));
21
+ const SetBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/SetBigItemByUserId"));
21
22
  const ConsumeBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ConsumeBigItemByUserId"));
22
23
  const VerifyBigItemByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyBigItemByUserId"));
23
24
  class BigItemModelRef {
@@ -29,6 +30,9 @@ class BigItemModelRef {
29
30
  acquireBigItem(acquireCount, userId = "#{userId}") {
30
31
  return new AcquireBigItemByUserId_1.default(this.namespaceName, this.inventoryName, this.itemName, acquireCount, userId);
31
32
  }
33
+ setBigItem(count, userId = "#{userId}") {
34
+ return new SetBigItemByUserId_1.default(this.namespaceName, this.inventoryName, this.itemName, count, userId);
35
+ }
32
36
  consumeBigItem(consumeCount, userId = "#{userId}") {
33
37
  return new ConsumeBigItemByUserId_1.default(this.namespaceName, this.inventoryName, this.itemName, consumeCount, userId);
34
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BigItemModelRef.js","sourceRoot":"","sources":["BigItemModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0GAA0E;AAC1E,0GAA0E;AAC1E,wGAAwE;AAExE,MAAqB,eAAe;IAKhC,YACI,aAAqB,EACrB,aAAqB,EACrB,QAAgB;QAEhB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAEM,cAAc,CACjB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,QAAQ,EACb,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,YAAoB,EACpB,SAAsB,WAAW;QAEjC,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,QAAQ,EACb,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,UAAkB,EAClB,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,QAAQ,EACb,UAAU,EACV,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;Y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AsB,WAAW;QAEjC,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,QAAQ,EACb,UAAU,EACV,KAAK,EACL,MAAM,CACT,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,WAAW;YACX,IAAI,CAAC,aAAa;YAClB,KAAK;YACL,OAAO;YACP,IAAI,CAAC,aAAa;YAClB,MAAM;YACN,IAAI,CAAC,QAAQ;SAChB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA7FD,kCA6FC"}
@@ -16,6 +16,7 @@
16
16
 
17
17
  import {GetAttr, Join} from "../../core/func";
18
18
  import AcquireBigItemByUserId from "../stampSheet/AcquireBigItemByUserId";
19
+ import SetBigItemByUserId from "../stampSheet/SetBigItemByUserId";
19
20
  import ConsumeBigItemByUserId from "../stampSheet/ConsumeBigItemByUserId";
20
21
  import VerifyBigItemByUserId from "../stampSheet/VerifyBigItemByUserId";
21
22
 
@@ -47,6 +48,19 @@ export default class BigItemModelRef {
47
48
  );
48
49
  }
49
50
 
51
+ public setBigItem(
52
+ count: string,
53
+ userId: string|null = "#{userId}",
54
+ ): SetBigItemByUserId {
55
+ return new SetBigItemByUserId(
56
+ this.namespaceName,
57
+ this.inventoryName,
58
+ this.itemName,
59
+ count,
60
+ userId,
61
+ );
62
+ }
63
+
50
64
  public consumeBigItem(
51
65
  consumeCount: string,
52
66
  userId: string|null = "#{userId}",
@@ -0,0 +1,4 @@
1
+ import { AcquireAction } from "../../core/model";
2
+ export default class SetBigItemByUserId extends AcquireAction {
3
+ constructor(namespaceName: string, inventoryName: string, itemName: string, count: string, userId?: string | null);
4
+ }
@@ -0,0 +1,31 @@
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 model_1 = require("../../core/model");
19
+ class SetBigItemByUserId extends model_1.AcquireAction {
20
+ constructor(namespaceName, inventoryName, itemName, count, userId = "#{userId}") {
21
+ let properties = {};
22
+ properties["namespaceName"] = namespaceName;
23
+ properties["inventoryName"] = inventoryName;
24
+ properties["itemName"] = itemName;
25
+ properties["count"] = count;
26
+ properties["userId"] = userId;
27
+ super("Gs2Inventory:SetBigItemByUserId", properties);
28
+ }
29
+ }
30
+ exports.default = SetBigItemByUserId;
31
+ //# sourceMappingURL=SetBigItemByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetBigItemByUserId.js","sourceRoot":"","sources":["SetBigItemByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,kBAAmB,SAAQ,qBAAa;IAEzD,YACI,aAAqB,EACrB,aAAqB,EACrB,QAAgB,EAChB,KAAa,EACb,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAA;QACjC,UAAU,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA;QAC3B,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,iCAAiC,EACjC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAtBD,qCAsBC"}
@@ -0,0 +1,41 @@
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 {AcquireAction, ConsumeAction} from "../../core/model";
18
+
19
+ export default class SetBigItemByUserId extends AcquireAction {
20
+
21
+ public constructor(
22
+ namespaceName: string,
23
+ inventoryName: string,
24
+ itemName: string,
25
+ count: string,
26
+ userId: string|null = "#{userId}",
27
+ ) {
28
+ let properties: {[name: string]: any} = {};
29
+
30
+ properties["namespaceName"] = namespaceName
31
+ properties["inventoryName"] = inventoryName
32
+ properties["itemName"] = itemName
33
+ properties["count"] = count
34
+ properties["userId"] = userId
35
+
36
+ super(
37
+ "Gs2Inventory:SetBigItemByUserId",
38
+ properties,
39
+ );
40
+ }
41
+ }
@@ -0,0 +1,5 @@
1
+ import { AcquireAction } from "../../core/model";
2
+ import HeldCount from "../model/HeldCount";
3
+ export default class SetSimpleItemsByUserId extends AcquireAction {
4
+ constructor(namespaceName: string, inventoryName: string, counts: HeldCount[], userId?: string | null);
5
+ }
@@ -0,0 +1,30 @@
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 model_1 = require("../../core/model");
19
+ class SetSimpleItemsByUserId extends model_1.AcquireAction {
20
+ constructor(namespaceName, inventoryName, counts, userId = "#{userId}") {
21
+ let properties = {};
22
+ properties["namespaceName"] = namespaceName;
23
+ properties["inventoryName"] = inventoryName;
24
+ properties["counts"] = counts;
25
+ properties["userId"] = userId;
26
+ super("Gs2Inventory:SetSimpleItemsByUserId", properties);
27
+ }
28
+ }
29
+ exports.default = SetSimpleItemsByUserId;
30
+ //# sourceMappingURL=SetSimpleItemsByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetSimpleItemsByUserId.js","sourceRoot":"","sources":["SetSimpleItemsByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,sBAAuB,SAAQ,qBAAa;IAE7D,YACI,aAAqB,EACrB,aAAqB,EACrB,MAAmB,EACnB,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAC7B,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,qCAAqC,EACrC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AApBD,yCAoBC"}
@@ -0,0 +1,40 @@
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 {AcquireAction, ConsumeAction} from "../../core/model";
18
+ import HeldCount from "../model/HeldCount";
19
+
20
+ export default class SetSimpleItemsByUserId extends AcquireAction {
21
+
22
+ public constructor(
23
+ namespaceName: string,
24
+ inventoryName: string,
25
+ counts: HeldCount[],
26
+ userId: string|null = "#{userId}",
27
+ ) {
28
+ let properties: {[name: string]: any} = {};
29
+
30
+ properties["namespaceName"] = namespaceName
31
+ properties["inventoryName"] = inventoryName
32
+ properties["counts"] = counts
33
+ properties["userId"] = userId
34
+
35
+ super(
36
+ "Gs2Inventory:SetSimpleItemsByUserId",
37
+ properties,
38
+ );
39
+ }
40
+ }
@@ -4,7 +4,9 @@ import AcquireItemSetByUserId from "./AcquireItemSetByUserId";
4
4
  import AddReferenceOfByUserId from "./AddReferenceOfByUserId";
5
5
  import DeleteReferenceOfByUserId from "./DeleteReferenceOfByUserId";
6
6
  import AcquireSimpleItemsByUserId from "./AcquireSimpleItemsByUserId";
7
+ import SetSimpleItemsByUserId from "./SetSimpleItemsByUserId";
7
8
  import AcquireBigItemByUserId from "./AcquireBigItemByUserId";
9
+ import SetBigItemByUserId from "./SetBigItemByUserId";
8
10
  import VerifyInventoryCurrentMaxCapacityByUserId from "./VerifyInventoryCurrentMaxCapacityByUserId";
9
11
  import ConsumeItemSetByUserId from "./ConsumeItemSetByUserId";
10
12
  import VerifyItemSetByUserId from "./VerifyItemSetByUserId";
@@ -13,4 +15,4 @@ import ConsumeSimpleItemsByUserId from "./ConsumeSimpleItemsByUserId";
13
15
  import VerifySimpleItemByUserId from "./VerifySimpleItemByUserId";
14
16
  import ConsumeBigItemByUserId from "./ConsumeBigItemByUserId";
15
17
  import VerifyBigItemByUserId from "./VerifyBigItemByUserId";
16
- export { AddCapacityByUserId, SetCapacityByUserId, AcquireItemSetByUserId, AddReferenceOfByUserId, DeleteReferenceOfByUserId, AcquireSimpleItemsByUserId, AcquireBigItemByUserId, VerifyInventoryCurrentMaxCapacityByUserId, ConsumeItemSetByUserId, VerifyItemSetByUserId, VerifyReferenceOfByUserId, ConsumeSimpleItemsByUserId, VerifySimpleItemByUserId, ConsumeBigItemByUserId, VerifyBigItemByUserId, };
18
+ export { AddCapacityByUserId, SetCapacityByUserId, AcquireItemSetByUserId, AddReferenceOfByUserId, DeleteReferenceOfByUserId, AcquireSimpleItemsByUserId, SetSimpleItemsByUserId, AcquireBigItemByUserId, SetBigItemByUserId, VerifyInventoryCurrentMaxCapacityByUserId, ConsumeItemSetByUserId, VerifyItemSetByUserId, VerifyReferenceOfByUserId, ConsumeSimpleItemsByUserId, VerifySimpleItemByUserId, ConsumeBigItemByUserId, VerifyBigItemByUserId, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VerifyBigItemByUserId = exports.ConsumeBigItemByUserId = exports.VerifySimpleItemByUserId = exports.ConsumeSimpleItemsByUserId = exports.VerifyReferenceOfByUserId = exports.VerifyItemSetByUserId = exports.ConsumeItemSetByUserId = exports.VerifyInventoryCurrentMaxCapacityByUserId = exports.AcquireBigItemByUserId = exports.AcquireSimpleItemsByUserId = exports.DeleteReferenceOfByUserId = exports.AddReferenceOfByUserId = exports.AcquireItemSetByUserId = exports.SetCapacityByUserId = exports.AddCapacityByUserId = void 0;
3
+ exports.VerifyBigItemByUserId = exports.ConsumeBigItemByUserId = exports.VerifySimpleItemByUserId = exports.ConsumeSimpleItemsByUserId = exports.VerifyReferenceOfByUserId = exports.VerifyItemSetByUserId = exports.ConsumeItemSetByUserId = exports.VerifyInventoryCurrentMaxCapacityByUserId = exports.SetBigItemByUserId = exports.AcquireBigItemByUserId = exports.SetSimpleItemsByUserId = exports.AcquireSimpleItemsByUserId = exports.DeleteReferenceOfByUserId = exports.AddReferenceOfByUserId = exports.AcquireItemSetByUserId = exports.SetCapacityByUserId = exports.AddCapacityByUserId = 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,8 +29,12 @@ const DeleteReferenceOfByUserId_1 = tslib_1.__importDefault(require("./DeleteRef
29
29
  exports.DeleteReferenceOfByUserId = DeleteReferenceOfByUserId_1.default;
30
30
  const AcquireSimpleItemsByUserId_1 = tslib_1.__importDefault(require("./AcquireSimpleItemsByUserId"));
31
31
  exports.AcquireSimpleItemsByUserId = AcquireSimpleItemsByUserId_1.default;
32
+ const SetSimpleItemsByUserId_1 = tslib_1.__importDefault(require("./SetSimpleItemsByUserId"));
33
+ exports.SetSimpleItemsByUserId = SetSimpleItemsByUserId_1.default;
32
34
  const AcquireBigItemByUserId_1 = tslib_1.__importDefault(require("./AcquireBigItemByUserId"));
33
35
  exports.AcquireBigItemByUserId = AcquireBigItemByUserId_1.default;
36
+ const SetBigItemByUserId_1 = tslib_1.__importDefault(require("./SetBigItemByUserId"));
37
+ exports.SetBigItemByUserId = SetBigItemByUserId_1.default;
34
38
  const VerifyInventoryCurrentMaxCapacityByUserId_1 = tslib_1.__importDefault(require("./VerifyInventoryCurrentMaxCapacityByUserId"));
35
39
  exports.VerifyInventoryCurrentMaxCapacityByUserId = VerifyInventoryCurrentMaxCapacityByUserId_1.default;
36
40
  const ConsumeItemSetByUserId_1 = tslib_1.__importDefault(require("./ConsumeItemSetByUserId"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wFAAwD;AAiBpD,8BAjBG,6BAAmB,CAiBH;AAhBvB,wFAAwD;AAiBpD,8BAjBG,6BAAmB,C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B7C,8FAA8D;AAmB1D,iCAnBG,gCAAsB,CAmBH;AAlB1B,4FAA4D;AAmBxD,gCAnBG,+BAAqB,CAmBH;AAlBzB,oGAAoE;AAmBhE,oCAnBG,mCAAyB,CAmBH;AAlB7B,sGAAsE;AAmBlE,qCAnBG,oCAA0B,CAmBH;AAlB9B,kGAAkE;AAmB9D,mCAnBG,kCAAwB,CAmBH;AAlB5B,8FAA8D;AAmB1D,iCAnBG,gCAAsB,CAmBH;AAlB1B,4FAA4D;AAmBxD,gCAnBG,+BAAqB,CAmBH"}
@@ -19,7 +19,9 @@ import AcquireItemSetByUserId from "./AcquireItemSetByUserId";
19
19
  import AddReferenceOfByUserId from "./AddReferenceOfByUserId";
20
20
  import DeleteReferenceOfByUserId from "./DeleteReferenceOfByUserId";
21
21
  import AcquireSimpleItemsByUserId from "./AcquireSimpleItemsByUserId";
22
+ import SetSimpleItemsByUserId from "./SetSimpleItemsByUserId";
22
23
  import AcquireBigItemByUserId from "./AcquireBigItemByUserId";
24
+ import SetBigItemByUserId from "./SetBigItemByUserId";
23
25
  import VerifyInventoryCurrentMaxCapacityByUserId from "./VerifyInventoryCurrentMaxCapacityByUserId";
24
26
  import ConsumeItemSetByUserId from "./ConsumeItemSetByUserId";
25
27
  import VerifyItemSetByUserId from "./VerifyItemSetByUserId";
@@ -36,7 +38,9 @@ export {
36
38
  AddReferenceOfByUserId,
37
39
  DeleteReferenceOfByUserId,
38
40
  AcquireSimpleItemsByUserId,
41
+ SetSimpleItemsByUserId,
39
42
  AcquireBigItemByUserId,
43
+ SetBigItemByUserId,
40
44
  VerifyInventoryCurrentMaxCapacityByUserId,
41
45
  ConsumeItemSetByUserId,
42
46
  VerifyItemSetByUserId,
@@ -1,15 +1,20 @@
1
+ import { CdkResource, Stack } from "../../core/model";
2
+ import { GetAttr } from "../../core/func";
3
+ import NamespaceRef from "../ref/NamespaceRef";
1
4
  import { NamespaceOptions } from "./options/NamespaceOptions";
2
- export default class Namespace {
3
- private readonly ownerId;
5
+ export default class Namespace extends CdkResource {
6
+ private readonly stack;
4
7
  private readonly name;
5
- private readonly enableAutoRun;
6
8
  private readonly description;
7
- private readonly runNotification;
8
9
  private readonly pushNotification;
10
+ private readonly runNotification;
9
11
  private readonly logSetting;
10
- private readonly revision;
11
- constructor(ownerId: string, name: string, enableAutoRun: boolean, options?: NamespaceOptions | null);
12
+ constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
13
+ alternateKeys(): string;
14
+ resourceType(): string;
12
15
  properties(): {
13
16
  [name: string]: any;
14
17
  };
18
+ ref(): NamespaceRef;
19
+ getAttrNamespaceId(): GetAttr;
15
20
  }
@@ -1,48 +1,73 @@
1
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
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
- class Namespace {
4
- constructor(ownerId, name, enableAutoRun, options = null) {
5
- var _a, _b, _c, _d, _e;
18
+ const tslib_1 = require("tslib");
19
+ const model_1 = require("../../core/model");
20
+ const func_1 = require("../../core/func");
21
+ const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
22
+ class Namespace extends model_1.CdkResource {
23
+ constructor(stack, name, options = null) {
24
+ var _a, _b, _c, _d;
25
+ super("JobQueue_Namespace_" + name);
6
26
  this.description = null;
7
- this.runNotification = null;
8
27
  this.pushNotification = null;
28
+ this.runNotification = null;
9
29
  this.logSetting = null;
10
- this.revision = null;
11
- this.ownerId = ownerId;
30
+ this.stack = stack;
12
31
  this.name = name;
13
- this.enableAutoRun = enableAutoRun;
14
32
  this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
15
- this.runNotification = (_b = options === null || options === void 0 ? void 0 : options.runNotification) !== null && _b !== void 0 ? _b : null;
16
- this.pushNotification = (_c = options === null || options === void 0 ? void 0 : options.pushNotification) !== null && _c !== void 0 ? _c : null;
33
+ this.pushNotification = (_b = options === null || options === void 0 ? void 0 : options.pushNotification) !== null && _b !== void 0 ? _b : null;
34
+ this.runNotification = (_c = options === null || options === void 0 ? void 0 : options.runNotification) !== null && _c !== void 0 ? _c : null;
17
35
  this.logSetting = (_d = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _d !== void 0 ? _d : null;
18
- this.revision = (_e = options === null || options === void 0 ? void 0 : options.revision) !== null && _e !== void 0 ? _e : null;
36
+ stack.addResource(this);
37
+ }
38
+ alternateKeys() {
39
+ return "name";
40
+ }
41
+ resourceType() {
42
+ return "GS2::JobQueue::Namespace";
19
43
  }
20
44
  properties() {
21
45
  var _a, _b, _c;
22
46
  let properties = {};
23
- if (this.ownerId != null) {
24
- properties["ownerId"] = this.ownerId;
25
- }
26
47
  if (this.name != null) {
27
- properties["name"] = this.name;
48
+ properties["Name"] = this.name;
28
49
  }
29
50
  if (this.description != null) {
30
- properties["description"] = this.description;
51
+ properties["Description"] = this.description;
31
52
  }
32
- if (this.enableAutoRun != null) {
33
- properties["enableAutoRun"] = this.enableAutoRun;
53
+ properties["EnableAutoRun"] = true;
54
+ if (this.pushNotification != null) {
55
+ properties["PushNotification"] = (_a = this.pushNotification) === null || _a === void 0 ? void 0 : _a.properties();
34
56
  }
35
57
  if (this.runNotification != null) {
36
- properties["runNotification"] = (_a = this.runNotification) === null || _a === void 0 ? void 0 : _a.properties();
37
- }
38
- if (this.pushNotification != null) {
39
- properties["pushNotification"] = (_b = this.pushNotification) === null || _b === void 0 ? void 0 : _b.properties();
58
+ properties["RunNotification"] = (_b = this.runNotification) === null || _b === void 0 ? void 0 : _b.properties();
40
59
  }
41
60
  if (this.logSetting != null) {
42
- properties["logSetting"] = (_c = this.logSetting) === null || _c === void 0 ? void 0 : _c.properties();
61
+ properties["LogSetting"] = (_c = this.logSetting) === null || _c === void 0 ? void 0 : _c.properties();
43
62
  }
44
63
  return properties;
45
64
  }
65
+ ref() {
66
+ return new NamespaceRef_1.default(this.name);
67
+ }
68
+ getAttrNamespaceId() {
69
+ return new func_1.GetAttr(this, "Item.NamespaceId", null);
70
+ }
46
71
  }
47
72
  exports.default = Namespace;
48
73
  //# sourceMappingURL=Namespace.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";;AAmBA,MAAqB,SAAS;IAU1B,YACI,OAAe,EACf,IAAY,EACZ,aAAsB,EACtB,UAAiC,IAAI;;QAVxB,gBAAW,GAAgB,IAAI,CAAC;QAChC,oBAAe,GAA6B,IAAI,CAAC;QACjD,qBAAgB,GAA6B,IAAI,CAAC;QAClD,eAAU,GAAoB,IAAI,CAAC;QACnC,aAAQ,GAAgB,IAAI,CAAC;QAQ1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,eAAe,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,IAAI,CAAC;QACxD,IAAI,CAAC,gBAAgB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;QAC1D,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C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G,IAAI,CAAA;QAClC,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EACjE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,MAAA,IAAI,CAAC,eAAe,0CAAE,UAAU,EAC/D,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;CACJ;AAjFD,4BAiFC"}
@@ -13,65 +13,95 @@
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
15
  */
16
- import { NotificationSetting } from "../../core/model";
17
- import { LogSetting } from "../../core/model";
16
+
17
+ import {CdkResource, Stack} from "../../core/model";
18
+ import {GetAttr} from "../../core/func";
19
+ import NotificationSetting from "../../core/model/NotificationSetting";
20
+ import LogSetting from "../../core/model/LogSetting";
21
+
22
+ import NamespaceRef from "../ref/NamespaceRef";
23
+
18
24
  import { NamespaceOptions } from "./options/NamespaceOptions";
19
25
 
20
- export default class Namespace {
21
- private readonly ownerId: string;
26
+ export default class Namespace extends CdkResource {
27
+ private readonly stack: Stack;
22
28
  private readonly name: string;
23
- private readonly enableAutoRun: boolean;
24
29
  private readonly description: string|null = null;
25
- private readonly runNotification: NotificationSetting|null = null;
26
30
  private readonly pushNotification: NotificationSetting|null = null;
31
+ private readonly runNotification: NotificationSetting|null = null;
27
32
  private readonly logSetting: LogSetting|null = null;
28
- private readonly revision: number|null = null;
29
33
 
30
34
  public constructor(
31
- ownerId: string,
35
+ stack: Stack,
32
36
  name: string,
33
- enableAutoRun: boolean,
34
37
  options: NamespaceOptions|null = null,
35
38
  ) {
36
- this.ownerId = ownerId;
39
+ super(
40
+ "JobQueue_Namespace_" + name
41
+ );
42
+
43
+ this.stack = stack;
37
44
  this.name = name;
38
- this.enableAutoRun = enableAutoRun;
39
45
  this.description = options?.description ?? null;
40
- this.runNotification = options?.runNotification ?? null;
41
46
  this.pushNotification = options?.pushNotification ?? null;
47
+ this.runNotification = options?.runNotification ?? null;
42
48
  this.logSetting = options?.logSetting ?? null;
43
- this.revision = options?.revision ?? null;
49
+ stack.addResource(
50
+ this,
51
+ );
52
+ }
53
+
54
+
55
+ public alternateKeys(
56
+ ) {
57
+ return "name";
58
+ }
59
+
60
+ public resourceType(
61
+ ): string {
62
+ return "GS2::JobQueue::Namespace";
44
63
  }
45
64
 
46
65
  public properties(
47
66
  ): {[name: string]: any} {
48
67
  let properties: {[name: string]: any} = {};
49
68
 
50
- if (this.ownerId != null) {
51
- properties["ownerId"] = this.ownerId;
52
- }
53
69
  if (this.name != null) {
54
- properties["name"] = this.name;
70
+ properties["Name"] = this.name;
55
71
  }
56
72
  if (this.description != null) {
57
- properties["description"] = this.description;
73
+ properties["Description"] = this.description;
58
74
  }
59
- if (this.enableAutoRun != null) {
60
- properties["enableAutoRun"] = this.enableAutoRun;
61
- }
62
- if (this.runNotification != null) {
63
- properties["runNotification"] = this.runNotification?.properties(
75
+ properties["EnableAutoRun"] = true
76
+ if (this.pushNotification != null) {
77
+ properties["PushNotification"] = this.pushNotification?.properties(
64
78
  );
65
79
  }
66
- if (this.pushNotification != null) {
67
- properties["pushNotification"] = this.pushNotification?.properties(
80
+ if (this.runNotification != null) {
81
+ properties["RunNotification"] = this.runNotification?.properties(
68
82
  );
69
83
  }
70
84
  if (this.logSetting != null) {
71
- properties["logSetting"] = this.logSetting?.properties(
85
+ properties["LogSetting"] = this.logSetting?.properties(
72
86
  );
73
87
  }
74
88
 
75
89
  return properties;
76
90
  }
91
+
92
+ public ref(
93
+ ): NamespaceRef {
94
+ return new NamespaceRef(
95
+ this.name!,
96
+ );
97
+ }
98
+
99
+ public getAttrNamespaceId(
100
+ ): GetAttr {
101
+ return new GetAttr(
102
+ this,
103
+ "Item.NamespaceId",
104
+ null,
105
+ );
106
+ }
77
107
  }
@@ -1,9 +1,9 @@
1
- import { NotificationSetting } from "../../../core/model";
2
- import { LogSetting } from "../../../core/model";
1
+ import NotificationSetting from "../../../core/model/NotificationSetting";
2
+ import LogSetting from "../../../core/model/LogSetting";
3
3
  export interface NamespaceOptions {
4
4
  description?: string | null;
5
- runNotification?: NotificationSetting | null;
5
+ enableAutoRun?: boolean | null;
6
6
  pushNotification?: NotificationSetting | null;
7
+ runNotification?: NotificationSetting | null;
7
8
  logSetting?: LogSetting | null;
8
- revision?: number | null;
9
9
  }
@@ -13,14 +13,14 @@
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
15
  */
16
- import { NotificationSetting } from "../../../core/model";
17
- import { LogSetting } from "../../../core/model";
16
+ import NotificationSetting from "../../../core/model/NotificationSetting";
17
+ import LogSetting from "../../../core/model/LogSetting";
18
18
 
19
19
  export interface NamespaceOptions {
20
20
  description?: string|null;
21
- runNotification?: NotificationSetting|null;
21
+ enableAutoRun?: boolean|null;
22
22
  pushNotification?: NotificationSetting|null;
23
+ runNotification?: NotificationSetting|null;
23
24
  logSetting?: LogSetting|null;
24
- revision?: number|null;
25
25
  }
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"