gs2 1.4.99 → 1.4.101
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/rest.d.ts +1 -0
- package/gateway/rest.js +180 -179
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +30 -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/serialKey/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2SerialKeyRestClient.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 = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
31
31
|
.replace('{service}', 'serial-key')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2SerialKeyRestClient = /** @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 Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2SerialKeyRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
54
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
55
55
|
.replace('{service}', 'serial-key')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,11 +59,11 @@ var Gs2SerialKeyRestClient = /** @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
|
-
'transactionSetting': (
|
|
66
|
-
'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
|
+
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
66
|
+
'logSetting': (_h = (_g = request.getLogSetting()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
67
|
};
|
|
68
68
|
return axios_1.default.post(url, body, {
|
|
69
69
|
headers: headers,
|
|
@@ -79,17 +79,17 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
81
|
Gs2SerialKeyRestClient.prototype.getNamespaceStatus = function (request) {
|
|
82
|
-
var _a, _b, _c;
|
|
83
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
82
|
+
var _a, _b, _c, _d;
|
|
83
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/status')
|
|
84
84
|
.replace('{service}', 'serial-key')
|
|
85
85
|
.replace('{region}', this.session.region)
|
|
86
|
-
.replace('{namespaceName}', String((
|
|
86
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
87
87
|
var headers = this.createAuthorizedHeaders();
|
|
88
88
|
if (request.getRequestId()) {
|
|
89
89
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
90
90
|
}
|
|
91
91
|
var params = {
|
|
92
|
-
'contextStack': (
|
|
92
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
93
93
|
};
|
|
94
94
|
return axios_1.default.get(url, {
|
|
95
95
|
params: params,
|
|
@@ -101,17 +101,17 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
103
|
Gs2SerialKeyRestClient.prototype.getNamespace = function (request) {
|
|
104
|
-
var _a, _b, _c;
|
|
105
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
104
|
+
var _a, _b, _c, _d;
|
|
105
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
106
106
|
.replace('{service}', 'serial-key')
|
|
107
107
|
.replace('{region}', this.session.region)
|
|
108
|
-
.replace('{namespaceName}', String((
|
|
108
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
109
109
|
var headers = this.createAuthorizedHeaders();
|
|
110
110
|
if (request.getRequestId()) {
|
|
111
111
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
112
112
|
}
|
|
113
113
|
var params = {
|
|
114
|
-
'contextStack': (
|
|
114
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
115
115
|
};
|
|
116
116
|
return axios_1.default.get(url, {
|
|
117
117
|
params: params,
|
|
@@ -123,20 +123,20 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
125
|
Gs2SerialKeyRestClient.prototype.updateNamespace = function (request) {
|
|
126
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
127
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
126
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
127
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
128
128
|
.replace('{service}', 'serial-key')
|
|
129
129
|
.replace('{region}', this.session.region)
|
|
130
|
-
.replace('{namespaceName}', String((
|
|
130
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
131
131
|
var headers = this.createAuthorizedHeaders();
|
|
132
132
|
if (request.getRequestId()) {
|
|
133
133
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
134
134
|
}
|
|
135
135
|
var body = {
|
|
136
|
-
'contextStack': (
|
|
137
|
-
'description': (
|
|
138
|
-
'transactionSetting': (
|
|
139
|
-
'logSetting': (
|
|
136
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
137
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
138
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
139
|
+
'logSetting': (_j = (_h = request.getLogSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
140
140
|
};
|
|
141
141
|
return axios_1.default.put(url, body, {
|
|
142
142
|
headers: headers,
|
|
@@ -152,17 +152,17 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
154
|
Gs2SerialKeyRestClient.prototype.deleteNamespace = function (request) {
|
|
155
|
-
var _a, _b, _c;
|
|
156
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
155
|
+
var _a, _b, _c, _d;
|
|
156
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
157
157
|
.replace('{service}', 'serial-key')
|
|
158
158
|
.replace('{region}', this.session.region)
|
|
159
|
-
.replace('{namespaceName}', String((
|
|
159
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
160
160
|
var headers = this.createAuthorizedHeaders();
|
|
161
161
|
if (request.getRequestId()) {
|
|
162
162
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
163
163
|
}
|
|
164
164
|
var params = {
|
|
165
|
-
'contextStack': (
|
|
165
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
166
166
|
};
|
|
167
167
|
return axios_1.default.delete(url, {
|
|
168
168
|
params: params,
|
|
@@ -174,8 +174,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
176
|
Gs2SerialKeyRestClient.prototype.getServiceVersion = function (request) {
|
|
177
|
-
var _a;
|
|
178
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
177
|
+
var _a, _b;
|
|
178
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/version')
|
|
179
179
|
.replace('{service}', 'serial-key')
|
|
180
180
|
.replace('{region}', this.session.region);
|
|
181
181
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -183,7 +183,7 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
183
183
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
184
184
|
}
|
|
185
185
|
var params = {
|
|
186
|
-
'contextStack': (
|
|
186
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
187
187
|
};
|
|
188
188
|
return axios_1.default.get(url, {
|
|
189
189
|
params: params,
|
|
@@ -195,20 +195,20 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
195
195
|
});
|
|
196
196
|
};
|
|
197
197
|
Gs2SerialKeyRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
198
|
-
var _a, _b, _c, _d;
|
|
199
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
198
|
+
var _a, _b, _c, _d, _e;
|
|
199
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
200
200
|
.replace('{service}', 'serial-key')
|
|
201
201
|
.replace('{region}', this.session.region)
|
|
202
|
-
.replace('{userId}', String((
|
|
202
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
203
203
|
var headers = this.createAuthorizedHeaders();
|
|
204
204
|
if (request.getRequestId()) {
|
|
205
205
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
206
206
|
}
|
|
207
207
|
if (request.getTimeOffsetToken()) {
|
|
208
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
208
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
209
209
|
}
|
|
210
210
|
var body = {
|
|
211
|
-
'contextStack': (
|
|
211
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
212
212
|
};
|
|
213
213
|
return axios_1.default.post(url, body, {
|
|
214
214
|
headers: headers,
|
|
@@ -224,20 +224,20 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
224
224
|
});
|
|
225
225
|
};
|
|
226
226
|
Gs2SerialKeyRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
227
|
-
var _a, _b, _c, _d;
|
|
228
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
227
|
+
var _a, _b, _c, _d, _e;
|
|
228
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
229
229
|
.replace('{service}', 'serial-key')
|
|
230
230
|
.replace('{region}', this.session.region)
|
|
231
|
-
.replace('{userId}', String((
|
|
231
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
232
232
|
var headers = this.createAuthorizedHeaders();
|
|
233
233
|
if (request.getRequestId()) {
|
|
234
234
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
235
235
|
}
|
|
236
236
|
if (request.getTimeOffsetToken()) {
|
|
237
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
237
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
238
238
|
}
|
|
239
239
|
var params = {
|
|
240
|
-
'contextStack': (
|
|
240
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
241
241
|
};
|
|
242
242
|
return axios_1.default.get(url, {
|
|
243
243
|
params: params,
|
|
@@ -249,20 +249,20 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
249
249
|
});
|
|
250
250
|
};
|
|
251
251
|
Gs2SerialKeyRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
252
|
-
var _a, _b, _c, _d;
|
|
253
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
252
|
+
var _a, _b, _c, _d, _e;
|
|
253
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
254
254
|
.replace('{service}', 'serial-key')
|
|
255
255
|
.replace('{region}', this.session.region)
|
|
256
|
-
.replace('{userId}', String((
|
|
256
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
257
257
|
var headers = this.createAuthorizedHeaders();
|
|
258
258
|
if (request.getRequestId()) {
|
|
259
259
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
260
260
|
}
|
|
261
261
|
if (request.getTimeOffsetToken()) {
|
|
262
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
262
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
263
263
|
}
|
|
264
264
|
var body = {
|
|
265
|
-
'contextStack': (
|
|
265
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
266
266
|
};
|
|
267
267
|
return axios_1.default.post(url, body, {
|
|
268
268
|
headers: headers,
|
|
@@ -278,20 +278,20 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
278
278
|
});
|
|
279
279
|
};
|
|
280
280
|
Gs2SerialKeyRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
281
|
-
var _a, _b, _c, _d;
|
|
282
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
281
|
+
var _a, _b, _c, _d, _e;
|
|
282
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
283
283
|
.replace('{service}', 'serial-key')
|
|
284
284
|
.replace('{region}', this.session.region)
|
|
285
|
-
.replace('{userId}', String((
|
|
285
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
286
286
|
var headers = this.createAuthorizedHeaders();
|
|
287
287
|
if (request.getRequestId()) {
|
|
288
288
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
289
289
|
}
|
|
290
290
|
if (request.getTimeOffsetToken()) {
|
|
291
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
291
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
292
292
|
}
|
|
293
293
|
var params = {
|
|
294
|
-
'contextStack': (
|
|
294
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
295
295
|
};
|
|
296
296
|
return axios_1.default.get(url, {
|
|
297
297
|
params: params,
|
|
@@ -303,20 +303,20 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
303
303
|
});
|
|
304
304
|
};
|
|
305
305
|
Gs2SerialKeyRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
306
|
-
var _a, _b, _c, _d;
|
|
307
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
306
|
+
var _a, _b, _c, _d, _e;
|
|
307
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/prepare')
|
|
308
308
|
.replace('{service}', 'serial-key')
|
|
309
309
|
.replace('{region}', this.session.region)
|
|
310
|
-
.replace('{userId}', String((
|
|
310
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
311
311
|
var headers = this.createAuthorizedHeaders();
|
|
312
312
|
if (request.getRequestId()) {
|
|
313
313
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
314
314
|
}
|
|
315
315
|
if (request.getTimeOffsetToken()) {
|
|
316
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
316
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
317
317
|
}
|
|
318
318
|
var body = {
|
|
319
|
-
'contextStack': (
|
|
319
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
320
320
|
};
|
|
321
321
|
return axios_1.default.post(url, body, {
|
|
322
322
|
headers: headers,
|
|
@@ -332,21 +332,21 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
332
332
|
});
|
|
333
333
|
};
|
|
334
334
|
Gs2SerialKeyRestClient.prototype.importUserDataByUserId = function (request) {
|
|
335
|
-
var _a, _b, _c, _d, _e;
|
|
336
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
335
|
+
var _a, _b, _c, _d, _e, _f;
|
|
336
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}')
|
|
337
337
|
.replace('{service}', 'serial-key')
|
|
338
338
|
.replace('{region}', this.session.region)
|
|
339
|
-
.replace('{userId}', String((
|
|
339
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
340
340
|
var headers = this.createAuthorizedHeaders();
|
|
341
341
|
if (request.getRequestId()) {
|
|
342
342
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
343
343
|
}
|
|
344
344
|
if (request.getTimeOffsetToken()) {
|
|
345
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
345
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
346
346
|
}
|
|
347
347
|
var body = {
|
|
348
|
-
'contextStack': (
|
|
349
|
-
'uploadToken': (
|
|
348
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
349
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
350
350
|
};
|
|
351
351
|
return axios_1.default.post(url, body, {
|
|
352
352
|
headers: headers,
|
|
@@ -362,21 +362,21 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
362
362
|
});
|
|
363
363
|
};
|
|
364
364
|
Gs2SerialKeyRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
365
|
-
var _a, _b, _c, _d, _e, _f;
|
|
366
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
365
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
366
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/{uploadToken}')
|
|
367
367
|
.replace('{service}', 'serial-key')
|
|
368
368
|
.replace('{region}', this.session.region)
|
|
369
|
-
.replace('{userId}', String((
|
|
370
|
-
.replace('{uploadToken}', String((
|
|
369
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
370
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
371
371
|
var headers = this.createAuthorizedHeaders();
|
|
372
372
|
if (request.getRequestId()) {
|
|
373
373
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
374
374
|
}
|
|
375
375
|
if (request.getTimeOffsetToken()) {
|
|
376
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
376
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
377
377
|
}
|
|
378
378
|
var params = {
|
|
379
|
-
'contextStack': (
|
|
379
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
380
380
|
};
|
|
381
381
|
return axios_1.default.get(url, {
|
|
382
382
|
params: params,
|
|
@@ -388,20 +388,20 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
388
388
|
});
|
|
389
389
|
};
|
|
390
390
|
Gs2SerialKeyRestClient.prototype.describeIssueJobs = function (request) {
|
|
391
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
392
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/campaign/{campaignModelName}/issue')
|
|
391
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
392
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/campaign/{campaignModelName}/issue')
|
|
393
393
|
.replace('{service}', 'serial-key')
|
|
394
394
|
.replace('{region}', this.session.region)
|
|
395
|
-
.replace('{namespaceName}', String((
|
|
396
|
-
.replace('{campaignModelName}', String((
|
|
395
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
396
|
+
.replace('{campaignModelName}', String((_d = request.getCampaignModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCampaignModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
397
397
|
var headers = this.createAuthorizedHeaders();
|
|
398
398
|
if (request.getRequestId()) {
|
|
399
399
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
400
400
|
}
|
|
401
401
|
var params = {
|
|
402
|
-
'contextStack': (
|
|
403
|
-
'pageToken': String((
|
|
404
|
-
'limit': String((
|
|
402
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
403
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
404
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
405
405
|
};
|
|
406
406
|
return axios_1.default.get(url, {
|
|
407
407
|
params: params,
|
|
@@ -413,19 +413,19 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
413
413
|
});
|
|
414
414
|
};
|
|
415
415
|
Gs2SerialKeyRestClient.prototype.getIssueJob = function (request) {
|
|
416
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
417
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/campaign/{campaignModelName}/issue/{issueJobName}')
|
|
416
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
417
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/campaign/{campaignModelName}/issue/{issueJobName}')
|
|
418
418
|
.replace('{service}', 'serial-key')
|
|
419
419
|
.replace('{region}', this.session.region)
|
|
420
|
-
.replace('{namespaceName}', String((
|
|
421
|
-
.replace('{campaignModelName}', String((
|
|
422
|
-
.replace('{issueJobName}', String((
|
|
420
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
421
|
+
.replace('{campaignModelName}', String((_d = request.getCampaignModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCampaignModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
422
|
+
.replace('{issueJobName}', String((_f = request.getIssueJobName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getIssueJobName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
423
423
|
var headers = this.createAuthorizedHeaders();
|
|
424
424
|
if (request.getRequestId()) {
|
|
425
425
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
426
426
|
}
|
|
427
427
|
var params = {
|
|
428
|
-
'contextStack': (
|
|
428
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
429
429
|
};
|
|
430
430
|
return axios_1.default.get(url, {
|
|
431
431
|
params: params,
|
|
@@ -437,20 +437,20 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
439
|
Gs2SerialKeyRestClient.prototype.issue = function (request) {
|
|
440
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
441
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/campaign/{campaignModelName}')
|
|
440
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
441
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/campaign/{campaignModelName}')
|
|
442
442
|
.replace('{service}', 'serial-key')
|
|
443
443
|
.replace('{region}', this.session.region)
|
|
444
|
-
.replace('{namespaceName}', String((
|
|
445
|
-
.replace('{campaignModelName}', String((
|
|
444
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
445
|
+
.replace('{campaignModelName}', String((_d = request.getCampaignModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCampaignModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
446
446
|
var headers = this.createAuthorizedHeaders();
|
|
447
447
|
if (request.getRequestId()) {
|
|
448
448
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
449
449
|
}
|
|
450
450
|
var body = {
|
|
451
|
-
'contextStack': (
|
|
452
|
-
'metadata': (
|
|
453
|
-
'issueRequestCount': (
|
|
451
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
452
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
453
|
+
'issueRequestCount': (_h = request.getIssueRequestCount()) !== null && _h !== void 0 ? _h : null,
|
|
454
454
|
};
|
|
455
455
|
return axios_1.default.post(url, body, {
|
|
456
456
|
headers: headers,
|
|
@@ -466,21 +466,21 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
466
466
|
});
|
|
467
467
|
};
|
|
468
468
|
Gs2SerialKeyRestClient.prototype.describeSerialKeys = function (request) {
|
|
469
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
470
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/campaign/{campaignModelName}/issue/{issueJobName}/serialKey')
|
|
469
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
470
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/campaign/{campaignModelName}/issue/{issueJobName}/serialKey')
|
|
471
471
|
.replace('{service}', 'serial-key')
|
|
472
472
|
.replace('{region}', this.session.region)
|
|
473
|
-
.replace('{namespaceName}', String((
|
|
474
|
-
.replace('{campaignModelName}', String((
|
|
475
|
-
.replace('{issueJobName}', String((
|
|
473
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
474
|
+
.replace('{campaignModelName}', String((_d = request.getCampaignModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCampaignModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
475
|
+
.replace('{issueJobName}', String((_f = request.getIssueJobName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getIssueJobName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
476
476
|
var headers = this.createAuthorizedHeaders();
|
|
477
477
|
if (request.getRequestId()) {
|
|
478
478
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
479
479
|
}
|
|
480
480
|
var params = {
|
|
481
|
-
'contextStack': (
|
|
482
|
-
'pageToken': String((
|
|
483
|
-
'limit': String((
|
|
481
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
482
|
+
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
483
|
+
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
484
484
|
};
|
|
485
485
|
return axios_1.default.get(url, {
|
|
486
486
|
params: params,
|
|
@@ -492,19 +492,19 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
492
492
|
});
|
|
493
493
|
};
|
|
494
494
|
Gs2SerialKeyRestClient.prototype.downloadSerialCodes = function (request) {
|
|
495
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
496
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/campaign/{campaignModelName}/issue/{issueJobName}/serialCode/download')
|
|
495
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
496
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/campaign/{campaignModelName}/issue/{issueJobName}/serialCode/download')
|
|
497
497
|
.replace('{service}', 'serial-key')
|
|
498
498
|
.replace('{region}', this.session.region)
|
|
499
|
-
.replace('{namespaceName}', String((
|
|
500
|
-
.replace('{campaignModelName}', String((
|
|
501
|
-
.replace('{issueJobName}', String((
|
|
499
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
500
|
+
.replace('{campaignModelName}', String((_d = request.getCampaignModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCampaignModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
501
|
+
.replace('{issueJobName}', String((_f = request.getIssueJobName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getIssueJobName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
502
502
|
var headers = this.createAuthorizedHeaders();
|
|
503
503
|
if (request.getRequestId()) {
|
|
504
504
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
505
505
|
}
|
|
506
506
|
var params = {
|
|
507
|
-
'contextStack': (
|
|
507
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
508
508
|
};
|
|
509
509
|
return axios_1.default.get(url, {
|
|
510
510
|
params: params,
|
|
@@ -516,19 +516,19 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
516
516
|
});
|
|
517
517
|
};
|
|
518
518
|
Gs2SerialKeyRestClient.prototype.issueOnce = function (request) {
|
|
519
|
-
var _a, _b, _c, _d, _e, _f;
|
|
520
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/campaign/{campaignModelName}/serialKey')
|
|
519
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
520
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/campaign/{campaignModelName}/serialKey')
|
|
521
521
|
.replace('{service}', 'serial-key')
|
|
522
522
|
.replace('{region}', this.session.region)
|
|
523
|
-
.replace('{namespaceName}', String((
|
|
524
|
-
.replace('{campaignModelName}', String((
|
|
523
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
524
|
+
.replace('{campaignModelName}', String((_d = request.getCampaignModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCampaignModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
525
525
|
var headers = this.createAuthorizedHeaders();
|
|
526
526
|
if (request.getRequestId()) {
|
|
527
527
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
528
528
|
}
|
|
529
529
|
var body = {
|
|
530
|
-
'contextStack': (
|
|
531
|
-
'metadata': (
|
|
530
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
531
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
532
532
|
};
|
|
533
533
|
return axios_1.default.post(url, body, {
|
|
534
534
|
headers: headers,
|
|
@@ -544,18 +544,18 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
544
544
|
});
|
|
545
545
|
};
|
|
546
546
|
Gs2SerialKeyRestClient.prototype.getSerialKey = function (request) {
|
|
547
|
-
var _a, _b, _c, _d, _e;
|
|
548
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/serialKey/{code}')
|
|
547
|
+
var _a, _b, _c, _d, _e, _f;
|
|
548
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/serialKey/{code}')
|
|
549
549
|
.replace('{service}', 'serial-key')
|
|
550
550
|
.replace('{region}', this.session.region)
|
|
551
|
-
.replace('{namespaceName}', String((
|
|
552
|
-
.replace('{code}', String((
|
|
551
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
552
|
+
.replace('{code}', String((_d = request.getCode()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCode()) !== null && _e !== void 0 ? _e : 'null'));
|
|
553
553
|
var headers = this.createAuthorizedHeaders();
|
|
554
554
|
if (request.getRequestId()) {
|
|
555
555
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
556
556
|
}
|
|
557
557
|
var params = {
|
|
558
|
-
'contextStack': (
|
|
558
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
559
559
|
};
|
|
560
560
|
return axios_1.default.get(url, {
|
|
561
561
|
params: params,
|
|
@@ -567,26 +567,26 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
567
567
|
});
|
|
568
568
|
};
|
|
569
569
|
Gs2SerialKeyRestClient.prototype.verifyCode = function (request) {
|
|
570
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
571
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/serialKey/verify')
|
|
570
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
571
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/serialKey/verify')
|
|
572
572
|
.replace('{service}', 'serial-key')
|
|
573
573
|
.replace('{region}', this.session.region)
|
|
574
|
-
.replace('{namespaceName}', String((
|
|
574
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
575
575
|
var headers = this.createAuthorizedHeaders();
|
|
576
576
|
if (request.getRequestId()) {
|
|
577
577
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
578
578
|
}
|
|
579
579
|
if (request.getAccessToken()) {
|
|
580
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
580
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
581
581
|
}
|
|
582
582
|
if (request.getDuplicationAvoider()) {
|
|
583
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
583
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
584
584
|
}
|
|
585
585
|
var body = {
|
|
586
|
-
'contextStack': (
|
|
587
|
-
'code': (
|
|
588
|
-
'campaignModelName': (
|
|
589
|
-
'verifyType': (
|
|
586
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
587
|
+
'code': (_g = request.getCode()) !== null && _g !== void 0 ? _g : null,
|
|
588
|
+
'campaignModelName': (_h = request.getCampaignModelName()) !== null && _h !== void 0 ? _h : null,
|
|
589
|
+
'verifyType': (_j = request.getVerifyType()) !== null && _j !== void 0 ? _j : null,
|
|
590
590
|
};
|
|
591
591
|
return axios_1.default.post(url, body, {
|
|
592
592
|
headers: headers,
|
|
@@ -602,27 +602,27 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
602
602
|
});
|
|
603
603
|
};
|
|
604
604
|
Gs2SerialKeyRestClient.prototype.verifyCodeByUserId = function (request) {
|
|
605
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
606
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/serialKey/verify')
|
|
605
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
606
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/serialKey/verify')
|
|
607
607
|
.replace('{service}', 'serial-key')
|
|
608
608
|
.replace('{region}', this.session.region)
|
|
609
|
-
.replace('{namespaceName}', String((
|
|
610
|
-
.replace('{userId}', String((
|
|
609
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
610
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
611
611
|
var headers = this.createAuthorizedHeaders();
|
|
612
612
|
if (request.getRequestId()) {
|
|
613
613
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
614
614
|
}
|
|
615
615
|
if (request.getDuplicationAvoider()) {
|
|
616
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
616
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
617
617
|
}
|
|
618
618
|
if (request.getTimeOffsetToken()) {
|
|
619
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
619
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
620
620
|
}
|
|
621
621
|
var body = {
|
|
622
|
-
'contextStack': (
|
|
623
|
-
'code': (
|
|
624
|
-
'campaignModelName': (
|
|
625
|
-
'verifyType': (
|
|
622
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
623
|
+
'code': (_j = request.getCode()) !== null && _j !== void 0 ? _j : null,
|
|
624
|
+
'campaignModelName': (_k = request.getCampaignModelName()) !== null && _k !== void 0 ? _k : null,
|
|
625
|
+
'verifyType': (_l = request.getVerifyType()) !== null && _l !== void 0 ? _l : null,
|
|
626
626
|
};
|
|
627
627
|
return axios_1.default.post(url, body, {
|
|
628
628
|
headers: headers,
|
|
@@ -638,24 +638,24 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
638
638
|
});
|
|
639
639
|
};
|
|
640
640
|
Gs2SerialKeyRestClient.prototype.use = function (request) {
|
|
641
|
-
var _a, _b, _c, _d, _e, _f;
|
|
642
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/serialKey')
|
|
641
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
642
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/serialKey')
|
|
643
643
|
.replace('{service}', 'serial-key')
|
|
644
644
|
.replace('{region}', this.session.region)
|
|
645
|
-
.replace('{namespaceName}', String((
|
|
645
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
646
646
|
var headers = this.createAuthorizedHeaders();
|
|
647
647
|
if (request.getRequestId()) {
|
|
648
648
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
649
649
|
}
|
|
650
650
|
if (request.getAccessToken()) {
|
|
651
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
651
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
652
652
|
}
|
|
653
653
|
if (request.getDuplicationAvoider()) {
|
|
654
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
654
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
655
655
|
}
|
|
656
656
|
var body = {
|
|
657
|
-
'contextStack': (
|
|
658
|
-
'code': (
|
|
657
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
658
|
+
'code': (_g = request.getCode()) !== null && _g !== void 0 ? _g : null,
|
|
659
659
|
};
|
|
660
660
|
return axios_1.default.post(url, body, {
|
|
661
661
|
headers: headers,
|
|
@@ -671,25 +671,25 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
671
671
|
});
|
|
672
672
|
};
|
|
673
673
|
Gs2SerialKeyRestClient.prototype.useByUserId = function (request) {
|
|
674
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
675
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/serialKey')
|
|
674
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
675
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/serialKey')
|
|
676
676
|
.replace('{service}', 'serial-key')
|
|
677
677
|
.replace('{region}', this.session.region)
|
|
678
|
-
.replace('{namespaceName}', String((
|
|
679
|
-
.replace('{userId}', String((
|
|
678
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
679
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
680
680
|
var headers = this.createAuthorizedHeaders();
|
|
681
681
|
if (request.getRequestId()) {
|
|
682
682
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
683
683
|
}
|
|
684
684
|
if (request.getDuplicationAvoider()) {
|
|
685
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
685
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
686
686
|
}
|
|
687
687
|
if (request.getTimeOffsetToken()) {
|
|
688
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
688
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
689
689
|
}
|
|
690
690
|
var body = {
|
|
691
|
-
'contextStack': (
|
|
692
|
-
'code': (
|
|
691
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
692
|
+
'code': (_j = request.getCode()) !== null && _j !== void 0 ? _j : null,
|
|
693
693
|
};
|
|
694
694
|
return axios_1.default.post(url, body, {
|
|
695
695
|
headers: headers,
|
|
@@ -705,25 +705,25 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
705
705
|
});
|
|
706
706
|
};
|
|
707
707
|
Gs2SerialKeyRestClient.prototype.revertUseByUserId = function (request) {
|
|
708
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
709
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/serialKey/revert')
|
|
708
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
709
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/serialKey/revert')
|
|
710
710
|
.replace('{service}', 'serial-key')
|
|
711
711
|
.replace('{region}', this.session.region)
|
|
712
|
-
.replace('{namespaceName}', String((
|
|
713
|
-
.replace('{userId}', String((
|
|
712
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
713
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
714
714
|
var headers = this.createAuthorizedHeaders();
|
|
715
715
|
if (request.getRequestId()) {
|
|
716
716
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
717
717
|
}
|
|
718
718
|
if (request.getDuplicationAvoider()) {
|
|
719
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
719
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
720
720
|
}
|
|
721
721
|
if (request.getTimeOffsetToken()) {
|
|
722
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
722
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
723
723
|
}
|
|
724
724
|
var body = {
|
|
725
|
-
'contextStack': (
|
|
726
|
-
'code': (
|
|
725
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
726
|
+
'code': (_j = request.getCode()) !== null && _j !== void 0 ? _j : null,
|
|
727
727
|
};
|
|
728
728
|
return axios_1.default.post(url, body, {
|
|
729
729
|
headers: headers,
|
|
@@ -739,8 +739,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
739
739
|
});
|
|
740
740
|
};
|
|
741
741
|
Gs2SerialKeyRestClient.prototype.useByStampTask = function (request) {
|
|
742
|
-
var _a, _b, _c;
|
|
743
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/serialKey/use')
|
|
742
|
+
var _a, _b, _c, _d;
|
|
743
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/serialKey/use')
|
|
744
744
|
.replace('{service}', 'serial-key')
|
|
745
745
|
.replace('{region}', this.session.region);
|
|
746
746
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -748,9 +748,9 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
748
748
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
749
749
|
}
|
|
750
750
|
var body = {
|
|
751
|
-
'contextStack': (
|
|
752
|
-
'stampTask': (
|
|
753
|
-
'keyId': (
|
|
751
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
752
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
753
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
754
754
|
};
|
|
755
755
|
return axios_1.default.post(url, body, {
|
|
756
756
|
headers: headers,
|
|
@@ -766,8 +766,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
766
766
|
});
|
|
767
767
|
};
|
|
768
768
|
Gs2SerialKeyRestClient.prototype.revertUseByStampSheet = function (request) {
|
|
769
|
-
var _a, _b, _c;
|
|
770
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/serialKey/revert')
|
|
769
|
+
var _a, _b, _c, _d;
|
|
770
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/serialKey/revert')
|
|
771
771
|
.replace('{service}', 'serial-key')
|
|
772
772
|
.replace('{region}', this.session.region);
|
|
773
773
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -775,9 +775,9 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
775
775
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
776
776
|
}
|
|
777
777
|
var body = {
|
|
778
|
-
'contextStack': (
|
|
779
|
-
'stampSheet': (
|
|
780
|
-
'keyId': (
|
|
778
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
779
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
780
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
781
781
|
};
|
|
782
782
|
return axios_1.default.post(url, body, {
|
|
783
783
|
headers: headers,
|
|
@@ -793,8 +793,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
793
793
|
});
|
|
794
794
|
};
|
|
795
795
|
Gs2SerialKeyRestClient.prototype.verifyByStampTask = function (request) {
|
|
796
|
-
var _a, _b, _c;
|
|
797
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/serialKey/verify')
|
|
796
|
+
var _a, _b, _c, _d;
|
|
797
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/serialKey/verify')
|
|
798
798
|
.replace('{service}', 'serial-key')
|
|
799
799
|
.replace('{region}', this.session.region);
|
|
800
800
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -802,9 +802,9 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
802
802
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
803
803
|
}
|
|
804
804
|
var body = {
|
|
805
|
-
'contextStack': (
|
|
806
|
-
'stampTask': (
|
|
807
|
-
'keyId': (
|
|
805
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
806
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
807
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
808
808
|
};
|
|
809
809
|
return axios_1.default.post(url, body, {
|
|
810
810
|
headers: headers,
|
|
@@ -820,8 +820,8 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
820
820
|
});
|
|
821
821
|
};
|
|
822
822
|
Gs2SerialKeyRestClient.prototype.issueOnceByStampSheet = function (request) {
|
|
823
|
-
var _a, _b, _c;
|
|
824
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/serialKey/issueOnce')
|
|
823
|
+
var _a, _b, _c, _d;
|
|
824
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/serialKey/issueOnce')
|
|
825
825
|
.replace('{service}', 'serial-key')
|
|
826
826
|
.replace('{region}', this.session.region);
|
|
827
827
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -829,9 +829,9 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
829
829
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
830
830
|
}
|
|
831
831
|
var body = {
|
|
832
|
-
'contextStack': (
|
|
833
|
-
'stampSheet': (
|
|
834
|
-
'keyId': (
|
|
832
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
833
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
834
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
835
835
|
};
|
|
836
836
|
return axios_1.default.post(url, body, {
|
|
837
837
|
headers: headers,
|
|
@@ -847,17 +847,17 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
847
847
|
});
|
|
848
848
|
};
|
|
849
849
|
Gs2SerialKeyRestClient.prototype.describeCampaignModels = function (request) {
|
|
850
|
-
var _a, _b, _c;
|
|
851
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/campaign')
|
|
850
|
+
var _a, _b, _c, _d;
|
|
851
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/campaign')
|
|
852
852
|
.replace('{service}', 'serial-key')
|
|
853
853
|
.replace('{region}', this.session.region)
|
|
854
|
-
.replace('{namespaceName}', String((
|
|
854
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
855
855
|
var headers = this.createAuthorizedHeaders();
|
|
856
856
|
if (request.getRequestId()) {
|
|
857
857
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
858
858
|
}
|
|
859
859
|
var params = {
|
|
860
|
-
'contextStack': (
|
|
860
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
861
861
|
};
|
|
862
862
|
return axios_1.default.get(url, {
|
|
863
863
|
params: params,
|
|
@@ -869,18 +869,18 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
869
869
|
});
|
|
870
870
|
};
|
|
871
871
|
Gs2SerialKeyRestClient.prototype.getCampaignModel = function (request) {
|
|
872
|
-
var _a, _b, _c, _d, _e;
|
|
873
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/campaign/{campaignModelName}')
|
|
872
|
+
var _a, _b, _c, _d, _e, _f;
|
|
873
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/campaign/{campaignModelName}')
|
|
874
874
|
.replace('{service}', 'serial-key')
|
|
875
875
|
.replace('{region}', this.session.region)
|
|
876
|
-
.replace('{namespaceName}', String((
|
|
877
|
-
.replace('{campaignModelName}', String((
|
|
876
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
877
|
+
.replace('{campaignModelName}', String((_d = request.getCampaignModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCampaignModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
878
878
|
var headers = this.createAuthorizedHeaders();
|
|
879
879
|
if (request.getRequestId()) {
|
|
880
880
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
881
881
|
}
|
|
882
882
|
var params = {
|
|
883
|
-
'contextStack': (
|
|
883
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
884
884
|
};
|
|
885
885
|
return axios_1.default.get(url, {
|
|
886
886
|
params: params,
|
|
@@ -892,20 +892,20 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
892
892
|
});
|
|
893
893
|
};
|
|
894
894
|
Gs2SerialKeyRestClient.prototype.describeCampaignModelMasters = function (request) {
|
|
895
|
-
var _a, _b, _c, _d, _e, _f;
|
|
896
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/campaign')
|
|
895
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
896
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/campaign')
|
|
897
897
|
.replace('{service}', 'serial-key')
|
|
898
898
|
.replace('{region}', this.session.region)
|
|
899
|
-
.replace('{namespaceName}', String((
|
|
899
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
900
900
|
var headers = this.createAuthorizedHeaders();
|
|
901
901
|
if (request.getRequestId()) {
|
|
902
902
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
903
903
|
}
|
|
904
904
|
var params = {
|
|
905
|
-
'contextStack': (
|
|
906
|
-
'namePrefix': String((
|
|
907
|
-
'pageToken': String((
|
|
908
|
-
'limit': String((
|
|
905
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
906
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
907
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
908
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
909
909
|
};
|
|
910
910
|
return axios_1.default.get(url, {
|
|
911
911
|
params: params,
|
|
@@ -917,21 +917,21 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
917
917
|
});
|
|
918
918
|
};
|
|
919
919
|
Gs2SerialKeyRestClient.prototype.createCampaignModelMaster = function (request) {
|
|
920
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
921
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/campaign')
|
|
920
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
921
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/campaign')
|
|
922
922
|
.replace('{service}', 'serial-key')
|
|
923
923
|
.replace('{region}', this.session.region)
|
|
924
|
-
.replace('{namespaceName}', String((
|
|
924
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
925
925
|
var headers = this.createAuthorizedHeaders();
|
|
926
926
|
if (request.getRequestId()) {
|
|
927
927
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
928
928
|
}
|
|
929
929
|
var body = {
|
|
930
|
-
'contextStack': (
|
|
931
|
-
'name': (
|
|
932
|
-
'description': (
|
|
933
|
-
'metadata': (
|
|
934
|
-
'enableCampaignCode': (
|
|
930
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
931
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
932
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
933
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
934
|
+
'enableCampaignCode': (_h = request.getEnableCampaignCode()) !== null && _h !== void 0 ? _h : null,
|
|
935
935
|
};
|
|
936
936
|
return axios_1.default.post(url, body, {
|
|
937
937
|
headers: headers,
|
|
@@ -947,18 +947,18 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
947
947
|
});
|
|
948
948
|
};
|
|
949
949
|
Gs2SerialKeyRestClient.prototype.getCampaignModelMaster = function (request) {
|
|
950
|
-
var _a, _b, _c, _d, _e;
|
|
951
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/campaign/{campaignModelName}')
|
|
950
|
+
var _a, _b, _c, _d, _e, _f;
|
|
951
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/campaign/{campaignModelName}')
|
|
952
952
|
.replace('{service}', 'serial-key')
|
|
953
953
|
.replace('{region}', this.session.region)
|
|
954
|
-
.replace('{namespaceName}', String((
|
|
955
|
-
.replace('{campaignModelName}', String((
|
|
954
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
955
|
+
.replace('{campaignModelName}', String((_d = request.getCampaignModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCampaignModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
956
956
|
var headers = this.createAuthorizedHeaders();
|
|
957
957
|
if (request.getRequestId()) {
|
|
958
958
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
959
959
|
}
|
|
960
960
|
var params = {
|
|
961
|
-
'contextStack': (
|
|
961
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
962
962
|
};
|
|
963
963
|
return axios_1.default.get(url, {
|
|
964
964
|
params: params,
|
|
@@ -970,21 +970,21 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
970
970
|
});
|
|
971
971
|
};
|
|
972
972
|
Gs2SerialKeyRestClient.prototype.updateCampaignModelMaster = function (request) {
|
|
973
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
974
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/campaign/{campaignModelName}')
|
|
973
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
974
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/campaign/{campaignModelName}')
|
|
975
975
|
.replace('{service}', 'serial-key')
|
|
976
976
|
.replace('{region}', this.session.region)
|
|
977
|
-
.replace('{namespaceName}', String((
|
|
978
|
-
.replace('{campaignModelName}', String((
|
|
977
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
978
|
+
.replace('{campaignModelName}', String((_d = request.getCampaignModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCampaignModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
979
979
|
var headers = this.createAuthorizedHeaders();
|
|
980
980
|
if (request.getRequestId()) {
|
|
981
981
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
982
982
|
}
|
|
983
983
|
var body = {
|
|
984
|
-
'contextStack': (
|
|
985
|
-
'description': (
|
|
986
|
-
'metadata': (
|
|
987
|
-
'enableCampaignCode': (
|
|
984
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
985
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
986
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
987
|
+
'enableCampaignCode': (_j = request.getEnableCampaignCode()) !== null && _j !== void 0 ? _j : null,
|
|
988
988
|
};
|
|
989
989
|
return axios_1.default.put(url, body, {
|
|
990
990
|
headers: headers,
|
|
@@ -1000,18 +1000,18 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1000
1000
|
});
|
|
1001
1001
|
};
|
|
1002
1002
|
Gs2SerialKeyRestClient.prototype.deleteCampaignModelMaster = function (request) {
|
|
1003
|
-
var _a, _b, _c, _d, _e;
|
|
1004
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/campaign/{campaignModelName}')
|
|
1003
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1004
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/campaign/{campaignModelName}')
|
|
1005
1005
|
.replace('{service}', 'serial-key')
|
|
1006
1006
|
.replace('{region}', this.session.region)
|
|
1007
|
-
.replace('{namespaceName}', String((
|
|
1008
|
-
.replace('{campaignModelName}', String((
|
|
1007
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1008
|
+
.replace('{campaignModelName}', String((_d = request.getCampaignModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getCampaignModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1009
1009
|
var headers = this.createAuthorizedHeaders();
|
|
1010
1010
|
if (request.getRequestId()) {
|
|
1011
1011
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1012
1012
|
}
|
|
1013
1013
|
var params = {
|
|
1014
|
-
'contextStack': (
|
|
1014
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1015
1015
|
};
|
|
1016
1016
|
return axios_1.default.delete(url, {
|
|
1017
1017
|
params: params,
|
|
@@ -1023,17 +1023,17 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1023
1023
|
});
|
|
1024
1024
|
};
|
|
1025
1025
|
Gs2SerialKeyRestClient.prototype.exportMaster = function (request) {
|
|
1026
|
-
var _a, _b, _c;
|
|
1027
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1026
|
+
var _a, _b, _c, _d;
|
|
1027
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/export')
|
|
1028
1028
|
.replace('{service}', 'serial-key')
|
|
1029
1029
|
.replace('{region}', this.session.region)
|
|
1030
|
-
.replace('{namespaceName}', String((
|
|
1030
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1031
1031
|
var headers = this.createAuthorizedHeaders();
|
|
1032
1032
|
if (request.getRequestId()) {
|
|
1033
1033
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1034
1034
|
}
|
|
1035
1035
|
var params = {
|
|
1036
|
-
'contextStack': (
|
|
1036
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1037
1037
|
};
|
|
1038
1038
|
return axios_1.default.get(url, {
|
|
1039
1039
|
params: params,
|
|
@@ -1045,17 +1045,17 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1045
1045
|
});
|
|
1046
1046
|
};
|
|
1047
1047
|
Gs2SerialKeyRestClient.prototype.getCurrentCampaignMaster = function (request) {
|
|
1048
|
-
var _a, _b, _c;
|
|
1049
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1048
|
+
var _a, _b, _c, _d;
|
|
1049
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1050
1050
|
.replace('{service}', 'serial-key')
|
|
1051
1051
|
.replace('{region}', this.session.region)
|
|
1052
|
-
.replace('{namespaceName}', String((
|
|
1052
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1053
1053
|
var headers = this.createAuthorizedHeaders();
|
|
1054
1054
|
if (request.getRequestId()) {
|
|
1055
1055
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1056
1056
|
}
|
|
1057
1057
|
var params = {
|
|
1058
|
-
'contextStack': (
|
|
1058
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1059
1059
|
};
|
|
1060
1060
|
return axios_1.default.get(url, {
|
|
1061
1061
|
params: params,
|
|
@@ -1067,17 +1067,17 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1067
1067
|
});
|
|
1068
1068
|
};
|
|
1069
1069
|
Gs2SerialKeyRestClient.prototype.preUpdateCurrentCampaignMaster = function (request) {
|
|
1070
|
-
var _a, _b, _c;
|
|
1071
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1070
|
+
var _a, _b, _c, _d;
|
|
1071
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1072
1072
|
.replace('{service}', 'serial-key')
|
|
1073
1073
|
.replace('{region}', this.session.region)
|
|
1074
|
-
.replace('{namespaceName}', String((
|
|
1074
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1075
1075
|
var headers = this.createAuthorizedHeaders();
|
|
1076
1076
|
if (request.getRequestId()) {
|
|
1077
1077
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1078
1078
|
}
|
|
1079
1079
|
var body = {
|
|
1080
|
-
'contextStack': (
|
|
1080
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1081
1081
|
};
|
|
1082
1082
|
return axios_1.default.post(url, body, {
|
|
1083
1083
|
headers: headers,
|
|
@@ -1093,20 +1093,20 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1093
1093
|
});
|
|
1094
1094
|
};
|
|
1095
1095
|
Gs2SerialKeyRestClient.prototype.updateCurrentCampaignMaster = function (request) {
|
|
1096
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1097
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1096
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1097
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master')
|
|
1098
1098
|
.replace('{service}', 'serial-key')
|
|
1099
1099
|
.replace('{region}', this.session.region)
|
|
1100
|
-
.replace('{namespaceName}', String((
|
|
1100
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1101
1101
|
var headers = this.createAuthorizedHeaders();
|
|
1102
1102
|
if (request.getRequestId()) {
|
|
1103
1103
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1104
1104
|
}
|
|
1105
1105
|
var body = {
|
|
1106
|
-
'contextStack': (
|
|
1107
|
-
'mode': (
|
|
1108
|
-
'settings': (
|
|
1109
|
-
'uploadToken': (
|
|
1106
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1107
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
1108
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1109
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1110
1110
|
};
|
|
1111
1111
|
return axios_1.default.put(url, body, {
|
|
1112
1112
|
headers: headers,
|
|
@@ -1122,18 +1122,18 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1122
1122
|
});
|
|
1123
1123
|
};
|
|
1124
1124
|
Gs2SerialKeyRestClient.prototype.updateCurrentCampaignMasterFromGitHub = function (request) {
|
|
1125
|
-
var _a, _b, _c, _d, _e;
|
|
1126
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1125
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1126
|
+
var url = (((_a = Gs2SerialKeyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/master/from_git_hub')
|
|
1127
1127
|
.replace('{service}', 'serial-key')
|
|
1128
1128
|
.replace('{region}', this.session.region)
|
|
1129
|
-
.replace('{namespaceName}', String((
|
|
1129
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1130
1130
|
var headers = this.createAuthorizedHeaders();
|
|
1131
1131
|
if (request.getRequestId()) {
|
|
1132
1132
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1133
1133
|
}
|
|
1134
1134
|
var body = {
|
|
1135
|
-
'contextStack': (
|
|
1136
|
-
'checkoutSetting': (
|
|
1135
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1136
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1137
1137
|
};
|
|
1138
1138
|
return axios_1.default.put(url, body, {
|
|
1139
1139
|
headers: headers,
|
|
@@ -1148,6 +1148,7 @@ var Gs2SerialKeyRestClient = /** @class */ (function (_super) {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
});
|
|
1150
1150
|
};
|
|
1151
|
+
Gs2SerialKeyRestClient.ENDPOINT_HOST = null;
|
|
1151
1152
|
return Gs2SerialKeyRestClient;
|
|
1152
1153
|
}(AbstractGs2RestClient_1.default));
|
|
1153
1154
|
exports.default = Gs2SerialKeyRestClient;
|