gs2 1.3.61 → 1.3.64
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/distributor/model/AcquireAction.d.ts +17 -0
- package/distributor/model/AcquireAction.js +62 -0
- package/distributor/model/AcquireAction.js.map +1 -0
- package/distributor/model/AcquireAction.ts +60 -0
- package/distributor/model/ConsumeAction.d.ts +17 -0
- package/distributor/model/ConsumeAction.js +62 -0
- package/distributor/model/ConsumeAction.js.map +1 -0
- package/distributor/model/ConsumeAction.ts +60 -0
- package/distributor/model/StampSheetResult.d.ts +10 -0
- package/distributor/model/StampSheetResult.js +38 -0
- package/distributor/model/StampSheetResult.js.map +1 -1
- package/distributor/model/StampSheetResult.ts +38 -0
- package/distributor/model/index.d.ts +3 -1
- package/distributor/model/index.js +5 -1
- package/distributor/model/index.js.map +1 -1
- package/distributor/model/index.ts +4 -0
- package/jobQueue/model/JobResult.d.ts +8 -0
- package/jobQueue/model/JobResult.js +28 -0
- package/jobQueue/model/JobResult.js.map +1 -1
- package/jobQueue/model/JobResult.ts +28 -0
- package/jobQueue/result/PushByStampSheetResult.d.ts +4 -0
- package/jobQueue/result/PushByStampSheetResult.js +15 -1
- package/jobQueue/result/PushByStampSheetResult.js.map +1 -1
- package/jobQueue/result/PushByStampSheetResult.ts +18 -1
- package/jobQueue/result/PushByUserIdResult.d.ts +4 -0
- package/jobQueue/result/PushByUserIdResult.js +15 -1
- package/jobQueue/result/PushByUserIdResult.js.map +1 -1
- package/jobQueue/result/PushByUserIdResult.ts +18 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class AcquireAction implements IModel {
|
|
3
|
+
private action;
|
|
4
|
+
private request;
|
|
5
|
+
getAction(): string | null;
|
|
6
|
+
setAction(action: string | null): this;
|
|
7
|
+
withAction(action: string | null): this;
|
|
8
|
+
getRequest(): string | null;
|
|
9
|
+
setRequest(request: string | null): this;
|
|
10
|
+
withRequest(request: string | null): this;
|
|
11
|
+
static fromDict(data: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}): AcquireAction | null;
|
|
14
|
+
toDict(): {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
var AcquireAction = /** @class */ (function () {
|
|
19
|
+
function AcquireAction() {
|
|
20
|
+
this.action = null;
|
|
21
|
+
this.request = null;
|
|
22
|
+
}
|
|
23
|
+
AcquireAction.prototype.getAction = function () {
|
|
24
|
+
return this.action;
|
|
25
|
+
};
|
|
26
|
+
AcquireAction.prototype.setAction = function (action) {
|
|
27
|
+
this.action = action;
|
|
28
|
+
return this;
|
|
29
|
+
};
|
|
30
|
+
AcquireAction.prototype.withAction = function (action) {
|
|
31
|
+
this.action = action;
|
|
32
|
+
return this;
|
|
33
|
+
};
|
|
34
|
+
AcquireAction.prototype.getRequest = function () {
|
|
35
|
+
return this.request;
|
|
36
|
+
};
|
|
37
|
+
AcquireAction.prototype.setRequest = function (request) {
|
|
38
|
+
this.request = request;
|
|
39
|
+
return this;
|
|
40
|
+
};
|
|
41
|
+
AcquireAction.prototype.withRequest = function (request) {
|
|
42
|
+
this.request = request;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
AcquireAction.fromDict = function (data) {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new AcquireAction()
|
|
50
|
+
.withAction(data["action"])
|
|
51
|
+
.withRequest(data["request"]);
|
|
52
|
+
};
|
|
53
|
+
AcquireAction.prototype.toDict = function () {
|
|
54
|
+
return {
|
|
55
|
+
"action": this.getAction(),
|
|
56
|
+
"request": this.getRequest(),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return AcquireAction;
|
|
60
|
+
}());
|
|
61
|
+
exports.default = AcquireAction;
|
|
62
|
+
//# sourceMappingURL=AcquireAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcquireAction.js","sourceRoot":"","sources":["AcquireAction.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,WAAM,GAAgB,IAAI,CAAC;QAC3B,YAAO,GAAgB,IAAI,CAAC;IAuCxC,CAAC;IAtCU,iCAAS,GAAhB;QACI,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACM,iCAAS,GAAhB,UAAiB,MAAmB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAU,GAAjB,UAAkB,MAAmB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAU,GAAjB;QACI,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IACM,kCAAU,GAAjB,UAAkB,OAAoB;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mCAAW,GAAlB,UAAmB,OAAoB;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,sBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,aAAa,EAAE;aACrB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC1B,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACtC,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO;YACH,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AAzCD,IAyCC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 IModel from '../../core/interface/IModel';
|
|
18
|
+
|
|
19
|
+
export default class AcquireAction implements IModel {
|
|
20
|
+
private action: string|null = null;
|
|
21
|
+
private request: string|null = null;
|
|
22
|
+
public getAction(): string|null {
|
|
23
|
+
return this.action;
|
|
24
|
+
}
|
|
25
|
+
public setAction(action: string|null) {
|
|
26
|
+
this.action = action;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
public withAction(action: string|null): this {
|
|
30
|
+
this.action = action;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
public getRequest(): string|null {
|
|
34
|
+
return this.request;
|
|
35
|
+
}
|
|
36
|
+
public setRequest(request: string|null) {
|
|
37
|
+
this.request = request;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
public withRequest(request: string|null): this {
|
|
41
|
+
this.request = request;
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public static fromDict(data: {[key: string]: any}): AcquireAction|null {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new AcquireAction()
|
|
50
|
+
.withAction(data["action"])
|
|
51
|
+
.withRequest(data["request"]);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public toDict(): {[key: string]: any} {
|
|
55
|
+
return {
|
|
56
|
+
"action": this.getAction(),
|
|
57
|
+
"request": this.getRequest(),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class ConsumeAction implements IModel {
|
|
3
|
+
private action;
|
|
4
|
+
private request;
|
|
5
|
+
getAction(): string | null;
|
|
6
|
+
setAction(action: string | null): this;
|
|
7
|
+
withAction(action: string | null): this;
|
|
8
|
+
getRequest(): string | null;
|
|
9
|
+
setRequest(request: string | null): this;
|
|
10
|
+
withRequest(request: string | null): this;
|
|
11
|
+
static fromDict(data: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}): ConsumeAction | null;
|
|
14
|
+
toDict(): {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
var ConsumeAction = /** @class */ (function () {
|
|
19
|
+
function ConsumeAction() {
|
|
20
|
+
this.action = null;
|
|
21
|
+
this.request = null;
|
|
22
|
+
}
|
|
23
|
+
ConsumeAction.prototype.getAction = function () {
|
|
24
|
+
return this.action;
|
|
25
|
+
};
|
|
26
|
+
ConsumeAction.prototype.setAction = function (action) {
|
|
27
|
+
this.action = action;
|
|
28
|
+
return this;
|
|
29
|
+
};
|
|
30
|
+
ConsumeAction.prototype.withAction = function (action) {
|
|
31
|
+
this.action = action;
|
|
32
|
+
return this;
|
|
33
|
+
};
|
|
34
|
+
ConsumeAction.prototype.getRequest = function () {
|
|
35
|
+
return this.request;
|
|
36
|
+
};
|
|
37
|
+
ConsumeAction.prototype.setRequest = function (request) {
|
|
38
|
+
this.request = request;
|
|
39
|
+
return this;
|
|
40
|
+
};
|
|
41
|
+
ConsumeAction.prototype.withRequest = function (request) {
|
|
42
|
+
this.request = request;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
ConsumeAction.fromDict = function (data) {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new ConsumeAction()
|
|
50
|
+
.withAction(data["action"])
|
|
51
|
+
.withRequest(data["request"]);
|
|
52
|
+
};
|
|
53
|
+
ConsumeAction.prototype.toDict = function () {
|
|
54
|
+
return {
|
|
55
|
+
"action": this.getAction(),
|
|
56
|
+
"request": this.getRequest(),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return ConsumeAction;
|
|
60
|
+
}());
|
|
61
|
+
exports.default = ConsumeAction;
|
|
62
|
+
//# sourceMappingURL=ConsumeAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsumeAction.js","sourceRoot":"","sources":["ConsumeAction.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,WAAM,GAAgB,IAAI,CAAC;QAC3B,YAAO,GAAgB,IAAI,CAAC;IAuCxC,CAAC;IAtCU,iCAAS,GAAhB;QACI,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACM,iCAAS,GAAhB,UAAiB,MAAmB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAU,GAAjB,UAAkB,MAAmB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAU,GAAjB;QACI,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IACM,kCAAU,GAAjB,UAAkB,OAAoB;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mCAAW,GAAlB,UAAmB,OAAoB;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,sBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,aAAa,EAAE;aACrB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC1B,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACtC,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO;YACH,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AAzCD,IAyCC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 IModel from '../../core/interface/IModel';
|
|
18
|
+
|
|
19
|
+
export default class ConsumeAction implements IModel {
|
|
20
|
+
private action: string|null = null;
|
|
21
|
+
private request: string|null = null;
|
|
22
|
+
public getAction(): string|null {
|
|
23
|
+
return this.action;
|
|
24
|
+
}
|
|
25
|
+
public setAction(action: string|null) {
|
|
26
|
+
this.action = action;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
public withAction(action: string|null): this {
|
|
30
|
+
this.action = action;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
public getRequest(): string|null {
|
|
34
|
+
return this.request;
|
|
35
|
+
}
|
|
36
|
+
public setRequest(request: string|null) {
|
|
37
|
+
this.request = request;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
public withRequest(request: string|null): this {
|
|
41
|
+
this.request = request;
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public static fromDict(data: {[key: string]: any}): ConsumeAction|null {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new ConsumeAction()
|
|
50
|
+
.withAction(data["action"])
|
|
51
|
+
.withRequest(data["request"]);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public toDict(): {[key: string]: any} {
|
|
55
|
+
return {
|
|
56
|
+
"action": this.getAction(),
|
|
57
|
+
"request": this.getRequest(),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import ConsumeAction from './ConsumeAction';
|
|
3
|
+
import AcquireAction from './AcquireAction';
|
|
2
4
|
export default class StampSheetResult implements IModel {
|
|
3
5
|
private stampSheetResultId;
|
|
4
6
|
private userId;
|
|
5
7
|
private transactionId;
|
|
8
|
+
private taskRequests;
|
|
9
|
+
private sheetRequest;
|
|
6
10
|
private taskResults;
|
|
7
11
|
private sheetResult;
|
|
8
12
|
private nextTransactionId;
|
|
@@ -23,6 +27,12 @@ export default class StampSheetResult implements IModel {
|
|
|
23
27
|
getTransactionId(): string | null;
|
|
24
28
|
setTransactionId(transactionId: string | null): this;
|
|
25
29
|
withTransactionId(transactionId: string | null): this;
|
|
30
|
+
getTaskRequests(): ConsumeAction[] | null;
|
|
31
|
+
setTaskRequests(taskRequests: ConsumeAction[] | null): this;
|
|
32
|
+
withTaskRequests(taskRequests: ConsumeAction[] | null): this;
|
|
33
|
+
getSheetRequest(): AcquireAction | null;
|
|
34
|
+
setSheetRequest(sheetRequest: AcquireAction | null): this;
|
|
35
|
+
withSheetRequest(sheetRequest: AcquireAction | null): this;
|
|
26
36
|
getTaskResults(): string[] | null;
|
|
27
37
|
setTaskResults(taskResults: string[] | null): this;
|
|
28
38
|
withTaskResults(taskResults: string[] | null): this;
|
|
@@ -15,12 +15,17 @@ express or implied. See the License for the specific language governing
|
|
|
15
15
|
permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var ConsumeAction_1 = tslib_1.__importDefault(require("./ConsumeAction"));
|
|
20
|
+
var AcquireAction_1 = tslib_1.__importDefault(require("./AcquireAction"));
|
|
18
21
|
var grnFormat = "grn:gs2:{region}:{ownerId}:distributor:{namespaceName}:user:{userId}:stampSheet:result:{transactionId}";
|
|
19
22
|
var StampSheetResult = /** @class */ (function () {
|
|
20
23
|
function StampSheetResult() {
|
|
21
24
|
this.stampSheetResultId = null;
|
|
22
25
|
this.userId = null;
|
|
23
26
|
this.transactionId = null;
|
|
27
|
+
this.taskRequests = null;
|
|
28
|
+
this.sheetRequest = null;
|
|
24
29
|
this.taskResults = null;
|
|
25
30
|
this.sheetResult = null;
|
|
26
31
|
this.nextTransactionId = null;
|
|
@@ -145,6 +150,28 @@ var StampSheetResult = /** @class */ (function () {
|
|
|
145
150
|
this.transactionId = transactionId;
|
|
146
151
|
return this;
|
|
147
152
|
};
|
|
153
|
+
StampSheetResult.prototype.getTaskRequests = function () {
|
|
154
|
+
return this.taskRequests;
|
|
155
|
+
};
|
|
156
|
+
StampSheetResult.prototype.setTaskRequests = function (taskRequests) {
|
|
157
|
+
this.taskRequests = taskRequests;
|
|
158
|
+
return this;
|
|
159
|
+
};
|
|
160
|
+
StampSheetResult.prototype.withTaskRequests = function (taskRequests) {
|
|
161
|
+
this.taskRequests = taskRequests;
|
|
162
|
+
return this;
|
|
163
|
+
};
|
|
164
|
+
StampSheetResult.prototype.getSheetRequest = function () {
|
|
165
|
+
return this.sheetRequest;
|
|
166
|
+
};
|
|
167
|
+
StampSheetResult.prototype.setSheetRequest = function (sheetRequest) {
|
|
168
|
+
this.sheetRequest = sheetRequest;
|
|
169
|
+
return this;
|
|
170
|
+
};
|
|
171
|
+
StampSheetResult.prototype.withSheetRequest = function (sheetRequest) {
|
|
172
|
+
this.sheetRequest = sheetRequest;
|
|
173
|
+
return this;
|
|
174
|
+
};
|
|
148
175
|
StampSheetResult.prototype.getTaskResults = function () {
|
|
149
176
|
return this.taskResults;
|
|
150
177
|
};
|
|
@@ -197,6 +224,11 @@ var StampSheetResult = /** @class */ (function () {
|
|
|
197
224
|
.withStampSheetResultId(data["stampSheetResultId"])
|
|
198
225
|
.withUserId(data["userId"])
|
|
199
226
|
.withTransactionId(data["transactionId"])
|
|
227
|
+
.withTaskRequests(data.taskRequests ?
|
|
228
|
+
data.taskRequests.map(function (item) {
|
|
229
|
+
return ConsumeAction_1.default.fromDict(item);
|
|
230
|
+
}) : [])
|
|
231
|
+
.withSheetRequest(AcquireAction_1.default.fromDict(data["sheetRequest"]))
|
|
200
232
|
.withTaskResults(data.taskResults ?
|
|
201
233
|
data.taskResults.map(function (item) {
|
|
202
234
|
return item;
|
|
@@ -206,10 +238,16 @@ var StampSheetResult = /** @class */ (function () {
|
|
|
206
238
|
.withCreatedAt(data["createdAt"]);
|
|
207
239
|
};
|
|
208
240
|
StampSheetResult.prototype.toDict = function () {
|
|
241
|
+
var _a;
|
|
209
242
|
return {
|
|
210
243
|
"stampSheetResultId": this.getStampSheetResultId(),
|
|
211
244
|
"userId": this.getUserId(),
|
|
212
245
|
"transactionId": this.getTransactionId(),
|
|
246
|
+
"taskRequests": this.getTaskRequests() ?
|
|
247
|
+
this.getTaskRequests().map(function (item) {
|
|
248
|
+
return item.toDict();
|
|
249
|
+
}) : [],
|
|
250
|
+
"sheetRequest": (_a = this.getSheetRequest()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
213
251
|
"taskResults": this.getTaskResults() ?
|
|
214
252
|
this.getTaskResults().map(function (item) {
|
|
215
253
|
return item;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StampSheetResult.js","sourceRoot":"","sources":["StampSheetResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"StampSheetResult.js","sourceRoot":"","sources":["StampSheetResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0EAA4C;AAC5C,0EAA4C;AAC5C,IAAM,SAAS,GAAW,wGAAwG,CAAC;AAEnI;IAAA;QACY,uBAAkB,GAAgB,IAAI,CAAC;QACvC,WAAM,GAAgB,IAAI,CAAC;QAC3B,kBAAa,GAAgB,IAAI,CAAC;QAClC,iBAAY,GAAyB,IAAI,CAAC;QAC1C,iBAAY,GAAuB,IAAI,CAAC;QACxC,gBAAW,GAAkB,IAAI,CAAC;QAClC,gBAAW,GAAgB,IAAI,CAAC;QAChC,sBAAiB,GAAgB,IAAI,CAAC;QACtC,cAAS,GAAgB,IAAI,CAAC;IA0P1C,CAAC;IAxPiB,0BAAS,GAAvB,UAAwB,GAAW;QAC/B,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC;aAC3B,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC;aAC1B,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC;aAChC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC;aACzB,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,CACpC,CAAC;QACF,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,2BAAU,GAAxB,UAAyB,GAAW;QAChC,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC;aACzB,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC;aAC5B,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC;aAChC,OAAO,CAA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,CAAC,GAAG,CAAC,UAAC,IAA0B;gBAC5C,OAAO,IAAI,CAAC;YAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC;aACN,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;aAChD,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEM,iCAAM,GAAb;;QACI,OAAO;YACH,oBAAoB,EAAE,IAAI,CAAC,qBAAqB,EAAE;YAClD,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,cAAc,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;gBACpC,IAAI,CAAC,eAAe,EAAG,CAAC,GAAG,CAAC,UAAC,IAAmB;oBAC5C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,cAAc,EAAE,MAAA,IAAI,CAAC,eAAe,EAAE,0CAAE,MAAM,EAAE;YAChD,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;gBAClC,IAAI,CAAC,cAAc,EAAG,CAAC,GAAG,CAAC,UAAC,IAAY;oBACpC,OAAO,IAAI,CAAC;gBAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,mBAAmB,EAAE,IAAI,CAAC,oBAAoB,EAAE;YAChD,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;SACnC,CAAC;IACN,CAAC;IACL,uBAAC;AAAD,CAAC,AAnQD,IAmQC"}
|
|
@@ -15,12 +15,16 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
|
+
import ConsumeAction from './ConsumeAction';
|
|
19
|
+
import AcquireAction from './AcquireAction';
|
|
18
20
|
const grnFormat: string = "grn:gs2:{region}:{ownerId}:distributor:{namespaceName}:user:{userId}:stampSheet:result:{transactionId}";
|
|
19
21
|
|
|
20
22
|
export default class StampSheetResult implements IModel {
|
|
21
23
|
private stampSheetResultId: string|null = null;
|
|
22
24
|
private userId: string|null = null;
|
|
23
25
|
private transactionId: string|null = null;
|
|
26
|
+
private taskRequests: ConsumeAction[]|null = null;
|
|
27
|
+
private sheetRequest: AcquireAction|null = null;
|
|
24
28
|
private taskResults: string[]|null = null;
|
|
25
29
|
private sheetResult: string|null = null;
|
|
26
30
|
private nextTransactionId: string|null = null;
|
|
@@ -162,6 +166,28 @@ export default class StampSheetResult implements IModel {
|
|
|
162
166
|
this.transactionId = transactionId;
|
|
163
167
|
return this;
|
|
164
168
|
}
|
|
169
|
+
public getTaskRequests(): ConsumeAction[]|null {
|
|
170
|
+
return this.taskRequests;
|
|
171
|
+
}
|
|
172
|
+
public setTaskRequests(taskRequests: ConsumeAction[]|null) {
|
|
173
|
+
this.taskRequests = taskRequests;
|
|
174
|
+
return this;
|
|
175
|
+
}
|
|
176
|
+
public withTaskRequests(taskRequests: ConsumeAction[]|null): this {
|
|
177
|
+
this.taskRequests = taskRequests;
|
|
178
|
+
return this;
|
|
179
|
+
}
|
|
180
|
+
public getSheetRequest(): AcquireAction|null {
|
|
181
|
+
return this.sheetRequest;
|
|
182
|
+
}
|
|
183
|
+
public setSheetRequest(sheetRequest: AcquireAction|null) {
|
|
184
|
+
this.sheetRequest = sheetRequest;
|
|
185
|
+
return this;
|
|
186
|
+
}
|
|
187
|
+
public withSheetRequest(sheetRequest: AcquireAction|null): this {
|
|
188
|
+
this.sheetRequest = sheetRequest;
|
|
189
|
+
return this;
|
|
190
|
+
}
|
|
165
191
|
public getTaskResults(): string[]|null {
|
|
166
192
|
return this.taskResults;
|
|
167
193
|
}
|
|
@@ -215,6 +241,12 @@ export default class StampSheetResult implements IModel {
|
|
|
215
241
|
.withStampSheetResultId(data["stampSheetResultId"])
|
|
216
242
|
.withUserId(data["userId"])
|
|
217
243
|
.withTransactionId(data["transactionId"])
|
|
244
|
+
.withTaskRequests(data.taskRequests ?
|
|
245
|
+
data.taskRequests.map((item: {[key: string]: any}) => {
|
|
246
|
+
return ConsumeAction.fromDict(item);
|
|
247
|
+
}
|
|
248
|
+
) : [])
|
|
249
|
+
.withSheetRequest(AcquireAction.fromDict(data["sheetRequest"]))
|
|
218
250
|
.withTaskResults(data.taskResults ?
|
|
219
251
|
data.taskResults.map((item: {[key: string]: any}) => {
|
|
220
252
|
return item;
|
|
@@ -230,6 +262,12 @@ export default class StampSheetResult implements IModel {
|
|
|
230
262
|
"stampSheetResultId": this.getStampSheetResultId(),
|
|
231
263
|
"userId": this.getUserId(),
|
|
232
264
|
"transactionId": this.getTransactionId(),
|
|
265
|
+
"taskRequests": this.getTaskRequests() ?
|
|
266
|
+
this.getTaskRequests()!.map((item: ConsumeAction) => {
|
|
267
|
+
return item.toDict();
|
|
268
|
+
}
|
|
269
|
+
) : [],
|
|
270
|
+
"sheetRequest": this.getSheetRequest()?.toDict(),
|
|
233
271
|
"taskResults": this.getTaskResults() ?
|
|
234
272
|
this.getTaskResults()!.map((item: string) => {
|
|
235
273
|
return item;
|
|
@@ -3,8 +3,10 @@ import DistributorModelMaster from "./DistributorModelMaster";
|
|
|
3
3
|
import DistributorModel from "./DistributorModel";
|
|
4
4
|
import CurrentDistributorMaster from "./CurrentDistributorMaster";
|
|
5
5
|
import StampSheetResult from "./StampSheetResult";
|
|
6
|
+
import AcquireAction from "./AcquireAction";
|
|
7
|
+
import ConsumeAction from "./ConsumeAction";
|
|
6
8
|
import GitHubCheckoutSetting from "./GitHubCheckoutSetting";
|
|
7
9
|
import DistributeResource from "./DistributeResource";
|
|
8
10
|
import LogSetting from "./LogSetting";
|
|
9
11
|
import NotificationSetting from "./NotificationSetting";
|
|
10
|
-
export { Namespace, DistributorModelMaster, DistributorModel, CurrentDistributorMaster, StampSheetResult, GitHubCheckoutSetting, DistributeResource, LogSetting, NotificationSetting, };
|
|
12
|
+
export { Namespace, DistributorModelMaster, DistributorModel, CurrentDistributorMaster, StampSheetResult, AcquireAction, ConsumeAction, GitHubCheckoutSetting, DistributeResource, LogSetting, NotificationSetting, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationSetting = exports.LogSetting = exports.DistributeResource = exports.GitHubCheckoutSetting = exports.StampSheetResult = exports.CurrentDistributorMaster = exports.DistributorModel = exports.DistributorModelMaster = exports.Namespace = void 0;
|
|
3
|
+
exports.NotificationSetting = exports.LogSetting = exports.DistributeResource = exports.GitHubCheckoutSetting = exports.ConsumeAction = exports.AcquireAction = exports.StampSheetResult = exports.CurrentDistributorMaster = exports.DistributorModel = exports.DistributorModelMaster = exports.Namespace = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -27,6 +27,10 @@ var CurrentDistributorMaster_1 = tslib_1.__importDefault(require("./CurrentDistr
|
|
|
27
27
|
exports.CurrentDistributorMaster = CurrentDistributorMaster_1.default;
|
|
28
28
|
var StampSheetResult_1 = tslib_1.__importDefault(require("./StampSheetResult"));
|
|
29
29
|
exports.StampSheetResult = StampSheetResult_1.default;
|
|
30
|
+
var AcquireAction_1 = tslib_1.__importDefault(require("./AcquireAction"));
|
|
31
|
+
exports.AcquireAction = AcquireAction_1.default;
|
|
32
|
+
var ConsumeAction_1 = tslib_1.__importDefault(require("./ConsumeAction"));
|
|
33
|
+
exports.ConsumeAction = ConsumeAction_1.default;
|
|
30
34
|
var GitHubCheckoutSetting_1 = tslib_1.__importDefault(require("./GitHubCheckoutSetting"));
|
|
31
35
|
exports.GitHubCheckoutSetting = GitHubCheckoutSetting_1.default;
|
|
32
36
|
var DistributeResource_1 = tslib_1.__importDefault(require("./DistributeResource"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AAa/B,oBAbG,mBAAS,CAaH;AAZb,4FAA6D;AAazD,iCAbG,gCAAsB,CAaH;AAZ1B,gFAAiD;AAa7C,2BAbG,0BAAgB,CAaH;AAZpB,gGAAiE;AAa7D,mCAbG,kCAAwB,CAaH;AAZ5B,gFAAiD;AAa7C,2BAbG,0BAAgB,CAaH;AAZpB,0EAA2C;AAavC,wBAbG,uBAAa,CAaH;AAZjB,0EAA2C;AAavC,wBAbG,uBAAa,CAaH;AAZjB,0FAA2D;AAavD,gCAbG,+BAAqB,CAaH;AAZzB,oFAAqD;AAajD,6BAbG,4BAAkB,CAaH;AAZtB,oEAAqC;AAajC,qBAbG,oBAAU,CAaH;AAZd,sFAAuD;AAanD,8BAbG,6BAAmB,CAaH"}
|
|
@@ -18,6 +18,8 @@ import DistributorModelMaster from "./DistributorModelMaster"
|
|
|
18
18
|
import DistributorModel from "./DistributorModel"
|
|
19
19
|
import CurrentDistributorMaster from "./CurrentDistributorMaster"
|
|
20
20
|
import StampSheetResult from "./StampSheetResult"
|
|
21
|
+
import AcquireAction from "./AcquireAction"
|
|
22
|
+
import ConsumeAction from "./ConsumeAction"
|
|
21
23
|
import GitHubCheckoutSetting from "./GitHubCheckoutSetting"
|
|
22
24
|
import DistributeResource from "./DistributeResource"
|
|
23
25
|
import LogSetting from "./LogSetting"
|
|
@@ -29,6 +31,8 @@ export {
|
|
|
29
31
|
DistributorModel,
|
|
30
32
|
CurrentDistributorMaster,
|
|
31
33
|
StampSheetResult,
|
|
34
|
+
AcquireAction,
|
|
35
|
+
ConsumeAction,
|
|
32
36
|
GitHubCheckoutSetting,
|
|
33
37
|
DistributeResource,
|
|
34
38
|
LogSetting,
|
|
@@ -2,6 +2,8 @@ import IModel from '../../core/interface/IModel';
|
|
|
2
2
|
export default class JobResult implements IModel {
|
|
3
3
|
private jobResultId;
|
|
4
4
|
private jobId;
|
|
5
|
+
private scriptId;
|
|
6
|
+
private args;
|
|
5
7
|
private tryNumber;
|
|
6
8
|
private statusCode;
|
|
7
9
|
private result;
|
|
@@ -20,6 +22,12 @@ export default class JobResult implements IModel {
|
|
|
20
22
|
getJobId(): string | null;
|
|
21
23
|
setJobId(jobId: string | null): this;
|
|
22
24
|
withJobId(jobId: string | null): this;
|
|
25
|
+
getScriptId(): string | null;
|
|
26
|
+
setScriptId(scriptId: string | null): this;
|
|
27
|
+
withScriptId(scriptId: string | null): this;
|
|
28
|
+
getArgs(): string | null;
|
|
29
|
+
setArgs(args: string | null): this;
|
|
30
|
+
withArgs(args: string | null): this;
|
|
23
31
|
getTryNumber(): number | null;
|
|
24
32
|
setTryNumber(tryNumber: number | null): this;
|
|
25
33
|
withTryNumber(tryNumber: number | null): this;
|
|
@@ -20,6 +20,8 @@ var JobResult = /** @class */ (function () {
|
|
|
20
20
|
function JobResult() {
|
|
21
21
|
this.jobResultId = null;
|
|
22
22
|
this.jobId = null;
|
|
23
|
+
this.scriptId = null;
|
|
24
|
+
this.args = null;
|
|
23
25
|
this.tryNumber = null;
|
|
24
26
|
this.statusCode = null;
|
|
25
27
|
this.result = null;
|
|
@@ -155,6 +157,28 @@ var JobResult = /** @class */ (function () {
|
|
|
155
157
|
this.jobId = jobId;
|
|
156
158
|
return this;
|
|
157
159
|
};
|
|
160
|
+
JobResult.prototype.getScriptId = function () {
|
|
161
|
+
return this.scriptId;
|
|
162
|
+
};
|
|
163
|
+
JobResult.prototype.setScriptId = function (scriptId) {
|
|
164
|
+
this.scriptId = scriptId;
|
|
165
|
+
return this;
|
|
166
|
+
};
|
|
167
|
+
JobResult.prototype.withScriptId = function (scriptId) {
|
|
168
|
+
this.scriptId = scriptId;
|
|
169
|
+
return this;
|
|
170
|
+
};
|
|
171
|
+
JobResult.prototype.getArgs = function () {
|
|
172
|
+
return this.args;
|
|
173
|
+
};
|
|
174
|
+
JobResult.prototype.setArgs = function (args) {
|
|
175
|
+
this.args = args;
|
|
176
|
+
return this;
|
|
177
|
+
};
|
|
178
|
+
JobResult.prototype.withArgs = function (args) {
|
|
179
|
+
this.args = args;
|
|
180
|
+
return this;
|
|
181
|
+
};
|
|
158
182
|
JobResult.prototype.getTryNumber = function () {
|
|
159
183
|
return this.tryNumber;
|
|
160
184
|
};
|
|
@@ -206,6 +230,8 @@ var JobResult = /** @class */ (function () {
|
|
|
206
230
|
return new JobResult()
|
|
207
231
|
.withJobResultId(data["jobResultId"])
|
|
208
232
|
.withJobId(data["jobId"])
|
|
233
|
+
.withScriptId(data["scriptId"])
|
|
234
|
+
.withArgs(data["args"])
|
|
209
235
|
.withTryNumber(data["tryNumber"])
|
|
210
236
|
.withStatusCode(data["statusCode"])
|
|
211
237
|
.withResult(data["result"])
|
|
@@ -215,6 +241,8 @@ var JobResult = /** @class */ (function () {
|
|
|
215
241
|
return {
|
|
216
242
|
"jobResultId": this.getJobResultId(),
|
|
217
243
|
"jobId": this.getJobId(),
|
|
244
|
+
"scriptId": this.getScriptId(),
|
|
245
|
+
"args": this.getArgs(),
|
|
218
246
|
"tryNumber": this.getTryNumber(),
|
|
219
247
|
"statusCode": this.getStatusCode(),
|
|
220
248
|
"result": this.getResult(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JobResult.js","sourceRoot":"","sources":["JobResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAGH,IAAM,SAAS,GAAW,oGAAoG,CAAC;AAE/H;IAAA;QACY,gBAAW,GAAgB,IAAI,CAAC;QAChC,UAAK,GAAgB,IAAI,CAAC;QAC1B,cAAS,GAAgB,IAAI,CAAC;QAC9B,eAAU,GAAgB,IAAI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a,CAAC,CAAC;aACpC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACxB,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;aAClC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC1B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAClC,CAAC;IAEM,0BAAM,GAAb;QACI,OAAO;YACH,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxB,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;SAC3B,CAAC;IACN,CAAC;IACL,gBAAC;AAAD,CAAC,AA9PD,IA8PC"}
|
|
@@ -20,6 +20,8 @@ const grnFormat: string = "grn:gs2:{region}:{ownerId}:queue:{namespaceName}:user
|
|
|
20
20
|
export default class JobResult implements IModel {
|
|
21
21
|
private jobResultId: string|null = null;
|
|
22
22
|
private jobId: string|null = null;
|
|
23
|
+
private scriptId: string|null = null;
|
|
24
|
+
private args: string|null = null;
|
|
23
25
|
private tryNumber: number|null = null;
|
|
24
26
|
private statusCode: number|null = null;
|
|
25
27
|
private result: string|null = null;
|
|
@@ -175,6 +177,28 @@ export default class JobResult implements IModel {
|
|
|
175
177
|
this.jobId = jobId;
|
|
176
178
|
return this;
|
|
177
179
|
}
|
|
180
|
+
public getScriptId(): string|null {
|
|
181
|
+
return this.scriptId;
|
|
182
|
+
}
|
|
183
|
+
public setScriptId(scriptId: string|null) {
|
|
184
|
+
this.scriptId = scriptId;
|
|
185
|
+
return this;
|
|
186
|
+
}
|
|
187
|
+
public withScriptId(scriptId: string|null): this {
|
|
188
|
+
this.scriptId = scriptId;
|
|
189
|
+
return this;
|
|
190
|
+
}
|
|
191
|
+
public getArgs(): string|null {
|
|
192
|
+
return this.args;
|
|
193
|
+
}
|
|
194
|
+
public setArgs(args: string|null) {
|
|
195
|
+
this.args = args;
|
|
196
|
+
return this;
|
|
197
|
+
}
|
|
198
|
+
public withArgs(args: string|null): this {
|
|
199
|
+
this.args = args;
|
|
200
|
+
return this;
|
|
201
|
+
}
|
|
178
202
|
public getTryNumber(): number|null {
|
|
179
203
|
return this.tryNumber;
|
|
180
204
|
}
|
|
@@ -227,6 +251,8 @@ export default class JobResult implements IModel {
|
|
|
227
251
|
return new JobResult()
|
|
228
252
|
.withJobResultId(data["jobResultId"])
|
|
229
253
|
.withJobId(data["jobId"])
|
|
254
|
+
.withScriptId(data["scriptId"])
|
|
255
|
+
.withArgs(data["args"])
|
|
230
256
|
.withTryNumber(data["tryNumber"])
|
|
231
257
|
.withStatusCode(data["statusCode"])
|
|
232
258
|
.withResult(data["result"])
|
|
@@ -237,6 +263,8 @@ export default class JobResult implements IModel {
|
|
|
237
263
|
return {
|
|
238
264
|
"jobResultId": this.getJobResultId(),
|
|
239
265
|
"jobId": this.getJobId(),
|
|
266
|
+
"scriptId": this.getScriptId(),
|
|
267
|
+
"args": this.getArgs(),
|
|
240
268
|
"tryNumber": this.getTryNumber(),
|
|
241
269
|
"statusCode": this.getStatusCode(),
|
|
242
270
|
"result": this.getResult(),
|
|
@@ -2,9 +2,13 @@ import IResult from '../../core/interface/IResult';
|
|
|
2
2
|
import * as Gs2JobQueue from '../model';
|
|
3
3
|
export default class PushByStampSheetResult implements IResult {
|
|
4
4
|
private items;
|
|
5
|
+
private autoRun;
|
|
5
6
|
getItems(): Gs2JobQueue.Job[] | null;
|
|
6
7
|
setItems(items: Gs2JobQueue.Job[] | null): this;
|
|
7
8
|
withItems(items: Gs2JobQueue.Job[] | null): this;
|
|
9
|
+
getAutoRun(): boolean | null;
|
|
10
|
+
setAutoRun(autoRun: boolean | null): this;
|
|
11
|
+
withAutoRun(autoRun: boolean | null): this;
|
|
8
12
|
static fromDict(data: {
|
|
9
13
|
[key: string]: any;
|
|
10
14
|
}): PushByStampSheetResult;
|
|
@@ -20,6 +20,7 @@ var Gs2JobQueue = tslib_1.__importStar(require("../model"));
|
|
|
20
20
|
var PushByStampSheetResult = /** @class */ (function () {
|
|
21
21
|
function PushByStampSheetResult() {
|
|
22
22
|
this.items = null;
|
|
23
|
+
this.autoRun = null;
|
|
23
24
|
}
|
|
24
25
|
PushByStampSheetResult.prototype.getItems = function () {
|
|
25
26
|
return this.items;
|
|
@@ -32,12 +33,24 @@ var PushByStampSheetResult = /** @class */ (function () {
|
|
|
32
33
|
this.items = items;
|
|
33
34
|
return this;
|
|
34
35
|
};
|
|
36
|
+
PushByStampSheetResult.prototype.getAutoRun = function () {
|
|
37
|
+
return this.autoRun;
|
|
38
|
+
};
|
|
39
|
+
PushByStampSheetResult.prototype.setAutoRun = function (autoRun) {
|
|
40
|
+
this.autoRun = autoRun;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
PushByStampSheetResult.prototype.withAutoRun = function (autoRun) {
|
|
44
|
+
this.autoRun = autoRun;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
35
47
|
PushByStampSheetResult.fromDict = function (data) {
|
|
36
48
|
return new PushByStampSheetResult()
|
|
37
49
|
.withItems(data.items ?
|
|
38
50
|
data.items.map(function (item) {
|
|
39
51
|
return Gs2JobQueue.Job.fromDict(item);
|
|
40
|
-
}) : [])
|
|
52
|
+
}) : [])
|
|
53
|
+
.withAutoRun(data["autoRun"]);
|
|
41
54
|
};
|
|
42
55
|
PushByStampSheetResult.prototype.toDict = function () {
|
|
43
56
|
return {
|
|
@@ -45,6 +58,7 @@ var PushByStampSheetResult = /** @class */ (function () {
|
|
|
45
58
|
this.getItems().map(function (item) {
|
|
46
59
|
return item.toDict();
|
|
47
60
|
}) : [],
|
|
61
|
+
"autoRun": this.getAutoRun(),
|
|
48
62
|
};
|
|
49
63
|
};
|
|
50
64
|
return PushByStampSheetResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushByStampSheetResult.js","sourceRoot":"","sources":["PushByStampSheetResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,UAAK,GAA2B,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"PushByStampSheetResult.js","sourceRoot":"","sources":["PushByStampSheetResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,UAAK,GAA2B,IAAI,CAAC;QACrC,YAAO,GAAiB,IAAI,CAAC;IAkDzC,CAAC;IAhDU,yCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,yCAAQ,GAAf,UAAgB,KAA6B;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,0CAAS,GAAhB,UAAiB,KAA6B;QAC1C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2CAAU,GAAjB;QACI,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAEM,2CAAU,GAAjB,UAAkB,OAAqB;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,4CAAW,GAAlB,UAAmB,OAAqB;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,+BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,sBAAsB,EAAE;aAC9B,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1C,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC;aACN,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACtC,CAAC;IAEM,uCAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAqB;oBACvC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;IACL,6BAAC;AAAD,CAAC,AApDD,IAoDC"}
|
|
@@ -20,6 +20,7 @@ import * as Gs2JobQueue from '../model'
|
|
|
20
20
|
|
|
21
21
|
export default class PushByStampSheetResult implements IResult {
|
|
22
22
|
private items: Gs2JobQueue.Job[]|null = null;
|
|
23
|
+
private autoRun: boolean|null = null;
|
|
23
24
|
|
|
24
25
|
public getItems(): Gs2JobQueue.Job[]|null {
|
|
25
26
|
return this.items;
|
|
@@ -35,13 +36,28 @@ export default class PushByStampSheetResult implements IResult {
|
|
|
35
36
|
return this;
|
|
36
37
|
}
|
|
37
38
|
|
|
39
|
+
public getAutoRun(): boolean|null {
|
|
40
|
+
return this.autoRun;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public setAutoRun(autoRun: boolean|null) {
|
|
44
|
+
this.autoRun = autoRun;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public withAutoRun(autoRun: boolean|null): this {
|
|
49
|
+
this.autoRun = autoRun;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
|
|
38
53
|
public static fromDict(data: {[key: string]: any}): PushByStampSheetResult {
|
|
39
54
|
return new PushByStampSheetResult()
|
|
40
55
|
.withItems(data.items ?
|
|
41
56
|
data.items.map((item: {[key: string]: any}) => {
|
|
42
57
|
return Gs2JobQueue.Job.fromDict(item);
|
|
43
58
|
}
|
|
44
|
-
) : [])
|
|
59
|
+
) : [])
|
|
60
|
+
.withAutoRun(data["autoRun"]);
|
|
45
61
|
}
|
|
46
62
|
|
|
47
63
|
public toDict(): {[key: string]: any} {
|
|
@@ -51,6 +67,7 @@ export default class PushByStampSheetResult implements IResult {
|
|
|
51
67
|
return item.toDict();
|
|
52
68
|
}
|
|
53
69
|
) : [],
|
|
70
|
+
"autoRun": this.getAutoRun(),
|
|
54
71
|
};
|
|
55
72
|
}
|
|
56
73
|
}
|
|
@@ -2,9 +2,13 @@ import IResult from '../../core/interface/IResult';
|
|
|
2
2
|
import * as Gs2JobQueue from '../model';
|
|
3
3
|
export default class PushByUserIdResult implements IResult {
|
|
4
4
|
private items;
|
|
5
|
+
private autoRun;
|
|
5
6
|
getItems(): Gs2JobQueue.Job[] | null;
|
|
6
7
|
setItems(items: Gs2JobQueue.Job[] | null): this;
|
|
7
8
|
withItems(items: Gs2JobQueue.Job[] | null): this;
|
|
9
|
+
getAutoRun(): boolean | null;
|
|
10
|
+
setAutoRun(autoRun: boolean | null): this;
|
|
11
|
+
withAutoRun(autoRun: boolean | null): this;
|
|
8
12
|
static fromDict(data: {
|
|
9
13
|
[key: string]: any;
|
|
10
14
|
}): PushByUserIdResult;
|
|
@@ -20,6 +20,7 @@ var Gs2JobQueue = tslib_1.__importStar(require("../model"));
|
|
|
20
20
|
var PushByUserIdResult = /** @class */ (function () {
|
|
21
21
|
function PushByUserIdResult() {
|
|
22
22
|
this.items = null;
|
|
23
|
+
this.autoRun = null;
|
|
23
24
|
}
|
|
24
25
|
PushByUserIdResult.prototype.getItems = function () {
|
|
25
26
|
return this.items;
|
|
@@ -32,12 +33,24 @@ var PushByUserIdResult = /** @class */ (function () {
|
|
|
32
33
|
this.items = items;
|
|
33
34
|
return this;
|
|
34
35
|
};
|
|
36
|
+
PushByUserIdResult.prototype.getAutoRun = function () {
|
|
37
|
+
return this.autoRun;
|
|
38
|
+
};
|
|
39
|
+
PushByUserIdResult.prototype.setAutoRun = function (autoRun) {
|
|
40
|
+
this.autoRun = autoRun;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
PushByUserIdResult.prototype.withAutoRun = function (autoRun) {
|
|
44
|
+
this.autoRun = autoRun;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
35
47
|
PushByUserIdResult.fromDict = function (data) {
|
|
36
48
|
return new PushByUserIdResult()
|
|
37
49
|
.withItems(data.items ?
|
|
38
50
|
data.items.map(function (item) {
|
|
39
51
|
return Gs2JobQueue.Job.fromDict(item);
|
|
40
|
-
}) : [])
|
|
52
|
+
}) : [])
|
|
53
|
+
.withAutoRun(data["autoRun"]);
|
|
41
54
|
};
|
|
42
55
|
PushByUserIdResult.prototype.toDict = function () {
|
|
43
56
|
return {
|
|
@@ -45,6 +58,7 @@ var PushByUserIdResult = /** @class */ (function () {
|
|
|
45
58
|
this.getItems().map(function (item) {
|
|
46
59
|
return item.toDict();
|
|
47
60
|
}) : [],
|
|
61
|
+
"autoRun": this.getAutoRun(),
|
|
48
62
|
};
|
|
49
63
|
};
|
|
50
64
|
return PushByUserIdResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushByUserIdResult.js","sourceRoot":"","sources":["PushByUserIdResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,UAAK,GAA2B,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"PushByUserIdResult.js","sourceRoot":"","sources":["PushByUserIdResult.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,UAAC,IAAqB;oBACvC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;IACL,yBAAC;AAAD,CAAC,AApDD,IAoDC"}
|
|
@@ -20,6 +20,7 @@ import * as Gs2JobQueue from '../model'
|
|
|
20
20
|
|
|
21
21
|
export default class PushByUserIdResult implements IResult {
|
|
22
22
|
private items: Gs2JobQueue.Job[]|null = null;
|
|
23
|
+
private autoRun: boolean|null = null;
|
|
23
24
|
|
|
24
25
|
public getItems(): Gs2JobQueue.Job[]|null {
|
|
25
26
|
return this.items;
|
|
@@ -35,13 +36,28 @@ export default class PushByUserIdResult implements IResult {
|
|
|
35
36
|
return this;
|
|
36
37
|
}
|
|
37
38
|
|
|
39
|
+
public getAutoRun(): boolean|null {
|
|
40
|
+
return this.autoRun;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public setAutoRun(autoRun: boolean|null) {
|
|
44
|
+
this.autoRun = autoRun;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public withAutoRun(autoRun: boolean|null): this {
|
|
49
|
+
this.autoRun = autoRun;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
|
|
38
53
|
public static fromDict(data: {[key: string]: any}): PushByUserIdResult {
|
|
39
54
|
return new PushByUserIdResult()
|
|
40
55
|
.withItems(data.items ?
|
|
41
56
|
data.items.map((item: {[key: string]: any}) => {
|
|
42
57
|
return Gs2JobQueue.Job.fromDict(item);
|
|
43
58
|
}
|
|
44
|
-
) : [])
|
|
59
|
+
) : [])
|
|
60
|
+
.withAutoRun(data["autoRun"]);
|
|
45
61
|
}
|
|
46
62
|
|
|
47
63
|
public toDict(): {[key: string]: any} {
|
|
@@ -51,6 +67,7 @@ export default class PushByUserIdResult implements IResult {
|
|
|
51
67
|
return item.toDict();
|
|
52
68
|
}
|
|
53
69
|
) : [],
|
|
70
|
+
"autoRun": this.getAutoRun(),
|
|
54
71
|
};
|
|
55
72
|
}
|
|
56
73
|
}
|