gs2 1.4.43 → 1.4.44
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/formation/request/SetFormRequest.d.ts +42 -0
- package/formation/request/SetFormRequest.js +145 -0
- package/formation/request/SetFormRequest.js.map +1 -0
- package/formation/request/SetFormRequest.ts +155 -0
- package/formation/request/index.d.ts +2 -1
- package/formation/request/index.js +3 -1
- package/formation/request/index.js.map +1 -1
- package/formation/request/index.ts +2 -0
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +35 -0
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +39 -0
- package/formation/result/SetFormResult.d.ts +26 -0
- package/formation/result/SetFormResult.js +90 -0
- package/formation/result/SetFormResult.js.map +1 -0
- package/formation/result/SetFormResult.ts +98 -0
- package/formation/result/index.d.ts +2 -1
- package/formation/result/index.js +3 -1
- package/formation/result/index.js.map +1 -1
- package/formation/result/index.ts +2 -0
- package/package.json +1 -1
- package/stamina/request/ApplyStaminaByUserIdRequest.d.ts +37 -0
- package/stamina/request/ApplyStaminaByUserIdRequest.js +123 -0
- package/stamina/request/ApplyStaminaByUserIdRequest.js.map +1 -0
- package/stamina/request/ApplyStaminaByUserIdRequest.ts +133 -0
- package/stamina/request/ApplyStaminaRequest.d.ts +33 -0
- package/stamina/request/ApplyStaminaRequest.js +109 -0
- package/stamina/request/ApplyStaminaRequest.js.map +1 -0
- package/stamina/request/ApplyStaminaRequest.ts +119 -0
- package/stamina/request/index.d.ts +3 -1
- package/stamina/request/index.js +6 -2
- package/stamina/request/index.js.map +1 -1
- package/stamina/request/index.ts +4 -0
- package/stamina/rest.d.ts +2 -0
- package/stamina/rest.js +67 -0
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +75 -0
- package/stamina/result/ApplyStaminaByUserIdResult.d.ts +18 -0
- package/stamina/result/ApplyStaminaByUserIdResult.js +62 -0
- package/stamina/result/ApplyStaminaByUserIdResult.js.map +1 -0
- package/stamina/result/ApplyStaminaByUserIdResult.ts +64 -0
- package/stamina/result/ApplyStaminaResult.d.ts +18 -0
- package/stamina/result/ApplyStaminaResult.js +62 -0
- package/stamina/result/ApplyStaminaResult.js.map +1 -0
- package/stamina/result/ApplyStaminaResult.ts +64 -0
- package/stamina/result/index.d.ts +3 -1
- package/stamina/result/index.js +6 -2
- package/stamina/result/index.js.map +1 -1
- package/stamina/result/index.ts +4 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
import * as Gs2Formation from '../model';
|
|
3
|
+
export default class SetFormRequest implements IRequest {
|
|
4
|
+
private requestId;
|
|
5
|
+
private contextStack;
|
|
6
|
+
private namespaceName;
|
|
7
|
+
private accessToken;
|
|
8
|
+
private moldModelName;
|
|
9
|
+
private index;
|
|
10
|
+
private slots;
|
|
11
|
+
private duplicationAvoider;
|
|
12
|
+
getRequestId(): string | null;
|
|
13
|
+
setRequestId(requestId: string | null): this;
|
|
14
|
+
withRequestId(requestId: string | null): this;
|
|
15
|
+
getContextStack(): string | null;
|
|
16
|
+
setContextStack(contextStack: string | null): this;
|
|
17
|
+
withContextStack(contextStack: string | null): this;
|
|
18
|
+
getNamespaceName(): string | null;
|
|
19
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
20
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
21
|
+
getAccessToken(): string | null;
|
|
22
|
+
setAccessToken(accessToken: string | null): this;
|
|
23
|
+
withAccessToken(accessToken: string | null): this;
|
|
24
|
+
getMoldModelName(): string | null;
|
|
25
|
+
setMoldModelName(moldModelName: string | null): this;
|
|
26
|
+
withMoldModelName(moldModelName: string | null): this;
|
|
27
|
+
getIndex(): number | null;
|
|
28
|
+
setIndex(index: number | null): this;
|
|
29
|
+
withIndex(index: number | null): this;
|
|
30
|
+
getSlots(): Gs2Formation.Slot[] | null;
|
|
31
|
+
setSlots(slots: Gs2Formation.Slot[] | null): this;
|
|
32
|
+
withSlots(slots: Gs2Formation.Slot[] | null): this;
|
|
33
|
+
getDuplicationAvoider(): string | null;
|
|
34
|
+
setDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
35
|
+
withDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
36
|
+
static fromDict(data: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}): SetFormRequest;
|
|
39
|
+
toDict(): {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
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 tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Formation = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var SetFormRequest = /** @class */ (function () {
|
|
21
|
+
function SetFormRequest() {
|
|
22
|
+
this.requestId = null;
|
|
23
|
+
this.contextStack = null;
|
|
24
|
+
this.namespaceName = null;
|
|
25
|
+
this.accessToken = null;
|
|
26
|
+
this.moldModelName = null;
|
|
27
|
+
this.index = null;
|
|
28
|
+
this.slots = null;
|
|
29
|
+
this.duplicationAvoider = null;
|
|
30
|
+
}
|
|
31
|
+
SetFormRequest.prototype.getRequestId = function () {
|
|
32
|
+
return this.requestId;
|
|
33
|
+
};
|
|
34
|
+
SetFormRequest.prototype.setRequestId = function (requestId) {
|
|
35
|
+
this.requestId = requestId;
|
|
36
|
+
return this;
|
|
37
|
+
};
|
|
38
|
+
SetFormRequest.prototype.withRequestId = function (requestId) {
|
|
39
|
+
this.requestId = requestId;
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
SetFormRequest.prototype.getContextStack = function () {
|
|
43
|
+
return this.contextStack;
|
|
44
|
+
};
|
|
45
|
+
SetFormRequest.prototype.setContextStack = function (contextStack) {
|
|
46
|
+
this.contextStack = contextStack;
|
|
47
|
+
return this;
|
|
48
|
+
};
|
|
49
|
+
SetFormRequest.prototype.withContextStack = function (contextStack) {
|
|
50
|
+
this.contextStack = contextStack;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
SetFormRequest.prototype.getNamespaceName = function () {
|
|
54
|
+
return this.namespaceName;
|
|
55
|
+
};
|
|
56
|
+
SetFormRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
57
|
+
this.namespaceName = namespaceName;
|
|
58
|
+
return this;
|
|
59
|
+
};
|
|
60
|
+
SetFormRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
61
|
+
this.namespaceName = namespaceName;
|
|
62
|
+
return this;
|
|
63
|
+
};
|
|
64
|
+
SetFormRequest.prototype.getAccessToken = function () {
|
|
65
|
+
return this.accessToken;
|
|
66
|
+
};
|
|
67
|
+
SetFormRequest.prototype.setAccessToken = function (accessToken) {
|
|
68
|
+
this.accessToken = accessToken;
|
|
69
|
+
return this;
|
|
70
|
+
};
|
|
71
|
+
SetFormRequest.prototype.withAccessToken = function (accessToken) {
|
|
72
|
+
this.accessToken = accessToken;
|
|
73
|
+
return this;
|
|
74
|
+
};
|
|
75
|
+
SetFormRequest.prototype.getMoldModelName = function () {
|
|
76
|
+
return this.moldModelName;
|
|
77
|
+
};
|
|
78
|
+
SetFormRequest.prototype.setMoldModelName = function (moldModelName) {
|
|
79
|
+
this.moldModelName = moldModelName;
|
|
80
|
+
return this;
|
|
81
|
+
};
|
|
82
|
+
SetFormRequest.prototype.withMoldModelName = function (moldModelName) {
|
|
83
|
+
this.moldModelName = moldModelName;
|
|
84
|
+
return this;
|
|
85
|
+
};
|
|
86
|
+
SetFormRequest.prototype.getIndex = function () {
|
|
87
|
+
return this.index;
|
|
88
|
+
};
|
|
89
|
+
SetFormRequest.prototype.setIndex = function (index) {
|
|
90
|
+
this.index = index;
|
|
91
|
+
return this;
|
|
92
|
+
};
|
|
93
|
+
SetFormRequest.prototype.withIndex = function (index) {
|
|
94
|
+
this.index = index;
|
|
95
|
+
return this;
|
|
96
|
+
};
|
|
97
|
+
SetFormRequest.prototype.getSlots = function () {
|
|
98
|
+
return this.slots;
|
|
99
|
+
};
|
|
100
|
+
SetFormRequest.prototype.setSlots = function (slots) {
|
|
101
|
+
this.slots = slots;
|
|
102
|
+
return this;
|
|
103
|
+
};
|
|
104
|
+
SetFormRequest.prototype.withSlots = function (slots) {
|
|
105
|
+
this.slots = slots;
|
|
106
|
+
return this;
|
|
107
|
+
};
|
|
108
|
+
SetFormRequest.prototype.getDuplicationAvoider = function () {
|
|
109
|
+
return this.duplicationAvoider;
|
|
110
|
+
};
|
|
111
|
+
SetFormRequest.prototype.setDuplicationAvoider = function (duplicationAvoider) {
|
|
112
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
113
|
+
return this;
|
|
114
|
+
};
|
|
115
|
+
SetFormRequest.prototype.withDuplicationAvoider = function (duplicationAvoider) {
|
|
116
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
117
|
+
return this;
|
|
118
|
+
};
|
|
119
|
+
SetFormRequest.fromDict = function (data) {
|
|
120
|
+
return new SetFormRequest()
|
|
121
|
+
.withNamespaceName(data["namespaceName"])
|
|
122
|
+
.withAccessToken(data["accessToken"])
|
|
123
|
+
.withMoldModelName(data["moldModelName"])
|
|
124
|
+
.withIndex(data["index"])
|
|
125
|
+
.withSlots(data.slots ?
|
|
126
|
+
data.slots.map(function (item) {
|
|
127
|
+
return Gs2Formation.Slot.fromDict(item);
|
|
128
|
+
}) : null);
|
|
129
|
+
};
|
|
130
|
+
SetFormRequest.prototype.toDict = function () {
|
|
131
|
+
return {
|
|
132
|
+
"namespaceName": this.getNamespaceName(),
|
|
133
|
+
"accessToken": this.getAccessToken(),
|
|
134
|
+
"moldModelName": this.getMoldModelName(),
|
|
135
|
+
"index": this.getIndex(),
|
|
136
|
+
"slots": this.getSlots() ?
|
|
137
|
+
this.getSlots().map(function (item) {
|
|
138
|
+
return item.toDict();
|
|
139
|
+
}) : null,
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
return SetFormRequest;
|
|
143
|
+
}());
|
|
144
|
+
exports.default = SetFormRequest;
|
|
145
|
+
//# sourceMappingURL=SetFormRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetFormRequest.js","sourceRoot":"","sources":["SetFormRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,6DAAwC;AAExC;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,gBAAW,GAAgB,IAAI,CAAC;QAChC,kBAAa,GAAgB,IAAI,CAAC;QAClC,UAAK,GAAgB,IAAI,CAAC;QAC1B,UAAK,GAA6B,IAAI,CAAC;QACvC,uBAAkB,GAAgB,IAAI,CAAC;IA6HnD,CAAC;IA3HU,qCAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,qCAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,sCAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,wCAAe,GAAtB;Q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AAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC5C,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAEM,+BAAM,GAAb;QACI,OAAO;YACH,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxB,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAuB;oBACzC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI;SACX,CAAC;IACN,CAAC;IACL,qBAAC;AAAD,CAAC,AAtID,IAsIC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
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 IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Formation from '../model'
|
|
20
|
+
|
|
21
|
+
export default class SetFormRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private accessToken: string|null = null;
|
|
27
|
+
private moldModelName: string|null = null;
|
|
28
|
+
private index: number|null = null;
|
|
29
|
+
private slots: Gs2Formation.Slot[]|null = null;
|
|
30
|
+
private duplicationAvoider: string|null = null;
|
|
31
|
+
|
|
32
|
+
public getRequestId(): string|null {
|
|
33
|
+
return this.requestId;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public setRequestId(requestId: string|null) {
|
|
37
|
+
this.requestId = requestId;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public withRequestId(requestId: string|null): this {
|
|
42
|
+
this.requestId = requestId;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public getContextStack(): string|null {
|
|
47
|
+
return this.contextStack;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public setContextStack(contextStack: string|null) {
|
|
51
|
+
this.contextStack = contextStack;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public withContextStack(contextStack: string|null): this {
|
|
56
|
+
this.contextStack = contextStack;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
public getNamespaceName(): string|null {
|
|
60
|
+
return this.namespaceName;
|
|
61
|
+
}
|
|
62
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
63
|
+
this.namespaceName = namespaceName;
|
|
64
|
+
return this;
|
|
65
|
+
}
|
|
66
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
67
|
+
this.namespaceName = namespaceName;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
public getAccessToken(): string|null {
|
|
71
|
+
return this.accessToken;
|
|
72
|
+
}
|
|
73
|
+
public setAccessToken(accessToken: string|null) {
|
|
74
|
+
this.accessToken = accessToken;
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
public withAccessToken(accessToken: string|null): this {
|
|
78
|
+
this.accessToken = accessToken;
|
|
79
|
+
return this;
|
|
80
|
+
}
|
|
81
|
+
public getMoldModelName(): string|null {
|
|
82
|
+
return this.moldModelName;
|
|
83
|
+
}
|
|
84
|
+
public setMoldModelName(moldModelName: string|null) {
|
|
85
|
+
this.moldModelName = moldModelName;
|
|
86
|
+
return this;
|
|
87
|
+
}
|
|
88
|
+
public withMoldModelName(moldModelName: string|null): this {
|
|
89
|
+
this.moldModelName = moldModelName;
|
|
90
|
+
return this;
|
|
91
|
+
}
|
|
92
|
+
public getIndex(): number|null {
|
|
93
|
+
return this.index;
|
|
94
|
+
}
|
|
95
|
+
public setIndex(index: number|null) {
|
|
96
|
+
this.index = index;
|
|
97
|
+
return this;
|
|
98
|
+
}
|
|
99
|
+
public withIndex(index: number|null): this {
|
|
100
|
+
this.index = index;
|
|
101
|
+
return this;
|
|
102
|
+
}
|
|
103
|
+
public getSlots(): Gs2Formation.Slot[]|null {
|
|
104
|
+
return this.slots;
|
|
105
|
+
}
|
|
106
|
+
public setSlots(slots: Gs2Formation.Slot[]|null) {
|
|
107
|
+
this.slots = slots;
|
|
108
|
+
return this;
|
|
109
|
+
}
|
|
110
|
+
public withSlots(slots: Gs2Formation.Slot[]|null): this {
|
|
111
|
+
this.slots = slots;
|
|
112
|
+
return this;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public getDuplicationAvoider(): string|null {
|
|
116
|
+
return this.duplicationAvoider;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
120
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
125
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
126
|
+
return this;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
public static fromDict(data: {[key: string]: any}): SetFormRequest {
|
|
130
|
+
return new SetFormRequest()
|
|
131
|
+
.withNamespaceName(data["namespaceName"])
|
|
132
|
+
.withAccessToken(data["accessToken"])
|
|
133
|
+
.withMoldModelName(data["moldModelName"])
|
|
134
|
+
.withIndex(data["index"])
|
|
135
|
+
.withSlots(data.slots ?
|
|
136
|
+
data.slots.map((item: {[key: string]: any}) => {
|
|
137
|
+
return Gs2Formation.Slot.fromDict(item);
|
|
138
|
+
}
|
|
139
|
+
) : null);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
public toDict(): {[key: string]: any} {
|
|
143
|
+
return {
|
|
144
|
+
"namespaceName": this.getNamespaceName(),
|
|
145
|
+
"accessToken": this.getAccessToken(),
|
|
146
|
+
"moldModelName": this.getMoldModelName(),
|
|
147
|
+
"index": this.getIndex(),
|
|
148
|
+
"slots": this.getSlots() ?
|
|
149
|
+
this.getSlots()!.map((item: Gs2Formation.Slot) => {
|
|
150
|
+
return item.toDict();
|
|
151
|
+
}
|
|
152
|
+
) : null,
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -54,6 +54,7 @@ import GetFormRequest from "./GetFormRequest";
|
|
|
54
54
|
import GetFormByUserIdRequest from "./GetFormByUserIdRequest";
|
|
55
55
|
import GetFormWithSignatureRequest from "./GetFormWithSignatureRequest";
|
|
56
56
|
import GetFormWithSignatureByUserIdRequest from "./GetFormWithSignatureByUserIdRequest";
|
|
57
|
+
import SetFormRequest from "./SetFormRequest";
|
|
57
58
|
import SetFormByUserIdRequest from "./SetFormByUserIdRequest";
|
|
58
59
|
import SetFormWithSignatureRequest from "./SetFormWithSignatureRequest";
|
|
59
60
|
import AcquireActionsToFormPropertiesRequest from "./AcquireActionsToFormPropertiesRequest";
|
|
@@ -73,4 +74,4 @@ import AcquireActionsToPropertyFormPropertiesRequest from "./AcquireActionsToPro
|
|
|
73
74
|
import DeletePropertyFormRequest from "./DeletePropertyFormRequest";
|
|
74
75
|
import DeletePropertyFormByUserIdRequest from "./DeletePropertyFormByUserIdRequest";
|
|
75
76
|
import AcquireActionToPropertyFormPropertiesByStampSheetRequest from "./AcquireActionToPropertyFormPropertiesByStampSheetRequest";
|
|
76
|
-
export { DescribeNamespacesRequest, CreateNamespaceRequest, GetNamespaceStatusRequest, GetNamespaceRequest, UpdateNamespaceRequest, DeleteNamespaceRequest, DumpUserDataByUserIdRequest, CheckDumpUserDataByUserIdRequest, CleanUserDataByUserIdRequest, CheckCleanUserDataByUserIdRequest, PrepareImportUserDataByUserIdRequest, ImportUserDataByUserIdRequest, CheckImportUserDataByUserIdRequest, GetFormModelRequest, DescribeFormModelMastersRequest, CreateFormModelMasterRequest, GetFormModelMasterRequest, UpdateFormModelMasterRequest, DeleteFormModelMasterRequest, DescribeMoldModelsRequest, GetMoldModelRequest, DescribeMoldModelMastersRequest, CreateMoldModelMasterRequest, GetMoldModelMasterRequest, UpdateMoldModelMasterRequest, DeleteMoldModelMasterRequest, DescribePropertyFormModelsRequest, GetPropertyFormModelRequest, DescribePropertyFormModelMastersRequest, CreatePropertyFormModelMasterRequest, GetPropertyFormModelMasterRequest, UpdatePropertyFormModelMasterRequest, DeletePropertyFormModelMasterRequest, ExportMasterRequest, GetCurrentFormMasterRequest, UpdateCurrentFormMasterRequest, UpdateCurrentFormMasterFromGitHubRequest, DescribeMoldsRequest, DescribeMoldsByUserIdRequest, GetMoldRequest, GetMoldByUserIdRequest, SetMoldCapacityByUserIdRequest, AddMoldCapacityByUserIdRequest, SubMoldCapacityRequest, SubMoldCapacityByUserIdRequest, DeleteMoldRequest, DeleteMoldByUserIdRequest, AddCapacityByStampSheetRequest, SubCapacityByStampTaskRequest, SetCapacityByStampSheetRequest, DescribeFormsRequest, DescribeFormsByUserIdRequest, GetFormRequest, GetFormByUserIdRequest, GetFormWithSignatureRequest, GetFormWithSignatureByUserIdRequest, SetFormByUserIdRequest, SetFormWithSignatureRequest, AcquireActionsToFormPropertiesRequest, DeleteFormRequest, DeleteFormByUserIdRequest, AcquireActionToFormPropertiesByStampSheetRequest, SetFormByStampSheetRequest, DescribePropertyFormsRequest, DescribePropertyFormsByUserIdRequest, GetPropertyFormRequest, GetPropertyFormByUserIdRequest, GetPropertyFormWithSignatureRequest, GetPropertyFormWithSignatureByUserIdRequest, SetPropertyFormByUserIdRequest, SetPropertyFormWithSignatureRequest, AcquireActionsToPropertyFormPropertiesRequest, DeletePropertyFormRequest, DeletePropertyFormByUserIdRequest, AcquireActionToPropertyFormPropertiesByStampSheetRequest, };
|
|
77
|
+
export { DescribeNamespacesRequest, CreateNamespaceRequest, GetNamespaceStatusRequest, GetNamespaceRequest, UpdateNamespaceRequest, DeleteNamespaceRequest, DumpUserDataByUserIdRequest, CheckDumpUserDataByUserIdRequest, CleanUserDataByUserIdRequest, CheckCleanUserDataByUserIdRequest, PrepareImportUserDataByUserIdRequest, ImportUserDataByUserIdRequest, CheckImportUserDataByUserIdRequest, GetFormModelRequest, DescribeFormModelMastersRequest, CreateFormModelMasterRequest, GetFormModelMasterRequest, UpdateFormModelMasterRequest, DeleteFormModelMasterRequest, DescribeMoldModelsRequest, GetMoldModelRequest, DescribeMoldModelMastersRequest, CreateMoldModelMasterRequest, GetMoldModelMasterRequest, UpdateMoldModelMasterRequest, DeleteMoldModelMasterRequest, DescribePropertyFormModelsRequest, GetPropertyFormModelRequest, DescribePropertyFormModelMastersRequest, CreatePropertyFormModelMasterRequest, GetPropertyFormModelMasterRequest, UpdatePropertyFormModelMasterRequest, DeletePropertyFormModelMasterRequest, ExportMasterRequest, GetCurrentFormMasterRequest, UpdateCurrentFormMasterRequest, UpdateCurrentFormMasterFromGitHubRequest, DescribeMoldsRequest, DescribeMoldsByUserIdRequest, GetMoldRequest, GetMoldByUserIdRequest, SetMoldCapacityByUserIdRequest, AddMoldCapacityByUserIdRequest, SubMoldCapacityRequest, SubMoldCapacityByUserIdRequest, DeleteMoldRequest, DeleteMoldByUserIdRequest, AddCapacityByStampSheetRequest, SubCapacityByStampTaskRequest, SetCapacityByStampSheetRequest, DescribeFormsRequest, DescribeFormsByUserIdRequest, GetFormRequest, GetFormByUserIdRequest, GetFormWithSignatureRequest, GetFormWithSignatureByUserIdRequest, SetFormRequest, SetFormByUserIdRequest, SetFormWithSignatureRequest, AcquireActionsToFormPropertiesRequest, DeleteFormRequest, DeleteFormByUserIdRequest, AcquireActionToFormPropertiesByStampSheetRequest, SetFormByStampSheetRequest, DescribePropertyFormsRequest, DescribePropertyFormsByUserIdRequest, GetPropertyFormRequest, GetPropertyFormByUserIdRequest, GetPropertyFormWithSignatureRequest, GetPropertyFormWithSignatureByUserIdRequest, SetPropertyFormByUserIdRequest, SetPropertyFormWithSignatureRequest, AcquireActionsToPropertyFormPropertiesRequest, DeletePropertyFormRequest, DeletePropertyFormByUserIdRequest, AcquireActionToPropertyFormPropertiesByStampSheetRequest, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SetCapacityByStampSheetRequest = exports.SubCapacityByStampTaskRequest = exports.AddCapacityByStampSheetRequest = exports.DeleteMoldByUserIdRequest = exports.DeleteMoldRequest = exports.SubMoldCapacityByUserIdRequest = exports.SubMoldCapacityRequest = exports.AddMoldCapacityByUserIdRequest = exports.SetMoldCapacityByUserIdRequest = exports.GetMoldByUserIdRequest = exports.GetMoldRequest = exports.DescribeMoldsByUserIdRequest = exports.DescribeMoldsRequest = exports.UpdateCurrentFormMasterFromGitHubRequest = exports.UpdateCurrentFormMasterRequest = exports.GetCurrentFormMasterRequest = exports.ExportMasterRequest = exports.DeletePropertyFormModelMasterRequest = exports.UpdatePropertyFormModelMasterRequest = exports.GetPropertyFormModelMasterRequest = exports.CreatePropertyFormModelMasterRequest = exports.DescribePropertyFormModelMastersRequest = exports.GetPropertyFormModelRequest = exports.DescribePropertyFormModelsRequest = exports.DeleteMoldModelMasterRequest = exports.UpdateMoldModelMasterRequest = exports.GetMoldModelMasterRequest = exports.CreateMoldModelMasterRequest = exports.DescribeMoldModelMastersRequest = exports.GetMoldModelRequest = exports.DescribeMoldModelsRequest = exports.DeleteFormModelMasterRequest = exports.UpdateFormModelMasterRequest = exports.GetFormModelMasterRequest = exports.CreateFormModelMasterRequest = exports.DescribeFormModelMastersRequest = exports.GetFormModelRequest = exports.CheckImportUserDataByUserIdRequest = exports.ImportUserDataByUserIdRequest = exports.PrepareImportUserDataByUserIdRequest = exports.CheckCleanUserDataByUserIdRequest = exports.CleanUserDataByUserIdRequest = exports.CheckDumpUserDataByUserIdRequest = exports.DumpUserDataByUserIdRequest = exports.DeleteNamespaceRequest = exports.UpdateNamespaceRequest = exports.GetNamespaceRequest = exports.GetNamespaceStatusRequest = exports.CreateNamespaceRequest = exports.DescribeNamespacesRequest = void 0;
|
|
4
|
-
exports.AcquireActionToPropertyFormPropertiesByStampSheetRequest = exports.DeletePropertyFormByUserIdRequest = exports.DeletePropertyFormRequest = exports.AcquireActionsToPropertyFormPropertiesRequest = exports.SetPropertyFormWithSignatureRequest = exports.SetPropertyFormByUserIdRequest = exports.GetPropertyFormWithSignatureByUserIdRequest = exports.GetPropertyFormWithSignatureRequest = exports.GetPropertyFormByUserIdRequest = exports.GetPropertyFormRequest = exports.DescribePropertyFormsByUserIdRequest = exports.DescribePropertyFormsRequest = exports.SetFormByStampSheetRequest = exports.AcquireActionToFormPropertiesByStampSheetRequest = exports.DeleteFormByUserIdRequest = exports.DeleteFormRequest = exports.AcquireActionsToFormPropertiesRequest = exports.SetFormWithSignatureRequest = exports.SetFormByUserIdRequest = exports.GetFormWithSignatureByUserIdRequest = exports.GetFormWithSignatureRequest = exports.GetFormByUserIdRequest = exports.GetFormRequest = exports.DescribeFormsByUserIdRequest = exports.DescribeFormsRequest = void 0;
|
|
4
|
+
exports.AcquireActionToPropertyFormPropertiesByStampSheetRequest = exports.DeletePropertyFormByUserIdRequest = exports.DeletePropertyFormRequest = exports.AcquireActionsToPropertyFormPropertiesRequest = exports.SetPropertyFormWithSignatureRequest = exports.SetPropertyFormByUserIdRequest = exports.GetPropertyFormWithSignatureByUserIdRequest = exports.GetPropertyFormWithSignatureRequest = exports.GetPropertyFormByUserIdRequest = exports.GetPropertyFormRequest = exports.DescribePropertyFormsByUserIdRequest = exports.DescribePropertyFormsRequest = exports.SetFormByStampSheetRequest = exports.AcquireActionToFormPropertiesByStampSheetRequest = exports.DeleteFormByUserIdRequest = exports.DeleteFormRequest = exports.AcquireActionsToFormPropertiesRequest = exports.SetFormWithSignatureRequest = exports.SetFormByUserIdRequest = exports.SetFormRequest = exports.GetFormWithSignatureByUserIdRequest = exports.GetFormWithSignatureRequest = exports.GetFormByUserIdRequest = exports.GetFormRequest = exports.DescribeFormsByUserIdRequest = exports.DescribeFormsRequest = void 0;
|
|
5
5
|
var tslib_1 = require("tslib");
|
|
6
6
|
/*
|
|
7
7
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -130,6 +130,8 @@ var GetFormWithSignatureRequest_1 = tslib_1.__importDefault(require("./GetFormWi
|
|
|
130
130
|
exports.GetFormWithSignatureRequest = GetFormWithSignatureRequest_1.default;
|
|
131
131
|
var GetFormWithSignatureByUserIdRequest_1 = tslib_1.__importDefault(require("./GetFormWithSignatureByUserIdRequest"));
|
|
132
132
|
exports.GetFormWithSignatureByUserIdRequest = GetFormWithSignatureByUserIdRequest_1.default;
|
|
133
|
+
var SetFormRequest_1 = tslib_1.__importDefault(require("./SetFormRequest"));
|
|
134
|
+
exports.SetFormRequest = SetFormRequest_1.default;
|
|
133
135
|
var SetFormByUserIdRequest_1 = tslib_1.__importDefault(require("./SetFormByUserIdRequest"));
|
|
134
136
|
exports.SetFormByUserIdRequest = SetFormByUserIdRequest_1.default;
|
|
135
137
|
var SetFormWithSignatureRequest_1 = tslib_1.__importDefault(require("./SetFormWithSignatureRequest"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kGAAmE;
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jD,kGAAmE;AA8E/D,oCA9EG,mCAAyB,CA8EH;AA7E7B,kHAAmF;AA8E/E,4CA9EG,2CAAiC,CA8EH;AA7ErC,gKAAiI;AA8E7H,mEA9EG,kEAAwD,CA8EH"}
|
|
@@ -69,6 +69,7 @@ import GetFormRequest from "./GetFormRequest"
|
|
|
69
69
|
import GetFormByUserIdRequest from "./GetFormByUserIdRequest"
|
|
70
70
|
import GetFormWithSignatureRequest from "./GetFormWithSignatureRequest"
|
|
71
71
|
import GetFormWithSignatureByUserIdRequest from "./GetFormWithSignatureByUserIdRequest"
|
|
72
|
+
import SetFormRequest from "./SetFormRequest"
|
|
72
73
|
import SetFormByUserIdRequest from "./SetFormByUserIdRequest"
|
|
73
74
|
import SetFormWithSignatureRequest from "./SetFormWithSignatureRequest"
|
|
74
75
|
import AcquireActionsToFormPropertiesRequest from "./AcquireActionsToFormPropertiesRequest"
|
|
@@ -146,6 +147,7 @@ export {
|
|
|
146
147
|
GetFormByUserIdRequest,
|
|
147
148
|
GetFormWithSignatureRequest,
|
|
148
149
|
GetFormWithSignatureByUserIdRequest,
|
|
150
|
+
SetFormRequest,
|
|
149
151
|
SetFormByUserIdRequest,
|
|
150
152
|
SetFormWithSignatureRequest,
|
|
151
153
|
AcquireActionsToFormPropertiesRequest,
|
package/formation/rest.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export default class Gs2FormationRestClient extends AbstractGs2RestClient {
|
|
|
60
60
|
getFormByUserId(request: Request.GetFormByUserIdRequest): Promise<Result.GetFormByUserIdResult>;
|
|
61
61
|
getFormWithSignature(request: Request.GetFormWithSignatureRequest): Promise<Result.GetFormWithSignatureResult>;
|
|
62
62
|
getFormWithSignatureByUserId(request: Request.GetFormWithSignatureByUserIdRequest): Promise<Result.GetFormWithSignatureByUserIdResult>;
|
|
63
|
+
setForm(request: Request.SetFormRequest): Promise<Result.SetFormResult>;
|
|
63
64
|
setFormByUserId(request: Request.SetFormByUserIdRequest): Promise<Result.SetFormByUserIdResult>;
|
|
64
65
|
setFormWithSignature(request: Request.SetFormWithSignatureRequest): Promise<Result.SetFormWithSignatureResult>;
|
|
65
66
|
acquireActionsToFormProperties(request: Request.AcquireActionsToFormPropertiesRequest): Promise<Result.AcquireActionsToFormPropertiesResult>;
|
package/formation/rest.js
CHANGED
|
@@ -1532,6 +1532,41 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1532
1532
|
throw JSON.parse(error.response.data.message);
|
|
1533
1533
|
});
|
|
1534
1534
|
};
|
|
1535
|
+
Gs2FormationRestClient.prototype.setForm = function (request) {
|
|
1536
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1537
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form/{index}')
|
|
1538
|
+
.replace('{service}', 'formation')
|
|
1539
|
+
.replace('{region}', this.session.region)
|
|
1540
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1541
|
+
.replace('{moldModelName}', String((_c = request.getMoldModelName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1542
|
+
.replace('{index}', String((_e = request.getIndex()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getIndex()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1543
|
+
var headers = this.createAuthorizedHeaders();
|
|
1544
|
+
if (request.getRequestId()) {
|
|
1545
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1546
|
+
}
|
|
1547
|
+
if (request.getAccessToken()) {
|
|
1548
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
|
|
1549
|
+
}
|
|
1550
|
+
if (request.getDuplicationAvoider()) {
|
|
1551
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1552
|
+
}
|
|
1553
|
+
var body = {
|
|
1554
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1555
|
+
'slots': (_l = (_k = request.getSlots()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
1556
|
+
};
|
|
1557
|
+
return axios_1.default.put(url, body, {
|
|
1558
|
+
headers: headers,
|
|
1559
|
+
}).then(function (response) {
|
|
1560
|
+
return Result.SetFormResult.fromDict(response.data);
|
|
1561
|
+
}).catch(function (error) {
|
|
1562
|
+
if (error.response) {
|
|
1563
|
+
throw JSON.parse(error.response.data.message);
|
|
1564
|
+
}
|
|
1565
|
+
else {
|
|
1566
|
+
throw [];
|
|
1567
|
+
}
|
|
1568
|
+
});
|
|
1569
|
+
};
|
|
1535
1570
|
Gs2FormationRestClient.prototype.setFormByUserId = function (request) {
|
|
1536
1571
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1537
1572
|
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form/{index}')
|