gs2-cdk 1.0.41 → 1.0.43

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 (37) hide show
  1. package/adReward/model/Namespace.d.ts +2 -3
  2. package/adReward/model/Namespace.js +5 -4
  3. package/adReward/model/Namespace.js.map +1 -1
  4. package/adReward/model/Namespace.ts +2 -3
  5. package/adReward/model/options/NamespaceOptions.d.ts +2 -0
  6. package/adReward/model/options/NamespaceOptions.ts +1 -0
  7. package/core/model/NotificationSetting.d.ts +2 -2
  8. package/core/model/NotificationSetting.js +1 -1
  9. package/core/model/NotificationSetting.js.map +1 -1
  10. package/core/model/NotificationSetting.ts +2 -2
  11. package/core/model/TransactionSetting.d.ts +1 -3
  12. package/core/model/TransactionSetting.js +2 -5
  13. package/core/model/TransactionSetting.js.map +1 -1
  14. package/core/model/TransactionSetting.ts +1 -8
  15. package/dictionary/model/Namespace.js +3 -3
  16. package/dictionary/model/Namespace.js.map +1 -1
  17. package/dictionary/model/Namespace.ts +2 -3
  18. package/dictionary/model/options/NamespaceOptions.d.ts +1 -1
  19. package/dictionary/model/options/NamespaceOptions.ts +1 -1
  20. package/jobQueue/model/Namespace.d.ts +6 -12
  21. package/jobQueue/model/Namespace.js +20 -49
  22. package/jobQueue/model/Namespace.js.map +1 -1
  23. package/jobQueue/model/Namespace.ts +24 -58
  24. package/jobQueue/model/options/NamespaceOptions.d.ts +4 -4
  25. package/jobQueue/model/options/NamespaceOptions.ts +4 -4
  26. package/package.json +1 -1
  27. package/ranking/model/CategoryModel.d.ts +3 -3
  28. package/ranking/model/CategoryModel.js +17 -15
  29. package/ranking/model/CategoryModel.js.map +1 -1
  30. package/ranking/model/CategoryModel.ts +3 -6
  31. package/ranking/model/options/CategoryModelOptions.d.ts +1 -0
  32. package/ranking/model/options/CategoryModelOptions.ts +1 -0
  33. package/stamina/model/Namespace.js +3 -3
  34. package/stamina/model/Namespace.js.map +1 -1
  35. package/stamina/model/Namespace.ts +2 -4
  36. package/stamina/model/options/NamespaceOptions.d.ts +1 -2
  37. package/stamina/model/options/NamespaceOptions.ts +1 -2
@@ -1,17 +1,16 @@
1
1
  import { CdkResource, Stack } from "../../core/model";
2
2
  import { GetAttr } from "../../core/func";
3
- import NotificationSetting from "../../core/model/NotificationSetting";
4
3
  import NamespaceRef from "../ref/NamespaceRef";
5
4
  import { NamespaceOptions } from "./options/NamespaceOptions";
