gs2-cdk 1.0.118 → 1.0.120
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.
- package/lottery/model/Namespace.d.ts +0 -1
- package/lottery/model/Namespace.js +2 -7
- package/lottery/model/Namespace.js.map +1 -1
- package/lottery/model/Namespace.ts +0 -5
- package/lottery/model/options/NamespaceOptions.d.ts +0 -1
- package/lottery/model/options/NamespaceOptions.ts +0 -1
- package/money2/model/Namespace.d.ts +1 -0
- package/money2/model/Namespace.js +16 -11
- package/money2/model/Namespace.js.map +1 -1
- package/money2/model/Namespace.ts +6 -0
- package/money2/model/options/NamespaceOptions.d.ts +1 -0
- package/money2/model/options/NamespaceOptions.ts +1 -0
- package/package.json +1 -1
|
@@ -10,7 +10,6 @@ export default class Namespace extends CdkResource {
|
|
|
10
10
|
private readonly description;
|
|
11
11
|
private readonly transactionSetting;
|
|
12
12
|
private readonly lotteryTriggerScriptId;
|
|
13
|
-
private readonly choicePrizeTableScriptId;
|
|
14
13
|
private readonly logSetting;
|
|
15
14
|
constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
|
|
16
15
|
alternateKeys(): string;
|
|
@@ -22,20 +22,18 @@ 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, options = null) {
|
|
25
|
-
var _a, _b, _c, _d
|
|
25
|
+
var _a, _b, _c, _d;
|
|
26
26
|
super("Lottery_Namespace_" + name);
|
|
27
27
|
this.description = null;
|
|
28
28
|
this.transactionSetting = null;
|
|
29
29
|
this.lotteryTriggerScriptId = null;
|
|
30
|
-
this.choicePrizeTableScriptId = null;
|
|
31
30
|
this.logSetting = null;
|
|
32
31
|
this.stack = stack;
|
|
33
32
|
this.name = name;
|
|
34
33
|
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
35
34
|
this.transactionSetting = (_b = options === null || options === void 0 ? void 0 : options.transactionSetting) !== null && _b !== void 0 ? _b : null;
|
|
36
35
|
this.lotteryTriggerScriptId = (_c = options === null || options === void 0 ? void 0 : options.lotteryTriggerScriptId) !== null && _c !== void 0 ? _c : null;
|
|
37
|
-
this.
|
|
38
|
-
this.logSetting = (_e = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _e !== void 0 ? _e : null;
|
|
36
|
+
this.logSetting = (_d = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _d !== void 0 ? _d : null;
|
|
39
37
|
stack.addResource(this);
|
|
40
38
|
}
|
|
41
39
|
alternateKeys() {
|
|
@@ -59,9 +57,6 @@ class Namespace extends model_1.CdkResource {
|
|
|
59
57
|
if (this.lotteryTriggerScriptId != null) {
|
|
60
58
|
properties["LotteryTriggerScriptId"] = this.lotteryTriggerScriptId;
|
|
61
59
|
}
|
|
62
|
-
if (this.choicePrizeTableScriptId != null) {
|
|
63
|
-
properties["ChoicePrizeTableScriptId"] = this.choicePrizeTableScriptId;
|
|
64
|
-
}
|
|
65
60
|
if (this.logSetting != null) {
|
|
66
61
|
properties["LogSetting"] = (_b = this.logSetting) === null || _b === void 0 ? void 0 : _b.properties();
|
|
67
62
|
}
|
|
@@ -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;AAMpD,MAAqB,SAAU,SAAQ,mBAAW;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAIxC,+EAA+C;AAC/C,oFAAoD;AAMpD,MAAqB,SAAU,SAAQ,mBA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C,oBAAoB,CAAC,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,UAAU,EACrE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;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,EAC7B,WAAyB;QAEzB,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,aAAa,EACb,WAAW,CACd,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA9FD,4BA8FC"}
|
|
@@ -32,7 +32,6 @@ export default class Namespace extends CdkResource {
|
|
|
32
32
|
private readonly description: string|null = null;
|
|
33
33
|
private readonly transactionSetting: TransactionSetting|null = null;
|
|
34
34
|
private readonly lotteryTriggerScriptId: string|null = null;
|
|
35
|
-
private readonly choicePrizeTableScriptId: string|null = null;
|
|
36
35
|
private readonly logSetting: LogSetting|null = null;
|
|
37
36
|
|
|
38
37
|
public constructor(
|
|
@@ -49,7 +48,6 @@ export default class Namespace extends CdkResource {
|
|
|
49
48
|
this.description = options?.description ?? null;
|
|
50
49
|
this.transactionSetting = options?.transactionSetting ?? null;
|
|
51
50
|
this.lotteryTriggerScriptId = options?.lotteryTriggerScriptId ?? null;
|
|
52
|
-
this.choicePrizeTableScriptId = options?.choicePrizeTableScriptId ?? null;
|
|
53
51
|
this.logSetting = options?.logSetting ?? null;
|
|
54
52
|
stack.addResource(
|
|
55
53
|
this,
|
|
@@ -84,9 +82,6 @@ export default class Namespace extends CdkResource {
|
|
|
84
82
|
if (this.lotteryTriggerScriptId != null) {
|
|
85
83
|
properties["LotteryTriggerScriptId"] = this.lotteryTriggerScriptId;
|
|
86
84
|
}
|
|
87
|
-
if (this.choicePrizeTableScriptId != null) {
|
|
88
|
-
properties["ChoicePrizeTableScriptId"] = this.choicePrizeTableScriptId;
|
|
89
|
-
}
|
|
90
85
|
if (this.logSetting != null) {
|
|
91
86
|
properties["LogSetting"] = this.logSetting?.properties(
|
|
92
87
|
);
|
|
@@ -4,7 +4,6 @@ export interface NamespaceOptions {
|
|
|
4
4
|
description?: string | null;
|
|
5
5
|
transactionSetting?: TransactionSetting | null;
|
|
6
6
|
lotteryTriggerScriptId?: string | null;
|
|
7
|
-
choicePrizeTableScriptId?: string | null;
|
|
8
7
|
logSetting?: LogSetting | null;
|
|
9
8
|
queueNamespaceId?: string | null;
|
|
10
9
|
keyId?: string | null;
|
|
@@ -20,7 +20,6 @@ export interface NamespaceOptions {
|
|
|
20
20
|
description?: string|null;
|
|
21
21
|
transactionSetting?: TransactionSetting|null;
|
|
22
22
|
lotteryTriggerScriptId?: string|null;
|
|
23
|
-
choicePrizeTableScriptId?: string|null;
|
|
24
23
|
logSetting?: LogSetting|null;
|
|
25
24
|
queueNamespaceId?: string|null;
|
|
26
25
|
keyId?: string|null;
|
|
@@ -15,6 +15,7 @@ export default class Namespace extends CdkResource {
|
|
|
15
15
|
private readonly description;
|
|
16
16
|
private readonly depositBalanceScript;
|
|
17
17
|
private readonly withdrawBalanceScript;
|
|
18
|
+
private readonly verifyReceiptScript;
|
|
18
19
|
private readonly subscribeScript;
|
|
19
20
|
private readonly renewScript;
|
|
20
21
|
private readonly unsubscribeScript;
|
|
@@ -22,11 +22,12 @@ 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, _d, _e, _f, _g, _h, _j;
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
26
26
|
super("Money2_Namespace_" + name);
|
|
27
27
|
this.description = null;
|
|
28
28
|
this.depositBalanceScript = null;
|
|
29
29
|
this.withdrawBalanceScript = null;
|
|
30
|
+
this.verifyReceiptScript = null;
|
|
30
31
|
this.subscribeScript = null;
|
|
31
32
|
this.renewScript = null;
|
|
32
33
|
this.unsubscribeScript = null;
|
|
@@ -41,12 +42,13 @@ class Namespace extends model_1.CdkResource {
|
|
|
41
42
|
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
42
43
|
this.depositBalanceScript = (_b = options === null || options === void 0 ? void 0 : options.depositBalanceScript) !== null && _b !== void 0 ? _b : null;
|
|
43
44
|
this.withdrawBalanceScript = (_c = options === null || options === void 0 ? void 0 : options.withdrawBalanceScript) !== null && _c !== void 0 ? _c : null;
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
48
|
-
this.
|
|
49
|
-
this.
|
|
45
|
+
this.verifyReceiptScript = (_d = options === null || options === void 0 ? void 0 : options.verifyReceiptScript) !== null && _d !== void 0 ? _d : null;
|
|
46
|
+
this.subscribeScript = (_e = options === null || options === void 0 ? void 0 : options.subscribeScript) !== null && _e !== void 0 ? _e : null;
|
|
47
|
+
this.renewScript = (_f = options === null || options === void 0 ? void 0 : options.renewScript) !== null && _f !== void 0 ? _f : null;
|
|
48
|
+
this.unsubscribeScript = (_g = options === null || options === void 0 ? void 0 : options.unsubscribeScript) !== null && _g !== void 0 ? _g : null;
|
|
49
|
+
this.takeOverScript = (_h = options === null || options === void 0 ? void 0 : options.takeOverScript) !== null && _h !== void 0 ? _h : null;
|
|
50
|
+
this.changeSubscriptionStatusNotification = (_j = options === null || options === void 0 ? void 0 : options.changeSubscriptionStatusNotification) !== null && _j !== void 0 ? _j : null;
|
|
51
|
+
this.logSetting = (_k = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _k !== void 0 ? _k : null;
|
|
50
52
|
stack.addResource(this);
|
|
51
53
|
}
|
|
52
54
|
alternateKeys() {
|
|
@@ -56,7 +58,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
56
58
|
return "GS2::Money2::Namespace";
|
|
57
59
|
}
|
|
58
60
|
properties() {
|
|
59
|
-
var _a, _b, _c, _d, _e, _f;
|
|
61
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
60
62
|
let properties = {};
|
|
61
63
|
if (this.name != null) {
|
|
62
64
|
properties["Name"] = this.name;
|
|
@@ -79,6 +81,9 @@ class Namespace extends model_1.CdkResource {
|
|
|
79
81
|
if (this.withdrawBalanceScript != null) {
|
|
80
82
|
properties["WithdrawBalanceScript"] = (_c = this.withdrawBalanceScript) === null || _c === void 0 ? void 0 : _c.properties();
|
|
81
83
|
}
|
|
84
|
+
if (this.verifyReceiptScript != null) {
|
|
85
|
+
properties["VerifyReceiptScript"] = (_d = this.verifyReceiptScript) === null || _d === void 0 ? void 0 : _d.properties();
|
|
86
|
+
}
|
|
82
87
|
if (this.subscribeScript != null) {
|
|
83
88
|
properties["SubscribeScript"] = this.subscribeScript;
|
|
84
89
|
}
|
|
@@ -89,13 +94,13 @@ class Namespace extends model_1.CdkResource {
|
|
|
89
94
|
properties["UnsubscribeScript"] = this.unsubscribeScript;
|
|
90
95
|
}
|
|
91
96
|
if (this.takeOverScript != null) {
|
|
92
|
-
properties["TakeOverScript"] = (
|
|
97
|
+
properties["TakeOverScript"] = (_e = this.takeOverScript) === null || _e === void 0 ? void 0 : _e.properties();
|
|
93
98
|
}
|
|
94
99
|
if (this.changeSubscriptionStatusNotification != null) {
|
|
95
|
-
properties["ChangeSubscriptionStatusNotification"] = (
|
|
100
|
+
properties["ChangeSubscriptionStatusNotification"] = (_f = this.changeSubscriptionStatusNotification) === null || _f === void 0 ? void 0 : _f.properties();
|
|
96
101
|
}
|
|
97
102
|
if (this.logSetting != null) {
|
|
98
|
-
properties["LogSetting"] = (
|
|
103
|
+
properties["LogSetting"] = (_g = this.logSetting) === null || _g === void 0 ? void 0 : _g.properties();
|
|
99
104
|
}
|
|
100
105
|
return properties;
|
|
101
106
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAMxC,+EAA+C;AAC/C,oFAAoD;AAOpD,MAAqB,SAAU,SAAQ,mBAAW;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAMxC,+EAA+C;AAC/C,oFAAoD;AAOpD,MAAqB,SAAU,SAAQ,mBAAW;IAiB9C,YACI,KAAY,EACZ,IAAY,EACZ,qBAAqD,EACrD,kBAA2B,EAC3B,eAAgC,EAChC,UAAiC,IAAI;;QAErC,KAAK,CACD,mBAAmB,GAAG,IAAI,CAC7B,CAAC;QArBW,gBAAW,GAAgB,IAAI,CAAC;QAChC,yBAAoB,GAAuB,IAAI,CAAC;QAChD,0BAAqB,GAAuB,IAAI,CAAC;QACjD,wBAAmB,GAAuB,IAAI,CAAC;QAC/C,oBAAe,GAAgB,IAAI,CAAC;QACpC,gBAAW,GAAgB,IAAI,CAAC;QAChC,sBAAiB,GAAgB,IAAI,CAAC;QACtC,mBAAc,GAAuB,IAAI,CAAC;QAC1C,yCAAoC,GAA6B,IAAI,CAAC;QACtE,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I,CAAC;IAChB,CAAC;CACJ;AAnJD,4BAmJC"}
|
|
@@ -38,6 +38,7 @@ export default class Namespace extends CdkResource {
|
|
|
38
38
|
private readonly description: string|null = null;
|
|
39
39
|
private readonly depositBalanceScript: ScriptSetting|null = null;
|
|
40
40
|
private readonly withdrawBalanceScript: ScriptSetting|null = null;
|
|
41
|
+
private readonly verifyReceiptScript: ScriptSetting|null = null;
|
|
41
42
|
private readonly subscribeScript: string|null = null;
|
|
42
43
|
private readonly renewScript: string|null = null;
|
|
43
44
|
private readonly unsubscribeScript: string|null = null;
|
|
@@ -65,6 +66,7 @@ export default class Namespace extends CdkResource {
|
|
|
65
66
|
this.description = options?.description ?? null;
|
|
66
67
|
this.depositBalanceScript = options?.depositBalanceScript ?? null;
|
|
67
68
|
this.withdrawBalanceScript = options?.withdrawBalanceScript ?? null;
|
|
69
|
+
this.verifyReceiptScript = options?.verifyReceiptScript ?? null;
|
|
68
70
|
this.subscribeScript = options?.subscribeScript ?? null;
|
|
69
71
|
this.renewScript = options?.renewScript ?? null;
|
|
70
72
|
this.unsubscribeScript = options?.unsubscribeScript ?? null;
|
|
@@ -115,6 +117,10 @@ export default class Namespace extends CdkResource {
|
|
|
115
117
|
properties["WithdrawBalanceScript"] = this.withdrawBalanceScript?.properties(
|
|
116
118
|
);
|
|
117
119
|
}
|
|
120
|
+
if (this.verifyReceiptScript != null) {
|
|
121
|
+
properties["VerifyReceiptScript"] = this.verifyReceiptScript?.properties(
|
|
122
|
+
);
|
|
123
|
+
}
|
|
118
124
|
if (this.subscribeScript != null) {
|
|
119
125
|
properties["SubscribeScript"] = this.subscribeScript;
|
|
120
126
|
}
|
|
@@ -5,6 +5,7 @@ export interface NamespaceOptions {
|
|
|
5
5
|
description?: string | null;
|
|
6
6
|
depositBalanceScript?: ScriptSetting | null;
|
|
7
7
|
withdrawBalanceScript?: ScriptSetting | null;
|
|
8
|
+
verifyReceiptScript?: ScriptSetting | null;
|
|
8
9
|
subscribeScript?: string | null;
|
|
9
10
|
renewScript?: string | null;
|
|
10
11
|
unsubscribeScript?: string | null;
|
|
@@ -23,6 +23,7 @@ export interface NamespaceOptions {
|
|
|
23
23
|
description?: string|null;
|
|
24
24
|
depositBalanceScript?: ScriptSetting|null;
|
|
25
25
|
withdrawBalanceScript?: ScriptSetting|null;
|
|
26
|
+
verifyReceiptScript?: ScriptSetting|null;
|
|
26
27
|
subscribeScript?: string|null;
|
|
27
28
|
renewScript?: string|null;
|
|
28
29
|
unsubscribeScript?: string|null;
|