gs2-cdk 1.0.40 → 1.0.42
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/dictionary/model/Namespace.js +3 -3
- package/dictionary/model/Namespace.js.map +1 -1
- package/dictionary/model/Namespace.ts +2 -3
- package/dictionary/model/options/NamespaceOptions.d.ts +1 -1
- package/dictionary/model/options/NamespaceOptions.ts +1 -1
- package/formation/model/SlotWithSignature.d.ts +1 -1
- package/formation/model/SlotWithSignature.js +7 -5
- package/formation/model/SlotWithSignature.js.map +1 -1
- package/formation/model/SlotWithSignature.ts +4 -6
- package/formation/model/options/SlotWithSignatureOptions.d.ts +2 -0
- package/formation/model/options/SlotWithSignatureOptions.ts +2 -0
- package/package.json +1 -1
- package/stamina/model/Namespace.js +3 -3
- package/stamina/model/Namespace.js.map +1 -1
- package/stamina/model/Namespace.ts +2 -4
- package/stamina/model/options/NamespaceOptions.d.ts +1 -2
- package/stamina/model/options/NamespaceOptions.ts +1 -2
|
@@ -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
|
|
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"] =
|
|
58
|
+
properties["DuplicateEntryScript"] = this.duplicateEntryScript;
|
|
59
59
|
}
|
|
60
60
|
if (this.logSetting != null) {
|
|
61
|
-
properties["LogSetting"] = (
|
|
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,
|
|
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,GAAgB,IAAI,CAAC;QACzC,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,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,oBAAoB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,C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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:
|
|
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
|
|
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?:
|
|
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?:
|
|
22
|
+
duplicateEntryScript?: string|null;
|
|
23
23
|
logSetting?: LogSetting|null;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -6,7 +6,7 @@ export default class SlotWithSignature {
|
|
|
6
6
|
private readonly body;
|
|
7
7
|
private readonly signature;
|
|
8
8
|
private readonly metadata;
|
|
9
|
-
constructor(name: string, propertyType: SlotWithSignaturePropertyType,
|
|
9
|
+
constructor(name: string, propertyType: SlotWithSignaturePropertyType, options?: SlotWithSignatureOptions | null);
|
|
10
10
|
properties(): {
|
|
11
11
|
[name: string]: any;
|
|
12
12
|
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class SlotWithSignature {
|
|
4
|
-
constructor(name, propertyType,
|
|
5
|
-
var _a;
|
|
4
|
+
constructor(name, propertyType, options = null) {
|
|
5
|
+
var _a, _b, _c;
|
|
6
|
+
this.body = null;
|
|
7
|
+
this.signature = null;
|
|
6
8
|
this.metadata = null;
|
|
7
9
|
this.name = name;
|
|
8
10
|
this.propertyType = propertyType;
|
|
9
|
-
this.body = body;
|
|
10
|
-
this.signature = signature;
|
|
11
|
-
this.metadata = (
|
|
11
|
+
this.body = (_a = options === null || options === void 0 ? void 0 : options.body) !== null && _a !== void 0 ? _a : null;
|
|
12
|
+
this.signature = (_b = options === null || options === void 0 ? void 0 : options.signature) !== null && _b !== void 0 ? _b : null;
|
|
13
|
+
this.metadata = (_c = options === null || options === void 0 ? void 0 : options.metadata) !== null && _c !== void 0 ? _c : null;
|
|
12
14
|
}
|
|
13
15
|
properties() {
|
|
14
16
|
let properties = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlotWithSignature.js","sourceRoot":"","sources":["SlotWithSignature.ts"],"names":[],"mappings":";;AAkBA,MAAqB,iBAAiB;IAOlC,YACI,IAAY,EACZ,YAA2C,EAC3C,
|
|
1
|
+
{"version":3,"file":"SlotWithSignature.js","sourceRoot":"","sources":["SlotWithSignature.ts"],"names":[],"mappings":";;AAkBA,MAAqB,iBAAiB;IAOlC,YACI,IAAY,EACZ,YAA2C,EAC3C,UAAyC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"./enum/SlotWithSignaturePropertyT
|
|
|
19
19
|
export default class SlotWithSignature {
|
|
20
20
|
private readonly name: string;
|
|
21
21
|
private readonly propertyType: SlotWithSignaturePropertyType;
|
|
22
|
-
private readonly body: string;
|
|
23
|
-
private readonly signature: string;
|
|
22
|
+
private readonly body: string|null = null;
|
|
23
|
+
private readonly signature: string|null = null;
|
|
24
24
|
private readonly metadata: string|null = null;
|
|
25
25
|
|
|
26
26
|
public constructor(
|
|
27
27
|
name: string,
|
|
28
28
|
propertyType: SlotWithSignaturePropertyType,
|
|
29
|
-
body: string,
|
|
30
|
-
signature: string,
|
|
31
29
|
options: SlotWithSignatureOptions|null = null,
|
|
32
30
|
) {
|
|
33
31
|
this.name = name;
|
|
34
32
|
this.propertyType = propertyType;
|
|
35
|
-
this.body = body;
|
|
36
|
-
this.signature = signature;
|
|
33
|
+
this.body = options?.body ?? null;
|
|
34
|
+
this.signature = options?.signature ?? null;
|
|
37
35
|
this.metadata = options?.metadata ?? null;
|
|
38
36
|
}
|
|
39
37
|
|
package/package.json
CHANGED
|
@@ -41,7 +41,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
41
41
|
return "GS2::Stamina::Namespace";
|
|
42
42
|
}
|
|
43
43
|
properties() {
|
|
44
|
-
var _a
|
|
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"] =
|
|
53
|
+
properties["OverflowTriggerScript"] = this.overflowTriggerScript;
|
|
54
54
|
}
|
|
55
55
|
if (this.logSetting != null) {
|
|
56
|
-
properties["LogSetting"] = (
|
|
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;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAGxC,+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,GAAgB,IAAI,CAAC;QAC1C,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,qBAAqB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,qBAAqB,mCAAI,IAAI,CAAC;QACpE,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;IAGM,aAAa;QAEhB,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,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:
|
|
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
|
|
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?:
|
|
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?:
|
|
20
|
+
overflowTriggerScript?: string|null;
|
|
22
21
|
logSetting?: LogSetting|null;
|
|
23
22
|
}
|
|
24
23
|
|