gs2-cdk 1.0.102 → 1.0.105
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/core/model/NotificationSetting.d.ts +2 -1
- package/core/model/NotificationSetting.js +5 -4
- package/core/model/NotificationSetting.js.map +1 -1
- package/core/model/NotificationSetting.ts +6 -6
- package/core/model/NotificationSettingOptions.d.ts +5 -0
- package/core/model/NotificationSettingOptions.js +18 -0
- package/core/model/NotificationSettingOptions.js.map +1 -0
- package/core/model/NotificationSettingOptions.ts +22 -0
- package/core/model/TransactionSetting.d.ts +5 -1
- package/core/model/TransactionSetting.js +16 -3
- package/core/model/TransactionSetting.js.map +1 -1
- package/core/model/TransactionSetting.ts +20 -4
- package/core/model/TransactionSettingOptions.d.ts +7 -0
- package/core/model/TransactionSettingOptions.js +18 -0
- package/core/model/TransactionSettingOptions.js.map +1 -0
- package/core/model/TransactionSettingOptions.ts +24 -0
- package/money2/model/AppleAppStoreSetting.d.ts +1 -0
- package/money2/model/AppleAppStoreSetting.js +9 -4
- package/money2/model/AppleAppStoreSetting.js.map +1 -1
- package/money2/model/AppleAppStoreSetting.ts +5 -0
- package/money2/model/GooglePlaySetting.d.ts +0 -1
- package/money2/model/GooglePlaySetting.js +1 -6
- package/money2/model/GooglePlaySetting.js.map +1 -1
- package/money2/model/GooglePlaySetting.ts +0 -5
- package/money2/model/StoreSubscriptionContentModel.d.ts +8 -1
- package/money2/model/StoreSubscriptionContentModel.js +29 -4
- package/money2/model/StoreSubscriptionContentModel.js.map +1 -1
- package/money2/model/StoreSubscriptionContentModel.ts +58 -0
- package/money2/model/enums/StoreSubscriptionContentModelTriggerExtendMode.d.ts +5 -0
- package/money2/model/enums/StoreSubscriptionContentModelTriggerExtendMode.js +23 -0
- package/money2/model/enums/StoreSubscriptionContentModelTriggerExtendMode.js.map +1 -0
- package/money2/model/enums/StoreSubscriptionContentModelTriggerExtendMode.ts +23 -0
- package/money2/model/index.d.ts +4 -1
- package/money2/model/index.js +3 -1
- package/money2/model/index.js.map +1 -1
- package/money2/model/index.ts +6 -0
- package/money2/model/options/AppleAppStoreSettingOptions.d.ts +1 -0
- package/money2/model/options/AppleAppStoreSettingOptions.ts +1 -0
- package/money2/model/options/GooglePlaySettingOptions.d.ts +0 -1
- package/money2/model/options/GooglePlaySettingOptions.ts +0 -1
- package/money2/model/options/StoreSubscriptionContentModelOptions.d.ts +1 -0
- package/money2/model/options/StoreSubscriptionContentModelOptions.ts +2 -0
- package/money2/model/options/StoreSubscriptionContentModelTriggerExtendModeIsJustOptions.d.ts +7 -0
- package/money2/model/options/StoreSubscriptionContentModelTriggerExtendModeIsJustOptions.js +3 -0
- package/money2/model/options/StoreSubscriptionContentModelTriggerExtendModeIsJustOptions.js.map +1 -0
- package/money2/model/options/StoreSubscriptionContentModelTriggerExtendModeIsJustOptions.ts +24 -0
- package/money2/model/options/StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions.d.ts +7 -0
- package/money2/model/options/StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions.js +3 -0
- package/money2/model/options/StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions.js.map +1 -0
- package/money2/model/options/StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions.ts +24 -0
- package/package.json +1 -1
- package/script/ref/NamespaceRef.d.ts +1 -1
- package/script/ref/NamespaceRef.js +2 -2
- package/script/ref/NamespaceRef.js.map +1 -1
- package/script/ref/NamespaceRef.ts +2 -0
- package/script/ref/ScriptRef.d.ts +1 -1
- package/script/ref/ScriptRef.js +2 -2
- package/script/ref/ScriptRef.js.map +1 -1
- package/script/ref/ScriptRef.ts +2 -0
- package/script/stampSheet/InvokeScript.d.ts +2 -1
- package/script/stampSheet/InvokeScript.js +6 -1
- package/script/stampSheet/InvokeScript.js.map +1 -1
- package/script/stampSheet/InvokeScript.ts +6 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { NotificationSettingOptions } from "./NotificationSettingOptions";
|
|
1
2
|
export default class NotificationSetting {
|
|
2
3
|
gatewayNamespaceId: string | null;
|
|
3
4
|
enableTransferMobileNotification: boolean | null;
|
|
4
5
|
sound: string | null;
|
|
5
|
-
constructor(
|
|
6
|
+
constructor(options?: NotificationSettingOptions | null);
|
|
6
7
|
properties(): {
|
|
7
8
|
[name: string]: any;
|
|
8
9
|
};
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
class NotificationSetting {
|
|
19
|
-
constructor(
|
|
20
|
-
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
19
|
+
constructor(options = null) {
|
|
20
|
+
var _a, _b, _c;
|
|
21
|
+
this.gatewayNamespaceId = (_a = options === null || options === void 0 ? void 0 : options.gatewayNamespaceId) !== null && _a !== void 0 ? _a : null;
|
|
22
|
+
this.enableTransferMobileNotification = (_b = options === null || options === void 0 ? void 0 : options.enableTransferMobileNotification) !== null && _b !== void 0 ? _b : false;
|
|
23
|
+
this.sound = (_c = options === null || options === void 0 ? void 0 : options.sound) !== null && _c !== void 0 ? _c : null;
|
|
23
24
|
}
|
|
24
25
|
properties() {
|
|
25
26
|
let properties = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationSetting.js","sourceRoot":"","sources":["NotificationSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"NotificationSetting.js","sourceRoot":"","sources":["NotificationSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH,MAAqB,mBAAmB;IAMpC,YACI,UAA2C,IAAI;;QAE/C,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;QAC9D,IAAI,CAAC,gCAAgC,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gCAAgC,mCAAI,KAAK,CAAC;QAC3F,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,IAAI,CAAC;IACxC,CAAC;IAEM,UAAU;QACb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,gCAAgC,IAAI,IAAI,EAAE;YAC/C,UAAU,CAAC,kCAAkC,CAAC,GAAG,IAAI,CAAC,gCAAgC,CAAC;SAC1F;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA7BD,sCA6BC"}
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
import { NotificationSettingOptions } from "./NotificationSettingOptions";
|
|
18
|
+
|
|
17
19
|
export default class NotificationSetting {
|
|
18
20
|
|
|
19
21
|
gatewayNamespaceId: string | null;
|
|
@@ -21,13 +23,11 @@ export default class NotificationSetting {
|
|
|
21
23
|
sound: string | null;
|
|
22
24
|
|
|
23
25
|
public constructor(
|
|
24
|
-
|
|
25
|
-
enableTransferMobileNotification: boolean | null = null,
|
|
26
|
-
sound: string | null = null,
|
|
26
|
+
options: NotificationSettingOptions|null = null,
|
|
27
27
|
) {
|
|
28
|
-
this.gatewayNamespaceId = gatewayNamespaceId;
|
|
29
|
-
this.enableTransferMobileNotification = enableTransferMobileNotification;
|
|
30
|
-
this.sound = sound;
|
|
28
|
+
this.gatewayNamespaceId = options?.gatewayNamespaceId ?? null;
|
|
29
|
+
this.enableTransferMobileNotification = options?.enableTransferMobileNotification ?? false;
|
|
30
|
+
this.sound = options?.sound ?? null;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
public properties(): { [name: string]: any } {
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=NotificationSettingOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationSettingOptions.js","sourceRoot":"","sources":["NotificationSettingOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
export interface NotificationSettingOptions {
|
|
18
|
+
gatewayNamespaceId?: string|null;
|
|
19
|
+
enableTransferMobileNotification?: boolean|null;
|
|
20
|
+
sound?: string|null;
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { TransactionSettingOptions } from "./TransactionSettingOptions";
|
|
1
2
|
export default class TransactionSetting {
|
|
3
|
+
enableAtomicCommit?: boolean | null;
|
|
4
|
+
transactionUseDistributor?: boolean | null;
|
|
5
|
+
acquireActionUseJobQueue?: boolean | null;
|
|
2
6
|
distributorNamespaceId: string | null;
|
|
3
7
|
queueNamespaceId: string | null;
|
|
4
|
-
constructor(
|
|
8
|
+
constructor(options?: TransactionSettingOptions | null);
|
|
5
9
|
properties(): {
|
|
6
10
|
[name: string]: any;
|
|
7
11
|
};
|
|
@@ -16,13 +16,26 @@
|
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
class TransactionSetting {
|
|
19
|
-
constructor(
|
|
20
|
-
|
|
21
|
-
this.
|
|
19
|
+
constructor(options = null) {
|
|
20
|
+
var _a, _b, _c, _d, _e;
|
|
21
|
+
this.enableAtomicCommit = (_a = options === null || options === void 0 ? void 0 : options.enableAtomicCommit) !== null && _a !== void 0 ? _a : false;
|
|
22
|
+
this.transactionUseDistributor = (_b = options === null || options === void 0 ? void 0 : options.transactionUseDistributor) !== null && _b !== void 0 ? _b : false;
|
|
23
|
+
this.acquireActionUseJobQueue = (_c = options === null || options === void 0 ? void 0 : options.acquireActionUseJobQueue) !== null && _c !== void 0 ? _c : false;
|
|
24
|
+
this.distributorNamespaceId = (_d = options === null || options === void 0 ? void 0 : options.distributorNamespaceId) !== null && _d !== void 0 ? _d : null;
|
|
25
|
+
this.queueNamespaceId = (_e = options === null || options === void 0 ? void 0 : options.queueNamespaceId) !== null && _e !== void 0 ? _e : null;
|
|
22
26
|
}
|
|
23
27
|
properties() {
|
|
24
28
|
let properties = {};
|
|
25
29
|
properties["EnableAutoRun"] = true;
|
|
30
|
+
if (this.enableAtomicCommit != null) {
|
|
31
|
+
properties["EnableAtomicCommit"] = this.enableAtomicCommit;
|
|
32
|
+
}
|
|
33
|
+
if (this.transactionUseDistributor != null) {
|
|
34
|
+
properties["TransactionUseDistributor"] = this.transactionUseDistributor;
|
|
35
|
+
}
|
|
36
|
+
if (this.acquireActionUseJobQueue != null) {
|
|
37
|
+
properties["AcquireActionUseJobQueue"] = this.acquireActionUseJobQueue;
|
|
38
|
+
}
|
|
26
39
|
if (this.distributorNamespaceId != null) {
|
|
27
40
|
properties["DistributorNamespaceId"] = this.distributorNamespaceId;
|
|
28
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionSetting.js","sourceRoot":"","sources":["TransactionSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"TransactionSetting.js","sourceRoot":"","sources":["TransactionSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH,MAAqB,kBAAkB;IAQnC,YACI,UAA0C,IAAI;;QAE9C,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,KAAK,CAAC;QAC/D,IAAI,CAAC,yBAAyB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,yBAAyB,mCAAI,KAAK,CAAC;QAC7E,IAAI,CAAC,wBAAwB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,wBAAwB,mCAAI,KAAK,CAAC;QAC3E,IAAI,CAAC,sBAAsB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,sBAAsB,mCAAI,IAAI,CAAC;QACtE,IAAI,CAAC,gBAAgB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;IAC9D,CAAC;IAEM,UAAU;QACb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;QACnC,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,yBAAyB,IAAI,IAAI,EAAE;YACxC,UAAU,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,yBAAyB,CAAC;SAC5E;QACD,IAAI,IAAI,CAAC,wBAAwB,IAAI,IAAI,EAAE;YACvC,UAAU,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC;SAC1E;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC;SAC1D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAxCD,qCAwCC"}
|
|
@@ -14,23 +14,39 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
import { TransactionSettingOptions } from "./TransactionSettingOptions";
|
|
18
|
+
|
|
17
19
|
export default class TransactionSetting {
|
|
18
20
|
|
|
21
|
+
enableAtomicCommit?: boolean|null;
|
|
22
|
+
transactionUseDistributor?: boolean|null;
|
|
23
|
+
acquireActionUseJobQueue?: boolean|null;
|
|
19
24
|
distributorNamespaceId: string | null;
|
|
20
25
|
queueNamespaceId: string | null;
|
|
21
26
|
|
|
22
27
|
public constructor(
|
|
23
|
-
|
|
24
|
-
queueNamespaceId: string | null = null,
|
|
28
|
+
options: TransactionSettingOptions|null = null,
|
|
25
29
|
) {
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
30
|
+
this.enableAtomicCommit = options?.enableAtomicCommit ?? false;
|
|
31
|
+
this.transactionUseDistributor = options?.transactionUseDistributor ?? false;
|
|
32
|
+
this.acquireActionUseJobQueue = options?.acquireActionUseJobQueue ?? false;
|
|
33
|
+
this.distributorNamespaceId = options?.distributorNamespaceId ?? null;
|
|
34
|
+
this.queueNamespaceId = options?.queueNamespaceId ?? null;
|
|
28
35
|
}
|
|
29
36
|
|
|
30
37
|
public properties(): { [name: string]: any } {
|
|
31
38
|
let properties: {[name: string]: any} = {};
|
|
32
39
|
|
|
33
40
|
properties["EnableAutoRun"] = true;
|
|
41
|
+
if (this.enableAtomicCommit != null) {
|
|
42
|
+
properties["EnableAtomicCommit"] = this.enableAtomicCommit;
|
|
43
|
+
}
|
|
44
|
+
if (this.transactionUseDistributor != null) {
|
|
45
|
+
properties["TransactionUseDistributor"] = this.transactionUseDistributor;
|
|
46
|
+
}
|
|
47
|
+
if (this.acquireActionUseJobQueue != null) {
|
|
48
|
+
properties["AcquireActionUseJobQueue"] = this.acquireActionUseJobQueue;
|
|
49
|
+
}
|
|
34
50
|
if (this.distributorNamespaceId != null) {
|
|
35
51
|
properties["DistributorNamespaceId"] = this.distributorNamespaceId;
|
|
36
52
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=TransactionSettingOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionSettingOptions.js","sourceRoot":"","sources":["TransactionSettingOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export interface TransactionSettingOptions {
|
|
18
|
+
enableAtomicCommit?: boolean|null;
|
|
19
|
+
transactionUseDistributor?: boolean|null;
|
|
20
|
+
acquireActionUseJobQueue?: boolean|null;
|
|
21
|
+
distributorNamespaceId?: string|null;
|
|
22
|
+
queueNamespaceId?: string|null;
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AppleAppStoreSettingOptions } from "./options/AppleAppStoreSettingOptions";
|
|
2
2
|
export default class AppleAppStoreSetting {
|
|
3
3
|
private readonly bundleId;
|
|
4
|
+
private readonly sharedSecretKey;
|
|
4
5
|
private readonly issuerId;
|
|
5
6
|
private readonly keyId;
|
|
6
7
|
private readonly privateKeyPem;
|
|
@@ -2,21 +2,26 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class AppleAppStoreSetting {
|
|
4
4
|
constructor(options = null) {
|
|
5
|
-
var _a, _b, _c, _d;
|
|
5
|
+
var _a, _b, _c, _d, _e;
|
|
6
6
|
this.bundleId = null;
|
|
7
|
+
this.sharedSecretKey = null;
|
|
7
8
|
this.issuerId = null;
|
|
8
9
|
this.keyId = null;
|
|
9
10
|
this.privateKeyPem = null;
|
|
10
11
|
this.bundleId = (_a = options === null || options === void 0 ? void 0 : options.bundleId) !== null && _a !== void 0 ? _a : null;
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
12
|
+
this.sharedSecretKey = (_b = options === null || options === void 0 ? void 0 : options.sharedSecretKey) !== null && _b !== void 0 ? _b : null;
|
|
13
|
+
this.issuerId = (_c = options === null || options === void 0 ? void 0 : options.issuerId) !== null && _c !== void 0 ? _c : null;
|
|
14
|
+
this.keyId = (_d = options === null || options === void 0 ? void 0 : options.keyId) !== null && _d !== void 0 ? _d : null;
|
|
15
|
+
this.privateKeyPem = (_e = options === null || options === void 0 ? void 0 : options.privateKeyPem) !== null && _e !== void 0 ? _e : null;
|
|
14
16
|
}
|
|
15
17
|
properties() {
|
|
16
18
|
let properties = {};
|
|
17
19
|
if (this.bundleId != null) {
|
|
18
20
|
properties["bundleId"] = this.bundleId;
|
|
19
21
|
}
|
|
22
|
+
if (this.sharedSecretKey != null) {
|
|
23
|
+
properties["sharedSecretKey"] = this.sharedSecretKey;
|
|
24
|
+
}
|
|
20
25
|
if (this.issuerId != null) {
|
|
21
26
|
properties["issuerId"] = this.issuerId;
|
|
22
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppleAppStoreSetting.js","sourceRoot":"","sources":["AppleAppStoreSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,oBAAoB;
|
|
1
|
+
{"version":3,"file":"AppleAppStoreSetting.js","sourceRoot":"","sources":["AppleAppStoreSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,oBAAoB;IAOrC,YACI,UAA4C,IAAI;;QAPnC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,oBAAe,GAAgB,IAAI,CAAC;QACpC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,UAAK,GAAgB,IAAI,CAAC;QAC1B,kBAAa,GAAgB,IAAI,CAAC;QAK/C,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,eAAe,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,IAAI,CAAC;QACxD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,IAAI,CAAC;QACpC,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;IACxD,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,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;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAvCD,uCAuCC"}
|
|
@@ -17,6 +17,7 @@ import { AppleAppStoreSettingOptions } from "./options/AppleAppStoreSettingOptio
|
|
|
17
17
|
|
|
18
18
|
export default class AppleAppStoreSetting {
|
|
19
19
|
private readonly bundleId: string|null = null;
|
|
20
|
+
private readonly sharedSecretKey: string|null = null;
|
|
20
21
|
private readonly issuerId: string|null = null;
|
|
21
22
|
private readonly keyId: string|null = null;
|
|
22
23
|
private readonly privateKeyPem: string|null = null;
|
|
@@ -25,6 +26,7 @@ export default class AppleAppStoreSetting {
|
|
|
25
26
|
options: AppleAppStoreSettingOptions|null = null,
|
|
26
27
|
) {
|
|
27
28
|
this.bundleId = options?.bundleId ?? null;
|
|
29
|
+
this.sharedSecretKey = options?.sharedSecretKey ?? null;
|
|
28
30
|
this.issuerId = options?.issuerId ?? null;
|
|
29
31
|
this.keyId = options?.keyId ?? null;
|
|
30
32
|
this.privateKeyPem = options?.privateKeyPem ?? null;
|
|
@@ -37,6 +39,9 @@ export default class AppleAppStoreSetting {
|
|
|
37
39
|
if (this.bundleId != null) {
|
|
38
40
|
properties["bundleId"] = this.bundleId;
|
|
39
41
|
}
|
|
42
|
+
if (this.sharedSecretKey != null) {
|
|
43
|
+
properties["sharedSecretKey"] = this.sharedSecretKey;
|
|
44
|
+
}
|
|
40
45
|
if (this.issuerId != null) {
|
|
41
46
|
properties["issuerId"] = this.issuerId;
|
|
42
47
|
}
|
|
@@ -2,7 +2,6 @@ import { GooglePlaySettingOptions } from "./options/GooglePlaySettingOptions";
|
|
|
2
2
|
export default class GooglePlaySetting {
|
|
3
3
|
private readonly packageName;
|
|
4
4
|
private readonly publicKey;
|
|
5
|
-
private readonly credentialsJSON;
|
|
6
5
|
constructor(options?: GooglePlaySettingOptions | null);
|
|
7
6
|
properties(): {
|
|
8
7
|
[name: string]: any;
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class GooglePlaySetting {
|
|
4
4
|
constructor(options = null) {
|
|
5
|
-
var _a, _b
|
|
5
|
+
var _a, _b;
|
|
6
6
|
this.packageName = null;
|
|
7
7
|
this.publicKey = null;
|
|
8
|
-
this.credentialsJSON = null;
|
|
9
8
|
this.packageName = (_a = options === null || options === void 0 ? void 0 : options.packageName) !== null && _a !== void 0 ? _a : null;
|
|
10
9
|
this.publicKey = (_b = options === null || options === void 0 ? void 0 : options.publicKey) !== null && _b !== void 0 ? _b : null;
|
|
11
|
-
this.credentialsJSON = (_c = options === null || options === void 0 ? void 0 : options.credentialsJSON) !== null && _c !== void 0 ? _c : null;
|
|
12
10
|
}
|
|
13
11
|
properties() {
|
|
14
12
|
let properties = {};
|
|
@@ -18,9 +16,6 @@ class GooglePlaySetting {
|
|
|
18
16
|
if (this.publicKey != null) {
|
|
19
17
|
properties["publicKey"] = this.publicKey;
|
|
20
18
|
}
|
|
21
|
-
if (this.credentialsJSON != null) {
|
|
22
|
-
properties["credentialsJSON"] = this.credentialsJSON;
|
|
23
|
-
}
|
|
24
19
|
return properties;
|
|
25
20
|
}
|
|
26
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GooglePlaySetting.js","sourceRoot":"","sources":["GooglePlaySetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,iBAAiB;
|
|
1
|
+
{"version":3,"file":"GooglePlaySetting.js","sourceRoot":"","sources":["GooglePlaySetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,iBAAiB;IAIlC,YACI,UAAyC,IAAI;;QAJhC,gBAAW,GAAgB,IAAI,CAAC;QAChC,cAAS,GAAgB,IAAI,CAAC;QAK3C,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,IAAI,CAAC;IAChD,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAxBD,oCAwBC"}
|
|
@@ -18,14 +18,12 @@ import { GooglePlaySettingOptions } from "./options/GooglePlaySettingOptions";
|
|
|
18
18
|
export default class GooglePlaySetting {
|
|
19
19
|
private readonly packageName: string|null = null;
|
|
20
20
|
private readonly publicKey: string|null = null;
|
|
21
|
-
private readonly credentialsJSON: string|null = null;
|
|
22
21
|
|
|
23
22
|
public constructor(
|
|
24
23
|
options: GooglePlaySettingOptions|null = null,
|
|
25
24
|
) {
|
|
26
25
|
this.packageName = options?.packageName ?? null;
|
|
27
26
|
this.publicKey = options?.publicKey ?? null;
|
|
28
|
-
this.credentialsJSON = options?.credentialsJSON ?? null;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
public properties(
|
|
@@ -38,9 +36,6 @@ export default class GooglePlaySetting {
|
|
|
38
36
|
if (this.publicKey != null) {
|
|
39
37
|
properties["publicKey"] = this.publicKey;
|
|
40
38
|
}
|
|
41
|
-
if (this.credentialsJSON != null) {
|
|
42
|
-
properties["credentialsJSON"] = this.credentialsJSON;
|
|
43
|
-
}
|
|
44
39
|
|
|
45
40
|
return properties;
|
|
46
41
|
}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { StoreSubscriptionContentModelOptions } from "./options/StoreSubscriptionContentModelOptions";
|
|
2
|
+
import { StoreSubscriptionContentModelTriggerExtendModeIsJustOptions } from "./options/StoreSubscriptionContentModelTriggerExtendModeIsJustOptions";
|
|
3
|
+
import { StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions } from "./options/StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions";
|
|
4
|
+
import { StoreSubscriptionContentModelTriggerExtendMode } from "./enums/StoreSubscriptionContentModelTriggerExtendMode";
|
|
2
5
|
export default class StoreSubscriptionContentModel {
|
|
3
6
|
private readonly name;
|
|
4
7
|
private readonly scheduleNamespaceId;
|
|
5
8
|
private readonly triggerName;
|
|
9
|
+
private readonly triggerExtendMode;
|
|
6
10
|
private readonly reallocateSpanDays;
|
|
7
11
|
private readonly metadata;
|
|
12
|
+
private readonly rollupHour;
|
|
8
13
|
private readonly appleAppStore;
|
|
9
14
|
private readonly googlePlay;
|
|
10
|
-
constructor(name: string, scheduleNamespaceId: string, triggerName: string, reallocateSpanDays: number, options?: StoreSubscriptionContentModelOptions | null);
|
|
15
|
+
constructor(name: string, scheduleNamespaceId: string, triggerName: string, triggerExtendMode: StoreSubscriptionContentModelTriggerExtendMode, reallocateSpanDays: number, options?: StoreSubscriptionContentModelOptions | null);
|
|
16
|
+
static triggerExtendModeIsJust(name: string, scheduleNamespaceId: string, triggerName: string, reallocateSpanDays: number, options?: StoreSubscriptionContentModelTriggerExtendModeIsJustOptions | null): StoreSubscriptionContentModel;
|
|
17
|
+
static triggerExtendModeIsRollupHour(name: string, scheduleNamespaceId: string, triggerName: string, reallocateSpanDays: number, rollupHour: number, options?: StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions | null): StoreSubscriptionContentModel;
|
|
11
18
|
properties(): {
|
|
12
19
|
[name: string]: any;
|
|
13
20
|
};
|
|
@@ -1,18 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const StoreSubscriptionContentModelTriggerExtendMode_1 = require("./enums/StoreSubscriptionContentModelTriggerExtendMode");
|
|
3
4
|
class StoreSubscriptionContentModel {
|
|
4
|
-
constructor(name, scheduleNamespaceId, triggerName, reallocateSpanDays, options = null) {
|
|
5
|
-
var _a, _b, _c;
|
|
5
|
+
constructor(name, scheduleNamespaceId, triggerName, triggerExtendMode, reallocateSpanDays, options = null) {
|
|
6
|
+
var _a, _b, _c, _d;
|
|
6
7
|
this.metadata = null;
|
|
8
|
+
this.rollupHour = null;
|
|
7
9
|
this.appleAppStore = null;
|
|
8
10
|
this.googlePlay = null;
|
|
9
11
|
this.name = name;
|
|
10
12
|
this.scheduleNamespaceId = scheduleNamespaceId;
|
|
11
13
|
this.triggerName = triggerName;
|
|
14
|
+
this.triggerExtendMode = triggerExtendMode;
|
|
12
15
|
this.reallocateSpanDays = reallocateSpanDays;
|
|
13
16
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
17
|
+
this.rollupHour = (_b = options === null || options === void 0 ? void 0 : options.rollupHour) !== null && _b !== void 0 ? _b : null;
|
|
18
|
+
this.appleAppStore = (_c = options === null || options === void 0 ? void 0 : options.appleAppStore) !== null && _c !== void 0 ? _c : null;
|
|
19
|
+
this.googlePlay = (_d = options === null || options === void 0 ? void 0 : options.googlePlay) !== null && _d !== void 0 ? _d : null;
|
|
20
|
+
}
|
|
21
|
+
static triggerExtendModeIsJust(name, scheduleNamespaceId, triggerName, reallocateSpanDays, options = null) {
|
|
22
|
+
return new StoreSubscriptionContentModel(name, scheduleNamespaceId, triggerName, StoreSubscriptionContentModelTriggerExtendMode_1.StoreSubscriptionContentModelTriggerExtendMode.JUST, reallocateSpanDays, {
|
|
23
|
+
metadata: options === null || options === void 0 ? void 0 : options.metadata,
|
|
24
|
+
appleAppStore: options === null || options === void 0 ? void 0 : options.appleAppStore,
|
|
25
|
+
googlePlay: options === null || options === void 0 ? void 0 : options.googlePlay,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
static triggerExtendModeIsRollupHour(name, scheduleNamespaceId, triggerName, reallocateSpanDays, rollupHour, options = null) {
|
|
29
|
+
return new StoreSubscriptionContentModel(name, scheduleNamespaceId, triggerName, StoreSubscriptionContentModelTriggerExtendMode_1.StoreSubscriptionContentModelTriggerExtendMode.ROLLUP_HOUR, reallocateSpanDays, {
|
|
30
|
+
rollupHour: rollupHour,
|
|
31
|
+
metadata: options === null || options === void 0 ? void 0 : options.metadata,
|
|
32
|
+
appleAppStore: options === null || options === void 0 ? void 0 : options.appleAppStore,
|
|
33
|
+
googlePlay: options === null || options === void 0 ? void 0 : options.googlePlay,
|
|
34
|
+
});
|
|
16
35
|
}
|
|
17
36
|
properties() {
|
|
18
37
|
var _a, _b;
|
|
@@ -29,6 +48,12 @@ class StoreSubscriptionContentModel {
|
|
|
29
48
|
if (this.triggerName != null) {
|
|
30
49
|
properties["triggerName"] = this.triggerName;
|
|
31
50
|
}
|
|
51
|
+
if (this.triggerExtendMode != null) {
|
|
52
|
+
properties["triggerExtendMode"] = this.triggerExtendMode;
|
|
53
|
+
}
|
|
54
|
+
if (this.rollupHour != null) {
|
|
55
|
+
properties["rollupHour"] = this.rollupHour;
|
|
56
|
+
}
|
|
32
57
|
if (this.reallocateSpanDays != null) {
|
|
33
58
|
properties["reallocateSpanDays"] = this.reallocateSpanDays;
|
|
34
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoreSubscriptionContentModel.js","sourceRoot":"","sources":["StoreSubscriptionContentModel.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"StoreSubscriptionContentModel.js","sourceRoot":"","sources":["StoreSubscriptionContentModel.ts"],"names":[],"mappings":";;AAoBA,2HAAwH;AAExH,MAAqB,6BAA6B;IAW9C,YACI,IAAY,EACZ,mBAA2B,EAC3B,WAAmB,EACnB,iBAAiE,EACjE,kBAA0B,EAC1B,UAAqD,IAAI;;QAX5C,aAAQ,GAAgB,IAAI,CAAC;QAC7B,eAAU,GAAgB,IAAI,CAAC;QAC/B,kBAAa,GAA0C,IAAI,CAAC;QAC5D,eAAU,GAAuC,IAAI,CAAC;QAUnE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;IAClD,CAAC;IAEM,MAAM,CAAC,uBAAuB,CACjC,IAAY,EACZ,mBAA2B,EAC3B,WAAmB,EACnB,kBAA0B,EAC1B,UAA4E,IAAI;QAEhF,OAAO,IAAI,6BAA6B,CACpC,IAAI,EACJ,mBAAmB,EACnB,WAAW,EACX,+FAA8C,CAAC,IAAI,EACnD,kBAAkB,EAClB;YACI,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,aAAa,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa;YACrC,UAAU,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU;SAClC,CACJ,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,6BAA6B,CACvC,IAAY,EACZ,mBAA2B,EAC3B,WAAmB,EACnB,kBAA0B,EAC1B,UAAkB,EAClB,UAAkF,IAAI;QAEtF,OAAO,IAAI,6BAA6B,CACpC,IAAI,EACJ,mBAAmB,EACnB,WAAW,EACX,+FAA8C,CAAC,WAAW,EAC1D,kBAAkB,EAClB;YACI,UAAU,EAAE,UAAU;YACtB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,aAAa,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa;YACrC,UAAU,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU;SAClC,CACJ,CAAC;IACN,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE;YAClC,UAAU,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC;SAChE;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;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,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,MAAA,IAAI,CAAC,aAAa,0CAAE,UAAU,EAC3D,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;AA9GD,gDA8GC"}
|
|
@@ -16,13 +16,18 @@
|
|
|
16
16
|
import AppleAppStoreSubscriptionContent from "./AppleAppStoreSubscriptionContent";
|
|
17
17
|
import GooglePlaySubscriptionContent from "./GooglePlaySubscriptionContent";
|
|
18
18
|
import { StoreSubscriptionContentModelOptions } from "./options/StoreSubscriptionContentModelOptions";
|
|
19
|
+
import { StoreSubscriptionContentModelTriggerExtendModeIsJustOptions } from "./options/StoreSubscriptionContentModelTriggerExtendModeIsJustOptions";
|
|
20
|
+
import { StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions } from "./options/StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions";
|
|
21
|
+
import { StoreSubscriptionContentModelTriggerExtendMode } from "./enums/StoreSubscriptionContentModelTriggerExtendMode";
|
|
19
22
|
|
|
20
23
|
export default class StoreSubscriptionContentModel {
|
|
21
24
|
private readonly name: string;
|
|
22
25
|
private readonly scheduleNamespaceId: string;
|
|
23
26
|
private readonly triggerName: string;
|
|
27
|
+
private readonly triggerExtendMode: StoreSubscriptionContentModelTriggerExtendMode;
|
|
24
28
|
private readonly reallocateSpanDays: number;
|
|
25
29
|
private readonly metadata: string|null = null;
|
|
30
|
+
private readonly rollupHour: number|null = null;
|
|
26
31
|
private readonly appleAppStore: AppleAppStoreSubscriptionContent|null = null;
|
|
27
32
|
private readonly googlePlay: GooglePlaySubscriptionContent|null = null;
|
|
28
33
|
|
|
@@ -30,18 +35,65 @@ export default class StoreSubscriptionContentModel {
|
|
|
30
35
|
name: string,
|
|
31
36
|
scheduleNamespaceId: string,
|
|
32
37
|
triggerName: string,
|
|
38
|
+
triggerExtendMode: StoreSubscriptionContentModelTriggerExtendMode,
|
|
33
39
|
reallocateSpanDays: number,
|
|
34
40
|
options: StoreSubscriptionContentModelOptions|null = null,
|
|
35
41
|
) {
|
|
36
42
|
this.name = name;
|
|
37
43
|
this.scheduleNamespaceId = scheduleNamespaceId;
|
|
38
44
|
this.triggerName = triggerName;
|
|
45
|
+
this.triggerExtendMode = triggerExtendMode;
|
|
39
46
|
this.reallocateSpanDays = reallocateSpanDays;
|
|
40
47
|
this.metadata = options?.metadata ?? null;
|
|
48
|
+
this.rollupHour = options?.rollupHour ?? null;
|
|
41
49
|
this.appleAppStore = options?.appleAppStore ?? null;
|
|
42
50
|
this.googlePlay = options?.googlePlay ?? null;
|
|
43
51
|
}
|
|
44
52
|
|
|
53
|
+
public static triggerExtendModeIsJust(
|
|
54
|
+
name: string,
|
|
55
|
+
scheduleNamespaceId: string,
|
|
56
|
+
triggerName: string,
|
|
57
|
+
reallocateSpanDays: number,
|
|
58
|
+
options: StoreSubscriptionContentModelTriggerExtendModeIsJustOptions|null = null,
|
|
59
|
+
): StoreSubscriptionContentModel {
|
|
60
|
+
return new StoreSubscriptionContentModel(
|
|
61
|
+
name,
|
|
62
|
+
scheduleNamespaceId,
|
|
63
|
+
triggerName,
|
|
64
|
+
StoreSubscriptionContentModelTriggerExtendMode.JUST,
|
|
65
|
+
reallocateSpanDays,
|
|
66
|
+
{
|
|
67
|
+
metadata: options?.metadata,
|
|
68
|
+
appleAppStore: options?.appleAppStore,
|
|
69
|
+
googlePlay: options?.googlePlay,
|
|
70
|
+
},
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public static triggerExtendModeIsRollupHour(
|
|
75
|
+
name: string,
|
|
76
|
+
scheduleNamespaceId: string,
|
|
77
|
+
triggerName: string,
|
|
78
|
+
reallocateSpanDays: number,
|
|
79
|
+
rollupHour: number,
|
|
80
|
+
options: StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions|null = null,
|
|
81
|
+
): StoreSubscriptionContentModel {
|
|
82
|
+
return new StoreSubscriptionContentModel(
|
|
83
|
+
name,
|
|
84
|
+
scheduleNamespaceId,
|
|
85
|
+
triggerName,
|
|
86
|
+
StoreSubscriptionContentModelTriggerExtendMode.ROLLUP_HOUR,
|
|
87
|
+
reallocateSpanDays,
|
|
88
|
+
{
|
|
89
|
+
rollupHour: rollupHour,
|
|
90
|
+
metadata: options?.metadata,
|
|
91
|
+
appleAppStore: options?.appleAppStore,
|
|
92
|
+
googlePlay: options?.googlePlay,
|
|
93
|
+
},
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
45
97
|
public properties(
|
|
46
98
|
): {[name: string]: any} {
|
|
47
99
|
let properties: {[name: string]: any} = {};
|
|
@@ -58,6 +110,12 @@ export default class StoreSubscriptionContentModel {
|
|
|
58
110
|
if (this.triggerName != null) {
|
|
59
111
|
properties["triggerName"] = this.triggerName;
|
|
60
112
|
}
|
|
113
|
+
if (this.triggerExtendMode != null) {
|
|
114
|
+
properties["triggerExtendMode"] = this.triggerExtendMode;
|
|
115
|
+
}
|
|
116
|
+
if (this.rollupHour != null) {
|
|
117
|
+
properties["rollupHour"] = this.rollupHour;
|
|
118
|
+
}
|
|
61
119
|
if (this.reallocateSpanDays != null) {
|
|
62
120
|
properties["reallocateSpanDays"] = this.reallocateSpanDays;
|
|
63
121
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const StoreSubscriptionContentModelTriggerExtendMode: {
|
|
2
|
+
readonly JUST: "just";
|
|
3
|
+
readonly ROLLUP_HOUR: "rollupHour";
|
|
4
|
+
};
|
|
5
|
+
export type StoreSubscriptionContentModelTriggerExtendMode = typeof StoreSubscriptionContentModelTriggerExtendMode[keyof typeof StoreSubscriptionContentModelTriggerExtendMode];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
* Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
* You may not use this file except in compliance with the License.
|
|
8
|
+
* A copy of the License is located at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
* express or implied. See the License for the specific language governing
|
|
15
|
+
* permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.StoreSubscriptionContentModelTriggerExtendMode = void 0;
|
|
19
|
+
exports.StoreSubscriptionContentModelTriggerExtendMode = {
|
|
20
|
+
JUST: "just",
|
|
21
|
+
ROLLUP_HOUR: "rollupHour",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=StoreSubscriptionContentModelTriggerExtendMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreSubscriptionContentModelTriggerExtendMode.js","sourceRoot":"","sources":["StoreSubscriptionContentModelTriggerExtendMode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,8CAA8C,GAAG;IAC1D,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,YAAY;CACnB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export const StoreSubscriptionContentModelTriggerExtendMode = {
|
|
20
|
+
JUST: "just",
|
|
21
|
+
ROLLUP_HOUR: "rollupHour",
|
|
22
|
+
} as const;
|
|
23
|
+
export type StoreSubscriptionContentModelTriggerExtendMode = typeof StoreSubscriptionContentModelTriggerExtendMode[keyof typeof StoreSubscriptionContentModelTriggerExtendMode];
|
package/money2/model/index.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ import StoreContentModel from "./StoreContentModel";
|
|
|
9
9
|
import { StoreContentModelOptions } from "./options/StoreContentModelOptions";
|
|
10
10
|
import StoreSubscriptionContentModel from "./StoreSubscriptionContentModel";
|
|
11
11
|
import { StoreSubscriptionContentModelOptions } from "./options/StoreSubscriptionContentModelOptions";
|
|
12
|
+
import { StoreSubscriptionContentModelTriggerExtendMode } from "./enums/StoreSubscriptionContentModelTriggerExtendMode";
|
|
13
|
+
import { StoreSubscriptionContentModelTriggerExtendModeIsJustOptions } from "./options/StoreSubscriptionContentModelTriggerExtendModeIsJustOptions";
|
|
14
|
+
import { StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions } from "./options/StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions";
|
|
12
15
|
import Receipt from "./Receipt";
|
|
13
16
|
import { ReceiptOptions } from "./options/ReceiptOptions";
|
|
14
17
|
import { ReceiptStore } from "./enums/ReceiptStore";
|
|
@@ -55,4 +58,4 @@ import { DailyTransactionHistoryOptions } from "./options/DailyTransactionHistor
|
|
|
55
58
|
import UnusedBalance from "./UnusedBalance";
|
|
56
59
|
import { UnusedBalanceOptions } from "./options/UnusedBalanceOptions";
|
|
57
60
|
import CurrentMasterData from "./CurrentMasterData";
|
|
58
|
-
export { Namespace, NamespaceOptions, NamespaceCurrencyUsagePriority, SubscribeTransaction, SubscribeTransactionOptions, SubscribeTransactionStore, SubscribeTransactionStatusDetail, StoreContentModel, StoreContentModelOptions, StoreSubscriptionContentModel, StoreSubscriptionContentModelOptions, Receipt, ReceiptOptions, ReceiptStore, PlatformSetting, PlatformSettingOptions, AppleAppStoreSetting, AppleAppStoreSettingOptions, GooglePlaySetting, GooglePlaySettingOptions, FakeSetting, FakeSettingOptions, FakeSettingAcceptFakeReceipt, WalletSummary, WalletSummaryOptions, DepositTransaction, DepositTransactionOptions, VerifyReceiptEvent, VerifyReceiptEventOptions, VerifyReceiptEventPlatform, DepositEvent, DepositEventOptions, WithdrawEvent, WithdrawEventOptions, RefundEvent, RefundEventOptions, RefundEventPlatform, AppleAppStoreVerifyReceiptEvent, AppleAppStoreVerifyReceiptEventOptions, AppleAppStoreVerifyReceiptEventEnvironment, GooglePlayVerifyReceiptEvent, GooglePlayVerifyReceiptEventOptions, AppleAppStoreContent, AppleAppStoreContentOptions, GooglePlayContent, GooglePlayContentOptions, AppleAppStoreSubscriptionContent, AppleAppStoreSubscriptionContentOptions, GooglePlaySubscriptionContent, GooglePlaySubscriptionContentOptions, GooglePlayRealtimeNotificationMessage, GooglePlayRealtimeNotificationMessageOptions, DailyTransactionHistory, DailyTransactionHistoryOptions, UnusedBalance, UnusedBalanceOptions, CurrentMasterData, };
|
|
61
|
+
export { Namespace, NamespaceOptions, NamespaceCurrencyUsagePriority, SubscribeTransaction, SubscribeTransactionOptions, SubscribeTransactionStore, SubscribeTransactionStatusDetail, StoreContentModel, StoreContentModelOptions, StoreSubscriptionContentModel, StoreSubscriptionContentModelOptions, StoreSubscriptionContentModelTriggerExtendMode, StoreSubscriptionContentModelTriggerExtendModeIsJustOptions, StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions, Receipt, ReceiptOptions, ReceiptStore, PlatformSetting, PlatformSettingOptions, AppleAppStoreSetting, AppleAppStoreSettingOptions, GooglePlaySetting, GooglePlaySettingOptions, FakeSetting, FakeSettingOptions, FakeSettingAcceptFakeReceipt, WalletSummary, WalletSummaryOptions, DepositTransaction, DepositTransactionOptions, VerifyReceiptEvent, VerifyReceiptEventOptions, VerifyReceiptEventPlatform, DepositEvent, DepositEventOptions, WithdrawEvent, WithdrawEventOptions, RefundEvent, RefundEventOptions, RefundEventPlatform, AppleAppStoreVerifyReceiptEvent, AppleAppStoreVerifyReceiptEventOptions, AppleAppStoreVerifyReceiptEventEnvironment, GooglePlayVerifyReceiptEvent, GooglePlayVerifyReceiptEventOptions, AppleAppStoreContent, AppleAppStoreContentOptions, GooglePlayContent, GooglePlayContentOptions, AppleAppStoreSubscriptionContent, AppleAppStoreSubscriptionContentOptions, GooglePlaySubscriptionContent, GooglePlaySubscriptionContentOptions, GooglePlayRealtimeNotificationMessage, GooglePlayRealtimeNotificationMessageOptions, DailyTransactionHistory, DailyTransactionHistoryOptions, UnusedBalance, UnusedBalanceOptions, CurrentMasterData, };
|
package/money2/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CurrentMasterData = exports.UnusedBalance = exports.DailyTransactionHistory = exports.GooglePlayRealtimeNotificationMessage = exports.GooglePlaySubscriptionContent = exports.AppleAppStoreSubscriptionContent = exports.GooglePlayContent = exports.AppleAppStoreContent = exports.GooglePlayVerifyReceiptEvent = exports.AppleAppStoreVerifyReceiptEventEnvironment = exports.AppleAppStoreVerifyReceiptEvent = exports.RefundEventPlatform = exports.RefundEvent = exports.WithdrawEvent = exports.DepositEvent = exports.VerifyReceiptEventPlatform = exports.VerifyReceiptEvent = exports.DepositTransaction = exports.WalletSummary = exports.FakeSettingAcceptFakeReceipt = exports.FakeSetting = exports.GooglePlaySetting = exports.AppleAppStoreSetting = exports.PlatformSetting = exports.ReceiptStore = exports.Receipt = exports.StoreSubscriptionContentModel = exports.StoreContentModel = exports.SubscribeTransactionStatusDetail = exports.SubscribeTransactionStore = exports.SubscribeTransaction = exports.NamespaceCurrencyUsagePriority = exports.Namespace = void 0;
|
|
3
|
+
exports.CurrentMasterData = exports.UnusedBalance = exports.DailyTransactionHistory = exports.GooglePlayRealtimeNotificationMessage = exports.GooglePlaySubscriptionContent = exports.AppleAppStoreSubscriptionContent = exports.GooglePlayContent = exports.AppleAppStoreContent = exports.GooglePlayVerifyReceiptEvent = exports.AppleAppStoreVerifyReceiptEventEnvironment = exports.AppleAppStoreVerifyReceiptEvent = exports.RefundEventPlatform = exports.RefundEvent = exports.WithdrawEvent = exports.DepositEvent = exports.VerifyReceiptEventPlatform = exports.VerifyReceiptEvent = exports.DepositTransaction = exports.WalletSummary = exports.FakeSettingAcceptFakeReceipt = exports.FakeSetting = exports.GooglePlaySetting = exports.AppleAppStoreSetting = exports.PlatformSetting = exports.ReceiptStore = exports.Receipt = exports.StoreSubscriptionContentModelTriggerExtendMode = exports.StoreSubscriptionContentModel = exports.StoreContentModel = exports.SubscribeTransactionStatusDetail = exports.SubscribeTransactionStore = exports.SubscribeTransaction = exports.NamespaceCurrencyUsagePriority = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -31,6 +31,8 @@ const StoreContentModel_1 = tslib_1.__importDefault(require("./StoreContentModel
|
|
|
31
31
|
exports.StoreContentModel = StoreContentModel_1.default;
|
|
32
32
|
const StoreSubscriptionContentModel_1 = tslib_1.__importDefault(require("./StoreSubscriptionContentModel"));
|
|
33
33
|
exports.StoreSubscriptionContentModel = StoreSubscriptionContentModel_1.default;
|
|
34
|
+
const StoreSubscriptionContentModelTriggerExtendMode_1 = require("./enums/StoreSubscriptionContentModelTriggerExtendMode");
|
|
35
|
+
Object.defineProperty(exports, "StoreSubscriptionContentModelTriggerExtendMode", { enumerable: true, get: function () { return StoreSubscriptionContentModelTriggerExtendMode_1.StoreSubscriptionContentModelTriggerExtendMode; } });
|
|
34
36
|
const Receipt_1 = tslib_1.__importDefault(require("./Receipt"));
|
|
35
37
|
exports.Receipt = Receipt_1.default;
|
|
36
38
|
const ReceiptStore_1 = require("./enums/ReceiptStore");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AA8DhC,oBA9DG,mBAAS,CA8DH;AA5Db,2FAAwF;AA8DpF,+GA9DK,+DAA8B,OA8DL;AA7DlC,0FAA0D;AA8DtD,+BA9DG,8BAAoB,CA8DH;AA5DxB,iFAA8E;AA8D1E,0GA9DK,qDAAyB,OA8DL;AA7D7B,+FAA4F;AA8DxF,iHA9DK,mEAAgC,OA8DL;AA7DpC,oFAAoD;AA8DhD,4BA9DG,2BAAiB,CA8DH;AA5DrB,4GAA4E;AA8DxE,wCA9DG,uCAA6B,CA8DH;AA5DjC,2HAAwH;AA8DpH,+HA9DK,+FAA8C,OA8DL;AA3DlD,gEAAgC;AA8D5B,kBA9DG,iBAAO,CA8DH;AA5DX,uDAAoD;AA8DhD,6FA9DK,2BAAY,OA8DL;AA7DhB,gFAAgD;AA8D5C,0BA9DG,yBAAe,CA8DH;AA5DnB,0FAA0D;AA8DtD,+BA9DG,8BAAoB,CA8DH;AA5DxB,oFAAoD;AA8DhD,4BA9DG,2BAAiB,CA8DH;AA5DrB,wEAAwC;AA8DpC,sBA9DG,qBAAW,CA8DH;AA5Df,uFAAoF;AA8DhF,6GA9DK,2DAA4B,OA8DL;AA7DhC,4EAA4C;AA8DxC,wBA9DG,uBAAa,CA8DH;AA5DjB,sFAAsD;AA8DlD,6BA9DG,4BAAkB,CA8DH;AA5DtB,sFAAsD;AA8DlD,6BA9DG,4BAAkB,CA8DH;AA5DtB,mFAAgF;AA8D5E,2GA9DK,uDAA0B,OA8DL;AA7D9B,0EAA0C;AA8DtC,uBA9DG,sBAAY,CA8DH;AA5DhB,4EAA4C;AA8DxC,wBA9DG,uBAAa,CA8DH;AA5DjB,wEAAwC;AA8DpC,sBA9DG,qBAAW,CA8DH;AA5Df,qEAAkE;AA8D9D,oGA9DK,yCAAmB,OA8DL;AA7DvB,gHAAgF;AA8D5E,0CA9DG,yCAA+B,CA8DH;AA5DnC,mHAAgH;AA8D5G,2HA9DK,uFAA0C,OA8DL;AA7D9C,0GAA0E;AA8DtE,uCA9DG,sCAA4B,CA8DH;AA5DhC,0FAA0D;AA8DtD,+BA9DG,8BAAoB,CA8DH;AA5DxB,oFAAoD;AA8DhD,4BA9DG,2BAAiB,CA8DH;AA5DrB,kHAAkF;AA8D9E,2CA9DG,0CAAgC,CA8DH;AA5DpC,4GAA4E;AA8DxE,wCA9DG,uCAA6B,CA8DH;AA5DjC,4HAA4F;AA8DxF,gDA9DG,+CAAqC,CA8DH;AA5DzC,gGAAgE;AA8D5D,kCA9DG,iCAAuB,CA8DH;AA5D3B,4EAA4C;AA8DxC,wBA9DG,uBAAa,CA8DH;AA5DjB,oFAAoD;AA8DhD,4BA9DG,2BAAiB,CA8DH"}
|
package/money2/model/index.ts
CHANGED
|
@@ -24,6 +24,9 @@ import StoreContentModel from "./StoreContentModel";
|
|
|
24
24
|
import { StoreContentModelOptions } from "./options/StoreContentModelOptions";
|
|
25
25
|
import StoreSubscriptionContentModel from "./StoreSubscriptionContentModel";
|
|
26
26
|
import { StoreSubscriptionContentModelOptions } from "./options/StoreSubscriptionContentModelOptions";
|
|
27
|
+
import { StoreSubscriptionContentModelTriggerExtendMode } from "./enums/StoreSubscriptionContentModelTriggerExtendMode";
|
|
28
|
+
import { StoreSubscriptionContentModelTriggerExtendModeIsJustOptions } from "./options/StoreSubscriptionContentModelTriggerExtendModeIsJustOptions"
|
|
29
|
+
import { StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions } from "./options/StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions"
|
|
27
30
|
import Receipt from "./Receipt";
|
|
28
31
|
import { ReceiptOptions } from "./options/ReceiptOptions";
|
|
29
32
|
import { ReceiptStore } from "./enums/ReceiptStore";
|
|
@@ -83,6 +86,9 @@ export {
|
|
|
83
86
|
StoreContentModelOptions,
|
|
84
87
|
StoreSubscriptionContentModel,
|
|
85
88
|
StoreSubscriptionContentModelOptions,
|
|
89
|
+
StoreSubscriptionContentModelTriggerExtendMode,
|
|
90
|
+
StoreSubscriptionContentModelTriggerExtendModeIsJustOptions,
|
|
91
|
+
StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions,
|
|
86
92
|
Receipt,
|
|
87
93
|
ReceiptOptions,
|
|
88
94
|
ReceiptStore,
|
|
@@ -2,6 +2,7 @@ import AppleAppStoreSubscriptionContent from "../AppleAppStoreSubscriptionConten
|
|
|
2
2
|
import GooglePlaySubscriptionContent from "../GooglePlaySubscriptionContent";
|
|
3
3
|
export interface StoreSubscriptionContentModelOptions {
|
|
4
4
|
metadata?: string | null;
|
|
5
|
+
rollupHour?: number | null;
|
|
5
6
|
appleAppStore?: AppleAppStoreSubscriptionContent | null;
|
|
6
7
|
googlePlay?: GooglePlaySubscriptionContent | null;
|
|
7
8
|
}
|
|
@@ -15,9 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import AppleAppStoreSubscriptionContent from "../AppleAppStoreSubscriptionContent";
|
|
17
17
|
import GooglePlaySubscriptionContent from "../GooglePlaySubscriptionContent";
|
|
18
|
+
import { StoreSubscriptionContentModelTriggerExtendMode } from "../enums/StoreSubscriptionContentModelTriggerExtendMode";
|
|
18
19
|
|
|
19
20
|
export interface StoreSubscriptionContentModelOptions {
|
|
20
21
|
metadata?: string|null;
|
|
22
|
+
rollupHour?: number|null;
|
|
21
23
|
appleAppStore?: AppleAppStoreSubscriptionContent|null;
|
|
22
24
|
googlePlay?: GooglePlaySubscriptionContent|null;
|
|
23
25
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import AppleAppStoreSubscriptionContent from "../AppleAppStoreSubscriptionContent";
|
|
2
|
+
import GooglePlaySubscriptionContent from "../GooglePlaySubscriptionContent";
|
|
3
|
+
export interface StoreSubscriptionContentModelTriggerExtendModeIsJustOptions {
|
|
4
|
+
metadata?: string | null;
|
|
5
|
+
appleAppStore?: AppleAppStoreSubscriptionContent | null;
|
|
6
|
+
googlePlay?: GooglePlaySubscriptionContent | null;
|
|
7
|
+
}
|
package/money2/model/options/StoreSubscriptionContentModelTriggerExtendModeIsJustOptions.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreSubscriptionContentModelTriggerExtendModeIsJustOptions.js","sourceRoot":"","sources":["StoreSubscriptionContentModelTriggerExtendModeIsJustOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import AppleAppStoreSubscriptionContent from "../AppleAppStoreSubscriptionContent";
|
|
17
|
+
import GooglePlaySubscriptionContent from "../GooglePlaySubscriptionContent";
|
|
18
|
+
import { StoreSubscriptionContentModelTriggerExtendMode } from "../enums/StoreSubscriptionContentModelTriggerExtendMode";
|
|
19
|
+
|
|
20
|
+
export interface StoreSubscriptionContentModelTriggerExtendModeIsJustOptions {
|
|
21
|
+
metadata?: string|null;
|
|
22
|
+
appleAppStore?: AppleAppStoreSubscriptionContent|null;
|
|
23
|
+
googlePlay?: GooglePlaySubscriptionContent|null;
|
|
24
|
+
}
|
package/money2/model/options/StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import AppleAppStoreSubscriptionContent from "../AppleAppStoreSubscriptionContent";
|
|
2
|
+
import GooglePlaySubscriptionContent from "../GooglePlaySubscriptionContent";
|
|
3
|
+
export interface StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions {
|
|
4
|
+
metadata?: string | null;
|
|
5
|
+
appleAppStore?: AppleAppStoreSubscriptionContent | null;
|
|
6
|
+
googlePlay?: GooglePlaySubscriptionContent | null;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions.js","sourceRoot":"","sources":["StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions.ts"],"names":[],"mappings":""}
|
package/money2/model/options/StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import AppleAppStoreSubscriptionContent from "../AppleAppStoreSubscriptionContent";
|
|
17
|
+
import GooglePlaySubscriptionContent from "../GooglePlaySubscriptionContent";
|
|
18
|
+
import { StoreSubscriptionContentModelTriggerExtendMode } from "../enums/StoreSubscriptionContentModelTriggerExtendMode";
|
|
19
|
+
|
|
20
|
+
export interface StoreSubscriptionContentModelTriggerExtendModeIsRollupHourOptions {
|
|
21
|
+
metadata?: string|null;
|
|
22
|
+
appleAppStore?: AppleAppStoreSubscriptionContent|null;
|
|
23
|
+
googlePlay?: GooglePlaySubscriptionContent|null;
|
|
24
|
+
}
|
package/package.json
CHANGED
|
@@ -3,6 +3,6 @@ import RandomStatus from "../model/RandomStatus";
|
|
|
3
3
|
export default class NamespaceRef {
|
|
4
4
|
private readonly namespaceName;
|
|
5
5
|
constructor(namespaceName: string);
|
|
6
|
-
invokeScript(scriptId: string, args?: string | null, randomStatus?: RandomStatus | null, userId?: string): InvokeScript;
|
|
6
|
+
invokeScript(scriptId: string, args?: string | null, randomStatus?: RandomStatus | null, forceUseDistributor?: boolean | null, userId?: string): InvokeScript;
|
|
7
7
|
grn(): string;
|
|
8
8
|
}
|
|
@@ -22,8 +22,8 @@ class NamespaceRef {
|
|
|
22
22
|
constructor(namespaceName) {
|
|
23
23
|
this.namespaceName = namespaceName;
|
|
24
24
|
}
|
|
25
|
-
invokeScript(scriptId, args = null, randomStatus = null, userId = "#{userId}") {
|
|
26
|
-
return new InvokeScript_1.default(scriptId, args, randomStatus, userId);
|
|
25
|
+
invokeScript(scriptId, args = null, randomStatus = null, forceUseDistributor = null, userId = "#{userId}") {
|
|
26
|
+
return new InvokeScript_1.default(scriptId, args, randomStatus, forceUseDistributor, userId);
|
|
27
27
|
}
|
|
28
28
|
grn() {
|
|
29
29
|
return new func_1.Join(":", [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAE9C,sFAAsD;AAGtD,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,QAAgB,EAChB,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,SAAiB,WAAW;QAE5B,OAAO,IAAI,sBAAY,CACnB,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,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,QAAQ;YACR,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;AAE9C,sFAAsD;AAGtD,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,QAAgB,EAChB,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,sBAAoC,IAAI,EACxC,SAAiB,WAAW;QAE5B,OAAO,IAAI,sBAAY,CACnB,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,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,QAAQ;YACR,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA5CD,+BA4CC"}
|
|
@@ -32,12 +32,14 @@ export default class NamespaceRef {
|
|
|
32
32
|
scriptId: string,
|
|
33
33
|
args: string|null = null,
|
|
34
34
|
randomStatus: RandomStatus|null = null,
|
|
35
|
+
forceUseDistributor: boolean|null = null,
|
|
35
36
|
userId: string = "#{userId}",
|
|
36
37
|
): InvokeScript {
|
|
37
38
|
return new InvokeScript(
|
|
38
39
|
scriptId,
|
|
39
40
|
args,
|
|
40
41
|
randomStatus,
|
|
42
|
+
forceUseDistributor,
|
|
41
43
|
userId,
|
|
42
44
|
);
|
|
43
45
|
}
|
|
@@ -4,6 +4,6 @@ export default class ScriptRef {
|
|
|
4
4
|
private readonly namespaceName;
|
|
5
5
|
private readonly scriptName;
|
|
6
6
|
constructor(namespaceName: string, scriptName: string);
|
|
7
|
-
invokeScript(scriptId: string, args?: string | null, randomStatus?: RandomStatus | null, userId?: string): InvokeScript;
|
|
7
|
+
invokeScript(scriptId: string, args?: string | null, randomStatus?: RandomStatus | null, forceUseDistributor?: boolean | null, userId?: string): InvokeScript;
|
|
8
8
|
grn(): string;
|
|
9
9
|
}
|
package/script/ref/ScriptRef.js
CHANGED
|
@@ -23,8 +23,8 @@ class ScriptRef {
|
|
|
23
23
|
this.namespaceName = namespaceName;
|
|
24
24
|
this.scriptName = scriptName;
|
|
25
25
|
}
|
|
26
|
-
invokeScript(scriptId, args = null, randomStatus = null, userId = "#{userId}") {
|
|
27
|
-
return new InvokeScript_1.default(scriptId, args, randomStatus, userId);
|
|
26
|
+
invokeScript(scriptId, args = null, randomStatus = null, forceUseDistributor = null, userId = "#{userId}") {
|
|
27
|
+
return new InvokeScript_1.default(scriptId, args, randomStatus, forceUseDistributor, userId);
|
|
28
28
|
}
|
|
29
29
|
grn() {
|
|
30
30
|
return new func_1.Join(":", [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScriptRef.js","sourceRoot":"","sources":["ScriptRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,sFAAsD;AAGtD,MAAqB,SAAS;IAI1B,YACI,aAAqB,EACrB,UAAkB;QAElB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEM,YAAY,CACf,QAAgB,EAChB,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,SAAiB,WAAW;QAE5B,OAAO,IAAI,sBAAY,CACnB,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,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,QAAQ;YACR,IAAI,CAAC,aAAa;YAClB,QAAQ;YACR,IAAI,CAAC,UAAU;SAClB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"ScriptRef.js","sourceRoot":"","sources":["ScriptRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,sFAAsD;AAGtD,MAAqB,SAAS;IAI1B,YACI,aAAqB,EACrB,UAAkB;QAElB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEM,YAAY,CACf,QAAgB,EAChB,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,sBAAoC,IAAI,EACxC,SAAiB,WAAW;QAE5B,OAAO,IAAI,sBAAY,CACnB,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,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,QAAQ;YACR,IAAI,CAAC,aAAa;YAClB,QAAQ;YACR,IAAI,CAAC,UAAU;SAClB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjDD,4BAiDC"}
|
package/script/ref/ScriptRef.ts
CHANGED
|
@@ -34,12 +34,14 @@ export default class ScriptRef {
|
|
|
34
34
|
scriptId: string,
|
|
35
35
|
args: string|null = null,
|
|
36
36
|
randomStatus: RandomStatus|null = null,
|
|
37
|
+
forceUseDistributor: boolean|null = null,
|
|
37
38
|
userId: string = "#{userId}",
|
|
38
39
|
): InvokeScript {
|
|
39
40
|
return new InvokeScript(
|
|
40
41
|
scriptId,
|
|
41
42
|
args,
|
|
42
43
|
randomStatus,
|
|
44
|
+
forceUseDistributor,
|
|
43
45
|
userId,
|
|
44
46
|
);
|
|
45
47
|
}
|
|
@@ -5,8 +5,9 @@ export default class InvokeScript extends AcquireAction {
|
|
|
5
5
|
private readonly userId;
|
|
6
6
|
private readonly args;
|
|
7
7
|
private readonly randomStatus;
|
|
8
|
+
private readonly forceUseDistributor;
|
|
8
9
|
private readonly timeOffsetToken;
|
|
9
|
-
constructor(scriptId?: string | null, args?: string | null, randomStatus?: RandomStatus | null, timeOffsetToken?: string | null, userId?: string);
|
|
10
|
+
constructor(scriptId?: string | null, args?: string | null, randomStatus?: RandomStatus | null, forceUseDistributor?: boolean | null, timeOffsetToken?: string | null, userId?: string);
|
|
10
11
|
request(): {
|
|
11
12
|
[name: string]: any;
|
|
12
13
|
};
|
|
@@ -19,16 +19,18 @@
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
const model_1 = require("../../core/model");
|
|
21
21
|
class InvokeScript extends model_1.AcquireAction {
|
|
22
|
-
constructor(scriptId = null, args = null, randomStatus = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
22
|
+
constructor(scriptId = null, args = null, randomStatus = null, forceUseDistributor = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
23
23
|
super();
|
|
24
24
|
this.scriptId = null;
|
|
25
25
|
this.userId = null;
|
|
26
26
|
this.args = null;
|
|
27
27
|
this.randomStatus = null;
|
|
28
|
+
this.forceUseDistributor = null;
|
|
28
29
|
this.timeOffsetToken = null;
|
|
29
30
|
this.scriptId = scriptId !== null && scriptId !== void 0 ? scriptId : null;
|
|
30
31
|
this.args = args !== null && args !== void 0 ? args : null;
|
|
31
32
|
this.randomStatus = randomStatus !== null && randomStatus !== void 0 ? randomStatus : null;
|
|
33
|
+
this.forceUseDistributor = forceUseDistributor !== null && forceUseDistributor !== void 0 ? forceUseDistributor : null;
|
|
32
34
|
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
33
35
|
this.userId = userId;
|
|
34
36
|
}
|
|
@@ -47,6 +49,9 @@ class InvokeScript extends model_1.AcquireAction {
|
|
|
47
49
|
if (this.randomStatus != null) {
|
|
48
50
|
properties["randomStatus"] = (_a = this.randomStatus) === null || _a === void 0 ? void 0 : _a.properties();
|
|
49
51
|
}
|
|
52
|
+
if (this.forceUseDistributor != null) {
|
|
53
|
+
properties["forceUseDistributor"] = this.forceUseDistributor;
|
|
54
|
+
}
|
|
50
55
|
if (this.timeOffsetToken != null) {
|
|
51
56
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
52
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvokeScript.js","sourceRoot":"","sources":["InvokeScript.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,4CAA4E;AAG5E,MAAqB,YAAa,SAAQ,qBAAa;
|
|
1
|
+
{"version":3,"file":"InvokeScript.js","sourceRoot":"","sources":["InvokeScript.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,4CAA4E;AAG5E,MAAqB,YAAa,SAAQ,qBAAa;IASnD,YACI,WAAwB,IAAI,EAC5B,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,sBAAoC,IAAI,EACxC,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAhBK,aAAQ,GAAgB,IAAI,CAAC;QAC7B,WAAM,GAAgB,IAAI,CAAC;QAC3B,SAAI,GAAgB,IAAI,CAAC;QACzB,iBAAY,GAAsB,IAAI,CAAC;QACvC,wBAAmB,GAAiB,IAAI,CAAC;QACzC,oBAAe,GAAgB,IAAI,CAAC;QAajD,IAAI,CAAC,QAAQ,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,IAAI,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,IAAI,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,IAAI,CAAC;QACzC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,aAAnB,mBAAmB,cAAnB,mBAAmB,GAAI,IAAI,CAAC;QACvD,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;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,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,MAAA,IAAI,CAAC,YAAY,0CAAE,UAAU,EACzD,CAAC;SACL;QACD,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE;YAClC,UAAU,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC;SAChE;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,wBAAwB,CAAC;IACpC,CAAC;CACJ;AAzDD,+BAyDC"}
|
|
@@ -24,6 +24,7 @@ export default class InvokeScript extends AcquireAction {
|
|
|
24
24
|
private readonly userId: string|null = null;
|
|
25
25
|
private readonly args: string|null = null;
|
|
26
26
|
private readonly randomStatus: RandomStatus|null = null;
|
|
27
|
+
private readonly forceUseDistributor: boolean|null = null;
|
|
27
28
|
private readonly timeOffsetToken: string|null = null;
|
|
28
29
|
|
|
29
30
|
|
|
@@ -31,6 +32,7 @@ export default class InvokeScript extends AcquireAction {
|
|
|
31
32
|
scriptId: string|null = null,
|
|
32
33
|
args: string|null = null,
|
|
33
34
|
randomStatus: RandomStatus|null = null,
|
|
35
|
+
forceUseDistributor: boolean|null = null,
|
|
34
36
|
timeOffsetToken: string|null = null,
|
|
35
37
|
userId: string = "#{userId}",
|
|
36
38
|
) {
|
|
@@ -39,6 +41,7 @@ export default class InvokeScript extends AcquireAction {
|
|
|
39
41
|
this.scriptId = scriptId ?? null;
|
|
40
42
|
this.args = args ?? null;
|
|
41
43
|
this.randomStatus = randomStatus ?? null;
|
|
44
|
+
this.forceUseDistributor = forceUseDistributor ?? null;
|
|
42
45
|
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
43
46
|
this.userId = userId;
|
|
44
47
|
}
|
|
@@ -60,6 +63,9 @@ export default class InvokeScript extends AcquireAction {
|
|
|
60
63
|
properties["randomStatus"] = this.randomStatus?.properties(
|
|
61
64
|
);
|
|
62
65
|
}
|
|
66
|
+
if (this.forceUseDistributor != null) {
|
|
67
|
+
properties["forceUseDistributor"] = this.forceUseDistributor;
|
|
68
|
+
}
|
|
63
69
|
if (this.timeOffsetToken != null) {
|
|
64
70
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
65
71
|
}
|