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/formation/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2FormationRestClient.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 = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
31
31
|
.replace('{service}', 'formation')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2FormationRestClient = /** @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 Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2FormationRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
54
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
55
55
|
.replace('{service}', 'formation')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,14 +59,14 @@ var Gs2FormationRestClient = /** @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
|
-
'updateMoldScript': (
|
|
67
|
-
'updateFormScript': (
|
|
68
|
-
'updatePropertyFormScript': (
|
|
69
|
-
'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
|
+
'updateMoldScript': (_h = (_g = request.getUpdateMoldScript()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
|
+
'updateFormScript': (_k = (_j = request.getUpdateFormScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
68
|
+
'updatePropertyFormScript': (_m = (_l = request.getUpdatePropertyFormScript()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
69
|
+
'logSetting': (_p = (_o = request.getLogSetting()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
70
70
|
};
|
|
71
71
|
return axios_1.default.post(url, body, {
|
|
72
72
|
headers: headers,
|
|
@@ -82,17 +82,17 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
Gs2FormationRestClient.prototype.getNamespaceStatus = function (request) {
|
|
85
|
-
var _a, _b, _c;
|
|
86
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
85
|
+
var _a, _b, _c, _d;
|
|
86
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
87
87
|
.replace('{service}', 'formation')
|
|
88
88
|
.replace('{region}', this.session.region)
|
|
89
|
-
.replace('{namespaceName}', String((
|
|
89
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
90
90
|
var headers = this.createAuthorizedHeaders();
|
|
91
91
|
if (request.getRequestId()) {
|
|
92
92
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
93
93
|
}
|
|
94
94
|
var params = {
|
|
95
|
-
'contextStack': (
|
|
95
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
96
96
|
};
|
|
97
97
|
return axios_1.default.get(url, {
|
|
98
98
|
params: params,
|
|
@@ -104,17 +104,17 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
104
104
|
});
|
|
105
105
|
};
|
|
106
106
|
Gs2FormationRestClient.prototype.getNamespace = function (request) {
|
|
107
|
-
var _a, _b, _c;
|
|
108
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
107
|
+
var _a, _b, _c, _d;
|
|
108
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
109
109
|
.replace('{service}', 'formation')
|
|
110
110
|
.replace('{region}', this.session.region)
|
|
111
|
-
.replace('{namespaceName}', String((
|
|
111
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
112
112
|
var headers = this.createAuthorizedHeaders();
|
|
113
113
|
if (request.getRequestId()) {
|
|
114
114
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
115
115
|
}
|
|
116
116
|
var params = {
|
|
117
|
-
'contextStack': (
|
|
117
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
118
118
|
};
|
|
119
119
|
return axios_1.default.get(url, {
|
|
120
120
|
params: params,
|
|
@@ -126,23 +126,23 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
128
|
Gs2FormationRestClient.prototype.updateNamespace = function (request) {
|
|
129
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
130
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
129
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
130
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
131
131
|
.replace('{service}', 'formation')
|
|
132
132
|
.replace('{region}', this.session.region)
|
|
133
|
-
.replace('{namespaceName}', String((
|
|
133
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
134
134
|
var headers = this.createAuthorizedHeaders();
|
|
135
135
|
if (request.getRequestId()) {
|
|
136
136
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
137
137
|
}
|
|
138
138
|
var body = {
|
|
139
|
-
'contextStack': (
|
|
140
|
-
'description': (
|
|
141
|
-
'transactionSetting': (
|
|
142
|
-
'updateMoldScript': (
|
|
143
|
-
'updateFormScript': (
|
|
144
|
-
'updatePropertyFormScript': (
|
|
145
|
-
'logSetting': (
|
|
139
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
140
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
141
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
142
|
+
'updateMoldScript': (_j = (_h = request.getUpdateMoldScript()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
143
|
+
'updateFormScript': (_l = (_k = request.getUpdateFormScript()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
144
|
+
'updatePropertyFormScript': (_o = (_m = request.getUpdatePropertyFormScript()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
145
|
+
'logSetting': (_q = (_p = request.getLogSetting()) === null || _p === void 0 ? void 0 : _p.toDict()) !== null && _q !== void 0 ? _q : null,
|
|
146
146
|
};
|
|
147
147
|
return axios_1.default.put(url, body, {
|
|
148
148
|
headers: headers,
|
|
@@ -158,17 +158,17 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
158
158
|
});
|
|
159
159
|
};
|
|
160
160
|
Gs2FormationRestClient.prototype.deleteNamespace = function (request) {
|
|
161
|
-
var _a, _b, _c;
|
|
162
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
161
|
+
var _a, _b, _c, _d;
|
|
162
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
163
163
|
.replace('{service}', 'formation')
|
|
164
164
|
.replace('{region}', this.session.region)
|
|
165
|
-
.replace('{namespaceName}', String((
|
|
165
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
166
166
|
var headers = this.createAuthorizedHeaders();
|
|
167
167
|
if (request.getRequestId()) {
|
|
168
168
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
169
169
|
}
|
|
170
170
|
var params = {
|
|
171
|
-
'contextStack': (
|
|
171
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
172
172
|
};
|
|
173
173
|
return axios_1.default.delete(url, {
|
|
174
174
|
params: params,
|
|
@@ -180,8 +180,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
180
180
|
});
|
|
181
181
|
};
|
|
182
182
|
Gs2FormationRestClient.prototype.getServiceVersion = function (request) {
|
|
183
|
-
var _a;
|
|
184
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
183
|
+
var _a, _b;
|
|
184
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
185
185
|
.replace('{service}', 'formation')
|
|
186
186
|
.replace('{region}', this.session.region);
|
|
187
187
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -189,7 +189,7 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
189
189
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
190
190
|
}
|
|
191
191
|
var params = {
|
|
192
|
-
'contextStack': (
|
|
192
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
193
193
|
};
|
|
194
194
|
return axios_1.default.get(url, {
|
|
195
195
|
params: params,
|
|
@@ -201,20 +201,20 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
201
201
|
});
|
|
202
202
|
};
|
|
203
203
|
Gs2FormationRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
204
|
-
var _a, _b, _c, _d;
|
|
205
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
204
|
+
var _a, _b, _c, _d, _e;
|
|
205
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
206
206
|
.replace('{service}', 'formation')
|
|
207
207
|
.replace('{region}', this.session.region)
|
|
208
|
-
.replace('{userId}', String((
|
|
208
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
209
209
|
var headers = this.createAuthorizedHeaders();
|
|
210
210
|
if (request.getRequestId()) {
|
|
211
211
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
212
212
|
}
|
|
213
213
|
if (request.getTimeOffsetToken()) {
|
|
214
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
214
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
215
215
|
}
|
|
216
216
|
var body = {
|
|
217
|
-
'contextStack': (
|
|
217
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
218
218
|
};
|
|
219
219
|
return axios_1.default.post(url, body, {
|
|
220
220
|
headers: headers,
|
|
@@ -230,20 +230,20 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
230
230
|
});
|
|
231
231
|
};
|
|
232
232
|
Gs2FormationRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
233
|
-
var _a, _b, _c, _d;
|
|
234
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
233
|
+
var _a, _b, _c, _d, _e;
|
|
234
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
235
235
|
.replace('{service}', 'formation')
|
|
236
236
|
.replace('{region}', this.session.region)
|
|
237
|
-
.replace('{userId}', String((
|
|
237
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
238
238
|
var headers = this.createAuthorizedHeaders();
|
|
239
239
|
if (request.getRequestId()) {
|
|
240
240
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
241
241
|
}
|
|
242
242
|
if (request.getTimeOffsetToken()) {
|
|
243
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
243
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
244
244
|
}
|
|
245
245
|
var params = {
|
|
246
|
-
'contextStack': (
|
|
246
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
247
247
|
};
|
|
248
248
|
return axios_1.default.get(url, {
|
|
249
249
|
params: params,
|
|
@@ -255,20 +255,20 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
255
255
|
});
|
|
256
256
|
};
|
|
257
257
|
Gs2FormationRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
258
|
-
var _a, _b, _c, _d;
|
|
259
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
258
|
+
var _a, _b, _c, _d, _e;
|
|
259
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
260
260
|
.replace('{service}', 'formation')
|
|
261
261
|
.replace('{region}', this.session.region)
|
|
262
|
-
.replace('{userId}', String((
|
|
262
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
263
263
|
var headers = this.createAuthorizedHeaders();
|
|
264
264
|
if (request.getRequestId()) {
|
|
265
265
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
266
266
|
}
|
|
267
267
|
if (request.getTimeOffsetToken()) {
|
|
268
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
268
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
269
269
|
}
|
|
270
270
|
var body = {
|
|
271
|
-
'contextStack': (
|
|
271
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
272
272
|
};
|
|
273
273
|
return axios_1.default.post(url, body, {
|
|
274
274
|
headers: headers,
|
|
@@ -284,20 +284,20 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
284
284
|
});
|
|
285
285
|
};
|
|
286
286
|
Gs2FormationRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
287
|
-
var _a, _b, _c, _d;
|
|
288
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
287
|
+
var _a, _b, _c, _d, _e;
|
|
288
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
289
289
|
.replace('{service}', 'formation')
|
|
290
290
|
.replace('{region}', this.session.region)
|
|
291
|
-
.replace('{userId}', String((
|
|
291
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
292
292
|
var headers = this.createAuthorizedHeaders();
|
|
293
293
|
if (request.getRequestId()) {
|
|
294
294
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
295
295
|
}
|
|
296
296
|
if (request.getTimeOffsetToken()) {
|
|
297
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
297
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
298
298
|
}
|
|
299
299
|
var params = {
|
|
300
|
-
'contextStack': (
|
|
300
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
301
301
|
};
|
|
302
302
|
return axios_1.default.get(url, {
|
|
303
303
|
params: params,
|
|
@@ -309,20 +309,20 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
309
309
|
});
|
|
310
310
|
};
|
|
311
311
|
Gs2FormationRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
312
|
-
var _a, _b, _c, _d;
|
|
313
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
312
|
+
var _a, _b, _c, _d, _e;
|
|
313
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
314
314
|
.replace('{service}', 'formation')
|
|
315
315
|
.replace('{region}', this.session.region)
|
|
316
|
-
.replace('{userId}', String((
|
|
316
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
317
317
|
var headers = this.createAuthorizedHeaders();
|
|
318
318
|
if (request.getRequestId()) {
|
|
319
319
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
320
320
|
}
|
|
321
321
|
if (request.getTimeOffsetToken()) {
|
|
322
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
322
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
323
323
|
}
|
|
324
324
|
var body = {
|
|
325
|
-
'contextStack': (
|
|
325
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
326
326
|
};
|
|
327
327
|
return axios_1.default.post(url, body, {
|
|
328
328
|
headers: headers,
|
|
@@ -338,21 +338,21 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
338
338
|
});
|
|
339
339
|
};
|
|
340
340
|
Gs2FormationRestClient.prototype.importUserDataByUserId = function (request) {
|
|
341
|
-
var _a, _b, _c, _d, _e;
|
|
342
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
341
|
+
var _a, _b, _c, _d, _e, _f;
|
|
342
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
343
343
|
.replace('{service}', 'formation')
|
|
344
344
|
.replace('{region}', this.session.region)
|
|
345
|
-
.replace('{userId}', String((
|
|
345
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
346
346
|
var headers = this.createAuthorizedHeaders();
|
|
347
347
|
if (request.getRequestId()) {
|
|
348
348
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
349
349
|
}
|
|
350
350
|
if (request.getTimeOffsetToken()) {
|
|
351
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
351
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
352
352
|
}
|
|
353
353
|
var body = {
|
|
354
|
-
'contextStack': (
|
|
355
|
-
'uploadToken': (
|
|
354
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
355
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
356
356
|
};
|
|
357
357
|
return axios_1.default.post(url, body, {
|
|
358
358
|
headers: headers,
|
|
@@ -368,21 +368,21 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
368
368
|
});
|
|
369
369
|
};
|
|
370
370
|
Gs2FormationRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
371
|
-
var _a, _b, _c, _d, _e, _f;
|
|
372
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
371
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
372
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
373
373
|
.replace('{service}', 'formation')
|
|
374
374
|
.replace('{region}', this.session.region)
|
|
375
|
-
.replace('{userId}', String((
|
|
376
|
-
.replace('{uploadToken}', String((
|
|
375
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
376
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
377
377
|
var headers = this.createAuthorizedHeaders();
|
|
378
378
|
if (request.getRequestId()) {
|
|
379
379
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
380
380
|
}
|
|
381
381
|
if (request.getTimeOffsetToken()) {
|
|
382
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
382
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
383
383
|
}
|
|
384
384
|
var params = {
|
|
385
|
-
'contextStack': (
|
|
385
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
386
386
|
};
|
|
387
387
|
return axios_1.default.get(url, {
|
|
388
388
|
params: params,
|
|
@@ -394,18 +394,18 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
394
394
|
});
|
|
395
395
|
};
|
|
396
396
|
Gs2FormationRestClient.prototype.getFormModel = function (request) {
|
|
397
|
-
var _a, _b, _c, _d, _e;
|
|
398
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{moldModelName}/form')
|
|
397
|
+
var _a, _b, _c, _d, _e, _f;
|
|
398
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{moldModelName}/form')
|
|
399
399
|
.replace('{service}', 'formation')
|
|
400
400
|
.replace('{region}', this.session.region)
|
|
401
|
-
.replace('{namespaceName}', String((
|
|
402
|
-
.replace('{moldModelName}', String((
|
|
401
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
402
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
403
403
|
var headers = this.createAuthorizedHeaders();
|
|
404
404
|
if (request.getRequestId()) {
|
|
405
405
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
406
406
|
}
|
|
407
407
|
var params = {
|
|
408
|
-
'contextStack': (
|
|
408
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
409
409
|
};
|
|
410
410
|
return axios_1.default.get(url, {
|
|
411
411
|
params: params,
|
|
@@ -417,20 +417,20 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
417
417
|
});
|
|
418
418
|
};
|
|
419
419
|
Gs2FormationRestClient.prototype.describeFormModelMasters = function (request) {
|
|
420
|
-
var _a, _b, _c, _d, _e, _f;
|
|
421
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form')
|
|
420
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
421
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form')
|
|
422
422
|
.replace('{service}', 'formation')
|
|
423
423
|
.replace('{region}', this.session.region)
|
|
424
|
-
.replace('{namespaceName}', String((
|
|
424
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
425
425
|
var headers = this.createAuthorizedHeaders();
|
|
426
426
|
if (request.getRequestId()) {
|
|
427
427
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
428
428
|
}
|
|
429
429
|
var params = {
|
|
430
|
-
'contextStack': (
|
|
431
|
-
'namePrefix': String((
|
|
432
|
-
'pageToken': String((
|
|
433
|
-
'limit': String((
|
|
430
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
431
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
432
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
433
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
434
434
|
};
|
|
435
435
|
return axios_1.default.get(url, {
|
|
436
436
|
params: params,
|
|
@@ -442,21 +442,21 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
442
442
|
});
|
|
443
443
|
};
|
|
444
444
|
Gs2FormationRestClient.prototype.createFormModelMaster = function (request) {
|
|
445
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
446
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form')
|
|
445
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
446
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form')
|
|
447
447
|
.replace('{service}', 'formation')
|
|
448
448
|
.replace('{region}', this.session.region)
|
|
449
|
-
.replace('{namespaceName}', String((
|
|
449
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
450
450
|
var headers = this.createAuthorizedHeaders();
|
|
451
451
|
if (request.getRequestId()) {
|
|
452
452
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
453
453
|
}
|
|
454
454
|
var body = {
|
|
455
|
-
'contextStack': (
|
|
456
|
-
'name': (
|
|
457
|
-
'description': (
|
|
458
|
-
'metadata': (
|
|
459
|
-
'slots': (
|
|
455
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
456
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
457
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
458
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
459
|
+
'slots': (_j = (_h = request.getSlots()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
|
|
460
460
|
};
|
|
461
461
|
return axios_1.default.post(url, body, {
|
|
462
462
|
headers: headers,
|
|
@@ -472,18 +472,18 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
472
472
|
});
|
|
473
473
|
};
|
|
474
474
|
Gs2FormationRestClient.prototype.getFormModelMaster = function (request) {
|
|
475
|
-
var _a, _b, _c, _d, _e;
|
|
476
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form/{formModelName}')
|
|
475
|
+
var _a, _b, _c, _d, _e, _f;
|
|
476
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form/{formModelName}')
|
|
477
477
|
.replace('{service}', 'formation')
|
|
478
478
|
.replace('{region}', this.session.region)
|
|
479
|
-
.replace('{namespaceName}', String((
|
|
480
|
-
.replace('{formModelName}', String((
|
|
479
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
480
|
+
.replace('{formModelName}', String((_d = request.getFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getFormModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
481
481
|
var headers = this.createAuthorizedHeaders();
|
|
482
482
|
if (request.getRequestId()) {
|
|
483
483
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
484
484
|
}
|
|
485
485
|
var params = {
|
|
486
|
-
'contextStack': (
|
|
486
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
487
487
|
};
|
|
488
488
|
return axios_1.default.get(url, {
|
|
489
489
|
params: params,
|
|
@@ -495,21 +495,21 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
495
495
|
});
|
|
496
496
|
};
|
|
497
497
|
Gs2FormationRestClient.prototype.updateFormModelMaster = function (request) {
|
|
498
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
499
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form/{formModelName}')
|
|
498
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
499
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form/{formModelName}')
|
|
500
500
|
.replace('{service}', 'formation')
|
|
501
501
|
.replace('{region}', this.session.region)
|
|
502
|
-
.replace('{namespaceName}', String((
|
|
503
|
-
.replace('{formModelName}', String((
|
|
502
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
503
|
+
.replace('{formModelName}', String((_d = request.getFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getFormModelName()) !== null && _e !== void 0 ? _e : '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
|
var body = {
|
|
509
|
-
'contextStack': (
|
|
510
|
-
'description': (
|
|
511
|
-
'metadata': (
|
|
512
|
-
'slots': (
|
|
509
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
510
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
511
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
512
|
+
'slots': (_k = (_j = request.getSlots()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
513
513
|
};
|
|
514
514
|
return axios_1.default.put(url, body, {
|
|
515
515
|
headers: headers,
|
|
@@ -525,18 +525,18 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
525
525
|
});
|
|
526
526
|
};
|
|
527
527
|
Gs2FormationRestClient.prototype.deleteFormModelMaster = function (request) {
|
|
528
|
-
var _a, _b, _c, _d, _e;
|
|
529
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form/{formModelName}')
|
|
528
|
+
var _a, _b, _c, _d, _e, _f;
|
|
529
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form/{formModelName}')
|
|
530
530
|
.replace('{service}', 'formation')
|
|
531
531
|
.replace('{region}', this.session.region)
|
|
532
|
-
.replace('{namespaceName}', String((
|
|
533
|
-
.replace('{formModelName}', String((
|
|
532
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
533
|
+
.replace('{formModelName}', String((_d = request.getFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getFormModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
534
534
|
var headers = this.createAuthorizedHeaders();
|
|
535
535
|
if (request.getRequestId()) {
|
|
536
536
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
537
537
|
}
|
|
538
538
|
var params = {
|
|
539
|
-
'contextStack': (
|
|
539
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
540
540
|
};
|
|
541
541
|
return axios_1.default.delete(url, {
|
|
542
542
|
params: params,
|
|
@@ -548,17 +548,17 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
548
548
|
});
|
|
549
549
|
};
|
|
550
550
|
Gs2FormationRestClient.prototype.describeMoldModels = function (request) {
|
|
551
|
-
var _a, _b, _c;
|
|
552
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/mold')
|
|
551
|
+
var _a, _b, _c, _d;
|
|
552
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/mold')
|
|
553
553
|
.replace('{service}', 'formation')
|
|
554
554
|
.replace('{region}', this.session.region)
|
|
555
|
-
.replace('{namespaceName}', String((
|
|
555
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
556
556
|
var headers = this.createAuthorizedHeaders();
|
|
557
557
|
if (request.getRequestId()) {
|
|
558
558
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
559
559
|
}
|
|
560
560
|
var params = {
|
|
561
|
-
'contextStack': (
|
|
561
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
562
562
|
};
|
|
563
563
|
return axios_1.default.get(url, {
|
|
564
564
|
params: params,
|
|
@@ -570,18 +570,18 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
570
570
|
});
|
|
571
571
|
};
|
|
572
572
|
Gs2FormationRestClient.prototype.getMoldModel = function (request) {
|
|
573
|
-
var _a, _b, _c, _d, _e;
|
|
574
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/mold/{moldModelName}')
|
|
573
|
+
var _a, _b, _c, _d, _e, _f;
|
|
574
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/mold/{moldModelName}')
|
|
575
575
|
.replace('{service}', 'formation')
|
|
576
576
|
.replace('{region}', this.session.region)
|
|
577
|
-
.replace('{namespaceName}', String((
|
|
578
|
-
.replace('{moldModelName}', String((
|
|
577
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
578
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
579
579
|
var headers = this.createAuthorizedHeaders();
|
|
580
580
|
if (request.getRequestId()) {
|
|
581
581
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
582
582
|
}
|
|
583
583
|
var params = {
|
|
584
|
-
'contextStack': (
|
|
584
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
585
585
|
};
|
|
586
586
|
return axios_1.default.get(url, {
|
|
587
587
|
params: params,
|
|
@@ -593,20 +593,20 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
593
593
|
});
|
|
594
594
|
};
|
|
595
595
|
Gs2FormationRestClient.prototype.describeMoldModelMasters = function (request) {
|
|
596
|
-
var _a, _b, _c, _d, _e, _f;
|
|
597
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/mold')
|
|
596
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
597
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/mold')
|
|
598
598
|
.replace('{service}', 'formation')
|
|
599
599
|
.replace('{region}', this.session.region)
|
|
600
|
-
.replace('{namespaceName}', String((
|
|
600
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
601
601
|
var headers = this.createAuthorizedHeaders();
|
|
602
602
|
if (request.getRequestId()) {
|
|
603
603
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
604
604
|
}
|
|
605
605
|
var params = {
|
|
606
|
-
'contextStack': (
|
|
607
|
-
'namePrefix': String((
|
|
608
|
-
'pageToken': String((
|
|
609
|
-
'limit': String((
|
|
606
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
607
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
608
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
609
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
610
610
|
};
|
|
611
611
|
return axios_1.default.get(url, {
|
|
612
612
|
params: params,
|
|
@@ -618,23 +618,23 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
618
618
|
});
|
|
619
619
|
};
|
|
620
620
|
Gs2FormationRestClient.prototype.createMoldModelMaster = function (request) {
|
|
621
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
622
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/mold')
|
|
621
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
622
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/mold')
|
|
623
623
|
.replace('{service}', 'formation')
|
|
624
624
|
.replace('{region}', this.session.region)
|
|
625
|
-
.replace('{namespaceName}', String((
|
|
625
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
626
626
|
var headers = this.createAuthorizedHeaders();
|
|
627
627
|
if (request.getRequestId()) {
|
|
628
628
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
629
629
|
}
|
|
630
630
|
var body = {
|
|
631
|
-
'contextStack': (
|
|
632
|
-
'name': (
|
|
633
|
-
'description': (
|
|
634
|
-
'metadata': (
|
|
635
|
-
'formModelName': (
|
|
636
|
-
'initialMaxCapacity': (
|
|
637
|
-
'maxCapacity': (
|
|
631
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
632
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
633
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
634
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
635
|
+
'formModelName': (_h = request.getFormModelName()) !== null && _h !== void 0 ? _h : null,
|
|
636
|
+
'initialMaxCapacity': (_j = request.getInitialMaxCapacity()) !== null && _j !== void 0 ? _j : null,
|
|
637
|
+
'maxCapacity': (_k = request.getMaxCapacity()) !== null && _k !== void 0 ? _k : null,
|
|
638
638
|
};
|
|
639
639
|
return axios_1.default.post(url, body, {
|
|
640
640
|
headers: headers,
|
|
@@ -650,18 +650,18 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
650
650
|
});
|
|
651
651
|
};
|
|
652
652
|
Gs2FormationRestClient.prototype.getMoldModelMaster = function (request) {
|
|
653
|
-
var _a, _b, _c, _d, _e;
|
|
654
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/mold/{moldModelName}')
|
|
653
|
+
var _a, _b, _c, _d, _e, _f;
|
|
654
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/mold/{moldModelName}')
|
|
655
655
|
.replace('{service}', 'formation')
|
|
656
656
|
.replace('{region}', this.session.region)
|
|
657
|
-
.replace('{namespaceName}', String((
|
|
658
|
-
.replace('{moldModelName}', String((
|
|
657
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
658
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
659
659
|
var headers = this.createAuthorizedHeaders();
|
|
660
660
|
if (request.getRequestId()) {
|
|
661
661
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
662
662
|
}
|
|
663
663
|
var params = {
|
|
664
|
-
'contextStack': (
|
|
664
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
665
665
|
};
|
|
666
666
|
return axios_1.default.get(url, {
|
|
667
667
|
params: params,
|
|
@@ -673,23 +673,23 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
673
673
|
});
|
|
674
674
|
};
|
|
675
675
|
Gs2FormationRestClient.prototype.updateMoldModelMaster = function (request) {
|
|
676
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
677
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/mold/{moldModelName}')
|
|
676
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
677
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/mold/{moldModelName}')
|
|
678
678
|
.replace('{service}', 'formation')
|
|
679
679
|
.replace('{region}', this.session.region)
|
|
680
|
-
.replace('{namespaceName}', String((
|
|
681
|
-
.replace('{moldModelName}', String((
|
|
680
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
681
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
682
682
|
var headers = this.createAuthorizedHeaders();
|
|
683
683
|
if (request.getRequestId()) {
|
|
684
684
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
685
685
|
}
|
|
686
686
|
var body = {
|
|
687
|
-
'contextStack': (
|
|
688
|
-
'description': (
|
|
689
|
-
'metadata': (
|
|
690
|
-
'formModelName': (
|
|
691
|
-
'initialMaxCapacity': (
|
|
692
|
-
'maxCapacity': (
|
|
687
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
688
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
689
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
690
|
+
'formModelName': (_j = request.getFormModelName()) !== null && _j !== void 0 ? _j : null,
|
|
691
|
+
'initialMaxCapacity': (_k = request.getInitialMaxCapacity()) !== null && _k !== void 0 ? _k : null,
|
|
692
|
+
'maxCapacity': (_l = request.getMaxCapacity()) !== null && _l !== void 0 ? _l : null,
|
|
693
693
|
};
|
|
694
694
|
return axios_1.default.put(url, body, {
|
|
695
695
|
headers: headers,
|
|
@@ -705,18 +705,18 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
705
705
|
});
|
|
706
706
|
};
|
|
707
707
|
Gs2FormationRestClient.prototype.deleteMoldModelMaster = function (request) {
|
|
708
|
-
var _a, _b, _c, _d, _e;
|
|
709
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/mold/{moldModelName}')
|
|
708
|
+
var _a, _b, _c, _d, _e, _f;
|
|
709
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/mold/{moldModelName}')
|
|
710
710
|
.replace('{service}', 'formation')
|
|
711
711
|
.replace('{region}', this.session.region)
|
|
712
|
-
.replace('{namespaceName}', String((
|
|
713
|
-
.replace('{moldModelName}', 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('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== 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
|
var params = {
|
|
719
|
-
'contextStack': (
|
|
719
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
720
720
|
};
|
|
721
721
|
return axios_1.default.delete(url, {
|
|
722
722
|
params: params,
|
|
@@ -728,17 +728,17 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
728
728
|
});
|
|
729
729
|
};
|
|
730
730
|
Gs2FormationRestClient.prototype.describePropertyFormModels = function (request) {
|
|
731
|
-
var _a, _b, _c;
|
|
732
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/propertyForm')
|
|
731
|
+
var _a, _b, _c, _d;
|
|
732
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/propertyForm')
|
|
733
733
|
.replace('{service}', 'formation')
|
|
734
734
|
.replace('{region}', this.session.region)
|
|
735
|
-
.replace('{namespaceName}', String((
|
|
735
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
736
736
|
var headers = this.createAuthorizedHeaders();
|
|
737
737
|
if (request.getRequestId()) {
|
|
738
738
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
739
739
|
}
|
|
740
740
|
var params = {
|
|
741
|
-
'contextStack': (
|
|
741
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
742
742
|
};
|
|
743
743
|
return axios_1.default.get(url, {
|
|
744
744
|
params: params,
|
|
@@ -750,18 +750,18 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
750
750
|
});
|
|
751
751
|
};
|
|
752
752
|
Gs2FormationRestClient.prototype.getPropertyFormModel = function (request) {
|
|
753
|
-
var _a, _b, _c, _d, _e;
|
|
754
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/propertyForm/{propertyFormModelName}')
|
|
753
|
+
var _a, _b, _c, _d, _e, _f;
|
|
754
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/propertyForm/{propertyFormModelName}')
|
|
755
755
|
.replace('{service}', 'formation')
|
|
756
756
|
.replace('{region}', this.session.region)
|
|
757
|
-
.replace('{namespaceName}', String((
|
|
758
|
-
.replace('{propertyFormModelName}', String((
|
|
757
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
758
|
+
.replace('{propertyFormModelName}', String((_d = request.getPropertyFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyFormModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
759
759
|
var headers = this.createAuthorizedHeaders();
|
|
760
760
|
if (request.getRequestId()) {
|
|
761
761
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
762
762
|
}
|
|
763
763
|
var params = {
|
|
764
|
-
'contextStack': (
|
|
764
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
765
765
|
};
|
|
766
766
|
return axios_1.default.get(url, {
|
|
767
767
|
params: params,
|
|
@@ -773,20 +773,20 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
773
773
|
});
|
|
774
774
|
};
|
|
775
775
|
Gs2FormationRestClient.prototype.describePropertyFormModelMasters = function (request) {
|
|
776
|
-
var _a, _b, _c, _d, _e, _f;
|
|
777
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/propertyForm')
|
|
776
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
777
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/propertyForm')
|
|
778
778
|
.replace('{service}', 'formation')
|
|
779
779
|
.replace('{region}', this.session.region)
|
|
780
|
-
.replace('{namespaceName}', 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
781
|
var headers = this.createAuthorizedHeaders();
|
|
782
782
|
if (request.getRequestId()) {
|
|
783
783
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
784
784
|
}
|
|
785
785
|
var params = {
|
|
786
|
-
'contextStack': (
|
|
787
|
-
'namePrefix': String((
|
|
788
|
-
'pageToken': String((
|
|
789
|
-
'limit': String((
|
|
786
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
787
|
+
'namePrefix': String((_e = request.getNamePrefix()) !== null && _e !== void 0 ? _e : null),
|
|
788
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
789
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
790
790
|
};
|
|
791
791
|
return axios_1.default.get(url, {
|
|
792
792
|
params: params,
|
|
@@ -798,21 +798,21 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
798
798
|
});
|
|
799
799
|
};
|
|
800
800
|
Gs2FormationRestClient.prototype.createPropertyFormModelMaster = function (request) {
|
|
801
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
802
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/propertyForm')
|
|
801
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
802
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/propertyForm')
|
|
803
803
|
.replace('{service}', 'formation')
|
|
804
804
|
.replace('{region}', this.session.region)
|
|
805
|
-
.replace('{namespaceName}', String((
|
|
805
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
806
806
|
var headers = this.createAuthorizedHeaders();
|
|
807
807
|
if (request.getRequestId()) {
|
|
808
808
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
809
809
|
}
|
|
810
810
|
var body = {
|
|
811
|
-
'contextStack': (
|
|
812
|
-
'name': (
|
|
813
|
-
'description': (
|
|
814
|
-
'metadata': (
|
|
815
|
-
'slots': (
|
|
811
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
812
|
+
'name': (_e = request.getName()) !== null && _e !== void 0 ? _e : null,
|
|
813
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
814
|
+
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
815
|
+
'slots': (_j = (_h = request.getSlots()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
|
|
816
816
|
};
|
|
817
817
|
return axios_1.default.post(url, body, {
|
|
818
818
|
headers: headers,
|
|
@@ -828,18 +828,18 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
828
828
|
});
|
|
829
829
|
};
|
|
830
830
|
Gs2FormationRestClient.prototype.getPropertyFormModelMaster = function (request) {
|
|
831
|
-
var _a, _b, _c, _d, _e;
|
|
832
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/propertyForm/{propertyFormModelName}')
|
|
831
|
+
var _a, _b, _c, _d, _e, _f;
|
|
832
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/propertyForm/{propertyFormModelName}')
|
|
833
833
|
.replace('{service}', 'formation')
|
|
834
834
|
.replace('{region}', this.session.region)
|
|
835
|
-
.replace('{namespaceName}', String((
|
|
836
|
-
.replace('{propertyFormModelName}', String((
|
|
835
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
836
|
+
.replace('{propertyFormModelName}', String((_d = request.getPropertyFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyFormModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
837
837
|
var headers = this.createAuthorizedHeaders();
|
|
838
838
|
if (request.getRequestId()) {
|
|
839
839
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
840
840
|
}
|
|
841
841
|
var params = {
|
|
842
|
-
'contextStack': (
|
|
842
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
843
843
|
};
|
|
844
844
|
return axios_1.default.get(url, {
|
|
845
845
|
params: params,
|
|
@@ -851,21 +851,21 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
851
851
|
});
|
|
852
852
|
};
|
|
853
853
|
Gs2FormationRestClient.prototype.updatePropertyFormModelMaster = function (request) {
|
|
854
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
855
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/propertyForm/{propertyFormModelName}')
|
|
854
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
855
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/propertyForm/{propertyFormModelName}')
|
|
856
856
|
.replace('{service}', 'formation')
|
|
857
857
|
.replace('{region}', this.session.region)
|
|
858
|
-
.replace('{namespaceName}', String((
|
|
859
|
-
.replace('{propertyFormModelName}', String((
|
|
858
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
859
|
+
.replace('{propertyFormModelName}', String((_d = request.getPropertyFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyFormModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
860
860
|
var headers = this.createAuthorizedHeaders();
|
|
861
861
|
if (request.getRequestId()) {
|
|
862
862
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
863
863
|
}
|
|
864
864
|
var body = {
|
|
865
|
-
'contextStack': (
|
|
866
|
-
'description': (
|
|
867
|
-
'metadata': (
|
|
868
|
-
'slots': (
|
|
865
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
866
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
867
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
868
|
+
'slots': (_k = (_j = request.getSlots()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
869
869
|
};
|
|
870
870
|
return axios_1.default.put(url, body, {
|
|
871
871
|
headers: headers,
|
|
@@ -881,18 +881,18 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
881
881
|
});
|
|
882
882
|
};
|
|
883
883
|
Gs2FormationRestClient.prototype.deletePropertyFormModelMaster = function (request) {
|
|
884
|
-
var _a, _b, _c, _d, _e;
|
|
885
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/propertyForm/{propertyFormModelName}')
|
|
884
|
+
var _a, _b, _c, _d, _e, _f;
|
|
885
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/propertyForm/{propertyFormModelName}')
|
|
886
886
|
.replace('{service}', 'formation')
|
|
887
887
|
.replace('{region}', this.session.region)
|
|
888
|
-
.replace('{namespaceName}', String((
|
|
889
|
-
.replace('{propertyFormModelName}', String((
|
|
888
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
889
|
+
.replace('{propertyFormModelName}', String((_d = request.getPropertyFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyFormModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
890
890
|
var headers = this.createAuthorizedHeaders();
|
|
891
891
|
if (request.getRequestId()) {
|
|
892
892
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
893
893
|
}
|
|
894
894
|
var params = {
|
|
895
|
-
'contextStack': (
|
|
895
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
896
896
|
};
|
|
897
897
|
return axios_1.default.delete(url, {
|
|
898
898
|
params: params,
|
|
@@ -904,17 +904,17 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
904
904
|
});
|
|
905
905
|
};
|
|
906
906
|
Gs2FormationRestClient.prototype.exportMaster = function (request) {
|
|
907
|
-
var _a, _b, _c;
|
|
908
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
907
|
+
var _a, _b, _c, _d;
|
|
908
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
909
909
|
.replace('{service}', 'formation')
|
|
910
910
|
.replace('{region}', this.session.region)
|
|
911
|
-
.replace('{namespaceName}', String((
|
|
911
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
912
912
|
var headers = this.createAuthorizedHeaders();
|
|
913
913
|
if (request.getRequestId()) {
|
|
914
914
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
915
915
|
}
|
|
916
916
|
var params = {
|
|
917
|
-
'contextStack': (
|
|
917
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
918
918
|
};
|
|
919
919
|
return axios_1.default.get(url, {
|
|
920
920
|
params: params,
|
|
@@ -926,17 +926,17 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
926
926
|
});
|
|
927
927
|
};
|
|
928
928
|
Gs2FormationRestClient.prototype.getCurrentFormMaster = function (request) {
|
|
929
|
-
var _a, _b, _c;
|
|
930
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
929
|
+
var _a, _b, _c, _d;
|
|
930
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
931
931
|
.replace('{service}', 'formation')
|
|
932
932
|
.replace('{region}', this.session.region)
|
|
933
|
-
.replace('{namespaceName}', String((
|
|
933
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
934
934
|
var headers = this.createAuthorizedHeaders();
|
|
935
935
|
if (request.getRequestId()) {
|
|
936
936
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
937
937
|
}
|
|
938
938
|
var params = {
|
|
939
|
-
'contextStack': (
|
|
939
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
940
940
|
};
|
|
941
941
|
return axios_1.default.get(url, {
|
|
942
942
|
params: params,
|
|
@@ -948,17 +948,17 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
948
948
|
});
|
|
949
949
|
};
|
|
950
950
|
Gs2FormationRestClient.prototype.preUpdateCurrentFormMaster = function (request) {
|
|
951
|
-
var _a, _b, _c;
|
|
952
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
951
|
+
var _a, _b, _c, _d;
|
|
952
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
953
953
|
.replace('{service}', 'formation')
|
|
954
954
|
.replace('{region}', this.session.region)
|
|
955
|
-
.replace('{namespaceName}', String((
|
|
955
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : '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 body = {
|
|
961
|
-
'contextStack': (
|
|
961
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
962
962
|
};
|
|
963
963
|
return axios_1.default.post(url, body, {
|
|
964
964
|
headers: headers,
|
|
@@ -974,20 +974,20 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
974
974
|
});
|
|
975
975
|
};
|
|
976
976
|
Gs2FormationRestClient.prototype.updateCurrentFormMaster = function (request) {
|
|
977
|
-
var _a, _b, _c, _d, _e, _f;
|
|
978
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
977
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
978
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
979
979
|
.replace('{service}', 'formation')
|
|
980
980
|
.replace('{region}', this.session.region)
|
|
981
|
-
.replace('{namespaceName}', String((
|
|
981
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
982
982
|
var headers = this.createAuthorizedHeaders();
|
|
983
983
|
if (request.getRequestId()) {
|
|
984
984
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
985
985
|
}
|
|
986
986
|
var body = {
|
|
987
|
-
'contextStack': (
|
|
988
|
-
'mode': (
|
|
989
|
-
'settings': (
|
|
990
|
-
'uploadToken': (
|
|
987
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
988
|
+
'mode': (_e = request.getMode()) !== null && _e !== void 0 ? _e : null,
|
|
989
|
+
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
990
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
991
991
|
};
|
|
992
992
|
return axios_1.default.put(url, body, {
|
|
993
993
|
headers: headers,
|
|
@@ -1003,18 +1003,18 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1003
1003
|
});
|
|
1004
1004
|
};
|
|
1005
1005
|
Gs2FormationRestClient.prototype.updateCurrentFormMasterFromGitHub = function (request) {
|
|
1006
|
-
var _a, _b, _c, _d, _e;
|
|
1007
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1006
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1007
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
1008
1008
|
.replace('{service}', 'formation')
|
|
1009
1009
|
.replace('{region}', this.session.region)
|
|
1010
|
-
.replace('{namespaceName}', String((
|
|
1010
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1011
1011
|
var headers = this.createAuthorizedHeaders();
|
|
1012
1012
|
if (request.getRequestId()) {
|
|
1013
1013
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1014
1014
|
}
|
|
1015
1015
|
var body = {
|
|
1016
|
-
'contextStack': (
|
|
1017
|
-
'checkoutSetting': (
|
|
1016
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1017
|
+
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1018
1018
|
};
|
|
1019
1019
|
return axios_1.default.put(url, body, {
|
|
1020
1020
|
headers: headers,
|
|
@@ -1030,22 +1030,22 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1030
1030
|
});
|
|
1031
1031
|
};
|
|
1032
1032
|
Gs2FormationRestClient.prototype.describeMolds = function (request) {
|
|
1033
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1034
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold')
|
|
1033
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1034
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold')
|
|
1035
1035
|
.replace('{service}', 'formation')
|
|
1036
1036
|
.replace('{region}', this.session.region)
|
|
1037
|
-
.replace('{namespaceName}', String((
|
|
1037
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1038
1038
|
var headers = this.createAuthorizedHeaders();
|
|
1039
1039
|
if (request.getRequestId()) {
|
|
1040
1040
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1041
1041
|
}
|
|
1042
1042
|
if (request.getAccessToken()) {
|
|
1043
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1043
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
1044
1044
|
}
|
|
1045
1045
|
var params = {
|
|
1046
|
-
'contextStack': (
|
|
1047
|
-
'pageToken': String((
|
|
1048
|
-
'limit': String((
|
|
1046
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1047
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1048
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1049
1049
|
};
|
|
1050
1050
|
return axios_1.default.get(url, {
|
|
1051
1051
|
params: params,
|
|
@@ -1057,23 +1057,23 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1057
1057
|
});
|
|
1058
1058
|
};
|
|
1059
1059
|
Gs2FormationRestClient.prototype.describeMoldsByUserId = function (request) {
|
|
1060
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1061
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold')
|
|
1060
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1061
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold')
|
|
1062
1062
|
.replace('{service}', 'formation')
|
|
1063
1063
|
.replace('{region}', this.session.region)
|
|
1064
|
-
.replace('{namespaceName}', String((
|
|
1065
|
-
.replace('{userId}', String((
|
|
1064
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1065
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1066
1066
|
var headers = this.createAuthorizedHeaders();
|
|
1067
1067
|
if (request.getRequestId()) {
|
|
1068
1068
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1069
1069
|
}
|
|
1070
1070
|
if (request.getTimeOffsetToken()) {
|
|
1071
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1071
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
1072
1072
|
}
|
|
1073
1073
|
var params = {
|
|
1074
|
-
'contextStack': (
|
|
1075
|
-
'pageToken': String((
|
|
1076
|
-
'limit': String((
|
|
1074
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1075
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1076
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1077
1077
|
};
|
|
1078
1078
|
return axios_1.default.get(url, {
|
|
1079
1079
|
params: params,
|
|
@@ -1085,21 +1085,21 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1085
1085
|
});
|
|
1086
1086
|
};
|
|
1087
1087
|
Gs2FormationRestClient.prototype.getMold = function (request) {
|
|
1088
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1089
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}')
|
|
1088
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1089
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}')
|
|
1090
1090
|
.replace('{service}', 'formation')
|
|
1091
1091
|
.replace('{region}', this.session.region)
|
|
1092
|
-
.replace('{namespaceName}', String((
|
|
1093
|
-
.replace('{moldModelName}', String((
|
|
1092
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1093
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1094
1094
|
var headers = this.createAuthorizedHeaders();
|
|
1095
1095
|
if (request.getRequestId()) {
|
|
1096
1096
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1097
1097
|
}
|
|
1098
1098
|
if (request.getAccessToken()) {
|
|
1099
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1099
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1100
1100
|
}
|
|
1101
1101
|
var params = {
|
|
1102
|
-
'contextStack': (
|
|
1102
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1103
1103
|
};
|
|
1104
1104
|
return axios_1.default.get(url, {
|
|
1105
1105
|
params: params,
|
|
@@ -1111,22 +1111,22 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1111
1111
|
});
|
|
1112
1112
|
};
|
|
1113
1113
|
Gs2FormationRestClient.prototype.getMoldByUserId = function (request) {
|
|
1114
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1115
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}')
|
|
1114
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1115
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}')
|
|
1116
1116
|
.replace('{service}', 'formation')
|
|
1117
1117
|
.replace('{region}', this.session.region)
|
|
1118
|
-
.replace('{namespaceName}', String((
|
|
1119
|
-
.replace('{userId}', String((
|
|
1120
|
-
.replace('{moldModelName}', String((
|
|
1118
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1119
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1120
|
+
.replace('{moldModelName}', String((_f = request.getMoldModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMoldModelName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1121
1121
|
var headers = this.createAuthorizedHeaders();
|
|
1122
1122
|
if (request.getRequestId()) {
|
|
1123
1123
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1124
1124
|
}
|
|
1125
1125
|
if (request.getTimeOffsetToken()) {
|
|
1126
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1126
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1127
1127
|
}
|
|
1128
1128
|
var params = {
|
|
1129
|
-
'contextStack': (
|
|
1129
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1130
1130
|
};
|
|
1131
1131
|
return axios_1.default.get(url, {
|
|
1132
1132
|
params: params,
|
|
@@ -1138,26 +1138,26 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1138
1138
|
});
|
|
1139
1139
|
};
|
|
1140
1140
|
Gs2FormationRestClient.prototype.setMoldCapacityByUserId = function (request) {
|
|
1141
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1142
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}')
|
|
1141
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1142
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}')
|
|
1143
1143
|
.replace('{service}', 'formation')
|
|
1144
1144
|
.replace('{region}', this.session.region)
|
|
1145
|
-
.replace('{namespaceName}', String((
|
|
1146
|
-
.replace('{userId}', String((
|
|
1147
|
-
.replace('{moldModelName}', String((
|
|
1145
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1146
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1147
|
+
.replace('{moldModelName}', String((_f = request.getMoldModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMoldModelName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1148
1148
|
var headers = this.createAuthorizedHeaders();
|
|
1149
1149
|
if (request.getRequestId()) {
|
|
1150
1150
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1151
1151
|
}
|
|
1152
1152
|
if (request.getDuplicationAvoider()) {
|
|
1153
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1153
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1154
1154
|
}
|
|
1155
1155
|
if (request.getTimeOffsetToken()) {
|
|
1156
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1156
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1157
1157
|
}
|
|
1158
1158
|
var body = {
|
|
1159
|
-
'contextStack': (
|
|
1160
|
-
'capacity': (
|
|
1159
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1160
|
+
'capacity': (_l = request.getCapacity()) !== null && _l !== void 0 ? _l : null,
|
|
1161
1161
|
};
|
|
1162
1162
|
return axios_1.default.put(url, body, {
|
|
1163
1163
|
headers: headers,
|
|
@@ -1173,26 +1173,26 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1173
1173
|
});
|
|
1174
1174
|
};
|
|
1175
1175
|
Gs2FormationRestClient.prototype.addMoldCapacityByUserId = function (request) {
|
|
1176
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1177
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}')
|
|
1176
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1177
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}')
|
|
1178
1178
|
.replace('{service}', 'formation')
|
|
1179
1179
|
.replace('{region}', this.session.region)
|
|
1180
|
-
.replace('{namespaceName}', String((
|
|
1181
|
-
.replace('{userId}', String((
|
|
1182
|
-
.replace('{moldModelName}', String((
|
|
1180
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1181
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1182
|
+
.replace('{moldModelName}', String((_f = request.getMoldModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMoldModelName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1183
1183
|
var headers = this.createAuthorizedHeaders();
|
|
1184
1184
|
if (request.getRequestId()) {
|
|
1185
1185
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1186
1186
|
}
|
|
1187
1187
|
if (request.getDuplicationAvoider()) {
|
|
1188
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1188
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1189
1189
|
}
|
|
1190
1190
|
if (request.getTimeOffsetToken()) {
|
|
1191
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1191
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1192
1192
|
}
|
|
1193
1193
|
var body = {
|
|
1194
|
-
'contextStack': (
|
|
1195
|
-
'capacity': (
|
|
1194
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1195
|
+
'capacity': (_l = request.getCapacity()) !== null && _l !== void 0 ? _l : null,
|
|
1196
1196
|
};
|
|
1197
1197
|
return axios_1.default.post(url, body, {
|
|
1198
1198
|
headers: headers,
|
|
@@ -1208,25 +1208,25 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1208
1208
|
});
|
|
1209
1209
|
};
|
|
1210
1210
|
Gs2FormationRestClient.prototype.subMoldCapacity = function (request) {
|
|
1211
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1212
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/sub')
|
|
1211
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1212
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/sub')
|
|
1213
1213
|
.replace('{service}', 'formation')
|
|
1214
1214
|
.replace('{region}', this.session.region)
|
|
1215
|
-
.replace('{namespaceName}', String((
|
|
1216
|
-
.replace('{moldModelName}', String((
|
|
1215
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1216
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1217
1217
|
var headers = this.createAuthorizedHeaders();
|
|
1218
1218
|
if (request.getRequestId()) {
|
|
1219
1219
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1220
1220
|
}
|
|
1221
1221
|
if (request.getAccessToken()) {
|
|
1222
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1222
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1223
1223
|
}
|
|
1224
1224
|
if (request.getDuplicationAvoider()) {
|
|
1225
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1225
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1226
1226
|
}
|
|
1227
1227
|
var body = {
|
|
1228
|
-
'contextStack': (
|
|
1229
|
-
'capacity': (
|
|
1228
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1229
|
+
'capacity': (_j = request.getCapacity()) !== null && _j !== void 0 ? _j : null,
|
|
1230
1230
|
};
|
|
1231
1231
|
return axios_1.default.post(url, body, {
|
|
1232
1232
|
headers: headers,
|
|
@@ -1242,26 +1242,26 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1242
1242
|
});
|
|
1243
1243
|
};
|
|
1244
1244
|
Gs2FormationRestClient.prototype.subMoldCapacityByUserId = function (request) {
|
|
1245
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1246
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/sub')
|
|
1245
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1246
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/sub')
|
|
1247
1247
|
.replace('{service}', 'formation')
|
|
1248
1248
|
.replace('{region}', this.session.region)
|
|
1249
|
-
.replace('{namespaceName}', String((
|
|
1250
|
-
.replace('{userId}', String((
|
|
1251
|
-
.replace('{moldModelName}', String((
|
|
1249
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1250
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1251
|
+
.replace('{moldModelName}', String((_f = request.getMoldModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMoldModelName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1252
1252
|
var headers = this.createAuthorizedHeaders();
|
|
1253
1253
|
if (request.getRequestId()) {
|
|
1254
1254
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1255
1255
|
}
|
|
1256
1256
|
if (request.getDuplicationAvoider()) {
|
|
1257
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1257
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1258
1258
|
}
|
|
1259
1259
|
if (request.getTimeOffsetToken()) {
|
|
1260
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1260
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1261
1261
|
}
|
|
1262
1262
|
var body = {
|
|
1263
|
-
'contextStack': (
|
|
1264
|
-
'capacity': (
|
|
1263
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1264
|
+
'capacity': (_l = request.getCapacity()) !== null && _l !== void 0 ? _l : null,
|
|
1265
1265
|
};
|
|
1266
1266
|
return axios_1.default.post(url, body, {
|
|
1267
1267
|
headers: headers,
|
|
@@ -1277,24 +1277,24 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1277
1277
|
});
|
|
1278
1278
|
};
|
|
1279
1279
|
Gs2FormationRestClient.prototype.deleteMold = function (request) {
|
|
1280
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1281
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}')
|
|
1280
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1281
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}')
|
|
1282
1282
|
.replace('{service}', 'formation')
|
|
1283
1283
|
.replace('{region}', this.session.region)
|
|
1284
|
-
.replace('{namespaceName}', String((
|
|
1285
|
-
.replace('{moldModelName}', String((
|
|
1284
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1285
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1286
1286
|
var headers = this.createAuthorizedHeaders();
|
|
1287
1287
|
if (request.getRequestId()) {
|
|
1288
1288
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1289
1289
|
}
|
|
1290
1290
|
if (request.getAccessToken()) {
|
|
1291
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1291
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1292
1292
|
}
|
|
1293
1293
|
if (request.getDuplicationAvoider()) {
|
|
1294
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1294
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1295
1295
|
}
|
|
1296
1296
|
var params = {
|
|
1297
|
-
'contextStack': (
|
|
1297
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1298
1298
|
};
|
|
1299
1299
|
return axios_1.default.delete(url, {
|
|
1300
1300
|
params: params,
|
|
@@ -1306,25 +1306,25 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1306
1306
|
});
|
|
1307
1307
|
};
|
|
1308
1308
|
Gs2FormationRestClient.prototype.deleteMoldByUserId = function (request) {
|
|
1309
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1310
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}')
|
|
1309
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1310
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}')
|
|
1311
1311
|
.replace('{service}', 'formation')
|
|
1312
1312
|
.replace('{region}', this.session.region)
|
|
1313
|
-
.replace('{namespaceName}', String((
|
|
1314
|
-
.replace('{userId}', String((
|
|
1315
|
-
.replace('{moldModelName}', String((
|
|
1313
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1314
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1315
|
+
.replace('{moldModelName}', String((_f = request.getMoldModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMoldModelName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1316
1316
|
var headers = this.createAuthorizedHeaders();
|
|
1317
1317
|
if (request.getRequestId()) {
|
|
1318
1318
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1319
1319
|
}
|
|
1320
1320
|
if (request.getDuplicationAvoider()) {
|
|
1321
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1321
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1322
1322
|
}
|
|
1323
1323
|
if (request.getTimeOffsetToken()) {
|
|
1324
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1324
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
1325
1325
|
}
|
|
1326
1326
|
var params = {
|
|
1327
|
-
'contextStack': (
|
|
1327
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1328
1328
|
};
|
|
1329
1329
|
return axios_1.default.delete(url, {
|
|
1330
1330
|
params: params,
|
|
@@ -1336,8 +1336,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1336
1336
|
});
|
|
1337
1337
|
};
|
|
1338
1338
|
Gs2FormationRestClient.prototype.addCapacityByStampSheet = function (request) {
|
|
1339
|
-
var _a, _b, _c;
|
|
1340
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/mold/capacity/add')
|
|
1339
|
+
var _a, _b, _c, _d;
|
|
1340
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/mold/capacity/add')
|
|
1341
1341
|
.replace('{service}', 'formation')
|
|
1342
1342
|
.replace('{region}', this.session.region);
|
|
1343
1343
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1345,9 +1345,9 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1345
1345
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1346
1346
|
}
|
|
1347
1347
|
var body = {
|
|
1348
|
-
'contextStack': (
|
|
1349
|
-
'stampSheet': (
|
|
1350
|
-
'keyId': (
|
|
1348
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1349
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1350
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1351
1351
|
};
|
|
1352
1352
|
return axios_1.default.post(url, body, {
|
|
1353
1353
|
headers: headers,
|
|
@@ -1363,8 +1363,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1363
1363
|
});
|
|
1364
1364
|
};
|
|
1365
1365
|
Gs2FormationRestClient.prototype.subCapacityByStampTask = function (request) {
|
|
1366
|
-
var _a, _b, _c;
|
|
1367
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/mold/capacity/sub')
|
|
1366
|
+
var _a, _b, _c, _d;
|
|
1367
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/mold/capacity/sub')
|
|
1368
1368
|
.replace('{service}', 'formation')
|
|
1369
1369
|
.replace('{region}', this.session.region);
|
|
1370
1370
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1372,9 +1372,9 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1372
1372
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1373
1373
|
}
|
|
1374
1374
|
var body = {
|
|
1375
|
-
'contextStack': (
|
|
1376
|
-
'stampTask': (
|
|
1377
|
-
'keyId': (
|
|
1375
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1376
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1377
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1378
1378
|
};
|
|
1379
1379
|
return axios_1.default.post(url, body, {
|
|
1380
1380
|
headers: headers,
|
|
@@ -1390,8 +1390,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1390
1390
|
});
|
|
1391
1391
|
};
|
|
1392
1392
|
Gs2FormationRestClient.prototype.setCapacityByStampSheet = function (request) {
|
|
1393
|
-
var _a, _b, _c;
|
|
1394
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/mold/capacity/set')
|
|
1393
|
+
var _a, _b, _c, _d;
|
|
1394
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/mold/capacity/set')
|
|
1395
1395
|
.replace('{service}', 'formation')
|
|
1396
1396
|
.replace('{region}', this.session.region);
|
|
1397
1397
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1399,9 +1399,9 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1399
1399
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1400
1400
|
}
|
|
1401
1401
|
var body = {
|
|
1402
|
-
'contextStack': (
|
|
1403
|
-
'stampSheet': (
|
|
1404
|
-
'keyId': (
|
|
1402
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1403
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1404
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1405
1405
|
};
|
|
1406
1406
|
return axios_1.default.post(url, body, {
|
|
1407
1407
|
headers: headers,
|
|
@@ -1417,23 +1417,23 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1417
1417
|
});
|
|
1418
1418
|
};
|
|
1419
1419
|
Gs2FormationRestClient.prototype.describeForms = function (request) {
|
|
1420
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1421
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form')
|
|
1420
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1421
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form')
|
|
1422
1422
|
.replace('{service}', 'formation')
|
|
1423
1423
|
.replace('{region}', this.session.region)
|
|
1424
|
-
.replace('{namespaceName}', String((
|
|
1425
|
-
.replace('{moldModelName}', String((
|
|
1424
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1425
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1426
1426
|
var headers = this.createAuthorizedHeaders();
|
|
1427
1427
|
if (request.getRequestId()) {
|
|
1428
1428
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1429
1429
|
}
|
|
1430
1430
|
if (request.getAccessToken()) {
|
|
1431
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1431
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1432
1432
|
}
|
|
1433
1433
|
var params = {
|
|
1434
|
-
'contextStack': (
|
|
1435
|
-
'pageToken': String((
|
|
1436
|
-
'limit': String((
|
|
1434
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1435
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1436
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1437
1437
|
};
|
|
1438
1438
|
return axios_1.default.get(url, {
|
|
1439
1439
|
params: params,
|
|
@@ -1445,24 +1445,24 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1445
1445
|
});
|
|
1446
1446
|
};
|
|
1447
1447
|
Gs2FormationRestClient.prototype.describeFormsByUserId = function (request) {
|
|
1448
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1449
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form')
|
|
1448
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1449
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form')
|
|
1450
1450
|
.replace('{service}', 'formation')
|
|
1451
1451
|
.replace('{region}', this.session.region)
|
|
1452
|
-
.replace('{namespaceName}', String((
|
|
1453
|
-
.replace('{moldModelName}', String((
|
|
1454
|
-
.replace('{userId}', String((
|
|
1452
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1453
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1454
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1455
1455
|
var headers = this.createAuthorizedHeaders();
|
|
1456
1456
|
if (request.getRequestId()) {
|
|
1457
1457
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1458
1458
|
}
|
|
1459
1459
|
if (request.getTimeOffsetToken()) {
|
|
1460
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1460
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1461
1461
|
}
|
|
1462
1462
|
var params = {
|
|
1463
|
-
'contextStack': (
|
|
1464
|
-
'pageToken': String((
|
|
1465
|
-
'limit': String((
|
|
1463
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1464
|
+
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
1465
|
+
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
1466
1466
|
};
|
|
1467
1467
|
return axios_1.default.get(url, {
|
|
1468
1468
|
params: params,
|
|
@@ -1474,22 +1474,22 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1474
1474
|
});
|
|
1475
1475
|
};
|
|
1476
1476
|
Gs2FormationRestClient.prototype.getForm = function (request) {
|
|
1477
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1478
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form/{index}')
|
|
1477
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1478
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form/{index}')
|
|
1479
1479
|
.replace('{service}', 'formation')
|
|
1480
1480
|
.replace('{region}', this.session.region)
|
|
1481
|
-
.replace('{namespaceName}', String((
|
|
1482
|
-
.replace('{moldModelName}', String((
|
|
1483
|
-
.replace('{index}', String((
|
|
1481
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1482
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1483
|
+
.replace('{index}', String((_f = request.getIndex()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getIndex()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1484
1484
|
var headers = this.createAuthorizedHeaders();
|
|
1485
1485
|
if (request.getRequestId()) {
|
|
1486
1486
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1487
1487
|
}
|
|
1488
1488
|
if (request.getAccessToken()) {
|
|
1489
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1489
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1490
1490
|
}
|
|
1491
1491
|
var params = {
|
|
1492
|
-
'contextStack': (
|
|
1492
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1493
1493
|
};
|
|
1494
1494
|
return axios_1.default.get(url, {
|
|
1495
1495
|
params: params,
|
|
@@ -1501,23 +1501,23 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1501
1501
|
});
|
|
1502
1502
|
};
|
|
1503
1503
|
Gs2FormationRestClient.prototype.getFormByUserId = function (request) {
|
|
1504
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1505
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form/{index}')
|
|
1504
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1505
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form/{index}')
|
|
1506
1506
|
.replace('{service}', 'formation')
|
|
1507
1507
|
.replace('{region}', this.session.region)
|
|
1508
|
-
.replace('{namespaceName}', String((
|
|
1509
|
-
.replace('{userId}', String((
|
|
1510
|
-
.replace('{moldModelName}', String((
|
|
1511
|
-
.replace('{index}', String((
|
|
1508
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1509
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1510
|
+
.replace('{moldModelName}', String((_f = request.getMoldModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMoldModelName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1511
|
+
.replace('{index}', String((_h = request.getIndex()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getIndex()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1512
1512
|
var headers = this.createAuthorizedHeaders();
|
|
1513
1513
|
if (request.getRequestId()) {
|
|
1514
1514
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1515
1515
|
}
|
|
1516
1516
|
if (request.getTimeOffsetToken()) {
|
|
1517
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1517
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
1518
1518
|
}
|
|
1519
1519
|
var params = {
|
|
1520
|
-
'contextStack': (
|
|
1520
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1521
1521
|
};
|
|
1522
1522
|
return axios_1.default.get(url, {
|
|
1523
1523
|
params: params,
|
|
@@ -1529,23 +1529,23 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1529
1529
|
});
|
|
1530
1530
|
};
|
|
1531
1531
|
Gs2FormationRestClient.prototype.getFormWithSignature = function (request) {
|
|
1532
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1533
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form/{index}/signature')
|
|
1532
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1533
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form/{index}/signature')
|
|
1534
1534
|
.replace('{service}', 'formation')
|
|
1535
1535
|
.replace('{region}', this.session.region)
|
|
1536
|
-
.replace('{namespaceName}', String((
|
|
1537
|
-
.replace('{moldModelName}', String((
|
|
1538
|
-
.replace('{index}', String((
|
|
1536
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1537
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1538
|
+
.replace('{index}', String((_f = request.getIndex()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getIndex()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1539
1539
|
var headers = this.createAuthorizedHeaders();
|
|
1540
1540
|
if (request.getRequestId()) {
|
|
1541
1541
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1542
1542
|
}
|
|
1543
1543
|
if (request.getAccessToken()) {
|
|
1544
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1544
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1545
1545
|
}
|
|
1546
1546
|
var params = {
|
|
1547
|
-
'contextStack': (
|
|
1548
|
-
'keyId': String((
|
|
1547
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1548
|
+
'keyId': String((_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null),
|
|
1549
1549
|
};
|
|
1550
1550
|
return axios_1.default.get(url, {
|
|
1551
1551
|
params: params,
|
|
@@ -1557,24 +1557,24 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1557
1557
|
});
|
|
1558
1558
|
};
|
|
1559
1559
|
Gs2FormationRestClient.prototype.getFormWithSignatureByUserId = function (request) {
|
|
1560
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1561
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form/{index}/signature')
|
|
1560
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1561
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form/{index}/signature')
|
|
1562
1562
|
.replace('{service}', 'formation')
|
|
1563
1563
|
.replace('{region}', this.session.region)
|
|
1564
|
-
.replace('{namespaceName}', String((
|
|
1565
|
-
.replace('{userId}', String((
|
|
1566
|
-
.replace('{moldModelName}', String((
|
|
1567
|
-
.replace('{index}', String((
|
|
1564
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1565
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1566
|
+
.replace('{moldModelName}', String((_f = request.getMoldModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMoldModelName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1567
|
+
.replace('{index}', String((_h = request.getIndex()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getIndex()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1568
1568
|
var headers = this.createAuthorizedHeaders();
|
|
1569
1569
|
if (request.getRequestId()) {
|
|
1570
1570
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1571
1571
|
}
|
|
1572
1572
|
if (request.getTimeOffsetToken()) {
|
|
1573
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1573
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
1574
1574
|
}
|
|
1575
1575
|
var params = {
|
|
1576
|
-
'contextStack': (
|
|
1577
|
-
'keyId': String((
|
|
1576
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1577
|
+
'keyId': String((_m = request.getKeyId()) !== null && _m !== void 0 ? _m : null),
|
|
1578
1578
|
};
|
|
1579
1579
|
return axios_1.default.get(url, {
|
|
1580
1580
|
params: params,
|
|
@@ -1586,26 +1586,26 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1586
1586
|
});
|
|
1587
1587
|
};
|
|
1588
1588
|
Gs2FormationRestClient.prototype.setForm = function (request) {
|
|
1589
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1590
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form/{index}/raw')
|
|
1589
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1590
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form/{index}/raw')
|
|
1591
1591
|
.replace('{service}', 'formation')
|
|
1592
1592
|
.replace('{region}', this.session.region)
|
|
1593
|
-
.replace('{namespaceName}', String((
|
|
1594
|
-
.replace('{moldModelName}', String((
|
|
1595
|
-
.replace('{index}', String((
|
|
1593
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1594
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1595
|
+
.replace('{index}', String((_f = request.getIndex()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getIndex()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1596
1596
|
var headers = this.createAuthorizedHeaders();
|
|
1597
1597
|
if (request.getRequestId()) {
|
|
1598
1598
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1599
1599
|
}
|
|
1600
1600
|
if (request.getAccessToken()) {
|
|
1601
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1601
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1602
1602
|
}
|
|
1603
1603
|
if (request.getDuplicationAvoider()) {
|
|
1604
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1604
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1605
1605
|
}
|
|
1606
1606
|
var body = {
|
|
1607
|
-
'contextStack': (
|
|
1608
|
-
'slots': (
|
|
1607
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1608
|
+
'slots': (_m = (_l = request.getSlots()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
1609
1609
|
};
|
|
1610
1610
|
return axios_1.default.put(url, body, {
|
|
1611
1611
|
headers: headers,
|
|
@@ -1621,27 +1621,27 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1621
1621
|
});
|
|
1622
1622
|
};
|
|
1623
1623
|
Gs2FormationRestClient.prototype.setFormByUserId = function (request) {
|
|
1624
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1625
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form/{index}')
|
|
1624
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1625
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form/{index}')
|
|
1626
1626
|
.replace('{service}', 'formation')
|
|
1627
1627
|
.replace('{region}', this.session.region)
|
|
1628
|
-
.replace('{namespaceName}', String((
|
|
1629
|
-
.replace('{userId}', String((
|
|
1630
|
-
.replace('{moldModelName}', String((
|
|
1631
|
-
.replace('{index}', String((
|
|
1628
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1629
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1630
|
+
.replace('{moldModelName}', String((_f = request.getMoldModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMoldModelName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1631
|
+
.replace('{index}', String((_h = request.getIndex()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getIndex()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1632
1632
|
var headers = this.createAuthorizedHeaders();
|
|
1633
1633
|
if (request.getRequestId()) {
|
|
1634
1634
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1635
1635
|
}
|
|
1636
1636
|
if (request.getDuplicationAvoider()) {
|
|
1637
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1637
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1638
1638
|
}
|
|
1639
1639
|
if (request.getTimeOffsetToken()) {
|
|
1640
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1640
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1641
1641
|
}
|
|
1642
1642
|
var body = {
|
|
1643
|
-
'contextStack': (
|
|
1644
|
-
'slots': (
|
|
1643
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1644
|
+
'slots': (_p = (_o = request.getSlots()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
1645
1645
|
};
|
|
1646
1646
|
return axios_1.default.put(url, body, {
|
|
1647
1647
|
headers: headers,
|
|
@@ -1657,27 +1657,27 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1657
1657
|
});
|
|
1658
1658
|
};
|
|
1659
1659
|
Gs2FormationRestClient.prototype.setFormWithSignature = function (request) {
|
|
1660
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1661
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form/{index}')
|
|
1660
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1661
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form/{index}')
|
|
1662
1662
|
.replace('{service}', 'formation')
|
|
1663
1663
|
.replace('{region}', this.session.region)
|
|
1664
|
-
.replace('{namespaceName}', String((
|
|
1665
|
-
.replace('{moldModelName}', String((
|
|
1666
|
-
.replace('{index}', String((
|
|
1664
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1665
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1666
|
+
.replace('{index}', String((_f = request.getIndex()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getIndex()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1667
1667
|
var headers = this.createAuthorizedHeaders();
|
|
1668
1668
|
if (request.getRequestId()) {
|
|
1669
1669
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1670
1670
|
}
|
|
1671
1671
|
if (request.getAccessToken()) {
|
|
1672
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1672
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1673
1673
|
}
|
|
1674
1674
|
if (request.getDuplicationAvoider()) {
|
|
1675
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1675
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1676
1676
|
}
|
|
1677
1677
|
var body = {
|
|
1678
|
-
'contextStack': (
|
|
1679
|
-
'slots': (
|
|
1680
|
-
'keyId': (
|
|
1678
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1679
|
+
'slots': (_m = (_l = request.getSlots()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
1680
|
+
'keyId': (_o = request.getKeyId()) !== null && _o !== void 0 ? _o : null,
|
|
1681
1681
|
};
|
|
1682
1682
|
return axios_1.default.put(url, body, {
|
|
1683
1683
|
headers: headers,
|
|
@@ -1693,28 +1693,28 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1693
1693
|
});
|
|
1694
1694
|
};
|
|
1695
1695
|
Gs2FormationRestClient.prototype.acquireActionsToFormProperties = function (request) {
|
|
1696
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
1697
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form/{index}/stamp/delegate')
|
|
1696
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
1697
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form/{index}/stamp/delegate')
|
|
1698
1698
|
.replace('{service}', 'formation')
|
|
1699
1699
|
.replace('{region}', this.session.region)
|
|
1700
|
-
.replace('{namespaceName}', String((
|
|
1701
|
-
.replace('{userId}', String((
|
|
1702
|
-
.replace('{moldModelName}', String((
|
|
1703
|
-
.replace('{index}', String((
|
|
1700
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1701
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1702
|
+
.replace('{moldModelName}', String((_f = request.getMoldModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMoldModelName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1703
|
+
.replace('{index}', String((_h = request.getIndex()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getIndex()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1704
1704
|
var headers = this.createAuthorizedHeaders();
|
|
1705
1705
|
if (request.getRequestId()) {
|
|
1706
1706
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1707
1707
|
}
|
|
1708
1708
|
if (request.getDuplicationAvoider()) {
|
|
1709
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1709
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1710
1710
|
}
|
|
1711
1711
|
if (request.getTimeOffsetToken()) {
|
|
1712
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1712
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1713
1713
|
}
|
|
1714
1714
|
var body = {
|
|
1715
|
-
'contextStack': (
|
|
1716
|
-
'acquireAction': (
|
|
1717
|
-
'config': (
|
|
1715
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1716
|
+
'acquireAction': (_p = (_o = request.getAcquireAction()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
1717
|
+
'config': (_r = (_q = request.getConfig()) === null || _q === void 0 ? void 0 : _q.map(function (item) { return item.toDict(); })) !== null && _r !== void 0 ? _r : null,
|
|
1718
1718
|
};
|
|
1719
1719
|
return axios_1.default.post(url, body, {
|
|
1720
1720
|
headers: headers,
|
|
@@ -1730,25 +1730,25 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1730
1730
|
});
|
|
1731
1731
|
};
|
|
1732
1732
|
Gs2FormationRestClient.prototype.deleteForm = function (request) {
|
|
1733
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1734
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form/{index}')
|
|
1733
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1734
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/mold/{moldModelName}/form/{index}')
|
|
1735
1735
|
.replace('{service}', 'formation')
|
|
1736
1736
|
.replace('{region}', this.session.region)
|
|
1737
|
-
.replace('{namespaceName}', String((
|
|
1738
|
-
.replace('{moldModelName}', String((
|
|
1739
|
-
.replace('{index}', String((
|
|
1737
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1738
|
+
.replace('{moldModelName}', String((_d = request.getMoldModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getMoldModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1739
|
+
.replace('{index}', String((_f = request.getIndex()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getIndex()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1740
1740
|
var headers = this.createAuthorizedHeaders();
|
|
1741
1741
|
if (request.getRequestId()) {
|
|
1742
1742
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1743
1743
|
}
|
|
1744
1744
|
if (request.getAccessToken()) {
|
|
1745
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1745
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1746
1746
|
}
|
|
1747
1747
|
if (request.getDuplicationAvoider()) {
|
|
1748
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1748
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1749
1749
|
}
|
|
1750
1750
|
var params = {
|
|
1751
|
-
'contextStack': (
|
|
1751
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1752
1752
|
};
|
|
1753
1753
|
return axios_1.default.delete(url, {
|
|
1754
1754
|
params: params,
|
|
@@ -1760,26 +1760,26 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1760
1760
|
});
|
|
1761
1761
|
};
|
|
1762
1762
|
Gs2FormationRestClient.prototype.deleteFormByUserId = function (request) {
|
|
1763
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1764
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form/{index}')
|
|
1763
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1764
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/mold/{moldModelName}/form/{index}')
|
|
1765
1765
|
.replace('{service}', 'formation')
|
|
1766
1766
|
.replace('{region}', this.session.region)
|
|
1767
|
-
.replace('{namespaceName}', String((
|
|
1768
|
-
.replace('{userId}', String((
|
|
1769
|
-
.replace('{moldModelName}', String((
|
|
1770
|
-
.replace('{index}', String((
|
|
1767
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1768
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1769
|
+
.replace('{moldModelName}', String((_f = request.getMoldModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMoldModelName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1770
|
+
.replace('{index}', String((_h = request.getIndex()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getIndex()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1771
1771
|
var headers = this.createAuthorizedHeaders();
|
|
1772
1772
|
if (request.getRequestId()) {
|
|
1773
1773
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1774
1774
|
}
|
|
1775
1775
|
if (request.getDuplicationAvoider()) {
|
|
1776
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1776
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1777
1777
|
}
|
|
1778
1778
|
if (request.getTimeOffsetToken()) {
|
|
1779
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1779
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1780
1780
|
}
|
|
1781
1781
|
var params = {
|
|
1782
|
-
'contextStack': (
|
|
1782
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1783
1783
|
};
|
|
1784
1784
|
return axios_1.default.delete(url, {
|
|
1785
1785
|
params: params,
|
|
@@ -1791,8 +1791,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1791
1791
|
});
|
|
1792
1792
|
};
|
|
1793
1793
|
Gs2FormationRestClient.prototype.acquireActionToFormPropertiesByStampSheet = function (request) {
|
|
1794
|
-
var _a, _b, _c;
|
|
1795
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/form/acquire')
|
|
1794
|
+
var _a, _b, _c, _d;
|
|
1795
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/form/acquire')
|
|
1796
1796
|
.replace('{service}', 'formation')
|
|
1797
1797
|
.replace('{region}', this.session.region);
|
|
1798
1798
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1800,9 +1800,9 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1800
1800
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1801
1801
|
}
|
|
1802
1802
|
var body = {
|
|
1803
|
-
'contextStack': (
|
|
1804
|
-
'stampSheet': (
|
|
1805
|
-
'keyId': (
|
|
1803
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1804
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1805
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1806
1806
|
};
|
|
1807
1807
|
return axios_1.default.post(url, body, {
|
|
1808
1808
|
headers: headers,
|
|
@@ -1818,8 +1818,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1818
1818
|
});
|
|
1819
1819
|
};
|
|
1820
1820
|
Gs2FormationRestClient.prototype.setFormByStampSheet = function (request) {
|
|
1821
|
-
var _a, _b, _c;
|
|
1822
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/form/set')
|
|
1821
|
+
var _a, _b, _c, _d;
|
|
1822
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/form/set')
|
|
1823
1823
|
.replace('{service}', 'formation')
|
|
1824
1824
|
.replace('{region}', this.session.region);
|
|
1825
1825
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1827,9 +1827,9 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1827
1827
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1828
1828
|
}
|
|
1829
1829
|
var body = {
|
|
1830
|
-
'contextStack': (
|
|
1831
|
-
'stampSheet': (
|
|
1832
|
-
'keyId': (
|
|
1830
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1831
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1832
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1833
1833
|
};
|
|
1834
1834
|
return axios_1.default.post(url, body, {
|
|
1835
1835
|
headers: headers,
|
|
@@ -1845,23 +1845,23 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1845
1845
|
});
|
|
1846
1846
|
};
|
|
1847
1847
|
Gs2FormationRestClient.prototype.describePropertyForms = function (request) {
|
|
1848
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1849
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form')
|
|
1848
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1849
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form')
|
|
1850
1850
|
.replace('{service}', 'formation')
|
|
1851
1851
|
.replace('{region}', this.session.region)
|
|
1852
|
-
.replace('{namespaceName}', String((
|
|
1853
|
-
.replace('{propertyFormModelName}', String((
|
|
1852
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1853
|
+
.replace('{propertyFormModelName}', String((_d = request.getPropertyFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyFormModelName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1854
1854
|
var headers = this.createAuthorizedHeaders();
|
|
1855
1855
|
if (request.getRequestId()) {
|
|
1856
1856
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1857
1857
|
}
|
|
1858
1858
|
if (request.getAccessToken()) {
|
|
1859
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1859
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1860
1860
|
}
|
|
1861
1861
|
var params = {
|
|
1862
|
-
'contextStack': (
|
|
1863
|
-
'pageToken': String((
|
|
1864
|
-
'limit': String((
|
|
1862
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1863
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1864
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1865
1865
|
};
|
|
1866
1866
|
return axios_1.default.get(url, {
|
|
1867
1867
|
params: params,
|
|
@@ -1873,24 +1873,24 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1873
1873
|
});
|
|
1874
1874
|
};
|
|
1875
1875
|
Gs2FormationRestClient.prototype.describePropertyFormsByUserId = function (request) {
|
|
1876
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1877
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form')
|
|
1876
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1877
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form')
|
|
1878
1878
|
.replace('{service}', 'formation')
|
|
1879
1879
|
.replace('{region}', this.session.region)
|
|
1880
|
-
.replace('{namespaceName}', String((
|
|
1881
|
-
.replace('{userId}', String((
|
|
1882
|
-
.replace('{propertyFormModelName}', String((
|
|
1880
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1881
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1882
|
+
.replace('{propertyFormModelName}', String((_f = request.getPropertyFormModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyFormModelName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1883
1883
|
var headers = this.createAuthorizedHeaders();
|
|
1884
1884
|
if (request.getRequestId()) {
|
|
1885
1885
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1886
1886
|
}
|
|
1887
1887
|
if (request.getTimeOffsetToken()) {
|
|
1888
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1888
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1889
1889
|
}
|
|
1890
1890
|
var params = {
|
|
1891
|
-
'contextStack': (
|
|
1892
|
-
'pageToken': String((
|
|
1893
|
-
'limit': String((
|
|
1891
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1892
|
+
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
1893
|
+
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
1894
1894
|
};
|
|
1895
1895
|
return axios_1.default.get(url, {
|
|
1896
1896
|
params: params,
|
|
@@ -1902,22 +1902,22 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1902
1902
|
});
|
|
1903
1903
|
};
|
|
1904
1904
|
Gs2FormationRestClient.prototype.getPropertyForm = function (request) {
|
|
1905
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1906
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form/{propertyId}')
|
|
1905
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1906
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form/{propertyId}')
|
|
1907
1907
|
.replace('{service}', 'formation')
|
|
1908
1908
|
.replace('{region}', this.session.region)
|
|
1909
|
-
.replace('{namespaceName}', String((
|
|
1910
|
-
.replace('{propertyFormModelName}', String((
|
|
1911
|
-
.replace('{propertyId}', String((
|
|
1909
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1910
|
+
.replace('{propertyFormModelName}', String((_d = request.getPropertyFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyFormModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1911
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1912
1912
|
var headers = this.createAuthorizedHeaders();
|
|
1913
1913
|
if (request.getRequestId()) {
|
|
1914
1914
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1915
1915
|
}
|
|
1916
1916
|
if (request.getAccessToken()) {
|
|
1917
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1917
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1918
1918
|
}
|
|
1919
1919
|
var params = {
|
|
1920
|
-
'contextStack': (
|
|
1920
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1921
1921
|
};
|
|
1922
1922
|
return axios_1.default.get(url, {
|
|
1923
1923
|
params: params,
|
|
@@ -1929,23 +1929,23 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1929
1929
|
});
|
|
1930
1930
|
};
|
|
1931
1931
|
Gs2FormationRestClient.prototype.getPropertyFormByUserId = function (request) {
|
|
1932
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1933
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form/{propertyId}')
|
|
1932
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1933
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form/{propertyId}')
|
|
1934
1934
|
.replace('{service}', 'formation')
|
|
1935
1935
|
.replace('{region}', this.session.region)
|
|
1936
|
-
.replace('{namespaceName}', String((
|
|
1937
|
-
.replace('{userId}', String((
|
|
1938
|
-
.replace('{propertyFormModelName}', String((
|
|
1939
|
-
.replace('{propertyId}', String((
|
|
1936
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1937
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1938
|
+
.replace('{propertyFormModelName}', String((_f = request.getPropertyFormModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyFormModelName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1939
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1940
1940
|
var headers = this.createAuthorizedHeaders();
|
|
1941
1941
|
if (request.getRequestId()) {
|
|
1942
1942
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1943
1943
|
}
|
|
1944
1944
|
if (request.getTimeOffsetToken()) {
|
|
1945
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1945
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
1946
1946
|
}
|
|
1947
1947
|
var params = {
|
|
1948
|
-
'contextStack': (
|
|
1948
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1949
1949
|
};
|
|
1950
1950
|
return axios_1.default.get(url, {
|
|
1951
1951
|
params: params,
|
|
@@ -1957,23 +1957,23 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1957
1957
|
});
|
|
1958
1958
|
};
|
|
1959
1959
|
Gs2FormationRestClient.prototype.getPropertyFormWithSignature = function (request) {
|
|
1960
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1961
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form/{propertyId}/signature')
|
|
1960
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1961
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form/{propertyId}/signature')
|
|
1962
1962
|
.replace('{service}', 'formation')
|
|
1963
1963
|
.replace('{region}', this.session.region)
|
|
1964
|
-
.replace('{namespaceName}', String((
|
|
1965
|
-
.replace('{propertyFormModelName}', String((
|
|
1966
|
-
.replace('{propertyId}', String((
|
|
1964
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1965
|
+
.replace('{propertyFormModelName}', String((_d = request.getPropertyFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyFormModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1966
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1967
1967
|
var headers = this.createAuthorizedHeaders();
|
|
1968
1968
|
if (request.getRequestId()) {
|
|
1969
1969
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1970
1970
|
}
|
|
1971
1971
|
if (request.getAccessToken()) {
|
|
1972
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1972
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1973
1973
|
}
|
|
1974
1974
|
var params = {
|
|
1975
|
-
'contextStack': (
|
|
1976
|
-
'keyId': String((
|
|
1975
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1976
|
+
'keyId': String((_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null),
|
|
1977
1977
|
};
|
|
1978
1978
|
return axios_1.default.get(url, {
|
|
1979
1979
|
params: params,
|
|
@@ -1985,24 +1985,24 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1985
1985
|
});
|
|
1986
1986
|
};
|
|
1987
1987
|
Gs2FormationRestClient.prototype.getPropertyFormWithSignatureByUserId = function (request) {
|
|
1988
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1989
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form/{propertyId}/signature')
|
|
1988
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1989
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form/{propertyId}/signature')
|
|
1990
1990
|
.replace('{service}', 'formation')
|
|
1991
1991
|
.replace('{region}', this.session.region)
|
|
1992
|
-
.replace('{namespaceName}', String((
|
|
1993
|
-
.replace('{userId}', String((
|
|
1994
|
-
.replace('{propertyFormModelName}', String((
|
|
1995
|
-
.replace('{propertyId}', String((
|
|
1992
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1993
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1994
|
+
.replace('{propertyFormModelName}', String((_f = request.getPropertyFormModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyFormModelName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1995
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1996
1996
|
var headers = this.createAuthorizedHeaders();
|
|
1997
1997
|
if (request.getRequestId()) {
|
|
1998
1998
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1999
1999
|
}
|
|
2000
2000
|
if (request.getTimeOffsetToken()) {
|
|
2001
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2001
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
2002
2002
|
}
|
|
2003
2003
|
var params = {
|
|
2004
|
-
'contextStack': (
|
|
2005
|
-
'keyId': String((
|
|
2004
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2005
|
+
'keyId': String((_m = request.getKeyId()) !== null && _m !== void 0 ? _m : null),
|
|
2006
2006
|
};
|
|
2007
2007
|
return axios_1.default.get(url, {
|
|
2008
2008
|
params: params,
|
|
@@ -2014,26 +2014,26 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
2014
2014
|
});
|
|
2015
2015
|
};
|
|
2016
2016
|
Gs2FormationRestClient.prototype.setPropertyForm = function (request) {
|
|
2017
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2018
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form/{propertyId}/raw')
|
|
2017
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2018
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form/{propertyId}/raw')
|
|
2019
2019
|
.replace('{service}', 'formation')
|
|
2020
2020
|
.replace('{region}', this.session.region)
|
|
2021
|
-
.replace('{namespaceName}', String((
|
|
2022
|
-
.replace('{propertyFormModelName}', String((
|
|
2023
|
-
.replace('{propertyId}', String((
|
|
2021
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2022
|
+
.replace('{propertyFormModelName}', String((_d = request.getPropertyFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyFormModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2023
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2024
2024
|
var headers = this.createAuthorizedHeaders();
|
|
2025
2025
|
if (request.getRequestId()) {
|
|
2026
2026
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2027
2027
|
}
|
|
2028
2028
|
if (request.getAccessToken()) {
|
|
2029
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2029
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
2030
2030
|
}
|
|
2031
2031
|
if (request.getDuplicationAvoider()) {
|
|
2032
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2032
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
2033
2033
|
}
|
|
2034
2034
|
var body = {
|
|
2035
|
-
'contextStack': (
|
|
2036
|
-
'slots': (
|
|
2035
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2036
|
+
'slots': (_m = (_l = request.getSlots()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
2037
2037
|
};
|
|
2038
2038
|
return axios_1.default.put(url, body, {
|
|
2039
2039
|
headers: headers,
|
|
@@ -2049,27 +2049,27 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
2049
2049
|
});
|
|
2050
2050
|
};
|
|
2051
2051
|
Gs2FormationRestClient.prototype.setPropertyFormByUserId = function (request) {
|
|
2052
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2053
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form/{propertyId}')
|
|
2052
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2053
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form/{propertyId}')
|
|
2054
2054
|
.replace('{service}', 'formation')
|
|
2055
2055
|
.replace('{region}', this.session.region)
|
|
2056
|
-
.replace('{namespaceName}', String((
|
|
2057
|
-
.replace('{userId}', String((
|
|
2058
|
-
.replace('{propertyFormModelName}', String((
|
|
2059
|
-
.replace('{propertyId}', String((
|
|
2056
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2057
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2058
|
+
.replace('{propertyFormModelName}', String((_f = request.getPropertyFormModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyFormModelName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2059
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2060
2060
|
var headers = this.createAuthorizedHeaders();
|
|
2061
2061
|
if (request.getRequestId()) {
|
|
2062
2062
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2063
2063
|
}
|
|
2064
2064
|
if (request.getDuplicationAvoider()) {
|
|
2065
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2065
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
2066
2066
|
}
|
|
2067
2067
|
if (request.getTimeOffsetToken()) {
|
|
2068
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2068
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
2069
2069
|
}
|
|
2070
2070
|
var body = {
|
|
2071
|
-
'contextStack': (
|
|
2072
|
-
'slots': (
|
|
2071
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2072
|
+
'slots': (_p = (_o = request.getSlots()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
2073
2073
|
};
|
|
2074
2074
|
return axios_1.default.put(url, body, {
|
|
2075
2075
|
headers: headers,
|
|
@@ -2085,27 +2085,27 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
2085
2085
|
});
|
|
2086
2086
|
};
|
|
2087
2087
|
Gs2FormationRestClient.prototype.setPropertyFormWithSignature = function (request) {
|
|
2088
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2089
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form/{propertyId}')
|
|
2088
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2089
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form/{propertyId}')
|
|
2090
2090
|
.replace('{service}', 'formation')
|
|
2091
2091
|
.replace('{region}', this.session.region)
|
|
2092
|
-
.replace('{namespaceName}', String((
|
|
2093
|
-
.replace('{propertyFormModelName}', String((
|
|
2094
|
-
.replace('{propertyId}', String((
|
|
2092
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2093
|
+
.replace('{propertyFormModelName}', String((_d = request.getPropertyFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyFormModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2094
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2095
2095
|
var headers = this.createAuthorizedHeaders();
|
|
2096
2096
|
if (request.getRequestId()) {
|
|
2097
2097
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2098
2098
|
}
|
|
2099
2099
|
if (request.getAccessToken()) {
|
|
2100
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2100
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
2101
2101
|
}
|
|
2102
2102
|
if (request.getDuplicationAvoider()) {
|
|
2103
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2103
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
2104
2104
|
}
|
|
2105
2105
|
var body = {
|
|
2106
|
-
'contextStack': (
|
|
2107
|
-
'slots': (
|
|
2108
|
-
'keyId': (
|
|
2106
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2107
|
+
'slots': (_m = (_l = request.getSlots()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
2108
|
+
'keyId': (_o = request.getKeyId()) !== null && _o !== void 0 ? _o : null,
|
|
2109
2109
|
};
|
|
2110
2110
|
return axios_1.default.put(url, body, {
|
|
2111
2111
|
headers: headers,
|
|
@@ -2121,28 +2121,28 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
2121
2121
|
});
|
|
2122
2122
|
};
|
|
2123
2123
|
Gs2FormationRestClient.prototype.acquireActionsToPropertyFormProperties = function (request) {
|
|
2124
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
2125
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form/{propertyId}/stamp/delegate')
|
|
2124
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
2125
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form/{propertyId}/stamp/delegate')
|
|
2126
2126
|
.replace('{service}', 'formation')
|
|
2127
2127
|
.replace('{region}', this.session.region)
|
|
2128
|
-
.replace('{namespaceName}', String((
|
|
2129
|
-
.replace('{userId}', String((
|
|
2130
|
-
.replace('{propertyFormModelName}', String((
|
|
2131
|
-
.replace('{propertyId}', String((
|
|
2128
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2129
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2130
|
+
.replace('{propertyFormModelName}', String((_f = request.getPropertyFormModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyFormModelName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2131
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2132
2132
|
var headers = this.createAuthorizedHeaders();
|
|
2133
2133
|
if (request.getRequestId()) {
|
|
2134
2134
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2135
2135
|
}
|
|
2136
2136
|
if (request.getDuplicationAvoider()) {
|
|
2137
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2137
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
2138
2138
|
}
|
|
2139
2139
|
if (request.getTimeOffsetToken()) {
|
|
2140
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2140
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
2141
2141
|
}
|
|
2142
2142
|
var body = {
|
|
2143
|
-
'contextStack': (
|
|
2144
|
-
'acquireAction': (
|
|
2145
|
-
'config': (
|
|
2143
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2144
|
+
'acquireAction': (_p = (_o = request.getAcquireAction()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
2145
|
+
'config': (_r = (_q = request.getConfig()) === null || _q === void 0 ? void 0 : _q.map(function (item) { return item.toDict(); })) !== null && _r !== void 0 ? _r : null,
|
|
2146
2146
|
};
|
|
2147
2147
|
return axios_1.default.post(url, body, {
|
|
2148
2148
|
headers: headers,
|
|
@@ -2158,25 +2158,25 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
2158
2158
|
});
|
|
2159
2159
|
};
|
|
2160
2160
|
Gs2FormationRestClient.prototype.deletePropertyForm = function (request) {
|
|
2161
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2162
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form/{propertyId}')
|
|
2161
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2162
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{propertyFormModelName}/form/{propertyId}')
|
|
2163
2163
|
.replace('{service}', 'formation')
|
|
2164
2164
|
.replace('{region}', this.session.region)
|
|
2165
|
-
.replace('{namespaceName}', String((
|
|
2166
|
-
.replace('{propertyFormModelName}', String((
|
|
2167
|
-
.replace('{propertyId}', String((
|
|
2165
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2166
|
+
.replace('{propertyFormModelName}', String((_d = request.getPropertyFormModelName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getPropertyFormModelName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2167
|
+
.replace('{propertyId}', String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
2168
2168
|
var headers = this.createAuthorizedHeaders();
|
|
2169
2169
|
if (request.getRequestId()) {
|
|
2170
2170
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2171
2171
|
}
|
|
2172
2172
|
if (request.getAccessToken()) {
|
|
2173
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2173
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
2174
2174
|
}
|
|
2175
2175
|
if (request.getDuplicationAvoider()) {
|
|
2176
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2176
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
2177
2177
|
}
|
|
2178
2178
|
var params = {
|
|
2179
|
-
'contextStack': (
|
|
2179
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2180
2180
|
};
|
|
2181
2181
|
return axios_1.default.delete(url, {
|
|
2182
2182
|
params: params,
|
|
@@ -2188,26 +2188,26 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
2188
2188
|
});
|
|
2189
2189
|
};
|
|
2190
2190
|
Gs2FormationRestClient.prototype.deletePropertyFormByUserId = function (request) {
|
|
2191
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2192
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form/{propertyId}')
|
|
2191
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2192
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{propertyFormModelName}/form/{propertyId}')
|
|
2193
2193
|
.replace('{service}', 'formation')
|
|
2194
2194
|
.replace('{region}', this.session.region)
|
|
2195
|
-
.replace('{namespaceName}', String((
|
|
2196
|
-
.replace('{userId}', String((
|
|
2197
|
-
.replace('{propertyFormModelName}', String((
|
|
2198
|
-
.replace('{propertyId}', String((
|
|
2195
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
2196
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
2197
|
+
.replace('{propertyFormModelName}', String((_f = request.getPropertyFormModelName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getPropertyFormModelName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
2198
|
+
.replace('{propertyId}', String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getPropertyId()) !== null && _j !== void 0 ? _j : 'null'));
|
|
2199
2199
|
var headers = this.createAuthorizedHeaders();
|
|
2200
2200
|
if (request.getRequestId()) {
|
|
2201
2201
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2202
2202
|
}
|
|
2203
2203
|
if (request.getDuplicationAvoider()) {
|
|
2204
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2204
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
2205
2205
|
}
|
|
2206
2206
|
if (request.getTimeOffsetToken()) {
|
|
2207
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
2207
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
2208
2208
|
}
|
|
2209
2209
|
var params = {
|
|
2210
|
-
'contextStack': (
|
|
2210
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2211
2211
|
};
|
|
2212
2212
|
return axios_1.default.delete(url, {
|
|
2213
2213
|
params: params,
|
|
@@ -2219,8 +2219,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
2219
2219
|
});
|
|
2220
2220
|
};
|
|
2221
2221
|
Gs2FormationRestClient.prototype.acquireActionToPropertyFormPropertiesByStampSheet = function (request) {
|
|
2222
|
-
var _a, _b, _c;
|
|
2223
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/property/form/acquire')
|
|
2222
|
+
var _a, _b, _c, _d;
|
|
2223
|
+
var url = ((_a = Gs2FormationRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/property/form/acquire')
|
|
2224
2224
|
.replace('{service}', 'formation')
|
|
2225
2225
|
.replace('{region}', this.session.region);
|
|
2226
2226
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -2228,9 +2228,9 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
2228
2228
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2229
2229
|
}
|
|
2230
2230
|
var body = {
|
|
2231
|
-
'contextStack': (
|
|
2232
|
-
'stampSheet': (
|
|
2233
|
-
'keyId': (
|
|
2231
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
2232
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2233
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2234
2234
|
};
|
|
2235
2235
|
return axios_1.default.post(url, body, {
|
|
2236
2236
|
headers: headers,
|
|
@@ -2245,6 +2245,7 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
2245
2245
|
}
|
|
2246
2246
|
});
|
|
2247
2247
|
};
|
|
2248
|
+
Gs2FormationRestClient.ENDPOINT_HOST = null;
|
|
2248
2249
|
return Gs2FormationRestClient;
|
|
2249
2250
|
}(AbstractGs2RestClient_1.default));
|
|
2250
2251
|
exports.default = Gs2FormationRestClient;
|