gs2-cdk 1.0.80 → 1.0.82

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 (124) hide show
  1. package/account/index.d.ts +3 -0
  2. package/account/index.js +5 -0
  3. package/account/index.js.map +1 -1
  4. package/account/index.ts +11 -0
  5. package/account/ref/BanStatusRef.d.ts +4 -0
  6. package/account/ref/BanStatusRef.js +24 -0
  7. package/account/ref/BanStatusRef.js.map +1 -0
  8. package/account/ref/BanStatusRef.ts +27 -0
  9. package/account/ref/index.d.ts +2 -1
  10. package/account/ref/index.js +3 -1
  11. package/account/ref/index.js.map +1 -1
  12. package/account/ref/index.ts +2 -0
  13. package/exchange/model/LogCost.d.ts +10 -0
  14. package/exchange/model/LogCost.js +26 -0
  15. package/exchange/model/LogCost.js.map +1 -0
  16. package/exchange/model/LogCost.ts +49 -0
  17. package/exchange/model/index.d.ts +3 -1
  18. package/exchange/model/index.js +3 -1
  19. package/exchange/model/index.js.map +1 -1
  20. package/exchange/model/index.ts +4 -0
  21. package/exchange/model/options/LogCostOptions.d.ts +3 -0
  22. package/exchange/model/options/LogCostOptions.js +18 -0
  23. package/exchange/model/options/LogCostOptions.js.map +1 -0
  24. package/exchange/model/options/LogCostOptions.ts +20 -0
  25. package/log/model/InGameLog.d.ts +12 -0
  26. package/log/model/InGameLog.js +35 -0
  27. package/log/model/InGameLog.js.map +1 -0
  28. package/log/model/InGameLog.ts +62 -0
  29. package/log/model/options/InGameLogOptions.d.ts +5 -0
  30. package/log/model/options/InGameLogOptions.js +3 -0
  31. package/log/model/options/InGameLogOptions.js.map +1 -0
  32. package/log/model/options/InGameLogOptions.ts +22 -0
  33. package/log/ref/InGameLogRef.d.ts +5 -0
  34. package/log/ref/InGameLogRef.js +25 -0
  35. package/log/ref/InGameLogRef.js.map +1 -0
  36. package/log/ref/InGameLogRef.ts +30 -0
  37. package/mission/model/CounterModel.js.map +1 -1
  38. package/mission/model/CounterModel.ts +1 -0
  39. package/mission/model/CounterScopeModel.d.ts +14 -5
  40. package/mission/model/CounterScopeModel.js +42 -15
  41. package/mission/model/CounterScopeModel.js.map +1 -1
  42. package/mission/model/CounterScopeModel.ts +57 -7
  43. package/mission/model/ScopedValue.d.ts +9 -2
  44. package/mission/model/ScopedValue.js +26 -4
  45. package/mission/model/ScopedValue.js.map +1 -1
  46. package/mission/model/ScopedValue.ts +47 -3
  47. package/mission/model/TargetCounterModel.d.ts +8 -1
  48. package/mission/model/TargetCounterModel.js +23 -2
  49. package/mission/model/TargetCounterModel.js.map +1 -1
  50. package/mission/model/TargetCounterModel.ts +46 -0
  51. package/mission/model/enum/CounterScopeModelScopeType.d.ts +5 -0
  52. package/mission/model/enum/CounterScopeModelScopeType.js +23 -0
  53. package/mission/model/enum/CounterScopeModelScopeType.js.map +1 -0
  54. package/mission/model/enum/CounterScopeModelScopeType.ts +23 -0
  55. package/mission/model/enum/ScopedValueScopeType.d.ts +5 -0
  56. package/mission/model/enum/ScopedValueScopeType.js +23 -0
  57. package/mission/model/enum/ScopedValueScopeType.js.map +1 -0
  58. package/mission/model/enum/ScopedValueScopeType.ts +23 -0
  59. package/mission/model/enum/TargetCounterModelScopeType.d.ts +5 -0
  60. package/mission/model/enum/TargetCounterModelScopeType.js +23 -0
  61. package/mission/model/enum/TargetCounterModelScopeType.js.map +1 -0
  62. package/mission/model/enum/TargetCounterModelScopeType.ts +23 -0
  63. package/mission/model/index.d.ts +10 -1
  64. package/mission/model/index.js +7 -1
  65. package/mission/model/index.js.map +1 -1
  66. package/mission/model/index.ts +18 -0
  67. package/mission/model/options/CounterModelOptions.ts +1 -0
  68. package/mission/model/options/CounterScopeModelOptions.d.ts +5 -0
  69. package/mission/model/options/CounterScopeModelOptions.ts +5 -0
  70. package/mission/model/options/CounterScopeModelResetTypeIsDailyOptions.ts +2 -0
  71. package/mission/model/options/CounterScopeModelResetTypeIsMonthlyOptions.ts +2 -0
  72. package/mission/model/options/CounterScopeModelResetTypeIsNotResetOptions.ts +2 -0
  73. package/mission/model/options/CounterScopeModelResetTypeIsWeeklyOptions.ts +2 -0
  74. package/mission/model/options/CounterScopeModelScopeTypeIsResetTimingOptions.d.ts +2 -0
  75. package/mission/model/options/CounterScopeModelScopeTypeIsResetTimingOptions.js +3 -0
  76. package/mission/model/options/CounterScopeModelScopeTypeIsResetTimingOptions.js.map +1 -0
  77. package/mission/model/options/CounterScopeModelScopeTypeIsResetTimingOptions.ts +22 -0
  78. package/mission/model/options/CounterScopeModelScopeTypeIsVerifyActionOptions.d.ts +2 -0
  79. package/mission/model/options/CounterScopeModelScopeTypeIsVerifyActionOptions.js +3 -0
  80. package/mission/model/options/CounterScopeModelScopeTypeIsVerifyActionOptions.js.map +1 -0
  81. package/mission/model/options/CounterScopeModelScopeTypeIsVerifyActionOptions.ts +22 -0
  82. package/mission/model/options/ScopedValueOptions.d.ts +3 -0
  83. package/mission/model/options/ScopedValueOptions.ts +3 -0
  84. package/mission/model/options/ScopedValueScopeTypeIsResetTimingOptions.d.ts +3 -0
  85. package/mission/model/options/ScopedValueScopeTypeIsResetTimingOptions.js +3 -0
  86. package/mission/model/options/ScopedValueScopeTypeIsResetTimingOptions.js.map +1 -0
  87. package/mission/model/options/ScopedValueScopeTypeIsResetTimingOptions.ts +21 -0
  88. package/mission/model/options/ScopedValueScopeTypeIsVerifyActionOptions.d.ts +3 -0
  89. package/mission/model/options/ScopedValueScopeTypeIsVerifyActionOptions.js +3 -0
  90. package/mission/model/options/ScopedValueScopeTypeIsVerifyActionOptions.js.map +1 -0
  91. package/mission/model/options/ScopedValueScopeTypeIsVerifyActionOptions.ts +21 -0
  92. package/mission/model/options/TargetCounterModelOptions.d.ts +1 -0
  93. package/mission/model/options/TargetCounterModelOptions.ts +2 -0
  94. package/mission/model/options/TargetCounterModelScopeTypeIsResetTimingOptions.d.ts +4 -0
  95. package/mission/model/options/TargetCounterModelScopeTypeIsResetTimingOptions.js +3 -0
  96. package/mission/model/options/TargetCounterModelScopeTypeIsResetTimingOptions.js.map +1 -0
  97. package/mission/model/options/TargetCounterModelScopeTypeIsResetTimingOptions.ts +21 -0
  98. package/mission/model/options/TargetCounterModelScopeTypeIsVerifyActionOptions.d.ts +4 -0
  99. package/mission/model/options/TargetCounterModelScopeTypeIsVerifyActionOptions.js +3 -0
  100. package/mission/model/options/TargetCounterModelScopeTypeIsVerifyActionOptions.js.map +1 -0
  101. package/mission/model/options/TargetCounterModelScopeTypeIsVerifyActionOptions.ts +21 -0
  102. package/mission/ref/CounterModelRef.d.ts +2 -1
  103. package/mission/ref/CounterModelRef.js +2 -2
  104. package/mission/ref/CounterModelRef.js.map +1 -1
  105. package/mission/ref/CounterModelRef.ts +6 -1
  106. package/mission/ref/NamespaceRef.d.ts +2 -1
  107. package/mission/ref/NamespaceRef.js +2 -2
  108. package/mission/ref/NamespaceRef.js.map +1 -1
  109. package/mission/ref/NamespaceRef.ts +6 -1
  110. package/mission/stampSheet/VerifyCounterValueByUserId.d.ts +4 -1
  111. package/mission/stampSheet/VerifyCounterValueByUserId.js +13 -2
  112. package/mission/stampSheet/VerifyCounterValueByUserId.js.map +1 -1
  113. package/mission/stampSheet/VerifyCounterValueByUserId.ts +16 -3
  114. package/mission/stampSheet/enum/CounterScopeType.d.ts +5 -0
  115. package/mission/stampSheet/enum/CounterScopeType.js +23 -0
  116. package/mission/stampSheet/enum/CounterScopeType.js.map +1 -0
  117. package/mission/stampSheet/enum/CounterScopeType.ts +23 -0
  118. package/money2/model/Namespace.d.ts +2 -1
  119. package/money2/model/Namespace.js +13 -8
  120. package/money2/model/Namespace.js.map +1 -1
  121. package/money2/model/Namespace.ts +10 -4
  122. package/money2/model/options/NamespaceOptions.d.ts +2 -1
  123. package/money2/model/options/NamespaceOptions.ts +2 -1
  124. package/package.json +1 -1
