gs2-cdk 1.0.90 → 1.0.92
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/experience/ref/NamespaceRef.d.ts +1 -1
- package/experience/ref/NamespaceRef.js +2 -2
- package/experience/ref/NamespaceRef.js.map +1 -1
- package/experience/ref/NamespaceRef.ts +2 -0
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.d.ts +2 -1
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.js +6 -1
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.js.map +1 -1
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.ts +6 -0
- package/package.json +1 -1
- package/serialKey/ref/NamespaceRef.d.ts +3 -1
- package/serialKey/ref/NamespaceRef.js +6 -2
- package/serialKey/ref/NamespaceRef.js.map +1 -1
- package/serialKey/ref/NamespaceRef.ts +14 -0
- package/serialKey/stampSheet/IssueOnce.d.ts +11 -0
- package/serialKey/stampSheet/IssueOnce.js +45 -0
- package/serialKey/stampSheet/IssueOnce.js.map +1 -0
- package/serialKey/stampSheet/IssueOnce.ts +57 -0
- package/serialKey/stampSheet/VerifyCodeByUserId.d.ts +2 -1
- package/serialKey/stampSheet/VerifyCodeByUserId.js +6 -1
- package/serialKey/stampSheet/VerifyCodeByUserId.js.map +1 -1
- package/serialKey/stampSheet/VerifyCodeByUserId.ts +6 -0
- package/serialKey/stampSheet/index.d.ts +2 -1
- package/serialKey/stampSheet/index.js +3 -1
- package/serialKey/stampSheet/index.js.map +1 -1
- package/serialKey/stampSheet/index.ts +2 -0
|
@@ -18,7 +18,7 @@ export default class NamespaceRef {
|
|
|
18
18
|
setExperience(experienceName: string, propertyId: string, experienceValue?: number | null, userId?: string): SetExperienceByUserId;
|
|
19
19
|
addRankCap(experienceName: string, propertyId: string, rankCapValue: number, userId?: string): AddRankCapByUserId;
|
|
20
20
|
setRankCap(experienceName: string, propertyId: string, rankCapValue: number, userId?: string): SetRankCapByUserId;
|
|
21
|
-
multiplyAcquireActions(experienceName: string, propertyId: string, rateName: string, acquireActions?: AcquireAction[] | null, userId?: string): MultiplyAcquireActionsByUserId;
|
|
21
|
+
multiplyAcquireActions(experienceName: string, propertyId: string, rateName: string, acquireActions?: AcquireAction[] | null, baseRate?: number | null, userId?: string): MultiplyAcquireActionsByUserId;
|
|
22
22
|
subExperience(experienceName: string, propertyId: string, experienceValue?: number | null, userId?: string): SubExperienceByUserId;
|
|
23
23
|
subRankCap(experienceName: string, propertyId: string, rankCapValue: number, userId?: string): SubRankCapByUserId;
|
|
24
24
|
verifyRank(experienceName: string, verifyType: StatusVerifyType, propertyId: string, rankValue?: number | null, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyRankByUserId;
|
|
@@ -46,8 +46,8 @@ class NamespaceRef {
|
|
|
46
46
|
setRankCap(experienceName, propertyId, rankCapValue, userId = "#{userId}") {
|
|
47
47
|
return new SetRankCapByUserId_1.default(this.namespaceName, experienceName, propertyId, rankCapValue, userId);
|
|
48
48
|
}
|
|
49
|
-
multiplyAcquireActions(experienceName, propertyId, rateName, acquireActions = null, userId = "#{userId}") {
|
|
50
|
-
return new MultiplyAcquireActionsByUserId_1.default(this.namespaceName, experienceName, propertyId, rateName, acquireActions, userId);
|
|
49
|
+
multiplyAcquireActions(experienceName, propertyId, rateName, acquireActions = null, baseRate = null, userId = "#{userId}") {
|
|
50
|
+
return new MultiplyAcquireActionsByUserId_1.default(this.namespaceName, experienceName, propertyId, rateName, acquireActions, baseRate, userId);
|
|
51
51
|
}
|
|
52
52
|
subExperience(experienceName, propertyId, experienceValue = null, userId = "#{userId}") {
|
|
53
53
|
return new SubExperienceByUserId_1.default(this.namespaceName, experienceName, propertyId, experienceValue, userId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,sF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aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,sFAAsD;AACtD,wGAAwE;AACxE,wGAAwE;AACxE,kGAAkE;AAClE,kGAAkE;AAClE,0HAA0F;AAE1F,wGAAwE;AACxE,kGAAkE;AAClE,kGAAkE;AAElE,wGAAwE;AAExE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,eAAe,CAClB,cAAsB;QAEtB,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,cAAc,CACjB,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,cAAsB,EACtB,UAAkB,EAClB,kBAA+B,IAAI,EACnC,+BAA6C,IAAI,EACjD,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,cAAc,EACd,UAAU,EACV,eAAe,EACf,4BAA4B,EAC5B,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,cAAsB,EACtB,UAAkB,EAClB,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,cAAc,EACd,UAAU,EACV,eAAe,EACf,MAAM,CACT,CAAC;IACN,CAAC;IAEM,UAAU,CACb,cAAsB,EACtB,UAAkB,EAClB,YAAoB,EACpB,SAAiB,WAAW;QAE5B,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,UAAU,CACb,cAAsB,EACtB,UAAkB,EAClB,YAAoB,EACpB,SAAiB,WAAW;QAE5B,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C/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,YAAY;YACZ,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA1LD,+BA0LC"}
|
|
@@ -113,6 +113,7 @@ export default class NamespaceRef {
|
|
|
113
113
|
propertyId: string,
|
|
114
114
|
rateName: string,
|
|
115
115
|
acquireActions: AcquireAction[]|null = null,
|
|
116
|
+
baseRate: number|null = null,
|
|
116
117
|
userId: string = "#{userId}",
|
|
117
118
|
): MultiplyAcquireActionsByUserId {
|
|
118
119
|
return new MultiplyAcquireActionsByUserId(
|
|
@@ -121,6 +122,7 @@ export default class NamespaceRef {
|
|
|
121
122
|
propertyId,
|
|
122
123
|
rateName,
|
|
123
124
|
acquireActions,
|
|
125
|
+
baseRate,
|
|
124
126
|
userId,
|
|
125
127
|
);
|
|
126
128
|
}
|
|
@@ -6,8 +6,9 @@ export default class MultiplyAcquireActionsByUserId extends AcquireAction {
|
|
|
6
6
|
private readonly propertyId;
|
|
7
7
|
private readonly rateName;
|
|
8
8
|
private readonly acquireActions;
|
|
9
|
+
private readonly baseRate;
|
|
9
10
|
private readonly timeOffsetToken;
|
|
10
|
-
constructor(namespaceName: string, experienceName: string, propertyId: string, rateName: string, acquireActions?: AcquireAction[] | null, timeOffsetToken?: string | null, userId?: string);
|
|
11
|
+
constructor(namespaceName: string, experienceName: string, propertyId: string, rateName: string, acquireActions?: AcquireAction[] | null, baseRate?: number | null, timeOffsetToken?: string | null, userId?: string);
|
|
11
12
|
request(): {
|
|
12
13
|
[name: string]: any;
|
|
13
14
|
};
|
|
@@ -17,15 +17,17 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const model_1 = require("../../core/model");
|
|
19
19
|
class MultiplyAcquireActionsByUserId extends model_1.AcquireAction {
|
|
20
|
-
constructor(namespaceName, experienceName, propertyId, rateName, acquireActions = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
20
|
+
constructor(namespaceName, experienceName, propertyId, rateName, acquireActions = null, baseRate = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
21
|
super();
|
|
22
22
|
this.acquireActions = null;
|
|
23
|
+
this.baseRate = null;
|
|
23
24
|
this.timeOffsetToken = null;
|
|
24
25
|
this.namespaceName = namespaceName;
|
|
25
26
|
this.experienceName = experienceName;
|
|
26
27
|
this.propertyId = propertyId;
|
|
27
28
|
this.rateName = rateName;
|
|
28
29
|
this.acquireActions = acquireActions !== null && acquireActions !== void 0 ? acquireActions : null;
|
|
30
|
+
this.baseRate = baseRate !== null && baseRate !== void 0 ? baseRate : null;
|
|
29
31
|
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
30
32
|
this.userId = userId;
|
|
31
33
|
}
|
|
@@ -49,6 +51,9 @@ class MultiplyAcquireActionsByUserId extends model_1.AcquireAction {
|
|
|
49
51
|
if (this.acquireActions != null) {
|
|
50
52
|
properties["acquireActions"] = this.acquireActions.map(v => v.properties());
|
|
51
53
|
}
|
|
54
|
+
if (this.baseRate != null) {
|
|
55
|
+
properties["baseRate"] = this.baseRate;
|
|
56
|
+
}
|
|
52
57
|
if (this.timeOffsetToken != null) {
|
|
53
58
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
54
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiplyAcquireActionsByUserId.js","sourceRoot":"","sources":["MultiplyAcquireActionsByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAE5E,MAAqB,8BAA+B,SAAQ,qBAAa;
|
|
1
|
+
{"version":3,"file":"MultiplyAcquireActionsBy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AAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;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,8CAA8C,CAAC;IAC1D,CAAC;CACJ;AArED,iDAqEC"}
|
|
@@ -23,6 +23,7 @@ export default class MultiplyAcquireActionsByUserId extends AcquireAction {
|
|
|
23
23
|
private readonly propertyId: string;
|
|
24
24
|
private readonly rateName: string;
|
|
25
25
|
private readonly acquireActions: AcquireAction[]|null = null;
|
|
26
|
+
private readonly baseRate: number|null = null;
|
|
26
27
|
private readonly timeOffsetToken: string|null = null;
|
|
27
28
|
|
|
28
29
|
|
|
@@ -32,6 +33,7 @@ export default class MultiplyAcquireActionsByUserId extends AcquireAction {
|
|
|
32
33
|
propertyId: string,
|
|
33
34
|
rateName: string,
|
|
34
35
|
acquireActions: AcquireAction[]|null = null,
|
|
36
|
+
baseRate: number|null = null,
|
|
35
37
|
timeOffsetToken: string|null = null,
|
|
36
38
|
userId: string = "#{userId}",
|
|
37
39
|
) {
|
|
@@ -42,6 +44,7 @@ export default class MultiplyAcquireActionsByUserId extends AcquireAction {
|
|
|
42
44
|
this.propertyId = propertyId;
|
|
43
45
|
this.rateName = rateName;
|
|
44
46
|
this.acquireActions = acquireActions ?? null;
|
|
47
|
+
this.baseRate = baseRate ?? null;
|
|
45
48
|
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
46
49
|
this.userId = userId;
|
|
47
50
|
}
|
|
@@ -69,6 +72,9 @@ export default class MultiplyAcquireActionsByUserId extends AcquireAction {
|
|
|
69
72
|
properties["acquireActions"] = this.acquireActions.map(v => v.properties(
|
|
70
73
|
));
|
|
71
74
|
}
|
|
75
|
+
if (this.baseRate != null) {
|
|
76
|
+
properties["baseRate"] = this.baseRate;
|
|
77
|
+
}
|
|
72
78
|
if (this.timeOffsetToken != null) {
|
|
73
79
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
74
80
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import CampaignModelRef from "./CampaignModelRef";
|
|
2
2
|
import RevertUseByUserId from "../stampSheet/RevertUseByUserId";
|
|
3
|
+
import IssueOnce from "../stampSheet/IssueOnce";
|
|
3
4
|
import UseByUserId from "../stampSheet/UseByUserId";
|
|
4
5
|
import VerifyCodeByUserId from "../stampSheet/VerifyCodeByUserId";
|
|
5
6
|
import { SerialKeyVerifyType } from "../stampSheet/enum/SerialKeyVerifyType";
|
|
@@ -8,7 +9,8 @@ export default class NamespaceRef {
|
|
|
8
9
|
constructor(namespaceName: string);
|
|
9
10
|
campaignModel(campaignModelName: string): CampaignModelRef;
|
|
10
11
|
revertUse(code: string, userId?: string): RevertUseByUserId;
|
|
12
|
+
issueOnce(campaignModelName: string, metadata?: string | null): IssueOnce;
|
|
11
13
|
use(code: string, userId?: string): UseByUserId;
|
|
12
|
-
verifyCode(code: string, verifyType: SerialKeyVerifyType, userId?: string): VerifyCodeByUserId;
|
|
14
|
+
verifyCode(code: string, verifyType: SerialKeyVerifyType, campaignModelName?: string | null, userId?: string): VerifyCodeByUserId;
|
|
13
15
|
grn(): string;
|
|
14
16
|
}
|
|
@@ -19,6 +19,7 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
const func_1 = require("../../core/func");
|
|
20
20
|
const CampaignModelRef_1 = tslib_1.__importDefault(require("./CampaignModelRef"));
|
|
21
21
|
const RevertUseByUserId_1 = tslib_1.__importDefault(require("../stampSheet/RevertUseByUserId"));
|
|
22
|
+
const IssueOnce_1 = tslib_1.__importDefault(require("../stampSheet/IssueOnce"));
|
|
22
23
|
const UseByUserId_1 = tslib_1.__importDefault(require("../stampSheet/UseByUserId"));
|
|
23
24
|
const VerifyCodeByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyCodeByUserId"));
|
|
24
25
|
class NamespaceRef {
|
|
@@ -31,11 +32,14 @@ class NamespaceRef {
|
|
|
31
32
|
revertUse(code, userId = "#{userId}") {
|
|
32
33
|
return new RevertUseByUserId_1.default(this.namespaceName, code, userId);
|
|
33
34
|
}
|
|
35
|
+
issueOnce(campaignModelName, metadata = null) {
|
|
36
|
+
return new IssueOnce_1.default(this.namespaceName, campaignModelName, metadata);
|
|
37
|
+
}
|
|
34
38
|
use(code, userId = "#{userId}") {
|
|
35
39
|
return new UseByUserId_1.default(this.namespaceName, code, userId);
|
|
36
40
|
}
|
|
37
|
-
verifyCode(code, verifyType, userId = "#{userId}") {
|
|
38
|
-
return new VerifyCodeByUserId_1.default(this.namespaceName, code, verifyType, userId);
|
|
41
|
+
verifyCode(code, verifyType, campaignModelName = null, userId = "#{userId}") {
|
|
42
|
+
return new VerifyCodeByUserId_1.default(this.namespaceName, code, verifyType, campaignModelName, userId);
|
|
39
43
|
}
|
|
40
44
|
grn() {
|
|
41
45
|
return new func_1.Join(":", [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,kFAAkD;AAClD,gGAAgE;AAChE,oFAAoD;AACpD,kGAAkE;AAGlE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,aAAa,CAChB,iBAAyB;QAEzB,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,iBAAiB,CACpB,CAAC;IACN,CAAC;IAEM,SAAS,CACZ,IAAY,EACZ,SAAiB,WAAW;QAE5B,OAAO,IAAI,2BAAiB,CACxB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG,CACN,IAAY,EACZ,SAAiB,WAAW;QAE5B,OAAO,IAAI,qBAAW,CAClB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,UAAU,CACb,IAAY,EACZ,UAA+B,EAC/B,SAAiB,WAAW;QAE5B,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,UAAU,EACV,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,WAAW;YACX,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,kFAAkD;AAClD,gGAAgE;AAChE,gFAAgD;AAChD,oFAAoD;AACpD,kGAAkE;AAGlE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,aAAa,CAChB,iBAAyB;QAEzB,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,iBAAiB,CACpB,CAAC;IACN,CAAC;IAEM,SAAS,CACZ,IAAY,EACZ,SAAiB,WAAW;QAE5B,OAAO,IAAI,2BAAiB,CACxB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,SAAS,CACZ,iBAAyB,EACzB,WAAwB,IAAI;QAE5B,OAAO,IAAI,mBAAS,CAChB,IAAI,CAAC,aAAa,EAClB,iBAAiB,EACjB,QAAQ,CACX,CAAC;IACN,CAAC;IAEM,GAAG,CACN,IAAY,EACZ,SAAiB,WAAW;QAE5B,OAAO,IAAI,qBAAW,CAClB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,UAAU,CACb,IAAY,EACZ,UAA+B,EAC/B,oBAAiC,IAAI,EACrC,SAAiB,WAAW;QAE5B,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,UAAU,EACV,iBAAiB,EACjB,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,WAAW;YACX,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AArFD,+BAqFC"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
import CampaignModelRef from "./CampaignModelRef";
|
|
19
19
|
import RevertUseByUserId from "../stampSheet/RevertUseByUserId";
|
|
20
|
+
import IssueOnce from "../stampSheet/IssueOnce";
|
|
20
21
|
import UseByUserId from "../stampSheet/UseByUserId";
|
|
21
22
|
import VerifyCodeByUserId from "../stampSheet/VerifyCodeByUserId";
|
|
22
23
|
import { SerialKeyVerifyType } from "../stampSheet/enum/SerialKeyVerifyType";
|
|
@@ -50,6 +51,17 @@ export default class NamespaceRef {
|
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
public issueOnce(
|
|
55
|
+
campaignModelName: string,
|
|
56
|
+
metadata: string|null = null,
|
|
57
|
+
): IssueOnce {
|
|
58
|
+
return new IssueOnce(
|
|
59
|
+
this.namespaceName,
|
|
60
|
+
campaignModelName,
|
|
61
|
+
metadata,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
53
65
|
public use(
|
|
54
66
|
code: string,
|
|
55
67
|
userId: string = "#{userId}",
|
|
@@ -64,12 +76,14 @@ export default class NamespaceRef {
|
|
|
64
76
|
public verifyCode(
|
|
65
77
|
code: string,
|
|
66
78
|
verifyType: SerialKeyVerifyType,
|
|
79
|
+
campaignModelName: string|null = null,
|
|
67
80
|
userId: string = "#{userId}",
|
|
68
81
|
): VerifyCodeByUserId {
|
|
69
82
|
return new VerifyCodeByUserId(
|
|
70
83
|
this.namespaceName,
|
|
71
84
|
code,
|
|
72
85
|
verifyType,
|
|
86
|
+
campaignModelName,
|
|
73
87
|
userId,
|
|
74
88
|
);
|
|
75
89
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AcquireAction } from "../../core/model";
|
|
2
|
+
export default class IssueOnce extends AcquireAction {
|
|
3
|
+
private readonly namespaceName;
|
|
4
|
+
private readonly campaignModelName;
|
|
5
|
+
private readonly metadata;
|
|
6
|
+
constructor(namespaceName: string, campaignModelName: string, metadata?: string | null);
|
|
7
|
+
request(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
action(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
* Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
* You may not use this file except in compliance with the License.
|
|
8
|
+
* A copy of the License is located at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
* express or implied. See the License for the specific language governing
|
|
15
|
+
* permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class IssueOnce extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, campaignModelName, metadata = null) {
|
|
21
|
+
super();
|
|
22
|
+
this.metadata = null;
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.campaignModelName = campaignModelName;
|
|
25
|
+
this.metadata = metadata !== null && metadata !== void 0 ? metadata : null;
|
|
26
|
+
}
|
|
27
|
+
request() {
|
|
28
|
+
let properties = {};
|
|
29
|
+
if (this.namespaceName != null) {
|
|
30
|
+
properties["namespaceName"] = this.namespaceName;
|
|
31
|
+
}
|
|
32
|
+
if (this.campaignModelName != null) {
|
|
33
|
+
properties["campaignModelName"] = this.campaignModelName;
|
|
34
|
+
}
|
|
35
|
+
if (this.metadata != null) {
|
|
36
|
+
properties["metadata"] = this.metadata;
|
|
37
|
+
}
|
|
38
|
+
return properties;
|
|
39
|
+
}
|
|
40
|
+
action() {
|
|
41
|
+
return "Gs2SerialKey:IssueOnce";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.default = IssueOnce;
|
|
45
|
+
//# sourceMappingURL=IssueOnce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IssueOnce.js","sourceRoot":"","sources":["IssueOnce.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAE5E,MAAqB,SAAU,SAAQ,qBAAa;IAMhD,YACI,aAAqB,EACrB,iBAAyB,EACzB,WAAwB,IAAI;QAE5B,KAAK,EAAE,CAAC;QARK,aAAQ,GAAgB,IAAI,CAAC;QAU1C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,IAAI,CAAC;IACrC,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,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,wBAAwB,CAAC;IACpC,CAAC;CACJ;AAtCD,4BAsCC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
|
|
18
|
+
|
|
19
|
+
export default class IssueOnce extends AcquireAction {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly campaignModelName: string;
|
|
22
|
+
private readonly metadata: string|null = null;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
public constructor(
|
|
26
|
+
namespaceName: string,
|
|
27
|
+
campaignModelName: string,
|
|
28
|
+
metadata: string|null = null,
|
|
29
|
+
) {
|
|
30
|
+
super();
|
|
31
|
+
|
|
32
|
+
this.namespaceName = namespaceName;
|
|
33
|
+
this.campaignModelName = campaignModelName;
|
|
34
|
+
this.metadata = metadata ?? null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public request(
|
|
38
|
+
): {[name: string]: any} {
|
|
39
|
+
let properties: {[name: string]: any} = {};
|
|
40
|
+
|
|
41
|
+
if (this.namespaceName != null) {
|
|
42
|
+
properties["namespaceName"] = this.namespaceName;
|
|
43
|
+
}
|
|
44
|
+
if (this.campaignModelName != null) {
|
|
45
|
+
properties["campaignModelName"] = this.campaignModelName;
|
|
46
|
+
}
|
|
47
|
+
if (this.metadata != null) {
|
|
48
|
+
properties["metadata"] = this.metadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return properties;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public action(): string {
|
|
55
|
+
return "Gs2SerialKey:IssueOnce";
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -5,8 +5,9 @@ export default class VerifyCodeByUserId extends VerifyAction {
|
|
|
5
5
|
private readonly userId;
|
|
6
6
|
private readonly code;
|
|
7
7
|
private readonly verifyType;
|
|
8
|
+
private readonly campaignModelName;
|
|
8
9
|
private readonly timeOffsetToken;
|
|
9
|
-
constructor(namespaceName: string, code: string, verifyType: SerialKeyVerifyType, timeOffsetToken?: string | null, userId?: string);
|
|
10
|
+
constructor(namespaceName: string, code: string, verifyType: SerialKeyVerifyType, campaignModelName?: string | null, timeOffsetToken?: string | null, userId?: string);
|
|
10
11
|
request(): {
|
|
11
12
|
[name: string]: any;
|
|
12
13
|
};
|
|
@@ -17,12 +17,14 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const model_1 = require("../../core/model");
|
|
19
19
|
class VerifyCodeByUserId extends model_1.VerifyAction {
|
|
20
|
-
constructor(namespaceName, code, verifyType, timeOffsetToken = null, userId = "#{userId}") {
|
|
20
|
+
constructor(namespaceName, code, verifyType, campaignModelName = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
21
|
super();
|
|
22
|
+
this.campaignModelName = null;
|
|
22
23
|
this.timeOffsetToken = null;
|
|
23
24
|
this.namespaceName = namespaceName;
|
|
24
25
|
this.code = code;
|
|
25
26
|
this.verifyType = verifyType;
|
|
27
|
+
this.campaignModelName = campaignModelName !== null && campaignModelName !== void 0 ? campaignModelName : null;
|
|
26
28
|
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
27
29
|
this.userId = userId;
|
|
28
30
|
}
|
|
@@ -37,6 +39,9 @@ class VerifyCodeByUserId extends model_1.VerifyAction {
|
|
|
37
39
|
if (this.code != null) {
|
|
38
40
|
properties["code"] = this.code;
|
|
39
41
|
}
|
|
42
|
+
if (this.campaignModelName != null) {
|
|
43
|
+
properties["campaignModelName"] = this.campaignModelName;
|
|
44
|
+
}
|
|
40
45
|
if (this.verifyType != null) {
|
|
41
46
|
properties["verifyType"] = this.verifyType;
|
|
42
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyCodeByUserId.js","sourceRoot":"","sources":["VerifyCodeByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,kBAAmB,SAAQ,oBAAY;
|
|
1
|
+
{"version":3,"file":"VerifyCodeByUserId.js","sourceRoot":"","sources":["VerifyCodeByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,kBAAmB,SAAQ,oBAAY;IASxD,YACI,aAAqB,EACrB,IAAY,EACZ,UAA+B,EAC/B,oBAAiC,IAAI,EACrC,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAZK,sBAAiB,GAAgB,IAAI,CAAC;QACtC,oBAAe,GAAgB,IAAI,CAAC;QAajD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,aAAjB,iBAAiB,cAAjB,iBAAiB,GAAI,IAAI,CAAC;QACnD,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;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;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,iCAAiC,CAAC;IAC7C,CAAC;CACJ;AAxDD,qCAwDC"}
|
|
@@ -22,6 +22,7 @@ export default class VerifyCodeByUserId extends VerifyAction {
|
|
|
22
22
|
private readonly userId: string;
|
|
23
23
|
private readonly code: string;
|
|
24
24
|
private readonly verifyType: SerialKeyVerifyType;
|
|
25
|
+
private readonly campaignModelName: string|null = null;
|
|
25
26
|
private readonly timeOffsetToken: string|null = null;
|
|
26
27
|
|
|
27
28
|
|
|
@@ -29,6 +30,7 @@ export default class VerifyCodeByUserId extends VerifyAction {
|
|
|
29
30
|
namespaceName: string,
|
|
30
31
|
code: string,
|
|
31
32
|
verifyType: SerialKeyVerifyType,
|
|
33
|
+
campaignModelName: string|null = null,
|
|
32
34
|
timeOffsetToken: string|null = null,
|
|
33
35
|
userId: string = "#{userId}",
|
|
34
36
|
) {
|
|
@@ -37,6 +39,7 @@ export default class VerifyCodeByUserId extends VerifyAction {
|
|
|
37
39
|
this.namespaceName = namespaceName;
|
|
38
40
|
this.code = code;
|
|
39
41
|
this.verifyType = verifyType;
|
|
42
|
+
this.campaignModelName = campaignModelName ?? null;
|
|
40
43
|
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
41
44
|
this.userId = userId;
|
|
42
45
|
}
|
|
@@ -54,6 +57,9 @@ export default class VerifyCodeByUserId extends VerifyAction {
|
|
|
54
57
|
if (this.code != null) {
|
|
55
58
|
properties["code"] = this.code;
|
|
56
59
|
}
|
|
60
|
+
if (this.campaignModelName != null) {
|
|
61
|
+
properties["campaignModelName"] = this.campaignModelName;
|
|
62
|
+
}
|
|
57
63
|
if (this.verifyType != null) {
|
|
58
64
|
properties["verifyType"] = this.verifyType;
|
|
59
65
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import RevertUseByUserId from "./RevertUseByUserId";
|
|
2
|
+
import IssueOnce from "./IssueOnce";
|
|
2
3
|
import UseByUserId from "./UseByUserId";
|
|
3
4
|
import VerifyCodeByUserId from "./VerifyCodeByUserId";
|
|
4
|
-
export { RevertUseByUserId, UseByUserId, VerifyCodeByUserId, };
|
|
5
|
+
export { RevertUseByUserId, IssueOnce, UseByUserId, VerifyCodeByUserId, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerifyCodeByUserId = exports.UseByUserId = exports.RevertUseByUserId = void 0;
|
|
3
|
+
exports.VerifyCodeByUserId = exports.UseByUserId = exports.IssueOnce = exports.RevertUseByUserId = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -19,6 +19,8 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
*/
|
|
20
20
|
const RevertUseByUserId_1 = tslib_1.__importDefault(require("./RevertUseByUserId"));
|
|
21
21
|
exports.RevertUseByUserId = RevertUseByUserId_1.default;
|
|
22
|
+
const IssueOnce_1 = tslib_1.__importDefault(require("./IssueOnce"));
|
|
23
|
+
exports.IssueOnce = IssueOnce_1.default;
|
|
22
24
|
const UseByUserId_1 = tslib_1.__importDefault(require("./UseByUserId"));
|
|
23
25
|
exports.UseByUserId = UseByUserId_1.default;
|
|
24
26
|
const VerifyCodeByUserId_1 = tslib_1.__importDefault(require("./VerifyCodeByUserId"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oFAAoD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oFAAoD;AAMhD,4BANG,2BAAiB,CAMH;AALrB,oEAAoC;AAMhC,oBANG,mBAAS,CAMH;AALb,wEAAwC;AAMpC,sBANG,qBAAW,CAMH;AALf,sFAAsD;AAMlD,6BANG,4BAAkB,CAMH"}
|
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import RevertUseByUserId from "./RevertUseByUserId";
|
|
17
|
+
import IssueOnce from "./IssueOnce";
|
|
17
18
|
import UseByUserId from "./UseByUserId";
|
|
18
19
|
import VerifyCodeByUserId from "./VerifyCodeByUserId";
|
|
19
20
|
|
|
20
21
|
export {
|
|
21
22
|
RevertUseByUserId,
|
|
23
|
+
IssueOnce,
|
|
22
24
|
UseByUserId,
|
|
23
25
|
VerifyCodeByUserId,
|
|
24
26
|
}
|