gs2 1.4.98 → 1.4.100
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/account/rest.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/model/WebSocketSession.d.ts +4 -0
- package/gateway/model/WebSocketSession.js +14 -0
- package/gateway/model/WebSocketSession.js.map +1 -1
- package/gateway/model/WebSocketSession.ts +14 -0
- package/gateway/request/SetUserIdByUserIdRequest.d.ts +4 -0
- package/gateway/request/SetUserIdByUserIdRequest.js +14 -0
- package/gateway/request/SetUserIdByUserIdRequest.js.map +1 -1
- package/gateway/request/SetUserIdByUserIdRequest.ts +14 -0
- package/gateway/request/SetUserIdRequest.d.ts +4 -0
- package/gateway/request/SetUserIdRequest.js +14 -0
- package/gateway/request/SetUserIdRequest.js.map +1 -1
- package/gateway/request/SetUserIdRequest.ts +14 -0
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -177
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +32 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/stateMachine/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2StateMachineRestClient.prototype.describeNamespaces = function (request) {
|
|
29
|
-
var _a, _b, _c, _d;
|
|
30
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
29
|
+
var _a, _b, _c, _d, _e;
|
|
30
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
31
31
|
.replace('{service}', 'state-machine')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
35
35
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
36
36
|
}
|
|
37
37
|
var params = {
|
|
38
|
-
'contextStack': (
|
|
39
|
-
'namePrefix': String((
|
|
40
|
-
'pageToken': String((
|
|
41
|
-
'limit': String((
|
|
38
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
39
|
+
'namePrefix': String((_c = request.getNamePrefix()) !== null && _c !== void 0 ? _c : null),
|
|
40
|
+
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
41
|
+
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
42
42
|
};
|
|
43
43
|
return axios_1.default.get(url, {
|
|
44
44
|
params: params,
|
|
@@ -50,8 +50,8 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2StateMachineRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
54
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
55
55
|
.replace('{service}', 'state-machine')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,16 +59,16 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
59
59
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
60
60
|
}
|
|
61
61
|
var body = {
|
|
62
|
-
'contextStack': (
|
|
63
|
-
'name': (
|
|
64
|
-
'description': (
|
|
65
|
-
'supportSpeculativeExecution': (
|
|
66
|
-
'transactionSetting': (
|
|
67
|
-
'startScript': (
|
|
68
|
-
'passScript': (
|
|
69
|
-
'errorScript': (
|
|
70
|
-
'lowestStateMachineVersion': (
|
|
71
|
-
'logSetting': (
|
|
62
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
63
|
+
'name': (_c = request.getName()) !== null && _c !== void 0 ? _c : null,
|
|
64
|
+
'description': (_d = request.getDescription()) !== null && _d !== void 0 ? _d : null,
|
|
65
|
+
'supportSpeculativeExecution': (_e = request.getSupportSpeculativeExecution()) !== null && _e !== void 0 ? _e : null,
|
|
66
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
67
|
+
'startScript': (_j = (_h = request.getStartScript()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
68
|
+
'passScript': (_l = (_k = request.getPassScript()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
69
|
+
'errorScript': (_o = (_m = request.getErrorScript()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
70
|
+
'lowestStateMachineVersion': (_p = request.getLowestStateMachineVersion()) !== null && _p !== void 0 ? _p : null,
|
|
71
|
+
'logSetting': (_r = (_q = request.getLogSetting()) === null || _q === void 0 ? void 0 : _q.toDict()) !== null && _r !== void 0 ? _r : null,
|
|
72
72
|
};
|
|
73
73
|
return axios_1.default.post(url, body, {
|
|
74
74
|
headers: headers,
|
|
@@ -84,17 +84,17 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
86
|
Gs2StateMachineRestClient.prototype.getNamespaceStatus = function (request) {
|
|
87
|
-
var _a, _b, _c;
|
|
88
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
87
|
+
var _a, _b, _c, _d;
|
|
88
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
89
89
|
.replace('{service}', 'state-machine')
|
|
90
90
|
.replace('{region}', this.session.region)
|
|
91
|
-
.replace('{namespaceName}', String((
|
|
91
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
92
92
|
var headers = this.createAuthorizedHeaders();
|
|
93
93
|
if (request.getRequestId()) {
|
|
94
94
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
95
95
|
}
|
|
96
96
|
var params = {
|
|
97
|
-
'contextStack': (
|
|
97
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
98
98
|
};
|
|
99
99
|
return axios_1.default.get(url, {
|
|
100
100
|
params: params,
|
|
@@ -106,17 +106,17 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
108
|
Gs2StateMachineRestClient.prototype.getNamespace = function (request) {
|
|
109
|
-
var _a, _b, _c;
|
|
110
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
109
|
+
var _a, _b, _c, _d;
|
|
110
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
111
111
|
.replace('{service}', 'state-machine')
|
|
112
112
|
.replace('{region}', this.session.region)
|
|
113
|
-
.replace('{namespaceName}', String((
|
|
113
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
114
114
|
var headers = this.createAuthorizedHeaders();
|
|
115
115
|
if (request.getRequestId()) {
|
|
116
116
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
117
117
|
}
|
|
118
118
|
var params = {
|
|
119
|
-
'contextStack': (
|
|
119
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
120
120
|
};
|
|
121
121
|
return axios_1.default.get(url, {
|
|
122
122
|
params: params,
|
|
@@ -128,25 +128,25 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
128
128
|
});
|
|
129
129
|
};
|
|
130
130
|
Gs2StateMachineRestClient.prototype.updateNamespace = function (request) {
|
|
131
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
132
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
131
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
132
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
133
133
|
.replace('{service}', 'state-machine')
|
|
134
134
|
.replace('{region}', this.session.region)
|
|
135
|
-
.replace('{namespaceName}', String((
|
|
135
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
136
136
|
var headers = this.createAuthorizedHeaders();
|
|
137
137
|
if (request.getRequestId()) {
|
|
138
138
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
139
139
|
}
|
|
140
140
|
var body = {
|
|
141
|
-
'contextStack': (
|
|
142
|
-
'description': (
|
|
143
|
-
'supportSpeculativeExecution': (
|
|
144
|
-
'transactionSetting': (
|
|
145
|
-
'startScript': (
|
|
146
|
-
'passScript': (
|
|
147
|
-
'errorScript': (
|
|
148
|
-
'lowestStateMachineVersion': (
|
|
149
|
-
'logSetting': (
|
|
141
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
142
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
143
|
+
'supportSpeculativeExecution': (_f = request.getSupportSpeculativeExecution()) !== null && _f !== void 0 ? _f : null,
|
|
144
|
+
'transactionSetting': (_h = (_g = request.getTransactionSetting()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
145
|
+
'startScript': (_k = (_j = request.getStartScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
146
|
+
'passScript': (_m = (_l = request.getPassScript()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
147
|
+
'errorScript': (_p = (_o = request.getErrorScript()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
148
|
+
'lowestStateMachineVersion': (_q = request.getLowestStateMachineVersion()) !== null && _q !== void 0 ? _q : null,
|
|
149
|
+
'logSetting': (_s = (_r = request.getLogSetting()) === null || _r === void 0 ? void 0 : _r.toDict()) !== null && _s !== void 0 ? _s : null,
|
|
150
150
|
};
|
|
151
151
|
return axios_1.default.put(url, body, {
|
|
152
152
|
headers: headers,
|
|
@@ -162,17 +162,17 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
164
|
Gs2StateMachineRestClient.prototype.deleteNamespace = function (request) {
|
|
165
|
-
var _a, _b, _c;
|
|
166
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
165
|
+
var _a, _b, _c, _d;
|
|
166
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
167
167
|
.replace('{service}', 'state-machine')
|
|
168
168
|
.replace('{region}', this.session.region)
|
|
169
|
-
.replace('{namespaceName}', String((
|
|
169
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
170
170
|
var headers = this.createAuthorizedHeaders();
|
|
171
171
|
if (request.getRequestId()) {
|
|
172
172
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
173
173
|
}
|
|
174
174
|
var params = {
|
|
175
|
-
'contextStack': (
|
|
175
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
176
176
|
};
|
|
177
177
|
return axios_1.default.delete(url, {
|
|
178
178
|
params: params,
|
|
@@ -184,8 +184,8 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
186
|
Gs2StateMachineRestClient.prototype.getServiceVersion = function (request) {
|
|
187
|
-
var _a;
|
|
188
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
187
|
+
var _a, _b;
|
|
188
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
189
189
|
.replace('{service}', 'state-machine')
|
|
190
190
|
.replace('{region}', this.session.region);
|
|
191
191
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -193,7 +193,7 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
193
193
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
194
194
|
}
|
|
195
195
|
var params = {
|
|
196
|
-
'contextStack': (
|
|
196
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
197
197
|
};
|
|
198
198
|
return axios_1.default.get(url, {
|
|
199
199
|
params: params,
|
|
@@ -205,20 +205,20 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
205
205
|
});
|
|
206
206
|
};
|
|
207
207
|
Gs2StateMachineRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
208
|
-
var _a, _b, _c, _d;
|
|
209
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
208
|
+
var _a, _b, _c, _d, _e;
|
|
209
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
210
210
|
.replace('{service}', 'state-machine')
|
|
211
211
|
.replace('{region}', this.session.region)
|
|
212
|
-
.replace('{userId}', String((
|
|
212
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
213
213
|
var headers = this.createAuthorizedHeaders();
|
|
214
214
|
if (request.getRequestId()) {
|
|
215
215
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
216
216
|
}
|
|
217
217
|
if (request.getTimeOffsetToken()) {
|
|
218
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
218
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
219
219
|
}
|
|
220
220
|
var body = {
|
|
221
|
-
'contextStack': (
|
|
221
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
222
222
|
};
|
|
223
223
|
return axios_1.default.post(url, body, {
|
|
224
224
|
headers: headers,
|
|
@@ -234,20 +234,20 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
234
234
|
});
|
|
235
235
|
};
|
|
236
236
|
Gs2StateMachineRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
237
|
-
var _a, _b, _c, _d;
|
|
238
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
237
|
+
var _a, _b, _c, _d, _e;
|
|
238
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
239
239
|
.replace('{service}', 'state-machine')
|
|
240
240
|
.replace('{region}', this.session.region)
|
|
241
|
-
.replace('{userId}', String((
|
|
241
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
242
242
|
var headers = this.createAuthorizedHeaders();
|
|
243
243
|
if (request.getRequestId()) {
|
|
244
244
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
245
245
|
}
|
|
246
246
|
if (request.getTimeOffsetToken()) {
|
|
247
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
247
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
248
248
|
}
|
|
249
249
|
var params = {
|
|
250
|
-
'contextStack': (
|
|
250
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
251
251
|
};
|
|
252
252
|
return axios_1.default.get(url, {
|
|
253
253
|
params: params,
|
|
@@ -259,20 +259,20 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
259
259
|
});
|
|
260
260
|
};
|
|
261
261
|
Gs2StateMachineRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
262
|
-
var _a, _b, _c, _d;
|
|
263
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
262
|
+
var _a, _b, _c, _d, _e;
|
|
263
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
264
264
|
.replace('{service}', 'state-machine')
|
|
265
265
|
.replace('{region}', this.session.region)
|
|
266
|
-
.replace('{userId}', String((
|
|
266
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
267
267
|
var headers = this.createAuthorizedHeaders();
|
|
268
268
|
if (request.getRequestId()) {
|
|
269
269
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
270
270
|
}
|
|
271
271
|
if (request.getTimeOffsetToken()) {
|
|
272
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
272
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
273
273
|
}
|
|
274
274
|
var body = {
|
|
275
|
-
'contextStack': (
|
|
275
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
276
276
|
};
|
|
277
277
|
return axios_1.default.post(url, body, {
|
|
278
278
|
headers: headers,
|
|
@@ -288,20 +288,20 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
288
288
|
});
|
|
289
289
|
};
|
|
290
290
|
Gs2StateMachineRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
291
|
-
var _a, _b, _c, _d;
|
|
292
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
291
|
+
var _a, _b, _c, _d, _e;
|
|
292
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
293
293
|
.replace('{service}', 'state-machine')
|
|
294
294
|
.replace('{region}', this.session.region)
|
|
295
|
-
.replace('{userId}', String((
|
|
295
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
296
296
|
var headers = this.createAuthorizedHeaders();
|
|
297
297
|
if (request.getRequestId()) {
|
|
298
298
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
299
299
|
}
|
|
300
300
|
if (request.getTimeOffsetToken()) {
|
|
301
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
301
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
302
302
|
}
|
|
303
303
|
var params = {
|
|
304
|
-
'contextStack': (
|
|
304
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
305
305
|
};
|
|
306
306
|
return axios_1.default.get(url, {
|
|
307
307
|
params: params,
|
|
@@ -313,20 +313,20 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
313
313
|
});
|
|
314
314
|
};
|
|
315
315
|
Gs2StateMachineRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
316
|
-
var _a, _b, _c, _d;
|
|
317
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
316
|
+
var _a, _b, _c, _d, _e;
|
|
317
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
318
318
|
.replace('{service}', 'state-machine')
|
|
319
319
|
.replace('{region}', this.session.region)
|
|
320
|
-
.replace('{userId}', String((
|
|
320
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
321
321
|
var headers = this.createAuthorizedHeaders();
|
|
322
322
|
if (request.getRequestId()) {
|
|
323
323
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
324
324
|
}
|
|
325
325
|
if (request.getTimeOffsetToken()) {
|
|
326
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
326
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
327
327
|
}
|
|
328
328
|
var body = {
|
|
329
|
-
'contextStack': (
|
|
329
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
330
330
|
};
|
|
331
331
|
return axios_1.default.post(url, body, {
|
|
332
332
|
headers: headers,
|
|
@@ -342,21 +342,21 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
342
342
|
});
|
|
343
343
|
};
|
|
344
344
|
Gs2StateMachineRestClient.prototype.importUserDataByUserId = function (request) {
|
|
345
|
-
var _a, _b, _c, _d, _e;
|
|
346
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
345
|
+
var _a, _b, _c, _d, _e, _f;
|
|
346
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
347
347
|
.replace('{service}', 'state-machine')
|
|
348
348
|
.replace('{region}', this.session.region)
|
|
349
|
-
.replace('{userId}', String((
|
|
349
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
350
350
|
var headers = this.createAuthorizedHeaders();
|
|
351
351
|
if (request.getRequestId()) {
|
|
352
352
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
353
353
|
}
|
|
354
354
|
if (request.getTimeOffsetToken()) {
|
|
355
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
355
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
356
356
|
}
|
|
357
357
|
var body = {
|
|
358
|
-
'contextStack': (
|
|
359
|
-
'uploadToken': (
|
|
358
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
359
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
360
360
|
};
|
|
361
361
|
return axios_1.default.post(url, body, {
|
|
362
362
|
headers: headers,
|
|
@@ -372,21 +372,21 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
372
372
|
});
|
|
373
373
|
};
|
|
374
374
|
Gs2StateMachineRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
375
|
-
var _a, _b, _c, _d, _e, _f;
|
|
376
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
375
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
376
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
377
377
|
.replace('{service}', 'state-machine')
|
|
378
378
|
.replace('{region}', this.session.region)
|
|
379
|
-
.replace('{userId}', String((
|
|
380
|
-
.replace('{uploadToken}', String((
|
|
379
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
380
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
381
381
|
var headers = this.createAuthorizedHeaders();
|
|
382
382
|
if (request.getRequestId()) {
|
|
383
383
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
384
384
|
}
|
|
385
385
|
if (request.getTimeOffsetToken()) {
|
|
386
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
386
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
387
387
|
}
|
|
388
388
|
var params = {
|
|
389
|
-
'contextStack': (
|
|
389
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
390
390
|
};
|
|
391
391
|
return axios_1.default.get(url, {
|
|
392
392
|
params: params,
|
|
@@ -398,19 +398,19 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
398
398
|
});
|
|
399
399
|
};
|
|
400
400
|
Gs2StateMachineRestClient.prototype.describeStateMachineMasters = function (request) {
|
|
401
|
-
var _a, _b, _c, _d, _e;
|
|
402
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/stateMachine')
|
|
401
|
+
var _a, _b, _c, _d, _e, _f;
|
|
402
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/stateMachine')
|
|
403
403
|
.replace('{service}', 'state-machine')
|
|
404
404
|
.replace('{region}', this.session.region)
|
|
405
|
-
.replace('{namespaceName}', String((
|
|
405
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
406
406
|
var headers = this.createAuthorizedHeaders();
|
|
407
407
|
if (request.getRequestId()) {
|
|
408
408
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
409
409
|
}
|
|
410
410
|
var params = {
|
|
411
|
-
'contextStack': (
|
|
412
|
-
'pageToken': String((
|
|
413
|
-
'limit': String((
|
|
411
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
412
|
+
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
413
|
+
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
414
414
|
};
|
|
415
415
|
return axios_1.default.get(url, {
|
|
416
416
|
params: params,
|
|
@@ -422,19 +422,19 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
422
422
|
});
|
|
423
423
|
};
|
|
424
424
|
Gs2StateMachineRestClient.prototype.updateStateMachineMaster = function (request) {
|
|
425
|
-
var _a, _b, _c, _d, _e;
|
|
426
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/stateMachine')
|
|
425
|
+
var _a, _b, _c, _d, _e, _f;
|
|
426
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/stateMachine')
|
|
427
427
|
.replace('{service}', 'state-machine')
|
|
428
428
|
.replace('{region}', this.session.region)
|
|
429
|
-
.replace('{namespaceName}', String((
|
|
429
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
430
430
|
var headers = this.createAuthorizedHeaders();
|
|
431
431
|
if (request.getRequestId()) {
|
|
432
432
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
433
433
|
}
|
|
434
434
|
var body = {
|
|
435
|
-
'contextStack': (
|
|
436
|
-
'mainStateMachineName': (
|
|
437
|
-
'payload': (
|
|
435
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
436
|
+
'mainStateMachineName': (_e = request.getMainStateMachineName()) !== null && _e !== void 0 ? _e : null,
|
|
437
|
+
'payload': (_f = request.getPayload()) !== null && _f !== void 0 ? _f : null,
|
|
438
438
|
};
|
|
439
439
|
return axios_1.default.post(url, body, {
|
|
440
440
|
headers: headers,
|
|
@@ -450,18 +450,18 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
450
450
|
});
|
|
451
451
|
};
|
|
452
452
|
Gs2StateMachineRestClient.prototype.getStateMachineMaster = function (request) {
|
|
453
|
-
var _a, _b, _c, _d, _e;
|
|
454
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/stateMachine/{version}')
|
|
453
|
+
var _a, _b, _c, _d, _e, _f;
|
|
454
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/stateMachine/{version}')
|
|
455
455
|
.replace('{service}', 'state-machine')
|
|
456
456
|
.replace('{region}', this.session.region)
|
|
457
|
-
.replace('{namespaceName}', String((
|
|
458
|
-
.replace('{version}', String((
|
|
457
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
458
|
+
.replace('{version}', String((_d = request.getVersion()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getVersion()) !== null && _e !== void 0 ? _e : 'null'));
|
|
459
459
|
var headers = this.createAuthorizedHeaders();
|
|
460
460
|
if (request.getRequestId()) {
|
|
461
461
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
462
462
|
}
|
|
463
463
|
var params = {
|
|
464
|
-
'contextStack': (
|
|
464
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
465
465
|
};
|
|
466
466
|
return axios_1.default.get(url, {
|
|
467
467
|
params: params,
|
|
@@ -473,18 +473,18 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
473
473
|
});
|
|
474
474
|
};
|
|
475
475
|
Gs2StateMachineRestClient.prototype.deleteStateMachineMaster = function (request) {
|
|
476
|
-
var _a, _b, _c, _d, _e;
|
|
477
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/stateMachine/{version}')
|
|
476
|
+
var _a, _b, _c, _d, _e, _f;
|
|
477
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/stateMachine/{version}')
|
|
478
478
|
.replace('{service}', 'state-machine')
|
|
479
479
|
.replace('{region}', this.session.region)
|
|
480
|
-
.replace('{namespaceName}', String((
|
|
481
|
-
.replace('{version}', String((
|
|
480
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
481
|
+
.replace('{version}', String((_d = request.getVersion()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getVersion()) !== null && _e !== void 0 ? _e : 'null'));
|
|
482
482
|
var headers = this.createAuthorizedHeaders();
|
|
483
483
|
if (request.getRequestId()) {
|
|
484
484
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
485
485
|
}
|
|
486
486
|
var params = {
|
|
487
|
-
'contextStack': (
|
|
487
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
488
488
|
};
|
|
489
489
|
return axios_1.default.delete(url, {
|
|
490
490
|
params: params,
|
|
@@ -496,23 +496,23 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
496
496
|
});
|
|
497
497
|
};
|
|
498
498
|
Gs2StateMachineRestClient.prototype.describeStatuses = function (request) {
|
|
499
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
500
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status')
|
|
499
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
500
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status')
|
|
501
501
|
.replace('{service}', 'state-machine')
|
|
502
502
|
.replace('{region}', this.session.region)
|
|
503
|
-
.replace('{namespaceName}', String((
|
|
503
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
504
504
|
var headers = this.createAuthorizedHeaders();
|
|
505
505
|
if (request.getRequestId()) {
|
|
506
506
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
507
507
|
}
|
|
508
508
|
if (request.getAccessToken()) {
|
|
509
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
509
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
510
510
|
}
|
|
511
511
|
var params = {
|
|
512
|
-
'contextStack': (
|
|
513
|
-
'status': String((
|
|
514
|
-
'pageToken': String((
|
|
515
|
-
'limit': String((
|
|
512
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
513
|
+
'status': String((_f = request.getStatus()) !== null && _f !== void 0 ? _f : null),
|
|
514
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
515
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
516
516
|
};
|
|
517
517
|
return axios_1.default.get(url, {
|
|
518
518
|
params: params,
|
|
@@ -524,24 +524,24 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
524
524
|
});
|
|
525
525
|
};
|
|
526
526
|
Gs2StateMachineRestClient.prototype.describeStatusesByUserId = function (request) {
|
|
527
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
528
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status')
|
|
527
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
528
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status')
|
|
529
529
|
.replace('{service}', 'state-machine')
|
|
530
530
|
.replace('{region}', this.session.region)
|
|
531
|
-
.replace('{namespaceName}', String((
|
|
532
|
-
.replace('{userId}', String((
|
|
531
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
532
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
533
533
|
var headers = this.createAuthorizedHeaders();
|
|
534
534
|
if (request.getRequestId()) {
|
|
535
535
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
536
536
|
}
|
|
537
537
|
if (request.getTimeOffsetToken()) {
|
|
538
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
538
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
539
539
|
}
|
|
540
540
|
var params = {
|
|
541
|
-
'contextStack': (
|
|
542
|
-
'status': String((
|
|
543
|
-
'pageToken': String((
|
|
544
|
-
'limit': String((
|
|
541
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
542
|
+
'status': String((_h = request.getStatus()) !== null && _h !== void 0 ? _h : null),
|
|
543
|
+
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
544
|
+
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
545
545
|
};
|
|
546
546
|
return axios_1.default.get(url, {
|
|
547
547
|
params: params,
|
|
@@ -553,21 +553,21 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
553
553
|
});
|
|
554
554
|
};
|
|
555
555
|
Gs2StateMachineRestClient.prototype.getStatus = function (request) {
|
|
556
|
-
var _a, _b, _c, _d, _e, _f;
|
|
557
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{statusName}')
|
|
556
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
557
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{statusName}')
|
|
558
558
|
.replace('{service}', 'state-machine')
|
|
559
559
|
.replace('{region}', this.session.region)
|
|
560
|
-
.replace('{namespaceName}', String((
|
|
561
|
-
.replace('{statusName}', String((
|
|
560
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
561
|
+
.replace('{statusName}', String((_d = request.getStatusName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getStatusName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
562
562
|
var headers = this.createAuthorizedHeaders();
|
|
563
563
|
if (request.getRequestId()) {
|
|
564
564
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
565
565
|
}
|
|
566
566
|
if (request.getAccessToken()) {
|
|
567
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
567
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
568
568
|
}
|
|
569
569
|
var params = {
|
|
570
|
-
'contextStack': (
|
|
570
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
571
571
|
};
|
|
572
572
|
return axios_1.default.get(url, {
|
|
573
573
|
params: params,
|
|
@@ -579,22 +579,22 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
579
579
|
});
|
|
580
580
|
};
|
|
581
581
|
Gs2StateMachineRestClient.prototype.getStatusByUserId = function (request) {
|
|
582
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
583
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{statusName}')
|
|
582
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
583
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{statusName}')
|
|
584
584
|
.replace('{service}', 'state-machine')
|
|
585
585
|
.replace('{region}', this.session.region)
|
|
586
|
-
.replace('{namespaceName}', String((
|
|
587
|
-
.replace('{userId}', String((
|
|
588
|
-
.replace('{statusName}', String((
|
|
586
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
587
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
588
|
+
.replace('{statusName}', String((_f = request.getStatusName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getStatusName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
589
589
|
var headers = this.createAuthorizedHeaders();
|
|
590
590
|
if (request.getRequestId()) {
|
|
591
591
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
592
592
|
}
|
|
593
593
|
if (request.getTimeOffsetToken()) {
|
|
594
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
594
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
595
595
|
}
|
|
596
596
|
var params = {
|
|
597
|
-
'contextStack': (
|
|
597
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
598
598
|
};
|
|
599
599
|
return axios_1.default.get(url, {
|
|
600
600
|
params: params,
|
|
@@ -606,26 +606,26 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
606
606
|
});
|
|
607
607
|
};
|
|
608
608
|
Gs2StateMachineRestClient.prototype.startStateMachineByUserId = function (request) {
|
|
609
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
610
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status')
|
|
609
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
610
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status')
|
|
611
611
|
.replace('{service}', 'state-machine')
|
|
612
612
|
.replace('{region}', this.session.region)
|
|
613
|
-
.replace('{namespaceName}', String((
|
|
614
|
-
.replace('{userId}', String((
|
|
613
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
614
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
615
615
|
var headers = this.createAuthorizedHeaders();
|
|
616
616
|
if (request.getRequestId()) {
|
|
617
617
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
618
618
|
}
|
|
619
619
|
if (request.getDuplicationAvoider()) {
|
|
620
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
620
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
621
621
|
}
|
|
622
622
|
if (request.getTimeOffsetToken()) {
|
|
623
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
623
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
624
624
|
}
|
|
625
625
|
var body = {
|
|
626
|
-
'contextStack': (
|
|
627
|
-
'args': (
|
|
628
|
-
'ttl': (
|
|
626
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
627
|
+
'args': (_j = request.getArgs()) !== null && _j !== void 0 ? _j : null,
|
|
628
|
+
'ttl': (_k = request.getTtl()) !== null && _k !== void 0 ? _k : null,
|
|
629
629
|
};
|
|
630
630
|
return axios_1.default.post(url, body, {
|
|
631
631
|
headers: headers,
|
|
@@ -641,8 +641,8 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
641
641
|
});
|
|
642
642
|
};
|
|
643
643
|
Gs2StateMachineRestClient.prototype.startStateMachineByStampSheet = function (request) {
|
|
644
|
-
var _a, _b, _c;
|
|
645
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/stateMachine/start')
|
|
644
|
+
var _a, _b, _c, _d;
|
|
645
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/stateMachine/start')
|
|
646
646
|
.replace('{service}', 'state-machine')
|
|
647
647
|
.replace('{region}', this.session.region);
|
|
648
648
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -650,9 +650,9 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
650
650
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
651
651
|
}
|
|
652
652
|
var body = {
|
|
653
|
-
'contextStack': (
|
|
654
|
-
'stampSheet': (
|
|
655
|
-
'keyId': (
|
|
653
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
654
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
655
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
656
656
|
};
|
|
657
657
|
return axios_1.default.post(url, body, {
|
|
658
658
|
headers: headers,
|
|
@@ -668,26 +668,26 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
668
668
|
});
|
|
669
669
|
};
|
|
670
670
|
Gs2StateMachineRestClient.prototype.emit = function (request) {
|
|
671
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
672
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{statusName}/emit')
|
|
671
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
672
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{statusName}/emit')
|
|
673
673
|
.replace('{service}', 'state-machine')
|
|
674
674
|
.replace('{region}', this.session.region)
|
|
675
|
-
.replace('{namespaceName}', String((
|
|
676
|
-
.replace('{statusName}', String((
|
|
675
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
676
|
+
.replace('{statusName}', String((_d = request.getStatusName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getStatusName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
677
677
|
var headers = this.createAuthorizedHeaders();
|
|
678
678
|
if (request.getRequestId()) {
|
|
679
679
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
680
680
|
}
|
|
681
681
|
if (request.getAccessToken()) {
|
|
682
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
682
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
683
683
|
}
|
|
684
684
|
if (request.getDuplicationAvoider()) {
|
|
685
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
685
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
686
686
|
}
|
|
687
687
|
var body = {
|
|
688
|
-
'contextStack': (
|
|
689
|
-
'eventName': (
|
|
690
|
-
'args': (
|
|
688
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
689
|
+
'eventName': (_j = request.getEventName()) !== null && _j !== void 0 ? _j : null,
|
|
690
|
+
'args': (_k = request.getArgs()) !== null && _k !== void 0 ? _k : null,
|
|
691
691
|
};
|
|
692
692
|
return axios_1.default.post(url, body, {
|
|
693
693
|
headers: headers,
|
|
@@ -703,27 +703,27 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
703
703
|
});
|
|
704
704
|
};
|
|
705
705
|
Gs2StateMachineRestClient.prototype.emitByUserId = function (request) {
|
|
706
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
707
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{statusName}/emit')
|
|
706
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
707
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{statusName}/emit')
|
|
708
708
|
.replace('{service}', 'state-machine')
|
|
709
709
|
.replace('{region}', this.session.region)
|
|
710
|
-
.replace('{namespaceName}', String((
|
|
711
|
-
.replace('{userId}', String((
|
|
712
|
-
.replace('{statusName}', String((
|
|
710
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
711
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
712
|
+
.replace('{statusName}', String((_f = request.getStatusName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getStatusName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
713
713
|
var headers = this.createAuthorizedHeaders();
|
|
714
714
|
if (request.getRequestId()) {
|
|
715
715
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
716
716
|
}
|
|
717
717
|
if (request.getDuplicationAvoider()) {
|
|
718
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
718
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
719
719
|
}
|
|
720
720
|
if (request.getTimeOffsetToken()) {
|
|
721
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
721
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
722
722
|
}
|
|
723
723
|
var body = {
|
|
724
|
-
'contextStack': (
|
|
725
|
-
'eventName': (
|
|
726
|
-
'args': (
|
|
724
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
725
|
+
'eventName': (_l = request.getEventName()) !== null && _l !== void 0 ? _l : null,
|
|
726
|
+
'args': (_m = request.getArgs()) !== null && _m !== void 0 ? _m : null,
|
|
727
727
|
};
|
|
728
728
|
return axios_1.default.post(url, body, {
|
|
729
729
|
headers: headers,
|
|
@@ -739,25 +739,25 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
739
739
|
});
|
|
740
740
|
};
|
|
741
741
|
Gs2StateMachineRestClient.prototype.report = function (request) {
|
|
742
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
743
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{statusName}/report')
|
|
742
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
743
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{statusName}/report')
|
|
744
744
|
.replace('{service}', 'state-machine')
|
|
745
745
|
.replace('{region}', this.session.region)
|
|
746
|
-
.replace('{namespaceName}', String((
|
|
747
|
-
.replace('{statusName}', String((
|
|
746
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
747
|
+
.replace('{statusName}', String((_d = request.getStatusName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getStatusName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
748
748
|
var headers = this.createAuthorizedHeaders();
|
|
749
749
|
if (request.getRequestId()) {
|
|
750
750
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
751
751
|
}
|
|
752
752
|
if (request.getAccessToken()) {
|
|
753
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
753
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
754
754
|
}
|
|
755
755
|
if (request.getDuplicationAvoider()) {
|
|
756
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
756
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
757
757
|
}
|
|
758
758
|
var body = {
|
|
759
|
-
'contextStack': (
|
|
760
|
-
'events': (
|
|
759
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
760
|
+
'events': (_k = (_j = request.getEvents()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
761
761
|
};
|
|
762
762
|
return axios_1.default.post(url, body, {
|
|
763
763
|
headers: headers,
|
|
@@ -773,26 +773,26 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
773
773
|
});
|
|
774
774
|
};
|
|
775
775
|
Gs2StateMachineRestClient.prototype.reportByUserId = function (request) {
|
|
776
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
777
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{statusName}/report')
|
|
776
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
777
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{statusName}/report')
|
|
778
778
|
.replace('{service}', 'state-machine')
|
|
779
779
|
.replace('{region}', this.session.region)
|
|
780
|
-
.replace('{namespaceName}', String((
|
|
781
|
-
.replace('{userId}', String((
|
|
782
|
-
.replace('{statusName}', String((
|
|
780
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
781
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
782
|
+
.replace('{statusName}', String((_f = request.getStatusName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getStatusName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
783
783
|
var headers = this.createAuthorizedHeaders();
|
|
784
784
|
if (request.getRequestId()) {
|
|
785
785
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
786
786
|
}
|
|
787
787
|
if (request.getDuplicationAvoider()) {
|
|
788
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
788
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
789
789
|
}
|
|
790
790
|
if (request.getTimeOffsetToken()) {
|
|
791
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
791
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
792
792
|
}
|
|
793
793
|
var body = {
|
|
794
|
-
'contextStack': (
|
|
795
|
-
'events': (
|
|
794
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
795
|
+
'events': (_m = (_l = request.getEvents()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
796
796
|
};
|
|
797
797
|
return axios_1.default.post(url, body, {
|
|
798
798
|
headers: headers,
|
|
@@ -808,25 +808,25 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
808
808
|
});
|
|
809
809
|
};
|
|
810
810
|
Gs2StateMachineRestClient.prototype.deleteStatusByUserId = function (request) {
|
|
811
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
812
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{statusName}')
|
|
811
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
812
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{statusName}')
|
|
813
813
|
.replace('{service}', 'state-machine')
|
|
814
814
|
.replace('{region}', this.session.region)
|
|
815
|
-
.replace('{namespaceName}', String((
|
|
816
|
-
.replace('{userId}', String((
|
|
817
|
-
.replace('{statusName}', String((
|
|
815
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
816
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
817
|
+
.replace('{statusName}', String((_f = request.getStatusName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getStatusName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
818
818
|
var headers = this.createAuthorizedHeaders();
|
|
819
819
|
if (request.getRequestId()) {
|
|
820
820
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
821
821
|
}
|
|
822
822
|
if (request.getDuplicationAvoider()) {
|
|
823
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
823
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
824
824
|
}
|
|
825
825
|
if (request.getTimeOffsetToken()) {
|
|
826
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
826
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
827
827
|
}
|
|
828
828
|
var params = {
|
|
829
|
-
'contextStack': (
|
|
829
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
830
830
|
};
|
|
831
831
|
return axios_1.default.delete(url, {
|
|
832
832
|
params: params,
|
|
@@ -838,24 +838,24 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
838
838
|
});
|
|
839
839
|
};
|
|
840
840
|
Gs2StateMachineRestClient.prototype.exitStateMachine = function (request) {
|
|
841
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
842
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{statusName}/exit')
|
|
841
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
842
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/status/{statusName}/exit')
|
|
843
843
|
.replace('{service}', 'state-machine')
|
|
844
844
|
.replace('{region}', this.session.region)
|
|
845
|
-
.replace('{namespaceName}', String((
|
|
846
|
-
.replace('{statusName}', String((
|
|
845
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
846
|
+
.replace('{statusName}', String((_d = request.getStatusName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getStatusName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
847
847
|
var headers = this.createAuthorizedHeaders();
|
|
848
848
|
if (request.getRequestId()) {
|
|
849
849
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
850
850
|
}
|
|
851
851
|
if (request.getAccessToken()) {
|
|
852
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
852
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
853
853
|
}
|
|
854
854
|
if (request.getDuplicationAvoider()) {
|
|
855
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
855
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
856
856
|
}
|
|
857
857
|
var params = {
|
|
858
|
-
'contextStack': (
|
|
858
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
859
859
|
};
|
|
860
860
|
return axios_1.default.delete(url, {
|
|
861
861
|
params: params,
|
|
@@ -867,25 +867,25 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
867
867
|
});
|
|
868
868
|
};
|
|
869
869
|
Gs2StateMachineRestClient.prototype.exitStateMachineByUserId = function (request) {
|
|
870
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
871
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{statusName}/exit')
|
|
870
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
871
|
+
var url = ((_a = Gs2StateMachineRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/status/{statusName}/exit')
|
|
872
872
|
.replace('{service}', 'state-machine')
|
|
873
873
|
.replace('{region}', this.session.region)
|
|
874
|
-
.replace('{namespaceName}', String((
|
|
875
|
-
.replace('{userId}', String((
|
|
876
|
-
.replace('{statusName}', String((
|
|
874
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
875
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
876
|
+
.replace('{statusName}', String((_f = request.getStatusName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getStatusName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
877
877
|
var headers = this.createAuthorizedHeaders();
|
|
878
878
|
if (request.getRequestId()) {
|
|
879
879
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
880
880
|
}
|
|
881
881
|
if (request.getDuplicationAvoider()) {
|
|
882
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
882
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
883
883
|
}
|
|
884
884
|
if (request.getTimeOffsetToken()) {
|
|
885
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
885
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
886
886
|
}
|
|
887
887
|
var params = {
|
|
888
|
-
'contextStack': (
|
|
888
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
889
889
|
};
|
|
890
890
|
return axios_1.default.delete(url, {
|
|
891
891
|
params: params,
|
|
@@ -896,6 +896,7 @@ var Gs2StateMachineRestClient = /** @class */ (function (_super) {
|
|
|
896
896
|
throw JSON.parse(error.response.data.message);
|
|
897
897
|
});
|
|
898
898
|
};
|
|
899
|
+
Gs2StateMachineRestClient.ENDPOINT_HOST = null;
|
|
899
900
|
return Gs2StateMachineRestClient;
|
|
900
901
|
}(AbstractGs2RestClient_1.default));
|
|
901
902
|
exports.default = Gs2StateMachineRestClient;
|