gs2 1.3.66 → 1.3.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/formation/model/PropertyForm.d.ts +46 -0
- package/formation/model/PropertyForm.js +249 -0
- package/formation/model/PropertyForm.js.map +1 -0
- package/formation/model/PropertyForm.ts +269 -0
- package/formation/model/index.d.ts +2 -1
- package/formation/model/index.js +3 -1
- package/formation/model/index.js.map +1 -1
- package/formation/model/index.ts +2 -0
- package/formation/request/AcquireActionToPropertyFormPropertiesByStampSheetRequest.d.ts +25 -0
- package/formation/request/AcquireActionToPropertyFormPropertiesByStampSheetRequest.js +83 -0
- package/formation/request/AcquireActionToPropertyFormPropertiesByStampSheetRequest.js.map +1 -0
- package/formation/request/AcquireActionToPropertyFormPropertiesByStampSheetRequest.ts +90 -0
- package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.d.ts +46 -0
- package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.js +160 -0
- package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.js.map +1 -0
- package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.ts +169 -0
- package/formation/request/DeletePropertyFormByUserIdRequest.d.ts +37 -0
- package/formation/request/DeletePropertyFormByUserIdRequest.js +123 -0
- package/formation/request/DeletePropertyFormByUserIdRequest.js.map +1 -0
- package/formation/request/DeletePropertyFormByUserIdRequest.ts +133 -0
- package/formation/request/DeletePropertyFormRequest.d.ts +33 -0
- package/formation/request/DeletePropertyFormRequest.js +111 -0
- package/formation/request/DeletePropertyFormRequest.js.map +1 -0
- package/formation/request/DeletePropertyFormRequest.ts +118 -0
- package/formation/request/DescribeFormModelsRequest.d.ts +21 -0
- package/formation/request/DescribeFormModelsRequest.js +69 -0
- package/formation/request/DescribeFormModelsRequest.js.map +1 -0
- package/formation/request/DescribeFormModelsRequest.ts +76 -0
- package/formation/request/DescribePropertyFormsByUserIdRequest.d.ts +37 -0
- package/formation/request/DescribePropertyFormsByUserIdRequest.js +125 -0
- package/formation/request/DescribePropertyFormsByUserIdRequest.js.map +1 -0
- package/formation/request/DescribePropertyFormsByUserIdRequest.ts +132 -0
- package/formation/request/DescribePropertyFormsRequest.d.ts +37 -0
- package/formation/request/DescribePropertyFormsRequest.js +125 -0
- package/formation/request/DescribePropertyFormsRequest.js.map +1 -0
- package/formation/request/DescribePropertyFormsRequest.ts +132 -0
- package/formation/request/GetFormModelRequest.d.ts +25 -0
- package/formation/request/GetFormModelRequest.js +83 -0
- package/formation/request/GetFormModelRequest.js.map +1 -0
- package/formation/request/GetFormModelRequest.ts +90 -0
- package/formation/request/GetPropertyFormByUserIdRequest.d.ts +33 -0
- package/formation/request/GetPropertyFormByUserIdRequest.js +111 -0
- package/formation/request/GetPropertyFormByUserIdRequest.js.map +1 -0
- package/formation/request/GetPropertyFormByUserIdRequest.ts +118 -0
- package/formation/request/GetPropertyFormRequest.d.ts +33 -0
- package/formation/request/GetPropertyFormRequest.js +111 -0
- package/formation/request/GetPropertyFormRequest.js.map +1 -0
- package/formation/request/GetPropertyFormRequest.ts +118 -0
- package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.d.ts +37 -0
- package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.js +125 -0
- package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.js.map +1 -0
- package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.ts +132 -0
- package/formation/request/GetPropertyFormWithSignatureRequest.d.ts +37 -0
- package/formation/request/GetPropertyFormWithSignatureRequest.js +125 -0
- package/formation/request/GetPropertyFormWithSignatureRequest.js.map +1 -0
- package/formation/request/GetPropertyFormWithSignatureRequest.ts +132 -0
- package/formation/request/SetPropertyFormByUserIdRequest.d.ts +42 -0
- package/formation/request/SetPropertyFormByUserIdRequest.js +145 -0
- package/formation/request/SetPropertyFormByUserIdRequest.js.map +1 -0
- package/formation/request/SetPropertyFormByUserIdRequest.ts +155 -0
- package/formation/request/SetPropertyFormWithSignatureRequest.d.ts +42 -0
- package/formation/request/SetPropertyFormWithSignatureRequest.js +147 -0
- package/formation/request/SetPropertyFormWithSignatureRequest.js.map +1 -0
- package/formation/request/SetPropertyFormWithSignatureRequest.ts +154 -0
- package/formation/request/index.d.ts +15 -1
- package/formation/request/index.js +30 -1
- package/formation/request/index.js.map +1 -1
- package/formation/request/index.ts +28 -0
- package/formation/rest.d.ts +14 -0
- package/formation/rest.js +387 -0
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +443 -0
- package/formation/result/AcquireActionToPropertyFormPropertiesByStampSheetResult.d.ts +30 -0
- package/formation/result/AcquireActionToPropertyFormPropertiesByStampSheetResult.js +104 -0
- package/formation/result/AcquireActionToPropertyFormPropertiesByStampSheetResult.js.map +1 -0
- package/formation/result/AcquireActionToPropertyFormPropertiesByStampSheetResult.ts +116 -0
- package/formation/result/AcquireActionsToPropertyFormPropertiesResult.d.ts +30 -0
- package/formation/result/AcquireActionsToPropertyFormPropertiesResult.js +104 -0
- package/formation/result/AcquireActionsToPropertyFormPropertiesResult.js.map +1 -0
- package/formation/result/AcquireActionsToPropertyFormPropertiesResult.ts +116 -0
- package/formation/result/DeletePropertyFormByUserIdResult.d.ts +18 -0
- package/formation/result/DeletePropertyFormByUserIdResult.js +62 -0
- package/formation/result/DeletePropertyFormByUserIdResult.js.map +1 -0
- package/formation/result/DeletePropertyFormByUserIdResult.ts +65 -0
- package/formation/result/DeletePropertyFormResult.d.ts +18 -0
- package/formation/result/DeletePropertyFormResult.js +62 -0
- package/formation/result/DeletePropertyFormResult.js.map +1 -0
- package/formation/result/DeletePropertyFormResult.ts +65 -0
- package/formation/result/DescribeFormModelsResult.d.ts +14 -0
- package/formation/result/DescribeFormModelsResult.js +53 -0
- package/formation/result/DescribeFormModelsResult.js.map +1 -0
- package/formation/result/DescribeFormModelsResult.ts +56 -0
- package/formation/result/DescribePropertyFormsByUserIdResult.d.ts +18 -0
- package/formation/result/DescribePropertyFormsByUserIdResult.js +67 -0
- package/formation/result/DescribePropertyFormsByUserIdResult.js.map +1 -0
- package/formation/result/DescribePropertyFormsByUserIdResult.ts +73 -0
- package/formation/result/DescribePropertyFormsResult.d.ts +18 -0
- package/formation/result/DescribePropertyFormsResult.js +67 -0
- package/formation/result/DescribePropertyFormsResult.js.map +1 -0
- package/formation/result/DescribePropertyFormsResult.ts +73 -0
- package/formation/result/GetFormModelResult.d.ts +14 -0
- package/formation/result/GetFormModelResult.js +48 -0
- package/formation/result/GetFormModelResult.js.map +1 -0
- package/formation/result/GetFormModelResult.ts +48 -0
- package/formation/result/GetPropertyFormByUserIdResult.d.ts +18 -0
- package/formation/result/GetPropertyFormByUserIdResult.js +62 -0
- package/formation/result/GetPropertyFormByUserIdResult.js.map +1 -0
- package/formation/result/GetPropertyFormByUserIdResult.ts +65 -0
- package/formation/result/GetPropertyFormResult.d.ts +18 -0
- package/formation/result/GetPropertyFormResult.js +62 -0
- package/formation/result/GetPropertyFormResult.js.map +1 -0
- package/formation/result/GetPropertyFormResult.ts +65 -0
- package/formation/result/GetPropertyFormWithSignatureByUserIdResult.d.ts +26 -0
- package/formation/result/GetPropertyFormWithSignatureByUserIdResult.js +90 -0
- package/formation/result/GetPropertyFormWithSignatureByUserIdResult.js.map +1 -0
- package/formation/result/GetPropertyFormWithSignatureByUserIdResult.ts +99 -0
- package/formation/result/GetPropertyFormWithSignatureResult.d.ts +26 -0
- package/formation/result/GetPropertyFormWithSignatureResult.js +90 -0
- package/formation/result/GetPropertyFormWithSignatureResult.js.map +1 -0
- package/formation/result/GetPropertyFormWithSignatureResult.ts +99 -0
- package/formation/result/SetPropertyFormByUserIdResult.d.ts +18 -0
- package/formation/result/SetPropertyFormByUserIdResult.js +62 -0
- package/formation/result/SetPropertyFormByUserIdResult.js.map +1 -0
- package/formation/result/SetPropertyFormByUserIdResult.ts +65 -0
- package/formation/result/SetPropertyFormWithSignatureResult.d.ts +18 -0
- package/formation/result/SetPropertyFormWithSignatureResult.js +62 -0
- package/formation/result/SetPropertyFormWithSignatureResult.js.map +1 -0
- package/formation/result/SetPropertyFormWithSignatureResult.ts +65 -0
- package/formation/result/index.d.ts +15 -1
- package/formation/result/index.js +30 -1
- package/formation/result/index.js.map +1 -1
- package/formation/result/index.ts +28 -0
- package/package.json +1 -1
package/formation/rest.js
CHANGED
|
@@ -176,6 +176,51 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
176
176
|
throw JSON.parse(error.response.data.message);
|
|
177
177
|
});
|
|
178
178
|
};
|
|
179
|
+
Gs2FormationRestClient.prototype.describeFormModels = function (request) {
|
|
180
|
+
var _a, _b, _c;
|
|
181
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/form')
|
|
182
|
+
.replace('{service}', 'formation')
|
|
183
|
+
.replace('{region}', this.session.region)
|
|
184
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
|
|
185
|
+
var headers = this.createAuthorizedHeaders();
|
|
186
|
+
if (request.getRequestId()) {
|
|
187
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
188
|
+
}
|
|
189
|
+
var params = {
|
|
190
|
+
'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
|
|
191
|
+
};
|
|
192
|
+
return axios_1.default.get(url, {
|
|
193
|
+
params: params,
|
|
194
|
+
headers: headers,
|
|
195
|
+
}).then(function (response) {
|
|
196
|
+
return Result.DescribeFormModelsResult.fromDict(response.data);
|
|
197
|
+
}).catch(function (error) {
|
|
198
|
+
throw JSON.parse(error.response.data.message);
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
Gs2FormationRestClient.prototype.getFormModel = function (request) {
|
|
202
|
+
var _a, _b, _c, _d, _e;
|
|
203
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/form/{formModelName}')
|
|
204
|
+
.replace('{service}', 'formation')
|
|
205
|
+
.replace('{region}', this.session.region)
|
|
206
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
207
|
+
.replace('{formModelName}', String((_c = request.getFormModelName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getFormModelName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
208
|
+
var headers = this.createAuthorizedHeaders();
|
|
209
|
+
if (request.getRequestId()) {
|
|
210
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
211
|
+
}
|
|
212
|
+
var params = {
|
|
213
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
214
|
+
};
|
|
215
|
+
return axios_1.default.get(url, {
|
|
216
|
+
params: params,
|
|
217
|
+
headers: headers,
|
|
218
|
+
}).then(function (response) {
|
|
219
|
+
return Result.GetFormModelResult.fromDict(response.data);
|
|
220
|
+
}).catch(function (error) {
|
|
221
|
+
throw JSON.parse(error.response.data.message);
|
|
222
|
+
});
|
|
223
|
+
};
|
|
179
224
|
Gs2FormationRestClient.prototype.describeFormModelMasters = function (request) {
|
|
180
225
|
var _a, _b, _c, _d, _e;
|
|
181
226
|
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form')
|
|
@@ -1198,6 +1243,348 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
|
|
|
1198
1243
|
}
|
|
1199
1244
|
});
|
|
1200
1245
|
};
|
|
1246
|
+
Gs2FormationRestClient.prototype.describePropertyForms = function (request) {
|
|
1247
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1248
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{formModelName}/form')
|
|
1249
|
+
.replace('{service}', 'formation')
|
|
1250
|
+
.replace('{region}', this.session.region)
|
|
1251
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1252
|
+
.replace('{formModelName}', String((_c = request.getFormModelName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getFormModelName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
1253
|
+
var headers = this.createAuthorizedHeaders();
|
|
1254
|
+
if (request.getRequestId()) {
|
|
1255
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1256
|
+
}
|
|
1257
|
+
if (request.getAccessToken()) {
|
|
1258
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_e = request.getAccessToken()) !== null && _e !== void 0 ? _e : null;
|
|
1259
|
+
}
|
|
1260
|
+
var params = {
|
|
1261
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1262
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
1263
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
1264
|
+
};
|
|
1265
|
+
return axios_1.default.get(url, {
|
|
1266
|
+
params: params,
|
|
1267
|
+
headers: headers,
|
|
1268
|
+
}).then(function (response) {
|
|
1269
|
+
return Result.DescribePropertyFormsResult.fromDict(response.data);
|
|
1270
|
+
}).catch(function (error) {
|
|
1271
|
+
throw JSON.parse(error.response.data.message);
|
|
1272
|
+
});
|
|
1273
|
+
};
|
|
1274
|
+
Gs2FormationRestClient.prototype.describePropertyFormsByUserId = function (request) {
|
|
1275
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1276
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form')
|
|
1277
|
+
.replace('{service}', 'formation')
|
|
1278
|
+
.replace('{region}', this.session.region)
|
|
1279
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1280
|
+
.replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1281
|
+
.replace('{formModelName}', String((_e = request.getFormModelName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getFormModelName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1282
|
+
var headers = this.createAuthorizedHeaders();
|
|
1283
|
+
if (request.getRequestId()) {
|
|
1284
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1285
|
+
}
|
|
1286
|
+
var params = {
|
|
1287
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1288
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1289
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1290
|
+
};
|
|
1291
|
+
return axios_1.default.get(url, {
|
|
1292
|
+
params: params,
|
|
1293
|
+
headers: headers,
|
|
1294
|
+
}).then(function (response) {
|
|
1295
|
+
return Result.DescribePropertyFormsByUserIdResult.fromDict(response.data);
|
|
1296
|
+
}).catch(function (error) {
|
|
1297
|
+
throw JSON.parse(error.response.data.message);
|
|
1298
|
+
});
|
|
1299
|
+
};
|
|
1300
|
+
Gs2FormationRestClient.prototype.getPropertyForm = function (request) {
|
|
1301
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1302
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{formModelName}/form/{propertyId}')
|
|
1303
|
+
.replace('{service}', 'formation')
|
|
1304
|
+
.replace('{region}', this.session.region)
|
|
1305
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1306
|
+
.replace('{formModelName}', String((_c = request.getFormModelName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getFormModelName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1307
|
+
.replace('{propertyId}', String((_e = request.getPropertyId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1308
|
+
var headers = this.createAuthorizedHeaders();
|
|
1309
|
+
if (request.getRequestId()) {
|
|
1310
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1311
|
+
}
|
|
1312
|
+
if (request.getAccessToken()) {
|
|
1313
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
|
|
1314
|
+
}
|
|
1315
|
+
var params = {
|
|
1316
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1317
|
+
};
|
|
1318
|
+
return axios_1.default.get(url, {
|
|
1319
|
+
params: params,
|
|
1320
|
+
headers: headers,
|
|
1321
|
+
}).then(function (response) {
|
|
1322
|
+
return Result.GetPropertyFormResult.fromDict(response.data);
|
|
1323
|
+
}).catch(function (error) {
|
|
1324
|
+
throw JSON.parse(error.response.data.message);
|
|
1325
|
+
});
|
|
1326
|
+
};
|
|
1327
|
+
Gs2FormationRestClient.prototype.getPropertyFormByUserId = function (request) {
|
|
1328
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1329
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form/{propertyId}')
|
|
1330
|
+
.replace('{service}', 'formation')
|
|
1331
|
+
.replace('{region}', this.session.region)
|
|
1332
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1333
|
+
.replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1334
|
+
.replace('{formModelName}', String((_e = request.getFormModelName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getFormModelName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1335
|
+
.replace('{propertyId}', String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1336
|
+
var headers = this.createAuthorizedHeaders();
|
|
1337
|
+
if (request.getRequestId()) {
|
|
1338
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1339
|
+
}
|
|
1340
|
+
var params = {
|
|
1341
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1342
|
+
};
|
|
1343
|
+
return axios_1.default.get(url, {
|
|
1344
|
+
params: params,
|
|
1345
|
+
headers: headers,
|
|
1346
|
+
}).then(function (response) {
|
|
1347
|
+
return Result.GetPropertyFormByUserIdResult.fromDict(response.data);
|
|
1348
|
+
}).catch(function (error) {
|
|
1349
|
+
throw JSON.parse(error.response.data.message);
|
|
1350
|
+
});
|
|
1351
|
+
};
|
|
1352
|
+
Gs2FormationRestClient.prototype.getPropertyFormWithSignature = function (request) {
|
|
1353
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1354
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{formModelName}/form/{propertyId}/signature')
|
|
1355
|
+
.replace('{service}', 'formation')
|
|
1356
|
+
.replace('{region}', this.session.region)
|
|
1357
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1358
|
+
.replace('{formModelName}', String((_c = request.getFormModelName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getFormModelName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1359
|
+
.replace('{propertyId}', String((_e = request.getPropertyId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1360
|
+
var headers = this.createAuthorizedHeaders();
|
|
1361
|
+
if (request.getRequestId()) {
|
|
1362
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1363
|
+
}
|
|
1364
|
+
if (request.getAccessToken()) {
|
|
1365
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
|
|
1366
|
+
}
|
|
1367
|
+
var params = {
|
|
1368
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1369
|
+
'keyId': String((_j = request.getKeyId()) !== null && _j !== void 0 ? _j : null),
|
|
1370
|
+
};
|
|
1371
|
+
return axios_1.default.get(url, {
|
|
1372
|
+
params: params,
|
|
1373
|
+
headers: headers,
|
|
1374
|
+
}).then(function (response) {
|
|
1375
|
+
return Result.GetPropertyFormWithSignatureResult.fromDict(response.data);
|
|
1376
|
+
}).catch(function (error) {
|
|
1377
|
+
throw JSON.parse(error.response.data.message);
|
|
1378
|
+
});
|
|
1379
|
+
};
|
|
1380
|
+
Gs2FormationRestClient.prototype.getPropertyFormWithSignatureByUserId = function (request) {
|
|
1381
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1382
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form/{propertyId}/signature')
|
|
1383
|
+
.replace('{service}', 'formation')
|
|
1384
|
+
.replace('{region}', this.session.region)
|
|
1385
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1386
|
+
.replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1387
|
+
.replace('{formModelName}', String((_e = request.getFormModelName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getFormModelName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1388
|
+
.replace('{propertyId}', String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1389
|
+
var headers = this.createAuthorizedHeaders();
|
|
1390
|
+
if (request.getRequestId()) {
|
|
1391
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1392
|
+
}
|
|
1393
|
+
var params = {
|
|
1394
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1395
|
+
'keyId': String((_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null),
|
|
1396
|
+
};
|
|
1397
|
+
return axios_1.default.get(url, {
|
|
1398
|
+
params: params,
|
|
1399
|
+
headers: headers,
|
|
1400
|
+
}).then(function (response) {
|
|
1401
|
+
return Result.GetPropertyFormWithSignatureByUserIdResult.fromDict(response.data);
|
|
1402
|
+
}).catch(function (error) {
|
|
1403
|
+
throw JSON.parse(error.response.data.message);
|
|
1404
|
+
});
|
|
1405
|
+
};
|
|
1406
|
+
Gs2FormationRestClient.prototype.setPropertyFormByUserId = function (request) {
|
|
1407
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1408
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form/{propertyId}')
|
|
1409
|
+
.replace('{service}', 'formation')
|
|
1410
|
+
.replace('{region}', this.session.region)
|
|
1411
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1412
|
+
.replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1413
|
+
.replace('{formModelName}', String((_e = request.getFormModelName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getFormModelName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1414
|
+
.replace('{propertyId}', String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1415
|
+
var headers = this.createAuthorizedHeaders();
|
|
1416
|
+
if (request.getRequestId()) {
|
|
1417
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1418
|
+
}
|
|
1419
|
+
if (request.getDuplicationAvoider()) {
|
|
1420
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1421
|
+
}
|
|
1422
|
+
var body = {
|
|
1423
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1424
|
+
'slots': (_m = (_l = request.getSlots()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
1425
|
+
};
|
|
1426
|
+
return axios_1.default.put(url, body, {
|
|
1427
|
+
headers: headers,
|
|
1428
|
+
}).then(function (response) {
|
|
1429
|
+
return Result.SetPropertyFormByUserIdResult.fromDict(response.data);
|
|
1430
|
+
}).catch(function (error) {
|
|
1431
|
+
if (error.response) {
|
|
1432
|
+
throw JSON.parse(error.response.data.message);
|
|
1433
|
+
}
|
|
1434
|
+
else {
|
|
1435
|
+
throw [];
|
|
1436
|
+
}
|
|
1437
|
+
});
|
|
1438
|
+
};
|
|
1439
|
+
Gs2FormationRestClient.prototype.setPropertyFormWithSignature = function (request) {
|
|
1440
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1441
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{formModelName}/form/{propertyId}')
|
|
1442
|
+
.replace('{service}', 'formation')
|
|
1443
|
+
.replace('{region}', this.session.region)
|
|
1444
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1445
|
+
.replace('{formModelName}', String((_c = request.getFormModelName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getFormModelName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1446
|
+
.replace('{propertyId}', String((_e = request.getPropertyId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1447
|
+
var headers = this.createAuthorizedHeaders();
|
|
1448
|
+
if (request.getRequestId()) {
|
|
1449
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1450
|
+
}
|
|
1451
|
+
if (request.getAccessToken()) {
|
|
1452
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
|
|
1453
|
+
}
|
|
1454
|
+
var body = {
|
|
1455
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1456
|
+
'slots': (_k = (_j = request.getSlots()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
1457
|
+
'keyId': (_l = request.getKeyId()) !== null && _l !== void 0 ? _l : null,
|
|
1458
|
+
};
|
|
1459
|
+
return axios_1.default.put(url, body, {
|
|
1460
|
+
headers: headers,
|
|
1461
|
+
}).then(function (response) {
|
|
1462
|
+
return Result.SetPropertyFormWithSignatureResult.fromDict(response.data);
|
|
1463
|
+
}).catch(function (error) {
|
|
1464
|
+
if (error.response) {
|
|
1465
|
+
throw JSON.parse(error.response.data.message);
|
|
1466
|
+
}
|
|
1467
|
+
else {
|
|
1468
|
+
throw [];
|
|
1469
|
+
}
|
|
1470
|
+
});
|
|
1471
|
+
};
|
|
1472
|
+
Gs2FormationRestClient.prototype.acquireActionsToPropertyFormProperties = function (request) {
|
|
1473
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1474
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form/{propertyId}/stamp/delegate')
|
|
1475
|
+
.replace('{service}', 'formation')
|
|
1476
|
+
.replace('{region}', this.session.region)
|
|
1477
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1478
|
+
.replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1479
|
+
.replace('{formModelName}', String((_e = request.getFormModelName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getFormModelName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1480
|
+
.replace('{propertyId}', String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1481
|
+
var headers = this.createAuthorizedHeaders();
|
|
1482
|
+
if (request.getRequestId()) {
|
|
1483
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1484
|
+
}
|
|
1485
|
+
if (request.getDuplicationAvoider()) {
|
|
1486
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1487
|
+
}
|
|
1488
|
+
var body = {
|
|
1489
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1490
|
+
'acquireAction': (_m = (_l = request.getAcquireAction()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
1491
|
+
'config': (_p = (_o = request.getConfig()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
1492
|
+
};
|
|
1493
|
+
return axios_1.default.post(url, body, {
|
|
1494
|
+
headers: headers,
|
|
1495
|
+
}).then(function (response) {
|
|
1496
|
+
return Result.AcquireActionsToPropertyFormPropertiesResult.fromDict(response.data);
|
|
1497
|
+
}).catch(function (error) {
|
|
1498
|
+
if (error.response) {
|
|
1499
|
+
throw JSON.parse(error.response.data.message);
|
|
1500
|
+
}
|
|
1501
|
+
else {
|
|
1502
|
+
throw [];
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1505
|
+
};
|
|
1506
|
+
Gs2FormationRestClient.prototype.deletePropertyForm = function (request) {
|
|
1507
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1508
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{formModelName}/form/{propertyId}')
|
|
1509
|
+
.replace('{service}', 'formation')
|
|
1510
|
+
.replace('{region}', this.session.region)
|
|
1511
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1512
|
+
.replace('{formModelName}', String((_c = request.getFormModelName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getFormModelName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1513
|
+
.replace('{propertyId}', String((_e = request.getPropertyId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getPropertyId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1514
|
+
var headers = this.createAuthorizedHeaders();
|
|
1515
|
+
if (request.getRequestId()) {
|
|
1516
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1517
|
+
}
|
|
1518
|
+
if (request.getAccessToken()) {
|
|
1519
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
|
|
1520
|
+
}
|
|
1521
|
+
var params = {
|
|
1522
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1523
|
+
};
|
|
1524
|
+
return axios_1.default.delete(url, {
|
|
1525
|
+
params: params,
|
|
1526
|
+
headers: headers,
|
|
1527
|
+
}).then(function (response) {
|
|
1528
|
+
return Result.DeletePropertyFormResult.fromDict(response.data);
|
|
1529
|
+
}).catch(function (error) {
|
|
1530
|
+
throw JSON.parse(error.response.data.message);
|
|
1531
|
+
});
|
|
1532
|
+
};
|
|
1533
|
+
Gs2FormationRestClient.prototype.deletePropertyFormByUserId = function (request) {
|
|
1534
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1535
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form/{propertyId}')
|
|
1536
|
+
.replace('{service}', 'formation')
|
|
1537
|
+
.replace('{region}', this.session.region)
|
|
1538
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1539
|
+
.replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1540
|
+
.replace('{formModelName}', String((_e = request.getFormModelName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getFormModelName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1541
|
+
.replace('{propertyId}', String((_g = request.getPropertyId()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getPropertyId()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1542
|
+
var headers = this.createAuthorizedHeaders();
|
|
1543
|
+
if (request.getRequestId()) {
|
|
1544
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1545
|
+
}
|
|
1546
|
+
if (request.getDuplicationAvoider()) {
|
|
1547
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1548
|
+
}
|
|
1549
|
+
var params = {
|
|
1550
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1551
|
+
};
|
|
1552
|
+
return axios_1.default.delete(url, {
|
|
1553
|
+
params: params,
|
|
1554
|
+
headers: headers,
|
|
1555
|
+
}).then(function (response) {
|
|
1556
|
+
return Result.DeletePropertyFormByUserIdResult.fromDict(response.data);
|
|
1557
|
+
}).catch(function (error) {
|
|
1558
|
+
throw JSON.parse(error.response.data.message);
|
|
1559
|
+
});
|
|
1560
|
+
};
|
|
1561
|
+
Gs2FormationRestClient.prototype.acquireActionToPropertyFormPropertiesByStampSheet = function (request) {
|
|
1562
|
+
var _a, _b, _c;
|
|
1563
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/property/form/acquire')
|
|
1564
|
+
.replace('{service}', 'formation')
|
|
1565
|
+
.replace('{region}', this.session.region);
|
|
1566
|
+
var headers = this.createAuthorizedHeaders();
|
|
1567
|
+
if (request.getRequestId()) {
|
|
1568
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1569
|
+
}
|
|
1570
|
+
var body = {
|
|
1571
|
+
'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
|
|
1572
|
+
'stampSheet': (_b = request.getStampSheet()) !== null && _b !== void 0 ? _b : null,
|
|
1573
|
+
'keyId': (_c = request.getKeyId()) !== null && _c !== void 0 ? _c : null,
|
|
1574
|
+
};
|
|
1575
|
+
return axios_1.default.post(url, body, {
|
|
1576
|
+
headers: headers,
|
|
1577
|
+
}).then(function (response) {
|
|
1578
|
+
return Result.AcquireActionToPropertyFormPropertiesByStampSheetResult.fromDict(response.data);
|
|
1579
|
+
}).catch(function (error) {
|
|
1580
|
+
if (error.response) {
|
|
1581
|
+
throw JSON.parse(error.response.data.message);
|
|
1582
|
+
}
|
|
1583
|
+
else {
|
|
1584
|
+
throw [];
|
|
1585
|
+
}
|
|
1586
|
+
});
|
|
1587
|
+
};
|
|
1201
1588
|
return Gs2FormationRestClient;
|
|
1202
1589
|
}(AbstractGs2RestClient_1.default));
|
|
1203
1590
|
exports.default = Gs2FormationRestClient;
|