@@ -35,8 +35,8 @@ class CounterModelRef {
35
35
  decreaseCounter(value, userId = "#{userId}") {
36
36
  return new DecreaseCounterByUserId_1.default(this.namespaceName, this.counterName, value, userId);
37
37
  }
38
- verifyCounterValue(verifyType, resetType, value = null, multiplyValueSpecifyingQuantity = null, userId = "#{userId}") {
39
- return new VerifyCounterValueByUserId_1.default(this.namespaceName, this.counterName, verifyType, resetType, value, multiplyValueSpecifyingQuantity, userId);
38
+ verifyCounterValue(verifyType, scopeType = null, resetType = null, conditionName = null, value = null, multiplyValueSpecifyingQuantity = null, userId = "#{userId}") {
39
+ return new VerifyCounterValueByUserId_1.default(this.namespaceName, this.counterName, verifyType, scopeType, resetType, conditionName, value, multiplyValueSpecifyingQuantity, userId);
40
40
  }
41
41
  grn() {
42
42
  return new func_1.Join(":", [
@@ -1 +1 @@
1
- {"version":3,"file":"CounterModelRef.js","sourceRoot":"","sources":["CounterModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4GAA4E;AAC5E,kGAAkE;AAElE,4GAA4E;AAC5E,kHAAkF;AAIlF,MAAqB,eAAe;IAIhC,YACI,aAAqB,EACrB,WAAmB;QAEnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAEM,eAAe,CAClB,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,UAAU,CACb,SAA6B,IAAI,EACjC,SAAiB,WAAW;QAE5B,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,MAAM,EACN,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,kBAAkB,CACrB,UAA6B,EAC7B,SAA2B,EAC3B,QAAqB,IAAI,EACzB,kCAAgD,IAAI,EACpD,SAAiB,WAAW;QAE5B,OAAO,IAAI,oCAA0B,CACjC,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,UAAU,EACV,SAAS,EACT,KAAK,EACL,+BAA+B,EAC/B,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,SAAS;YACT,IAAI,CAAC,aAAa;YAClB,SAAS;YACT,IAAI,CAAC,WAAW;SACnB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAvFD,kCAuFC"}
1
+ {"version":3,"file":"CounterModelRef.js","sourceRoot":"","sources":["CounterModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4GAA4E;AAC5E,kGAAkE;AAElE,4GAA4E;AAC5E,kHAAkF;AAKlF,MAAqB,eAAe;IAIhC,YACI,aAAqB,EACrB,WAAmB;QAEnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAEM,eAAe,CAClB,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,UAAU,CACb,SAA6B,IAAI,EACjC,SAAiB,WAAW;QAE5B,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,MAAM,EACN,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,kBAAkB,CACrB,UAA6B,EAC7B,YAAmC,IAAI,EACvC,YAAmC,IAAI,EACvC,gBAA6B,IAAI,EACjC,QAAqB,IAAI,EACzB,kCAAgD,IAAI,EACpD,SAAiB,WAAW;QAE5B,OAAO,IAAI,oCAA0B,CACjC,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,KAAK,EACL,+BAA+B,EAC/B,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,SAAS;YACT,IAAI,CAAC,aAAa;YAClB,SAAS;YACT,IAAI,CAAC,WAAW;SACnB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA3FD,kCA2FC"}
@@ -21,6 +21,7 @@ import ScopedValue from "../model/ScopedValue";
21
21
  import DecreaseCounterByUserId from "../stampSheet/DecreaseCounterByUserId";
22
22
  import VerifyCounterValueByUserId from "../stampSheet/VerifyCounterValueByUserId";
23
23
  import { CounterVerifyType } from "../stampSheet/enum/CounterVerifyType";
24
+ import { CounterScopeType } from "../stampSheet/enum/CounterScopeType";
24
25
  import { CounterResetType } from "../stampSheet/enum/CounterResetType";
25
26
 
26
27
  export default class CounterModelRef {
@@ -73,7 +74,9 @@ export default class CounterModelRef {
73
74
 
74
75
  public verifyCounterValue(
75
76
  verifyType: CounterVerifyType,
76
- resetType: CounterResetType,
77
+ scopeType: CounterScopeType|null = null,
78
+ resetType: CounterResetType|null = null,
79
+ conditionName: string|null = null,
77
80
  value: number|null = null,
78
81
  multiplyValueSpecifyingQuantity: boolean|null = null,
79
82
  userId: string = "#{userId}",
@@ -82,7 +85,9 @@ export default class CounterModelRef {
82
85
  this.namespaceName,
83
86
  this.counterName,
84
87
  verifyType,
88
+ scopeType,
85
89
  resetType,
90
+ conditionName,
86
91
  value,
87
92
  multiplyValueSpecifyingQuantity,
88
93
  userId,
@@ -10,6 +10,7 @@ import VerifyCompleteByUserId from "../stampSheet/VerifyCompleteByUserId";
10
10
  import { CompleteVerifyType } from "../stampSheet/enum/CompleteVerifyType";
11
11
  import VerifyCounterValueByUserId from "../stampSheet/VerifyCounterValueByUserId";
12
12
  import { CounterVerifyType } from "../stampSheet/enum/CounterVerifyType";
13
+ import { CounterScopeType } from "../stampSheet/enum/CounterScopeType";
13
14
  import { CounterResetType } from "../stampSheet/enum/CounterResetType";
14
15
  export default class NamespaceRef {
15
16
  private readonly namespaceName;
@@ -22,6 +23,6 @@ export default class NamespaceRef {
22
23
  receive(missionGroupName: string, missionTaskName: string, userId?: string): ReceiveByUserId;
23
24
  decreaseCounter(counterName: string, value: number, userId?: string): DecreaseCounterByUserId;
24
25
  verifyComplete(missionGroupName: string, verifyType: CompleteVerifyType, missionTaskName: string, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyCompleteByUserId;
25
- verifyCounterValue(counterName: string, verifyType: CounterVerifyType, resetType: CounterResetType, value?: number | null, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyCounterValueByUserId;
26
+ verifyCounterValue(counterName: string, verifyType: CounterVerifyType, scopeType?: CounterScopeType | null, resetType?: CounterResetType | null, conditionName?: string | null, value?: number | null, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyCounterValueByUserId;
26
27
  grn(): string;
27
28
  }
@@ -54,8 +54,8 @@ class NamespaceRef {
54
54
  verifyComplete(missionGroupName, verifyType, missionTaskName, multiplyValueSpecifyingQuantity = null, userId = "#{userId}") {
55
55
  return new VerifyCompleteByUserId_1.default(this.namespaceName, missionGroupName, verifyType, missionTaskName, multiplyValueSpecifyingQuantity, userId);
56
56
  }
57
- verifyCounterValue(counterName, verifyType, resetType, value = null, multiplyValueSpecifyingQuantity = null, userId = "#{userId}") {
58
- return new VerifyCounterValueByUserId_1.default(this.namespaceName, counterName, verifyType, resetType, value, multiplyValueSpecifyingQuantity, userId);
57
+ verifyCounterValue(counterName, verifyType, scopeType = null, resetType = null, conditionName = null, value = null, multiplyValueSpecifyingQuantity = null, userId = "#{userId}") {
58
+ return new VerifyCounterValueByUserId_1.default(this.namespaceName, counterName, verifyType, scopeType, resetType, conditionName, value, multiplyValueSpecifyingQuantity, userId);
59
59
  }
60
60
  grn() {
61
61
  return new func_1.Join(":", [
@@ -1 +1 @@
1
- {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0FAA0D;AAC1D,gFAAgD;AAChD,wGAAwE;AACxE,4GAA4E;AAC5E,kGAAkE;AAElE,4FAA4D;AAC5D,4GAA4E;AAC5E,0GAA0E;AAE1E,kHAAkF;AAIlF,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,iBAAiB,CACpB,gBAAwB;QAExB,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,gBAAgB,CACnB,CAAC;IACN,CAAC;IAEM,YAAY,CACf,WAAmB;QAEnB,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,gBAAwB,EACxB,eAAuB,EACvB,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,gBAAgB,EAChB,eAAe,EACf,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB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CompleteByUserId";
27
27
  import { CompleteVerifyType } from "../stampSheet/enum/CompleteVerifyType";
28
28
  import VerifyCounterValueByUserId from "../stampSheet/VerifyCounterValueByUserId";
29
29
  import { CounterVerifyType } from "../stampSheet/enum/CounterVerifyType";
30
+ import { CounterScopeType } from "../stampSheet/enum/CounterScopeType";
30
31
  import { CounterResetType } from "../stampSheet/enum/CounterResetType";
31
32
 
32
33
  export default class NamespaceRef {
@@ -141,7 +142,9 @@ export default class NamespaceRef {
141
142
  public verifyCounterValue(
142
143
  counterName: string,
143
144
  verifyType: CounterVerifyType,
144
- resetType: CounterResetType,
145
+ scopeType: CounterScopeType|null = null,
146
+ resetType: CounterResetType|null = null,
147
+ conditionName: string|null = null,
145
148
  value: number|null = null,
146
149
  multiplyValueSpecifyingQuantity: boolean|null = null,
147
150
  userId: string = "#{userId}",
@@ -150,7 +153,9 @@ export default class NamespaceRef {
150
153
  this.namespaceName,
151
154
  counterName,
152
155
  verifyType,
156
+ scopeType,
153
157
  resetType,
158
+ conditionName,
154
159
  value,
155
160
  multiplyValueSpecifyingQuantity,
156
161
  userId,
@@ -1,16 +1,19 @@
1
1
  import { VerifyAction } from "../../core/model";
2
2
  import { CounterVerifyType } from "./enum/CounterVerifyType";
3
+ import { CounterScopeType } from "./enum/CounterScopeType";
3
4
  import { CounterResetType } from "./enum/CounterResetType";
4
5
  export default class VerifyCounterValueByUserId extends VerifyAction {
5
6
  private readonly namespaceName;
6
7
  private readonly userId;
7
8
  private readonly counterName;
8
9
  private readonly verifyType;
10
+ private readonly scopeType;
9
11
  private readonly resetType;
12
+ private readonly conditionName;
10
13
  private readonly value;
11
14
  private readonly multiplyValueSpecifyingQuantity;
12
15
  private readonly timeOffsetToken;
13
- constructor(namespaceName: string, counterName: string, verifyType: CounterVerifyType, resetType: CounterResetType, value?: number | null, multiplyValueSpecifyingQuantity?: boolean | null, timeOffsetToken?: string | null, userId?: string);
16
+ constructor(namespaceName: string, counterName: string, verifyType: CounterVerifyType, scopeType?: CounterScopeType | null, resetType?: CounterResetType | null, conditionName?: string | null, value?: number | null, multiplyValueSpecifyingQuantity?: boolean | null, timeOffsetToken?: string | null, userId?: string);
14
17
  request(): {
15
18
  [name: string]: any;
16
19
  };
@@ -17,15 +17,20 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const model_1 = require("../../core/model");
19
19
  class VerifyCounterValueByUserId extends model_1.VerifyAction {
20
- constructor(namespaceName, counterName, verifyType, resetType, value = null, multiplyValueSpecifyingQuantity = null, timeOffsetToken = null, userId = "#{userId}") {
20
+ constructor(namespaceName, counterName, verifyType, scopeType = null, resetType = null, conditionName = null, value = null, multiplyValueSpecifyingQuantity = null, timeOffsetToken = null, userId = "#{userId}") {
21
21
  super();
22
+ this.scopeType = null;
23
+ this.resetType = null;
24
+ this.conditionName = null;
22
25
  this.value = null;
23
26
  this.multiplyValueSpecifyingQuantity = null;
24
27
  this.timeOffsetToken = null;
25
28
  this.namespaceName = namespaceName;
26
29
  this.counterName = counterName;
27
30
  this.verifyType = verifyType;
28
- this.resetType = resetType;
31
+ this.scopeType = scopeType !== null && scopeType !== void 0 ? scopeType : null;
32
+ this.resetType = resetType !== null && resetType !== void 0 ? resetType : null;
33
+ this.conditionName = conditionName !== null && conditionName !== void 0 ? conditionName : null;
29
34
  this.value = value !== null && value !== void 0 ? value : null;
30
35
  this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity !== null && multiplyValueSpecifyingQuantity !== void 0 ? multiplyValueSpecifyingQuantity : null;
31
36
  this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
@@ -45,9 +50,15 @@ class VerifyCounterValueByUserId extends model_1.VerifyAction {
45
50
  if (this.verifyType != null) {
46
51
  properties["verifyType"] = this.verifyType;
47
52
  }
53
+ if (this.scopeType != null) {
54
+ properties["scopeType"] = this.scopeType;
55
+ }
48
56
  if (this.resetType != null) {
49
57
  properties["resetType"] = this.resetType;
50
58
  }
59
+ if (this.conditionName != null) {
60
+ properties["conditionName"] = this.conditionName;
61
+ }
51
62
  if (this.value != null) {
52
63
  properties["value"] = this.value;
53
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"VerifyCounterValueByUserId.js","sourceRoot":"","sources":["VerifyCounterValueByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAI5E,MAAqB,0BAA2B,SAAQ,oBAAY;IAWhE,YACI,aAAqB,EACrB,WAAmB,EACnB,UAA6B,EAC7B,SAA2B,EAC3B,QAAqB,IAAI,EACzB,kCAAgD,IAAI,EACpD,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAfK,UAAK,GAAgB,IAAI,CAAC;QAC1B,oCAA+B,GAAiB,IAAI,CAAC;QACrD,oBAAe,GAAgB,IAAI,CAAC;QAejD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,IAAI,CAAC;QAC3B,IAAI,CAAC,+BAA+B,GAAG,+BAA+B,aAA/B,+BAA+B,cAA/B,+BAA+B,GAAI,IAAI,CAAC;QAC/E,IAAI,CAAC,eAAe,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAI,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,OAAO;QAEV,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YAC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,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,+BAA+B,IAAI,IAAI,EAAE;YAC9C,UAAU,CAAC,iCAAiC,CAAC,GAAG,IAAI,CAAC,+BAA+B,CAAC;SACxF;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,uCAAuC,CAAC;IACnD,CAAC;CACJ;AAhFD,6CAgFC"}
@@ -16,6 +16,7 @@
16
16
 
17
17
  import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
18
18
  import { CounterVerifyType } from "./enum/CounterVerifyType";
19
+ import { CounterScopeType } from "./enum/CounterScopeType";
19
20
  import { CounterResetType } from "./enum/CounterResetType";
20
21
 
21
22
  export default class VerifyCounterValueByUserId extends VerifyAction {
@@ -23,7 +24,9 @@ export default class VerifyCounterValueByUserId extends VerifyAction {
23
24
  private readonly userId: string;
24
25
  private readonly counterName: string;
25
26
  private readonly verifyType: CounterVerifyType;
26
- private readonly resetType: CounterResetType;
27
+ private readonly scopeType: CounterScopeType|null = null;
28
+ private readonly resetType: CounterResetType|null = null;
29
+ private readonly conditionName: string|null = null;
27
30
  private readonly value: number|null = null;
28
31
  private readonly multiplyValueSpecifyingQuantity: boolean|null = null;
29
32
  private readonly timeOffsetToken: string|null = null;
@@ -33,7 +36,9 @@ export default class VerifyCounterValueByUserId extends VerifyAction {
33
36
  namespaceName: string,
34
37
  counterName: string,
35
38
  verifyType: CounterVerifyType,
36
- resetType: CounterResetType,
39
+ scopeType: CounterScopeType|null = null,
40
+ resetType: CounterResetType|null = null,
41
+ conditionName: string|null = null,
37
42
  value: number|null = null,
38
43
  multiplyValueSpecifyingQuantity: boolean|null = null,
39
44
  timeOffsetToken: string|null = null,
@@ -44,7 +49,9 @@ export default class VerifyCounterValueByUserId extends VerifyAction {
44
49
  this.namespaceName = namespaceName;
45
50
  this.counterName = counterName;
46
51
  this.verifyType = verifyType;
47
- this.resetType = resetType;
52
+ this.scopeType = scopeType ?? null;
53
+ this.resetType = resetType ?? null;
54
+ this.conditionName = conditionName ?? null;
48
55
  this.value = value ?? null;
49
56
  this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity ?? null;
50
57
  this.timeOffsetToken = timeOffsetToken ?? null;
@@ -67,9 +74,15 @@ export default class VerifyCounterValueByUserId extends VerifyAction {
67
74
  if (this.verifyType != null) {
68
75
  properties["verifyType"] = this.verifyType;
69
76
  }
77
+ if (this.scopeType != null) {
78
+ properties["scopeType"] = this.scopeType;
79
+ }
70
80
  if (this.resetType != null) {
71
81
  properties["resetType"] = this.resetType;
72
82
  }
83
+ if (this.conditionName != null) {
84
+ properties["conditionName"] = this.conditionName;
85
+ }
73
86
  if (this.value != null) {
74
87
  properties["value"] = this.value;
75
88
  }
@@ -0,0 +1,5 @@
1
+ export declare const CounterScopeType: {
2
+ readonly RESET_TIMING: "resetTiming";
3
+ readonly VERIFY_ACTION: "verifyAction";
4
+ };
5
+ export type CounterScopeType = typeof CounterScopeType[keyof typeof CounterScopeType];
@@ -0,0 +1,23 @@
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
+ exports.CounterScopeType = void 0;
19
+ exports.CounterScopeType = {
20
+ RESET_TIMING: "resetTiming",
21
+ VERIFY_ACTION: "verifyAction",
22
+ };
23
+ //# sourceMappingURL=CounterScopeType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CounterScopeType.js","sourceRoot":"","sources":["CounterScopeType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,gBAAgB,GAAG;IAC5B,YAAY,EAAE,aAAa;IAC3B,aAAa,EAAE,cAAc;CACvB,CAAC"}
@@ -0,0 +1,23 @@
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
+
18
+
19
+ export const CounterScopeType = {
20
+ RESET_TIMING: "resetTiming",
21
+ VERIFY_ACTION: "verifyAction",
22
+ } as const;
23
+ export type CounterScopeType = typeof CounterScopeType[keyof typeof CounterScopeType];
@@ -12,7 +12,8 @@ export default class Namespace extends CdkResource {
12
12
  private readonly sharedFreeCurrency;
13
13
  private readonly platformSetting;
14
14
  private readonly description;
15
- private readonly changeBalanceScript;
15
+ private readonly depositBalanceScript;
16
+ private readonly withdrawBalanceScript;
16
17
  private readonly logSetting;
17
18
  constructor(stack: Stack, name: string, currencyUsagePriority: NamespaceCurrencyUsagePriority, sharedFreeCurrency: boolean, platformSetting: PlatformSetting, options?: NamespaceOptions | null);
18
19
  alternateKeys(): string;
@@ -22,10 +22,11 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
22
22
  const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
23
23
  class Namespace extends model_1.CdkResource {
24
24
  constructor(stack, name, currencyUsagePriority, sharedFreeCurrency, platformSetting, options = null) {
25
- var _a, _b, _c;
25
+ var _a, _b, _c, _d;
26
26
  super("Money2_Namespace_" + name);
27
27
  this.description = null;
28
- this.changeBalanceScript = null;
28
+ this.depositBalanceScript = null;
29
+ this.withdrawBalanceScript = null;
29
30
  this.logSetting = null;
30
31
  this.stack = stack;
31
32
  this.name = name;
@@ -33,8 +34,9 @@ class Namespace extends model_1.CdkResource {
33
34
  this.sharedFreeCurrency = sharedFreeCurrency;
34
35
  this.platformSetting = platformSetting;
35
36
  this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
36
- this.changeBalanceScript = (_b = options === null || options === void 0 ? void 0 : options.changeBalanceScript) !== null && _b !== void 0 ? _b : null;
37
- this.logSetting = (_c = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _c !== void 0 ? _c : null;
37
+ this.depositBalanceScript = (_b = options === null || options === void 0 ? void 0 : options.depositBalanceScript) !== null && _b !== void 0 ? _b : null;
38
+ this.withdrawBalanceScript = (_c = options === null || options === void 0 ? void 0 : options.withdrawBalanceScript) !== null && _c !== void 0 ? _c : null;
39
+ this.logSetting = (_d = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _d !== void 0 ? _d : null;
38
40
  stack.addResource(this);
39
41
  }
40
42
  alternateKeys() {
@@ -44,7 +46,7 @@ class Namespace extends model_1.CdkResource {
44
46
  return "GS2::Money2::Namespace";
45
47
  }
46
48
  properties() {
47
- var _a, _b, _c;
49
+ var _a, _b, _c, _d;
48
50
  let properties = {};
49
51
  if (this.name != null) {
50
52
  properties["Name"] = this.name;
@@ -61,11 +63,14 @@ class Namespace extends model_1.CdkResource {
61
63
  if (this.platformSetting != null) {
62
64
  properties["PlatformSetting"] = (_a = this.platformSetting) === null || _a === void 0 ? void 0 : _a.properties();
63
65
  }
64
- if (this.changeBalanceScript != null) {
65
- properties["ChangeBalanceScript"] = (_b = this.changeBalanceScript) === null || _b === void 0 ? void 0 : _b.properties();
66
+ if (this.depositBalanceScript != null) {
67
+ properties["DepositBalanceScript"] = (_b = this.depositBalanceScript) === null || _b === void 0 ? void 0 : _b.properties();
68
+ }
69
+ if (this.withdrawBalanceScript != null) {
70
+ properties["WithdrawBalanceScript"] = (_c = this.withdrawBalanceScript) === null || _c === void 0 ? void 0 : _c.properties();
66
71
  }
67
72
  if (this.logSetting != null) {
68
- properties["LogSetting"] = (_c = this.logSetting) === null || _c === void 0 ? void 0 : _c.properties();
73
+ properties["LogSetting"] = (_d = this.logSetting) === null || _d === void 0 ? void 0 : _d.properties();
69
74
  }
70
75
  return properties;
71
76
  }
@@ -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;AAMpD,MAAqB,SAAU,SAAQ,mBAAW;IAU9C,YACI,KAAY,EACZ,IAAY,EACZ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,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAhHD,4BAgHC"}
@@ -34,7 +34,8 @@ export default class Namespace extends CdkResource {
34
34
  private readonly sharedFreeCurrency: boolean;
35
35
  private readonly platformSetting: PlatformSetting;
36
36
  private readonly description: string|null = null;
37
- private readonly changeBalanceScript: ScriptSetting|null = null;
37
+ private readonly depositBalanceScript: ScriptSetting|null = null;
38
+ private readonly withdrawBalanceScript: ScriptSetting|null = null;
38
39
  private readonly logSetting: LogSetting|null = null;
39
40
 
40
41
  public constructor(
@@ -55,7 +56,8 @@ export default class Namespace extends CdkResource {
55
56
  this.sharedFreeCurrency = sharedFreeCurrency;
56
57
  this.platformSetting = platformSetting;
57
58
  this.description = options?.description ?? null;
58
- this.changeBalanceScript = options?.changeBalanceScript ?? null;
59
+ this.depositBalanceScript = options?.depositBalanceScript ?? null;
60
+ this.withdrawBalanceScript = options?.withdrawBalanceScript ?? null;
59
61
  this.logSetting = options?.logSetting ?? null;
60
62
  stack.addResource(
61
63
  this,
@@ -93,8 +95,12 @@ export default class Namespace extends CdkResource {
93
95
  properties["PlatformSetting"] = this.platformSetting?.properties(
94
96
  );
95
97
  }
96
- if (this.changeBalanceScript != null) {
97
- properties["ChangeBalanceScript"] = this.changeBalanceScript?.properties(
98
+ if (this.depositBalanceScript != null) {
99
+ properties["DepositBalanceScript"] = this.depositBalanceScript?.properties(
100
+ );
101
+ }
102
+ if (this.withdrawBalanceScript != null) {
103
+ properties["WithdrawBalanceScript"] = this.withdrawBalanceScript?.properties(
98
104
  );
99
105
  }
100
106
  if (this.logSetting != null) {
@@ -2,6 +2,7 @@ import ScriptSetting from "../../../core/model/ScriptSetting";
2
2
  import LogSetting from "../../../core/model/LogSetting";
3
3
  export interface NamespaceOptions {
4
4
  description?: string | null;
5
- changeBalanceScript?: ScriptSetting | null;
5
+ depositBalanceScript?: ScriptSetting | null;
6
+ withdrawBalanceScript?: ScriptSetting | null;
6
7
  logSetting?: LogSetting | null;
7
8
  }
@@ -20,7 +20,8 @@ import { NamespaceCurrencyUsagePriority } from "../enum/NamespaceCurrencyUsagePr
20
20
 
21
21
  export interface NamespaceOptions {
22
22
  description?: string|null;
23
- changeBalanceScript?: ScriptSetting|null;
23
+ depositBalanceScript?: ScriptSetting|null;
24
+ withdrawBalanceScript?: ScriptSetting|null;
24
25
  logSetting?: LogSetting|null;
25
26
  }
26
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"