6
5
  export default class Namespace extends CdkResource {
7
6
  private readonly stack;
8
7
  private readonly name;
9
- private readonly changePointNotification;
10
8
  private readonly admob;
11
9
  private readonly unityAd;
12
10
  private readonly description;
11
+ private readonly changePointNotification;
13
12
  private readonly logSetting;
14
- constructor(stack: Stack, name: string, changePointNotification: NotificationSetting, options?: NamespaceOptions | null);
13
+ constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
15
14
  alternateKeys(): string;
16
15
  resourceType(): string;
17
16
  properties(): {
@@ -20,20 +20,21 @@ const model_1 = require("../../core/model");
20
20
  const func_1 = require("../../core/func");
21
21
  const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
22
22
  class Namespace extends model_1.CdkResource {
23
- constructor(stack, name, changePointNotification, options = null) {
24
- var _a, _b, _c, _d;
23
+ constructor(stack, name, options = null) {
24
+ var _a, _b, _c, _d, _e;
25
25
  super("AdReward_Namespace_" + name);
26
26
  this.admob = null;
27
27
  this.unityAd = null;
28
28
  this.description = null;
29
+ this.changePointNotification = null;
29
30
  this.logSetting = null;
30
31
  this.stack = stack;
31
32
  this.name = name;
32
- this.changePointNotification = changePointNotification;
33
33
  this.admob = (_a = options === null || options === void 0 ? void 0 : options.admob) !== null && _a !== void 0 ? _a : null;
34
34
  this.unityAd = (_b = options === null || options === void 0 ? void 0 : options.unityAd) !== null && _b !== void 0 ? _b : null;
35
35
  this.description = (_c = options === null || options === void 0 ? void 0 : options.description) !== null && _c !== void 0 ? _c : null;
36
- this.logSetting = (_d = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _d !== void 0 ? _d : null;
36
+ this.changePointNotification = (_d = options === null || options === void 0 ? void 0 : options.changePointNotification) !== null && _d !== void 0 ? _d : null;
37
+ this.logSetting = (_e = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _e !== void 0 ? _e : null;
37
38
  stack.addResource(this);
38
39
  }
39
40
  alternateKeys() {
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAMxC,+EAA+C;AAI/C,MAAqB,SAAU,SAAQ,mBAAW;IAS9C,YACI,KAAY,EACZ,IAAY,EACZ,uBAA4C,EAC5C,UAAiC,IAAI;;QAErC,KAAK,CACD,qBAAqB,GAAG,IAAI,CAC/B,CAAC;QAbW,UAAK,GAAe,IAAI,CAAC;QACzB,YAAO,GAAiB,IAAI,CAAC;QAC7B,gBAAW,GAAgB,IAAI,CAAC;QAChC,eAAU,GAAoB,IAAI,CAAC;QAYhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;QACvD,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,IAAI,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,IAAI,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;I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U,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,MAAA,IAAI,CAAC,KAAK,0CAAE,UAAU,EAC3C,CAAC;SACL;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,EAC/C,CAAC;SACL;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,uBAAuB,IAAI,IAAI,EAAE;YACtC,UAAU,CAAC,yBAAyB,CAAC,GAAG,MAAA,IAAI,CAAC,uBAAuB,0CAAE,UAAU,EAC/E,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;AAtFD,4BAsFC"}
@@ -28,16 +28,15 @@ import { NamespaceOptions } from "./options/NamespaceOptions";
28
28
  export default class Namespace extends CdkResource {
29
29
  private readonly stack: Stack;
30
30
  private readonly name: string;
31
- private readonly changePointNotification: NotificationSetting;
32
31
  private readonly admob: AdMob|null = null;
33
32
  private readonly unityAd: UnityAd|null = null;
34
33
  private readonly description: string|null = null;
34
+ private readonly changePointNotification: NotificationSetting|null = null;
35
35
  private readonly logSetting: LogSetting|null = null;
36
36
 
37
37
  public constructor(
38
38
  stack: Stack,
39
39
  name: string,
40
- changePointNotification: NotificationSetting,
41
40
  options: NamespaceOptions|null = null,
42
41
  ) {
43
42
  super(
@@ -46,10 +45,10 @@ export default class Namespace extends CdkResource {
46
45
 
47
46
  this.stack = stack;
48
47
  this.name = name;
49
- this.changePointNotification = changePointNotification;
50
48
  this.admob = options?.admob ?? null;
51
49
  this.unityAd = options?.unityAd ?? null;
52
50
  this.description = options?.description ?? null;
51
+ this.changePointNotification = options?.changePointNotification ?? null;
53
52
  this.logSetting = options?.logSetting ?? null;
54
53
  stack.addResource(
55
54
  this,
@@ -1,9 +1,11 @@
1
1
  import AdMob from "../AdMob";
2
2
  import UnityAd from "../UnityAd";
3
+ import NotificationSetting from "../../../core/model/NotificationSetting";
3
4
  import LogSetting from "../../../core/model/LogSetting";
4
5
  export interface NamespaceOptions {
5
6
  admob?: AdMob | null;
6
7
  unityAd?: UnityAd | null;
7
8
  description?: string | null;
9
+ changePointNotification?: NotificationSetting | null;
8
10
  logSetting?: LogSetting | null;
9
11
  }
@@ -22,6 +22,7 @@ export interface NamespaceOptions {
22
22
  admob?: AdMob|null;
23
23
  unityAd?: UnityAd|null;
24
24
  description?: string|null;
25
+ changePointNotification?: NotificationSetting|null;
25
26
  logSetting?: LogSetting|null;
26
27
  }
27
28
 
@@ -1,8 +1,8 @@
1
1
  export default class NotificationSetting {
2
- gatewayNamespaceId: string;
2
+ gatewayNamespaceId: string | null;
3
3
  enableTransferMobileNotification: boolean | null;
4
4
  sound: string | null;
5
- constructor(gatewayNamespaceId: string, enableTransferMobileNotification?: boolean | null, sound?: string | null);
5
+ constructor(gatewayNamespaceId?: string | null, enableTransferMobileNotification?: boolean | null, sound?: string | null);
6
6
  properties(): {
7
7
  [name: string]: any;
8
8
  };
@@ -16,7 +16,7 @@
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  class NotificationSetting {
19
- constructor(gatewayNamespaceId, enableTransferMobileNotification = null, sound = null) {
19
+ constructor(gatewayNamespaceId = null, enableTransferMobileNotification = null, sound = null) {
20
20
  this.gatewayNamespaceId = gatewayNamespaceId;
21
21
  this.enableTransferMobileNotification = enableTransferMobileNotification;
22
22
  this.sound = sound;
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationSetting.js","sourceRoot":"","sources":["NotificationSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,MAAqB,mBAAmB;IAMpC,YACI,kBAA0B,EAC1B,mCAAmD,IAAI,EACvD,QAAuB,IAAI;QAE3B,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,gCAAgC,GAAG,gCAAgC,CAAC;QACzE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAEM,UAAU;QACb,OAAO;YACH,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;YAC7C,kCAAkC,EAAE,IAAI,CAAC,gCAAgC;YACzE,OAAO,EAAE,IAAI,CAAC,KAAK;SACtB,CAAC;IACN,CAAC;CACJ;AAvBD,sCAuBC"}
1
+ {"version":3,"file":"NotificationSetting.js","sourceRoot":"","sources":["NotificationSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,MAAqB,mBAAmB;IAMpC,YACI,qBAAoC,IAAI,EACxC,mCAAmD,IAAI,EACvD,QAAuB,IAAI;QAE3B,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,gCAAgC,GAAG,gCAAgC,CAAC;QACzE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAEM,UAAU;QACb,OAAO;YACH,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;YAC7C,kCAAkC,EAAE,IAAI,CAAC,gCAAgC;YACzE,OAAO,EAAE,IAAI,CAAC,KAAK;SACtB,CAAC;IACN,CAAC;CACJ;AAvBD,sCAuBC"}
@@ -16,12 +16,12 @@
16
16
 
17
17
  export default class NotificationSetting {
18
18
 
19
- gatewayNamespaceId: string;
19
+ gatewayNamespaceId: string | null;
20
20
  enableTransferMobileNotification: boolean | null;
21
21
  sound: string | null;
22
22
 
23
23
  public constructor(
24
- gatewayNamespaceId: string,
24
+ gatewayNamespaceId: string | null = null,
25
25
  enableTransferMobileNotification: boolean | null = null,
26
26
  sound: string | null = null,
27
27
  ) {
@@ -1,9 +1,7 @@
1
1
  export default class TransactionSetting {
2
- enableAutoRun: boolean;
3
2
  distributorNamespaceId: string | null;
4
- keyId: string | null;
5
3
  queueNamespaceId: string | null;
6
- constructor(enableAutoRun: boolean, distributorNamespaceId?: string | null, keyId?: string | null, queueNamespaceId?: string | null);
4
+ constructor(distributorNamespaceId?: string | null, queueNamespaceId?: string | null);
7
5
  properties(): {
8
6
  [name: string]: any;
9
7
  };
@@ -16,17 +16,14 @@
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  class TransactionSetting {
19
- constructor(enableAutoRun, distributorNamespaceId = null, keyId = null, queueNamespaceId = null) {
20
- this.enableAutoRun = enableAutoRun;
19
+ constructor(distributorNamespaceId = null, queueNamespaceId = null) {
21
20
  this.distributorNamespaceId = distributorNamespaceId;
22
- this.keyId = keyId;
23
21
  this.queueNamespaceId = queueNamespaceId;
24
22
  }
25
23
  properties() {
26
24
  return {
27
- "EnableAutoRun": this.enableAutoRun,
25
+ "EnableAutoRun": true,
28
26
  "DistributorNamespaceId": this.distributorNamespaceId,
29
- "KeyId": this.keyId,
30
27
  "QueueNamespaceId": this.queueNamespaceId,
31
28
  };
32
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionSetting.js","sourceRoot":"","sources":["TransactionSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,MAAqB,kBAAkB;IAOnC,YACI,aAAsB,EACtB,yBAAwC,IAAI,EAC5C,QAAuB,IAAI,EAC3B,mBAAkC,IAAI;QAEtC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC7C,CAAC;IAEM,UAAU;QACb,OAAO;YACH,eAAe,EAAE,IAAI,CAAC,aAAa;YACnC,wBAAwB,EAAE,IAAI,CAAC,sBAAsB;YACrD,OAAO,EAAE,IAAI,CAAC,KAAK;YACnB,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;SAC5C,CAAC;IACN,CAAC;CACJ;AA3BD,qCA2BC"}
1
+ {"version":3,"file":"TransactionSetting.js","sourceRoot":"","sources":["TransactionSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,MAAqB,kBAAkB;IAKnC,YACI,yBAAwC,IAAI,EAC5C,mBAAkC,IAAI;QAEtC,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC7C,CAAC;IAEM,UAAU;QACb,OAAO;YACH,eAAe,EAAE,IAAI;YACrB,wBAAwB,EAAE,IAAI,CAAC,sBAAsB;YACrD,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;SAC5C,CAAC;IACN,CAAC;CACJ;AApBD,qCAoBC"}
@@ -16,28 +16,21 @@
16
16
 
17
17
  export default class TransactionSetting {
18
18
 
19
- enableAutoRun: boolean;
20
19
  distributorNamespaceId: string | null;
21
- keyId: string | null;
22
20
  queueNamespaceId: string | null;
23
21
 
24
22
  public constructor(
25
- enableAutoRun: boolean,
26
23
  distributorNamespaceId: string | null = null,
27
- keyId: string | null = null,
28
24
  queueNamespaceId: string | null = null,
29
25
  ) {
30
- this.enableAutoRun = enableAutoRun;
31
26
  this.distributorNamespaceId = distributorNamespaceId;
32
- this.keyId = keyId;
33
27
  this.queueNamespaceId = queueNamespaceId;
34
28
  }
35
29
 
36
30
  public properties(): { [name: string]: any } {
37
31
  return {
38
- "EnableAutoRun": this.enableAutoRun,
32
+ "EnableAutoRun": true,
39
33
  "DistributorNamespaceId": this.distributorNamespaceId,
40
- "KeyId": this.keyId,
41
34
  "QueueNamespaceId": this.queueNamespaceId,
42
35
  };
43
36
  }
@@ -43,7 +43,7 @@ class Namespace extends model_1.CdkResource {
43
43
  return "GS2::Dictionary::Namespace";
44
44
  }
45
45
  properties() {
46
- var _a, _b, _c;
46
+ var _a, _b;
47
47
  let properties = {};
48
48
  if (this.name != null) {
49
49
  properties["Name"] = this.name;
@@ -55,10 +55,10 @@ class Namespace extends model_1.CdkResource {
55
55
  properties["EntryScript"] = (_a = this.entryScript) === null || _a === void 0 ? void 0 : _a.properties();
56
56
  }
57
57
  if (this.duplicateEntryScript != null) {
58
- properties["DuplicateEntryScript"] = (_b = this.duplicateEntryScript) === null || _b === void 0 ? void 0 : _b.properties();
58
+ properties["DuplicateEntryScript"] = this.duplicateEntryScript;
59
59
  }
60
60
  if (this.logSetting != null) {
61
- properties["LogSetting"] = (_c = this.logSetting) === null || _c === void 0 ? void 0 : _c.properties();
61
+ properties["LogSetting"] = (_b = this.logSetting) === null || _b === void 0 ? void 0 : _b.properties();
62
62
  }
63
63
  return properties;
64
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAIxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAQ9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,uBAAuB,GAAG,IAAI,CACjC,CAAC;QAZW,gBAAW,GAAgB,IAAI,CAAC;QAChC,gBAAW,GAAuB,IAAI,CAAC;QACvC,yBAAoB,GAAuB,IAAI,CAAC;QAChD,eAAU,GAAoB,I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,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,WAAyB;QAEzB,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,WAAW,CACd,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA5FD,4BA4FC"}
@@ -30,7 +30,7 @@ export default class Namespace extends CdkResource {
30
30
  private readonly name: string;
31
31
  private readonly description: string|null = null;
32
32
  private readonly entryScript: ScriptSetting|null = null;
33
- private readonly duplicateEntryScript: ScriptSetting|null = null;
33
+ private readonly duplicateEntryScript: string|null = null;
34
34
  private readonly logSetting: LogSetting|null = null;
35
35
 
36
36
  public constructor(
@@ -79,8 +79,7 @@ export default class Namespace extends CdkResource {
79
79
  );
80
80
  }
81
81
  if (this.duplicateEntryScript != null) {
82
- properties["DuplicateEntryScript"] = this.duplicateEntryScript?.properties(
83
- );
82
+ properties["DuplicateEntryScript"] = this.duplicateEntryScript;
84
83
  }
85
84
  if (this.logSetting != null) {
86
85
  properties["LogSetting"] = this.logSetting?.properties(
@@ -3,6 +3,6 @@ import LogSetting from "../../../core/model/LogSetting";
3
3
  export interface NamespaceOptions {
4
4
  description?: string | null;
5
5
  entryScript?: ScriptSetting | null;
6
- duplicateEntryScript?: ScriptSetting | null;
6
+ duplicateEntryScript?: string | null;
7
7
  logSetting?: LogSetting | null;
8
8
  }
@@ -19,7 +19,7 @@ import LogSetting from "../../../core/model/LogSetting";
19
19
  export interface NamespaceOptions {
20
20
  description?: string|null;
21
21
  entryScript?: ScriptSetting|null;
22
- duplicateEntryScript?: ScriptSetting|null;
22
+ duplicateEntryScript?: string|null;
23
23
  logSetting?: LogSetting|null;
24
24
  }
25
25
 
@@ -1,21 +1,15 @@
1
- import { CdkResource, Stack } from "../../core/model";
2
- import { GetAttr } from "../../core/func";
3
- import NamespaceRef from "../ref/NamespaceRef";
4
1
  import { NamespaceOptions } from "./options/NamespaceOptions";
5
- export default class Namespace extends CdkResource {
6
- private readonly stack;
2
+ export default class Namespace {
3
+ private readonly ownerId;
7
4
  private readonly name;
8
- private readonly description;
9
5
  private readonly enableAutoRun;
10
- private readonly pushNotification;
6
+ private readonly description;
11
7
  private readonly runNotification;
8
+ private readonly pushNotification;
12
9
  private readonly logSetting;
13
- constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
14
- alternateKeys(): string;
15
- resourceType(): string;
10
+ private readonly revision;
11
+ constructor(ownerId: string, name: string, enableAutoRun: boolean, options?: NamespaceOptions | null);
16
12
  properties(): {
17
13
  [name: string]: any;
18
14
  };
19
- ref(): NamespaceRef;
20
- getAttrNamespaceId(): GetAttr;
21
15
  }
@@ -1,77 +1,48 @@
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
- */
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
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) {
3
+ class Namespace {
4
+ constructor(ownerId, name, enableAutoRun, options = null) {
24
5
  var _a, _b, _c, _d, _e;
25
- super("JobQueue_Namespace_" + name);
26
6
  this.description = null;
27
- this.enableAutoRun = null;
28
- this.pushNotification = null;
29
7
  this.runNotification = null;
8
+ this.pushNotification = null;
30
9
  this.logSetting = null;
31
- this.stack = stack;
10
+ this.revision = null;
11
+ this.ownerId = ownerId;
32
12
  this.name = name;
13
+ this.enableAutoRun = enableAutoRun;
33
14
  this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
34
- this.enableAutoRun = (_b = options === null || options === void 0 ? void 0 : options.enableAutoRun) !== null && _b !== void 0 ? _b : null;
15
+ this.runNotification = (_b = options === null || options === void 0 ? void 0 : options.runNotification) !== null && _b !== void 0 ? _b : null;
35
16
  this.pushNotification = (_c = options === null || options === void 0 ? void 0 : options.pushNotification) !== null && _c !== void 0 ? _c : null;
36
- this.runNotification = (_d = options === null || options === void 0 ? void 0 : options.runNotification) !== null && _d !== void 0 ? _d : null;
37
- this.logSetting = (_e = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _e !== void 0 ? _e : null;
38
- stack.addResource(this);
39
- }
40
- alternateKeys() {
41
- return "name";
42
- }
43
- resourceType() {
44
- return "GS2::JobQueue::Namespace";
17
+ 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;
45
19
  }
46
20
  properties() {
47
21
  var _a, _b, _c;
48
22
  let properties = {};
23
+ if (this.ownerId != null) {
24
+ properties["ownerId"] = this.ownerId;
25
+ }
49
26
  if (this.name != null) {
50
- properties["Name"] = this.name;
27
+ properties["name"] = this.name;
51
28
  }
52
29
  if (this.description != null) {
53
- properties["Description"] = this.description;
30
+ properties["description"] = this.description;
54
31
  }
55
32
  if (this.enableAutoRun != null) {
56
- properties["EnableAutoRun"] = this.enableAutoRun;
57
- }
58
- if (this.pushNotification != null) {
59
- properties["PushNotification"] = (_a = this.pushNotification) === null || _a === void 0 ? void 0 : _a.properties();
33
+ properties["enableAutoRun"] = this.enableAutoRun;
60
34
  }
61
35
  if (this.runNotification != null) {
62
- properties["RunNotification"] = (_b = this.runNotification) === null || _b === void 0 ? void 0 : _b.properties();
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();
63
40
  }
64
41
  if (this.logSetting != null) {
65
- properties["LogSetting"] = (_c = this.logSetting) === null || _c === void 0 ? void 0 : _c.properties();
42
+ properties["logSetting"] = (_c = this.logSetting) === null || _c === void 0 ? void 0 : _c.properties();
66
43
  }
67
44
  return properties;
68
45
  }
69
- ref() {
70
- return new NamespaceRef_1.default(this.name);
71
- }
72
- getAttrNamespaceId() {
73
- return new func_1.GetAttr(this, "Item.NamespaceId", null);
74
- }
75
46
  }
76
47
  exports.default = Namespace;
77
48
  //# sourceMappingURL=Namespace.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAIxC,+EAA+C;AAI/C,MAAqB,SAAU,SAAQ,mBAAW;IAS9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,qBAAqB,GAAG,IAAI,CAC/B,CAAC;QAbW,gBAAW,GAAgB,IAAI,CAAC;QAChC,kBAAa,GAAiB,IAAI,CAAC;QACnC,qBAAgB,GAA6B,IAAI,CAAC;QAClD,oBAAe,GAA6B,IAAI,CAAC;QACjD,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;QACpD,IAAI,CAAC,gBAAgB,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Eb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;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,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EACjE,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;CACJ;AAzDD,4BAyDC"}
@@ -13,99 +13,65 @@
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
15
  */
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
-
16
+ import { NotificationSetting } from "../../core/model";
17
+ import { LogSetting } from "../../core/model";
24
18
  import { NamespaceOptions } from "./options/NamespaceOptions";
25
19
 
26
- export default class Namespace extends CdkResource {
27
- private readonly stack: Stack;
20
+ export default class Namespace {
21
+ private readonly ownerId: string;
28
22
  private readonly name: string;
23
+ private readonly enableAutoRun: boolean;
29
24
  private readonly description: string|null = null;
30
- private readonly enableAutoRun: boolean|null = null;
31
- private readonly pushNotification: NotificationSetting|null = null;
32
25
  private readonly runNotification: NotificationSetting|null = null;
26
+ private readonly pushNotification: NotificationSetting|null = null;
33
27
  private readonly logSetting: LogSetting|null = null;
28
+ private readonly revision: number|null = null;
34
29
 
35
30
  public constructor(
36
- stack: Stack,
31
+ ownerId: string,
37
32
  name: string,
33
+ enableAutoRun: boolean,
38
34
  options: NamespaceOptions|null = null,
39
35
  ) {
40
- super(
41
- "JobQueue_Namespace_" + name
42
- );
43
-
44
- this.stack = stack;
36
+ this.ownerId = ownerId;
45
37
  this.name = name;
38
+ this.enableAutoRun = enableAutoRun;
46
39
  this.description = options?.description ?? null;
47
- this.enableAutoRun = options?.enableAutoRun ?? null;
48
- this.pushNotification = options?.pushNotification ?? null;
49
40
  this.runNotification = options?.runNotification ?? null;
41
+ this.pushNotification = options?.pushNotification ?? null;
50
42
  this.logSetting = options?.logSetting ?? null;
51
- stack.addResource(
52
- this,
53
- );
54
- }
55
-
56
-
57
- public alternateKeys(
58
- ) {
59
- return "name";
60
- }
61
-
62
- public resourceType(
63
- ): string {
64
- return "GS2::JobQueue::Namespace";
43
+ this.revision = options?.revision ?? null;
65
44
  }
66
45
 
67
46
  public properties(
68
47
  ): {[name: string]: any} {
69
48
  let properties: {[name: string]: any} = {};
70
49
 
50
+ if (this.ownerId != null) {
51
+ properties["ownerId"] = this.ownerId;
52
+ }
71
53
  if (this.name != null) {
72
- properties["Name"] = this.name;
54
+ properties["name"] = this.name;
73
55
  }
74
56
  if (this.description != null) {
75
- properties["Description"] = this.description;
57
+ properties["description"] = this.description;
76
58
  }
77
59
  if (this.enableAutoRun != null) {
78
- properties["EnableAutoRun"] = this.enableAutoRun;
60
+ properties["enableAutoRun"] = this.enableAutoRun;
79
61
  }
80
- if (this.pushNotification != null) {
81
- properties["PushNotification"] = this.pushNotification?.properties(
62
+ if (this.runNotification != null) {
63
+ properties["runNotification"] = this.runNotification?.properties(
82
64
  );
83
65
  }
84
- if (this.runNotification != null) {
85
- properties["RunNotification"] = this.runNotification?.properties(
66
+ if (this.pushNotification != null) {
67
+ properties["pushNotification"] = this.pushNotification?.properties(
86
68
  );
87
69
  }
88
70
  if (this.logSetting != null) {
89
- properties["LogSetting"] = this.logSetting?.properties(
71
+ properties["logSetting"] = this.logSetting?.properties(
90
72
  );
91
73
  }
92
74
 
93
75
  return properties;
94
76
  }
95
-
96
- public ref(
97
- ): NamespaceRef {
98
- return new NamespaceRef(
99
- this.name!,
100
- );
101
- }
102
-
103
- public getAttrNamespaceId(
104
- ): GetAttr {
105
- return new GetAttr(
106
- this,
107
- "Item.NamespaceId",
108
- null,
109
- );
110
- }
111
77
  }
@@ -1,9 +1,9 @@
1
- import NotificationSetting from "../../../core/model/NotificationSetting";
2
- import LogSetting from "../../../core/model/LogSetting";
1
+ import { NotificationSetting } from "../../../core/model";
2
+ import { LogSetting } from "../../../core/model";
3
3
  export interface NamespaceOptions {
4
4
  description?: string | null;
5
- enableAutoRun?: boolean | null;
6
- pushNotification?: NotificationSetting | null;
7
5
  runNotification?: NotificationSetting | null;
6
+ pushNotification?: NotificationSetting | null;
8
7
  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/NotificationSetting";
17
- import LogSetting from "../../../core/model/LogSetting";
16
+ import { NotificationSetting } from "../../../core/model";
17
+ import { LogSetting } from "../../../core/model";
18
18
 
19
19
  export interface NamespaceOptions {
20
20
  description?: string|null;
21
- enableAutoRun?: boolean|null;
22
- pushNotification?: NotificationSetting|null;
23
21
  runNotification?: NotificationSetting|null;
22
+ pushNotification?: NotificationSetting|null;
24
23
  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.41",
3
+ "version": "1.0.43",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -7,10 +7,10 @@ export default class CategoryModel {
7
7
  private readonly name;
8
8
  private readonly orderDirection;
9
9
  private readonly scope;
10
- private readonly uniqueByUserId;
11
10
  private readonly metadata;
12
11
  private readonly minimumValue;
13
12
  private readonly maximumValue;
13
+ private readonly uniqueByUserId;
14
14
  private readonly sum;
15
15
  private readonly calculateFixedTimingHour;
16
16
  private readonly calculateFixedTimingMinute;
@@ -20,9 +20,9 @@ export default class CategoryModel {
20
20
  private readonly accessPeriodEventId;
21
21
  private readonly ignoreUserIds;
22
22
  private readonly generation;
23
- constructor(name: string, orderDirection: CategoryModelOrderDirection, scope: CategoryModelScope, uniqueByUserId: boolean, options?: CategoryModelOptions | null);
23
+ constructor(name: string, orderDirection: CategoryModelOrderDirection, scope: CategoryModelScope, options?: CategoryModelOptions | null);
24
24
  static scopeIsGlobal(name: string, orderDirection: CategoryModelOrderDirection, uniqueByUserId: boolean, calculateIntervalMinutes: number, options?: CategoryModelScopeIsGlobalOptions | null): CategoryModel;
25
- static scopeIsScoped(name: string, orderDirection: CategoryModelOrderDirection, uniqueByUserId: boolean, options?: CategoryModelScopeIsScopedOptions | null): CategoryModel;
25
+ static scopeIsScoped(name: string, orderDirection: CategoryModelOrderDirection, options?: CategoryModelScopeIsScopedOptions | null): CategoryModel;
26
26
  properties(): {
27
27
  [name: string]: any;
28
28
  };
@@ -2,11 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const CategoryModelScope_1 = require("./enum/CategoryModelScope");
4
4
  class CategoryModel {
5
- constructor(name, orderDirection, scope, uniqueByUserId, options = null) {
6
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
5
+ constructor(name, orderDirection, scope, options = null) {
6
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
7
7
  this.metadata = null;
8
8
  this.minimumValue = null;
9
9
  this.maximumValue = null;
10
+ this.uniqueByUserId = null;
10
11
  this.sum = null;
11
12
  this.calculateFixedTimingHour = null;
12
13
  this.calculateFixedTimingMinute = null;
@@ -19,22 +20,23 @@ class CategoryModel {
19
20
  this.name = name;
20
21
  this.orderDirection = orderDirection;
21
22
  this.scope = scope;
22
- this.uniqueByUserId = uniqueByUserId;
23
23
  this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
24
24
  this.minimumValue = (_b = options === null || options === void 0 ? void 0 : options.minimumValue) !== null && _b !== void 0 ? _b : null;
25
25
  this.maximumValue = (_c = options === null || options === void 0 ? void 0 : options.maximumValue) !== null && _c !== void 0 ? _c : null;
26
- this.sum = (_d = options === null || options === void 0 ? void 0 : options.sum) !== null && _d !== void 0 ? _d : null;
27
- this.calculateFixedTimingHour = (_e = options === null || options === void 0 ? void 0 : options.calculateFixedTimingHour) !== null && _e !== void 0 ? _e : null;
28
- this.calculateFixedTimingMinute = (_f = options === null || options === void 0 ? void 0 : options.calculateFixedTimingMinute) !== null && _f !== void 0 ? _f : null;
29
- this.calculateIntervalMinutes = (_g = options === null || options === void 0 ? void 0 : options.calculateIntervalMinutes) !== null && _g !== void 0 ? _g : null;
30
- this.additionalScopes = (_h = options === null || options === void 0 ? void 0 : options.additionalScopes) !== null && _h !== void 0 ? _h : null;
31
- this.entryPeriodEventId = (_j = options === null || options === void 0 ? void 0 : options.entryPeriodEventId) !== null && _j !== void 0 ? _j : null;
32
- this.accessPeriodEventId = (_k = options === null || options === void 0 ? void 0 : options.accessPeriodEventId) !== null && _k !== void 0 ? _k : null;
33
- this.ignoreUserIds = (_l = options === null || options === void 0 ? void 0 : options.ignoreUserIds) !== null && _l !== void 0 ? _l : null;
34
- this.generation = (_m = options === null || options === void 0 ? void 0 : options.generation) !== null && _m !== void 0 ? _m : null;
26
+ this.uniqueByUserId = (_d = options === null || options === void 0 ? void 0 : options.uniqueByUserId) !== null && _d !== void 0 ? _d : null;
27
+ this.sum = (_e = options === null || options === void 0 ? void 0 : options.sum) !== null && _e !== void 0 ? _e : null;
28
+ this.calculateFixedTimingHour = (_f = options === null || options === void 0 ? void 0 : options.calculateFixedTimingHour) !== null && _f !== void 0 ? _f : null;
29
+ this.calculateFixedTimingMinute = (_g = options === null || options === void 0 ? void 0 : options.calculateFixedTimingMinute) !== null && _g !== void 0 ? _g : null;
30
+ this.calculateIntervalMinutes = (_h = options === null || options === void 0 ? void 0 : options.calculateIntervalMinutes) !== null && _h !== void 0 ? _h : null;
31
+ this.additionalScopes = (_j = options === null || options === void 0 ? void 0 : options.additionalScopes) !== null && _j !== void 0 ? _j : null;
32
+ this.entryPeriodEventId = (_k = options === null || options === void 0 ? void 0 : options.entryPeriodEventId) !== null && _k !== void 0 ? _k : null;
33
+ this.accessPeriodEventId = (_l = options === null || options === void 0 ? void 0 : options.accessPeriodEventId) !== null && _l !== void 0 ? _l : null;
34
+ this.ignoreUserIds = (_m = options === null || options === void 0 ? void 0 : options.ignoreUserIds) !== null && _m !== void 0 ? _m : null;
35
+ this.generation = (_o = options === null || options === void 0 ? void 0 : options.generation) !== null && _o !== void 0 ? _o : null;
35
36
  }
36
37
  static scopeIsGlobal(name, orderDirection, uniqueByUserId, calculateIntervalMinutes, options = null) {
37
- return new CategoryModel(name, orderDirection, CategoryModelScope_1.CategoryModelScope.GLOBAL, uniqueByUserId, {
38
+ return new CategoryModel(name, orderDirection, CategoryModelScope_1.CategoryModelScope.GLOBAL, {
39
+ uniqueByUserId: uniqueByUserId,
38
40
  calculateIntervalMinutes: calculateIntervalMinutes,
39
41
  metadata: options === null || options === void 0 ? void 0 : options.metadata,
40
42
  minimumValue: options === null || options === void 0 ? void 0 : options.minimumValue,
@@ -48,8 +50,8 @@ class CategoryModel {
48
50
  generation: options === null || options === void 0 ? void 0 : options.generation,
49
51
  });
50
52
  }
51
- static scopeIsScoped(name, orderDirection, uniqueByUserId, options = null) {
52
- return new CategoryModel(name, orderDirection, CategoryModelScope_1.CategoryModelScope.SCOPED, uniqueByUserId, {
53
+ static scopeIsScoped(name, orderDirection, options = null) {
54
+ return new CategoryModel(name, orderDirection, CategoryModelScope_1.CategoryModelScope.SCOPED, {
53
55
  metadata: options === null || options === void 0 ? void 0 : options.metadata,
54
56
  minimumValue: options === null || options === void 0 ? void 0 : options.minimumValue,
55
57
  maximumValue: options === null || options === void 0 ? void 0 : options.maximumValue,
@@ -1 +1 @@
1
- {"version":3,"file":"CategoryModel.js","sourceRoot":"","sources":["CategoryModel.ts"],"names":[],"mappings":";;AAoBA,kEAA+D;AAE/D,MAAqB,aAAa;IAkB9B,YACI,IAAY,EACZ,cAA2C,EAC3C,KAAyB,EACzB,cAAuB,EACvB,UAAqC,IAAI;;QAlB5B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,iBAAY,GAAgB,IAAI,CAAC;QACjC,iBAAY,GAAgB,IAAI,CAAC;QACjC,QAAG,GAAiB,IAAI,CAAC;QACzB,6BAAwB,GAAgB,IAAI,CAAC;QAC7C,+BAA0B,GAAgB,IAAI,CAAC;QAC/C,6BAAwB,GAAgB,IAAI,CAAC;QAC7C,qBAAgB,GAAiB,IAAI,CAAC;QACtC,uBAAkB,GAAgB,IAAI,CAAC;QACvC,wBAAmB,GAAgB,IAAI,CAAC;QACxC,kBAAa,GAAkB,IAAI,CAAC;QACpC,eAAU,GAAgB,IAAI,CAAC;QAS5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,cAAc,G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AAI,EAAE;YACvC,UAAU,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC;SAC1E;QACD,IAAI,IAAI,CAAC,0BAA0B,IAAI,IAAI,EAAE;YACzC,UAAU,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC,0BAA0B,CAAC;SAC9E;QACD,IAAI,IAAI,CAAC,wBAAwB,IAAI,IAAI,EAAE;YACvC,UAAU,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC;SAC1E;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACvE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE;YAClC,UAAU,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC;SAChE;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAtJD,gCAsJC"}
@@ -24,10 +24,10 @@ export default class CategoryModel {
24
24
  private readonly name: string;
25
25
  private readonly orderDirection: CategoryModelOrderDirection;
26
26
  private readonly scope: CategoryModelScope;
27
- private readonly uniqueByUserId: boolean;
28
27
  private readonly metadata: string|null = null;
29
28
  private readonly minimumValue: number|null = null;
30
29
  private readonly maximumValue: number|null = null;
30
+ private readonly uniqueByUserId: boolean|null = null;
31
31
  private readonly sum: boolean|null = null;
32
32
  private readonly calculateFixedTimingHour: number|null = null;
33
33
  private readonly calculateFixedTimingMinute: number|null = null;
@@ -42,16 +42,15 @@ export default class CategoryModel {
42
42
  name: string,
43
43
  orderDirection: CategoryModelOrderDirection,
44
44
  scope: CategoryModelScope,
45
- uniqueByUserId: boolean,
46
45
  options: CategoryModelOptions|null = null,
47
46
  ) {
48
47
  this.name = name;
49
48
  this.orderDirection = orderDirection;
50
49
  this.scope = scope;
51
- this.uniqueByUserId = uniqueByUserId;
52
50
  this.metadata = options?.metadata ?? null;
53
51
  this.minimumValue = options?.minimumValue ?? null;
54
52
  this.maximumValue = options?.maximumValue ?? null;
53
+ this.uniqueByUserId = options?.uniqueByUserId ?? null;
55
54
  this.sum = options?.sum ?? null;
56
55
  this.calculateFixedTimingHour = options?.calculateFixedTimingHour ?? null;
57
56
  this.calculateFixedTimingMinute = options?.calculateFixedTimingMinute ?? null;
@@ -74,8 +73,8 @@ export default class CategoryModel {
74
73
  name,
75
74
  orderDirection,
76
75
  CategoryModelScope.GLOBAL,
77
- uniqueByUserId,
78
76
  {
77
+ uniqueByUserId: uniqueByUserId,
79
78
  calculateIntervalMinutes: calculateIntervalMinutes,
80
79
  metadata: options?.metadata,
81
80
  minimumValue: options?.minimumValue,
@@ -94,14 +93,12 @@ export default class CategoryModel {
94
93
  public static scopeIsScoped(
95
94
  name: string,
96
95
  orderDirection: CategoryModelOrderDirection,
97
- uniqueByUserId: boolean,
98
96
  options: CategoryModelScopeIsScopedOptions|null = null,
99
97
  ): CategoryModel {
100
98
  return new CategoryModel(
101
99
  name,
102
100
  orderDirection,
103
101
  CategoryModelScope.SCOPED,
104
- uniqueByUserId,
105
102
  {
106
103
  metadata: options?.metadata,
107
104
  minimumValue: options?.minimumValue,
@@ -3,6 +3,7 @@ export interface CategoryModelOptions {
3
3
  metadata?: string | null;
4
4
  minimumValue?: number | null;
5
5
  maximumValue?: number | null;
6
+ uniqueByUserId?: boolean | null;
6
7
  sum?: boolean | null;
7
8
  calculateFixedTimingHour?: number | null;
8
9
  calculateFixedTimingMinute?: number | null;
@@ -21,6 +21,7 @@ export interface CategoryModelOptions {
21
21
  metadata?: string|null;
22
22
  minimumValue?: number|null;
23
23
  maximumValue?: number|null;
24
+ uniqueByUserId?: boolean|null;
24
25
  sum?: boolean|null;
25
26
  calculateFixedTimingHour?: number|null;
26
27
  calculateFixedTimingMinute?: number|null;
@@ -41,7 +41,7 @@ class Namespace extends model_1.CdkResource {
41
41
  return "GS2::Stamina::Namespace";
42
42
  }
43
43
  properties() {
44
- var _a, _b;
44
+ var _a;
45
45
  let properties = {};
46
46
  if (this.name != null) {
47
47
  properties["Name"] = this.name;
@@ -50,10 +50,10 @@ class Namespace extends model_1.CdkResource {
50
50
  properties["Description"] = this.description;
51
51
  }
52
52
  if (this.overflowTriggerScript != null) {
53
- properties["OverflowTriggerScript"] = (_a = this.overflowTriggerScript) === null || _a === void 0 ? void 0 : _a.properties();
53
+ properties["OverflowTriggerScript"] = this.overflowTriggerScript;
54
54
  }
55
55
  if (this.logSetting != null) {
56
- properties["LogSetting"] = (_b = this.logSetting) === null || _b === void 0 ? void 0 : _b.properties();
56
+ properties["LogSetting"] = (_a = this.logSetting) === null || _a === void 0 ? void 0 : _a.properties();
57
57
  }
58
58
  return properties;
59
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAIxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAO9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,oBAAoB,GAAG,IAAI,CAC9B,CAAC;QAXW,gBAAW,GAAgB,IAAI,CAAC;QAChC,0BAAqB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,YAAY;QAEf,OAAO,yBAAyB,CAAC;IACrC,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,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,qBAAqB,IAAI,IAAI,EAAE;YACpC,UAAU,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;SACpE;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;IAEM,UAAU,CACb,aAA6B;QAE7B,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,aAAa,CAChB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAtFD,4BAsFC"}
@@ -16,7 +16,6 @@
16
16
 
17
17
  import {CdkResource, Stack} from "../../core/model";
18
18
  import {GetAttr} from "../../core/func";
19
- import ScriptSetting from "../../core/model/ScriptSetting";
20
19
  import LogSetting from "../../core/model/LogSetting";
21
20
 
22
21
  import NamespaceRef from "../ref/NamespaceRef";
@@ -29,7 +28,7 @@ export default class Namespace extends CdkResource {
29
28
  private readonly stack: Stack;
30
29
  private readonly name: string;
31
30
  private readonly description: string|null = null;
32
- private readonly overflowTriggerScript: ScriptSetting|null = null;
31
+ private readonly overflowTriggerScript: string|null = null;
33
32
  private readonly logSetting: LogSetting|null = null;
34
33
 
35
34
  public constructor(
@@ -73,8 +72,7 @@ export default class Namespace extends CdkResource {
73
72
  properties["Description"] = this.description;
74
73
  }
75
74
  if (this.overflowTriggerScript != null) {
76
- properties["OverflowTriggerScript"] = this.overflowTriggerScript?.properties(
77
- );
75
+ properties["OverflowTriggerScript"] = this.overflowTriggerScript;
78
76
  }
79
77
  if (this.logSetting != null) {
80
78
  properties["LogSetting"] = this.logSetting?.properties(
@@ -1,7 +1,6 @@
1
- import ScriptSetting from "../../../core/model/ScriptSetting";
2
1
  import LogSetting from "../../../core/model/LogSetting";
3
2
  export interface NamespaceOptions {
4
3
  description?: string | null;
5
- overflowTriggerScript?: ScriptSetting | null;
4
+ overflowTriggerScript?: string | null;
6
5
  logSetting?: LogSetting | null;
7
6
  }
@@ -13,12 +13,11 @@
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 ScriptSetting from "../../../core/model/ScriptSetting";
17
16
  import LogSetting from "../../../core/model/LogSetting";
18
17
 
19
18
  export interface NamespaceOptions {
20
19
  description?: string|null;
21
- overflowTriggerScript?: ScriptSetting|null;
20
+ overflowTriggerScript?: string|null;
22
21
  logSetting?: LogSetting|null;
23
22
  }
24
23