gs2 1.3.68 → 1.3.71

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.
Files changed (133) hide show
  1. package/formation/model/PropertyForm.d.ts +46 -0
  2. package/formation/model/PropertyForm.js +249 -0
  3. package/formation/model/PropertyForm.js.map +1 -0
  4. package/formation/model/PropertyForm.ts +269 -0
  5. package/formation/model/index.d.ts +2 -1
  6. package/formation/model/index.js +3 -1
  7. package/formation/model/index.js.map +1 -1
  8. package/formation/model/index.ts +2 -0
  9. package/formation/request/AcquireActionToPropertyFormPropertiesByStampSheetRequest.d.ts +25 -0
  10. package/formation/request/AcquireActionToPropertyFormPropertiesByStampSheetRequest.js +83 -0
  11. package/formation/request/AcquireActionToPropertyFormPropertiesByStampSheetRequest.js.map +1 -0
  12. package/formation/request/AcquireActionToPropertyFormPropertiesByStampSheetRequest.ts +90 -0
  13. package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.d.ts +46 -0
  14. package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.js +160 -0
  15. package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.js.map +1 -0
  16. package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.ts +169 -0
  17. package/formation/request/DeletePropertyFormByUserIdRequest.d.ts +37 -0
  18. package/formation/request/DeletePropertyFormByUserIdRequest.js +123 -0
  19. package/formation/request/DeletePropertyFormByUserIdRequest.js.map +1 -0
  20. package/formation/request/DeletePropertyFormByUserIdRequest.ts +133 -0
  21. package/formation/request/DeletePropertyFormRequest.d.ts +33 -0
  22. package/formation/request/DeletePropertyFormRequest.js +111 -0
  23. package/formation/request/DeletePropertyFormRequest.js.map +1 -0
  24. package/formation/request/DeletePropertyFormRequest.ts +118 -0
  25. package/formation/request/DescribeFormModelsRequest.d.ts +21 -0
  26. package/formation/request/DescribeFormModelsRequest.js +69 -0
  27. package/formation/request/DescribeFormModelsRequest.js.map +1 -0
  28. package/formation/request/DescribeFormModelsRequest.ts +76 -0
  29. package/formation/request/DescribePropertyFormsByUserIdRequest.d.ts +37 -0
  30. package/formation/request/DescribePropertyFormsByUserIdRequest.js +125 -0
  31. package/formation/request/DescribePropertyFormsByUserIdRequest.js.map +1 -0
  32. package/formation/request/DescribePropertyFormsByUserIdRequest.ts +132 -0
  33. package/formation/request/DescribePropertyFormsRequest.d.ts +37 -0
  34. package/formation/request/DescribePropertyFormsRequest.js +125 -0
  35. package/formation/request/DescribePropertyFormsRequest.js.map +1 -0
  36. package/formation/request/DescribePropertyFormsRequest.ts +132 -0
  37. package/formation/request/GetFormModelRequest.d.ts +25 -0
  38. package/formation/request/GetFormModelRequest.js +83 -0
  39. package/formation/request/GetFormModelRequest.js.map +1 -0
  40. package/formation/request/GetFormModelRequest.ts +90 -0
  41. package/formation/request/GetPropertyFormByUserIdRequest.d.ts +33 -0
  42. package/formation/request/GetPropertyFormByUserIdRequest.js +111 -0
  43. package/formation/request/GetPropertyFormByUserIdRequest.js.map +1 -0
  44. package/formation/request/GetPropertyFormByUserIdRequest.ts +118 -0
  45. package/formation/request/GetPropertyFormRequest.d.ts +33 -0
  46. package/formation/request/GetPropertyFormRequest.js +111 -0
  47. package/formation/request/GetPropertyFormRequest.js.map +1 -0
  48. package/formation/request/GetPropertyFormRequest.ts +118 -0
  49. package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.d.ts +37 -0
  50. package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.js +125 -0
  51. package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.js.map +1 -0
  52. package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.ts +132 -0
  53. package/formation/request/GetPropertyFormWithSignatureRequest.d.ts +37 -0
  54. package/formation/request/GetPropertyFormWithSignatureRequest.js +125 -0
  55. package/formation/request/GetPropertyFormWithSignatureRequest.js.map +1 -0
  56. package/formation/request/GetPropertyFormWithSignatureRequest.ts +132 -0
  57. package/formation/request/SetPropertyFormByUserIdRequest.d.ts +42 -0
  58. package/formation/request/SetPropertyFormByUserIdRequest.js +145 -0
  59. package/formation/request/SetPropertyFormByUserIdRequest.js.map +1 -0
  60. package/formation/request/SetPropertyFormByUserIdRequest.ts +155 -0
  61. package/formation/request/SetPropertyFormWithSignatureRequest.d.ts +42 -0
  62. package/formation/request/SetPropertyFormWithSignatureRequest.js +147 -0
  63. package/formation/request/SetPropertyFormWithSignatureRequest.js.map +1 -0
  64. package/formation/request/SetPropertyFormWithSignatureRequest.ts +154 -0
  65. package/formation/request/index.d.ts +15 -1
  66. package/formation/request/index.js +30 -1
  67. package/formation/request/index.js.map +1 -1
  68. package/formation/request/index.ts +28 -0
  69. package/formation/rest.d.ts +14 -0
  70. package/formation/rest.js +387 -0
  71. package/formation/rest.js.map +1 -1
  72. package/formation/rest.ts +443 -0
  73. package/formation/result/AcquireActionToPropertyFormPropertiesByStampSheetResult.d.ts +30 -0
  74. package/formation/result/AcquireActionToPropertyFormPropertiesByStampSheetResult.js +104 -0
  75. package/formation/result/AcquireActionToPropertyFormPropertiesByStampSheetResult.js.map +1 -0
  76. package/formation/result/AcquireActionToPropertyFormPropertiesByStampSheetResult.ts +116 -0
  77. package/formation/result/AcquireActionsToPropertyFormPropertiesResult.d.ts +30 -0
  78. package/formation/result/AcquireActionsToPropertyFormPropertiesResult.js +104 -0
  79. package/formation/result/AcquireActionsToPropertyFormPropertiesResult.js.map +1 -0
  80. package/formation/result/AcquireActionsToPropertyFormPropertiesResult.ts +116 -0
  81. package/formation/result/DeletePropertyFormByUserIdResult.d.ts +18 -0
  82. package/formation/result/DeletePropertyFormByUserIdResult.js +62 -0
  83. package/formation/result/DeletePropertyFormByUserIdResult.js.map +1 -0
  84. package/formation/result/DeletePropertyFormByUserIdResult.ts +65 -0
  85. package/formation/result/DeletePropertyFormResult.d.ts +18 -0
  86. package/formation/result/DeletePropertyFormResult.js +62 -0
  87. package/formation/result/DeletePropertyFormResult.js.map +1 -0
  88. package/formation/result/DeletePropertyFormResult.ts +65 -0
  89. package/formation/result/DescribeFormModelsResult.d.ts +14 -0
  90. package/formation/result/DescribeFormModelsResult.js +53 -0
  91. package/formation/result/DescribeFormModelsResult.js.map +1 -0
  92. package/formation/result/DescribeFormModelsResult.ts +56 -0
  93. package/formation/result/DescribePropertyFormsByUserIdResult.d.ts +18 -0
  94. package/formation/result/DescribePropertyFormsByUserIdResult.js +67 -0
  95. package/formation/result/DescribePropertyFormsByUserIdResult.js.map +1 -0
  96. package/formation/result/DescribePropertyFormsByUserIdResult.ts +73 -0
  97. package/formation/result/DescribePropertyFormsResult.d.ts +18 -0
  98. package/formation/result/DescribePropertyFormsResult.js +67 -0
  99. package/formation/result/DescribePropertyFormsResult.js.map +1 -0
  100. package/formation/result/DescribePropertyFormsResult.ts +73 -0
  101. package/formation/result/GetFormModelResult.d.ts +14 -0
  102. package/formation/result/GetFormModelResult.js +48 -0
  103. package/formation/result/GetFormModelResult.js.map +1 -0
  104. package/formation/result/GetFormModelResult.ts +48 -0
  105. package/formation/result/GetPropertyFormByUserIdResult.d.ts +18 -0
  106. package/formation/result/GetPropertyFormByUserIdResult.js +62 -0
  107. package/formation/result/GetPropertyFormByUserIdResult.js.map +1 -0
  108. package/formation/result/GetPropertyFormByUserIdResult.ts +65 -0
  109. package/formation/result/GetPropertyFormResult.d.ts +18 -0
  110. package/formation/result/GetPropertyFormResult.js +62 -0
  111. package/formation/result/GetPropertyFormResult.js.map +1 -0
  112. package/formation/result/GetPropertyFormResult.ts +65 -0
  113. package/formation/result/GetPropertyFormWithSignatureByUserIdResult.d.ts +26 -0
  114. package/formation/result/GetPropertyFormWithSignatureByUserIdResult.js +90 -0
  115. package/formation/result/GetPropertyFormWithSignatureByUserIdResult.js.map +1 -0
  116. package/formation/result/GetPropertyFormWithSignatureByUserIdResult.ts +99 -0
  117. package/formation/result/GetPropertyFormWithSignatureResult.d.ts +26 -0
  118. package/formation/result/GetPropertyFormWithSignatureResult.js +90 -0
  119. package/formation/result/GetPropertyFormWithSignatureResult.js.map +1 -0
  120. package/formation/result/GetPropertyFormWithSignatureResult.ts +99 -0
  121. package/formation/result/SetPropertyFormByUserIdResult.d.ts +18 -0
  122. package/formation/result/SetPropertyFormByUserIdResult.js +62 -0
  123. package/formation/result/SetPropertyFormByUserIdResult.js.map +1 -0
  124. package/formation/result/SetPropertyFormByUserIdResult.ts +65 -0
  125. package/formation/result/SetPropertyFormWithSignatureResult.d.ts +18 -0
  126. package/formation/result/SetPropertyFormWithSignatureResult.js +62 -0
  127. package/formation/result/SetPropertyFormWithSignatureResult.js.map +1 -0
  128. package/formation/result/SetPropertyFormWithSignatureResult.ts +65 -0
  129. package/formation/result/index.d.ts +15 -1
  130. package/formation/result/index.js +30 -1
  131. package/formation/result/index.js.map +1 -1
  132. package/formation/result/index.ts +28 -0
  133. package/package.json +1 -1
package/formation/rest.ts CHANGED
@@ -202,6 +202,59 @@ export default class Gs2FormationRestClient extends AbstractGs2RestClient {
202
202
  });
203
203
  }
204
204
 
205
+ public describeFormModels(request: Request.DescribeFormModelsRequest): Promise<Result.DescribeFormModelsResult> {
206
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/form')
207
+ .replace('{service}', 'formation')
208
+ .replace('{region}', this.session.region)
209
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
210
+
211
+ const headers = this.createAuthorizedHeaders();
212
+ if (request.getRequestId()) {
213
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
214
+ }
215
+ const params: {[key: string]: any} = {
216
+ 'contextStack': request.getContextStack() ?? null,
217
+ };
218
+ return axios.get(
219
+ url,
220
+ {
221
+ params,
222
+ headers,
223
+ },
224
+ ).then((response: any) => {
225
+ return Result.DescribeFormModelsResult.fromDict(response.data);
226
+ }).catch((error: any) => {
227
+ throw JSON.parse(error.response.data.message);
228
+ });
229
+ }
230
+
231
+ public getFormModel(request: Request.GetFormModelRequest): Promise<Result.GetFormModelResult> {
232
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/form/{formModelName}')
233
+ .replace('{service}', 'formation')
234
+ .replace('{region}', this.session.region)
235
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
236
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'));
237
+
238
+ const headers = this.createAuthorizedHeaders();
239
+ if (request.getRequestId()) {
240
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
241
+ }
242
+ const params: {[key: string]: any} = {
243
+ 'contextStack': request.getContextStack() ?? null,
244
+ };
245
+ return axios.get(
246
+ url,
247
+ {
248
+ params,
249
+ headers,
250
+ },
251
+ ).then((response: any) => {
252
+ return Result.GetFormModelResult.fromDict(response.data);
253
+ }).catch((error: any) => {
254
+ throw JSON.parse(error.response.data.message);
255
+ });
256
+ }
257
+
205
258
  public describeFormModelMasters(request: Request.DescribeFormModelMastersRequest): Promise<Result.DescribeFormModelMastersResult> {
206
259
  const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/form')
207
260
  .replace('{service}', 'formation')
@@ -1375,4 +1428,394 @@ export default class Gs2FormationRestClient extends AbstractGs2RestClient {
1375
1428
  }
1376
1429
  });
1377
1430
  }
1431
+
1432
+ public describePropertyForms(request: Request.DescribePropertyFormsRequest): Promise<Result.DescribePropertyFormsResult> {
1433
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{formModelName}/form')
1434
+ .replace('{service}', 'formation')
1435
+ .replace('{region}', this.session.region)
1436
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1437
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'));
1438
+
1439
+ const headers = this.createAuthorizedHeaders();
1440
+ if (request.getRequestId()) {
1441
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1442
+ }
1443
+ if (request.getAccessToken()) {
1444
+ headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
1445
+ }
1446
+ const params: {[key: string]: any} = {
1447
+ 'contextStack': request.getContextStack() ?? null,
1448
+ 'pageToken': String(request.getPageToken() ?? null),
1449
+ 'limit': String(request.getLimit() ?? null),
1450
+ };
1451
+ return axios.get(
1452
+ url,
1453
+ {
1454
+ params,
1455
+ headers,
1456
+ },
1457
+ ).then((response: any) => {
1458
+ return Result.DescribePropertyFormsResult.fromDict(response.data);
1459
+ }).catch((error: any) => {
1460
+ throw JSON.parse(error.response.data.message);
1461
+ });
1462
+ }
1463
+
1464
+ public describePropertyFormsByUserId(request: Request.DescribePropertyFormsByUserIdRequest): Promise<Result.DescribePropertyFormsByUserIdResult> {
1465
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form')
1466
+ .replace('{service}', 'formation')
1467
+ .replace('{region}', this.session.region)
1468
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1469
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
1470
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'));
1471
+
1472
+ const headers = this.createAuthorizedHeaders();
1473
+ if (request.getRequestId()) {
1474
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1475
+ }
1476
+ const params: {[key: string]: any} = {
1477
+ 'contextStack': request.getContextStack() ?? null,
1478
+ 'pageToken': String(request.getPageToken() ?? null),
1479
+ 'limit': String(request.getLimit() ?? null),
1480
+ };
1481
+ return axios.get(
1482
+ url,
1483
+ {
1484
+ params,
1485
+ headers,
1486
+ },
1487
+ ).then((response: any) => {
1488
+ return Result.DescribePropertyFormsByUserIdResult.fromDict(response.data);
1489
+ }).catch((error: any) => {
1490
+ throw JSON.parse(error.response.data.message);
1491
+ });
1492
+ }
1493
+
1494
+ public getPropertyForm(request: Request.GetPropertyFormRequest): Promise<Result.GetPropertyFormResult> {
1495
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{formModelName}/form/{propertyId}')
1496
+ .replace('{service}', 'formation')
1497
+ .replace('{region}', this.session.region)
1498
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1499
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'))
1500
+ .replace('{propertyId}', String(request.getPropertyId() ?? 'null') === "" ? "null" : String(request.getPropertyId() ?? 'null'));
1501
+
1502
+ const headers = this.createAuthorizedHeaders();
1503
+ if (request.getRequestId()) {
1504
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1505
+ }
1506
+ if (request.getAccessToken()) {
1507
+ headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
1508
+ }
1509
+ const params: {[key: string]: any} = {
1510
+ 'contextStack': request.getContextStack() ?? null,
1511
+ };
1512
+ return axios.get(
1513
+ url,
1514
+ {
1515
+ params,
1516
+ headers,
1517
+ },
1518
+ ).then((response: any) => {
1519
+ return Result.GetPropertyFormResult.fromDict(response.data);
1520
+ }).catch((error: any) => {
1521
+ throw JSON.parse(error.response.data.message);
1522
+ });
1523
+ }
1524
+
1525
+ public getPropertyFormByUserId(request: Request.GetPropertyFormByUserIdRequest): Promise<Result.GetPropertyFormByUserIdResult> {
1526
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form/{propertyId}')
1527
+ .replace('{service}', 'formation')
1528
+ .replace('{region}', this.session.region)
1529
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1530
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
1531
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'))
1532
+ .replace('{propertyId}', String(request.getPropertyId() ?? 'null') === "" ? "null" : String(request.getPropertyId() ?? 'null'));
1533
+
1534
+ const headers = this.createAuthorizedHeaders();
1535
+ if (request.getRequestId()) {
1536
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1537
+ }
1538
+ const params: {[key: string]: any} = {
1539
+ 'contextStack': request.getContextStack() ?? null,
1540
+ };
1541
+ return axios.get(
1542
+ url,
1543
+ {
1544
+ params,
1545
+ headers,
1546
+ },
1547
+ ).then((response: any) => {
1548
+ return Result.GetPropertyFormByUserIdResult.fromDict(response.data);
1549
+ }).catch((error: any) => {
1550
+ throw JSON.parse(error.response.data.message);
1551
+ });
1552
+ }
1553
+
1554
+ public getPropertyFormWithSignature(request: Request.GetPropertyFormWithSignatureRequest): Promise<Result.GetPropertyFormWithSignatureResult> {
1555
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{formModelName}/form/{propertyId}/signature')
1556
+ .replace('{service}', 'formation')
1557
+ .replace('{region}', this.session.region)
1558
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1559
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'))
1560
+ .replace('{propertyId}', String(request.getPropertyId() ?? 'null') === "" ? "null" : String(request.getPropertyId() ?? 'null'));
1561
+
1562
+ const headers = this.createAuthorizedHeaders();
1563
+ if (request.getRequestId()) {
1564
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1565
+ }
1566
+ if (request.getAccessToken()) {
1567
+ headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
1568
+ }
1569
+ const params: {[key: string]: any} = {
1570
+ 'contextStack': request.getContextStack() ?? null,
1571
+ 'keyId': String(request.getKeyId() ?? null),
1572
+ };
1573
+ return axios.get(
1574
+ url,
1575
+ {
1576
+ params,
1577
+ headers,
1578
+ },
1579
+ ).then((response: any) => {
1580
+ return Result.GetPropertyFormWithSignatureResult.fromDict(response.data);
1581
+ }).catch((error: any) => {
1582
+ throw JSON.parse(error.response.data.message);
1583
+ });
1584
+ }
1585
+
1586
+ public getPropertyFormWithSignatureByUserId(request: Request.GetPropertyFormWithSignatureByUserIdRequest): Promise<Result.GetPropertyFormWithSignatureByUserIdResult> {
1587
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form/{propertyId}/signature')
1588
+ .replace('{service}', 'formation')
1589
+ .replace('{region}', this.session.region)
1590
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1591
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
1592
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'))
1593
+ .replace('{propertyId}', String(request.getPropertyId() ?? 'null') === "" ? "null" : String(request.getPropertyId() ?? 'null'));
1594
+
1595
+ const headers = this.createAuthorizedHeaders();
1596
+ if (request.getRequestId()) {
1597
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1598
+ }
1599
+ const params: {[key: string]: any} = {
1600
+ 'contextStack': request.getContextStack() ?? null,
1601
+ 'keyId': String(request.getKeyId() ?? null),
1602
+ };
1603
+ return axios.get(
1604
+ url,
1605
+ {
1606
+ params,
1607
+ headers,
1608
+ },
1609
+ ).then((response: any) => {
1610
+ return Result.GetPropertyFormWithSignatureByUserIdResult.fromDict(response.data);
1611
+ }).catch((error: any) => {
1612
+ throw JSON.parse(error.response.data.message);
1613
+ });
1614
+ }
1615
+
1616
+ public setPropertyFormByUserId(request: Request.SetPropertyFormByUserIdRequest): Promise<Result.SetPropertyFormByUserIdResult> {
1617
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form/{propertyId}')
1618
+ .replace('{service}', 'formation')
1619
+ .replace('{region}', this.session.region)
1620
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1621
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
1622
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'))
1623
+ .replace('{propertyId}', String(request.getPropertyId() ?? 'null') === "" ? "null" : String(request.getPropertyId() ?? 'null'));
1624
+
1625
+ const headers = this.createAuthorizedHeaders();
1626
+ if (request.getRequestId()) {
1627
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1628
+ }
1629
+ if (request.getDuplicationAvoider()) {
1630
+ headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
1631
+ }
1632
+ const body: {[key: string]: any} = {
1633
+ 'contextStack': request.getContextStack() ?? null,
1634
+ 'slots': request.getSlots()?.map((item) => item.toDict()) ?? null,
1635
+ };
1636
+ return axios.put(
1637
+ url,
1638
+ body,
1639
+ {
1640
+ headers,
1641
+ },
1642
+ ).then((response: any) => {
1643
+ return Result.SetPropertyFormByUserIdResult.fromDict(response.data);
1644
+ }).catch((error: any) => {
1645
+ if (error.response) {
1646
+ throw JSON.parse(error.response.data.message);
1647
+ } else {
1648
+ throw [];
1649
+ }
1650
+ });
1651
+ }
1652
+
1653
+ public setPropertyFormWithSignature(request: Request.SetPropertyFormWithSignatureRequest): Promise<Result.SetPropertyFormWithSignatureResult> {
1654
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{formModelName}/form/{propertyId}')
1655
+ .replace('{service}', 'formation')
1656
+ .replace('{region}', this.session.region)
1657
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1658
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'))
1659
+ .replace('{propertyId}', String(request.getPropertyId() ?? 'null') === "" ? "null" : String(request.getPropertyId() ?? 'null'));
1660
+
1661
+ const headers = this.createAuthorizedHeaders();
1662
+ if (request.getRequestId()) {
1663
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1664
+ }
1665
+ if (request.getAccessToken()) {
1666
+ headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
1667
+ }
1668
+ const body: {[key: string]: any} = {
1669
+ 'contextStack': request.getContextStack() ?? null,
1670
+ 'slots': request.getSlots()?.map((item) => item.toDict()) ?? null,
1671
+ 'keyId': request.getKeyId() ?? null,
1672
+ };
1673
+ return axios.put(
1674
+ url,
1675
+ body,
1676
+ {
1677
+ headers,
1678
+ },
1679
+ ).then((response: any) => {
1680
+ return Result.SetPropertyFormWithSignatureResult.fromDict(response.data);
1681
+ }).catch((error: any) => {
1682
+ if (error.response) {
1683
+ throw JSON.parse(error.response.data.message);
1684
+ } else {
1685
+ throw [];
1686
+ }
1687
+ });
1688
+ }
1689
+
1690
+ public acquireActionsToPropertyFormProperties(request: Request.AcquireActionsToPropertyFormPropertiesRequest): Promise<Result.AcquireActionsToPropertyFormPropertiesResult> {
1691
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form/{propertyId}/stamp/delegate')
1692
+ .replace('{service}', 'formation')
1693
+ .replace('{region}', this.session.region)
1694
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1695
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
1696
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'))
1697
+ .replace('{propertyId}', String(request.getPropertyId() ?? 'null') === "" ? "null" : String(request.getPropertyId() ?? 'null'));
1698
+
1699
+ const headers = this.createAuthorizedHeaders();
1700
+ if (request.getRequestId()) {
1701
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1702
+ }
1703
+ if (request.getDuplicationAvoider()) {
1704
+ headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
1705
+ }
1706
+ const body: {[key: string]: any} = {
1707
+ 'contextStack': request.getContextStack() ?? null,
1708
+ 'acquireAction': request.getAcquireAction()?.toDict() ?? null,
1709
+ 'config': request.getConfig()?.map((item) => item.toDict()) ?? null,
1710
+ };
1711
+ return axios.post(
1712
+ url,
1713
+ body,
1714
+ {
1715
+ headers,
1716
+ },
1717
+ ).then((response: any) => {
1718
+ return Result.AcquireActionsToPropertyFormPropertiesResult.fromDict(response.data);
1719
+ }).catch((error: any) => {
1720
+ if (error.response) {
1721
+ throw JSON.parse(error.response.data.message);
1722
+ } else {
1723
+ throw [];
1724
+ }
1725
+ });
1726
+ }
1727
+
1728
+ public deletePropertyForm(request: Request.DeletePropertyFormRequest): Promise<Result.DeletePropertyFormResult> {
1729
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/property/{formModelName}/form/{propertyId}')
1730
+ .replace('{service}', 'formation')
1731
+ .replace('{region}', this.session.region)
1732
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1733
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'))
1734
+ .replace('{propertyId}', String(request.getPropertyId() ?? 'null') === "" ? "null" : String(request.getPropertyId() ?? 'null'));
1735
+
1736
+ const headers = this.createAuthorizedHeaders();
1737
+ if (request.getRequestId()) {
1738
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1739
+ }
1740
+ if (request.getAccessToken()) {
1741
+ headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
1742
+ }
1743
+ const params: {[key: string]: any} = {
1744
+ 'contextStack': request.getContextStack() ?? null,
1745
+ };
1746
+ return axios.delete(
1747
+ url,
1748
+ {
1749
+ params,
1750
+ headers,
1751
+ },
1752
+ ).then((response: any) => {
1753
+ return Result.DeletePropertyFormResult.fromDict(response.data);
1754
+ }).catch((error: any) => {
1755
+ throw JSON.parse(error.response.data.message);
1756
+ });
1757
+ }
1758
+
1759
+ public deletePropertyFormByUserId(request: Request.DeletePropertyFormByUserIdRequest): Promise<Result.DeletePropertyFormByUserIdResult> {
1760
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/property/{formModelName}/form/{propertyId}')
1761
+ .replace('{service}', 'formation')
1762
+ .replace('{region}', this.session.region)
1763
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1764
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
1765
+ .replace('{formModelName}', String(request.getFormModelName() ?? 'null') === "" ? "null" : String(request.getFormModelName() ?? 'null'))
1766
+ .replace('{propertyId}', String(request.getPropertyId() ?? 'null') === "" ? "null" : String(request.getPropertyId() ?? 'null'));
1767
+
1768
+ const headers = this.createAuthorizedHeaders();
1769
+ if (request.getRequestId()) {
1770
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1771
+ }
1772
+ if (request.getDuplicationAvoider()) {
1773
+ headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
1774
+ }
1775
+ const params: {[key: string]: any} = {
1776
+ 'contextStack': request.getContextStack() ?? null,
1777
+ };
1778
+ return axios.delete(
1779
+ url,
1780
+ {
1781
+ params,
1782
+ headers,
1783
+ },
1784
+ ).then((response: any) => {
1785
+ return Result.DeletePropertyFormByUserIdResult.fromDict(response.data);
1786
+ }).catch((error: any) => {
1787
+ throw JSON.parse(error.response.data.message);
1788
+ });
1789
+ }
1790
+
1791
+ public acquireActionToPropertyFormPropertiesByStampSheet(request: Request.AcquireActionToPropertyFormPropertiesByStampSheetRequest): Promise<Result.AcquireActionToPropertyFormPropertiesByStampSheetResult> {
1792
+ const url = (Gs2Constant.ENDPOINT_HOST + '/stamp/property/form/acquire')
1793
+ .replace('{service}', 'formation')
1794
+ .replace('{region}', this.session.region);
1795
+
1796
+ const headers = this.createAuthorizedHeaders();
1797
+ if (request.getRequestId()) {
1798
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1799
+ }
1800
+ const body: {[key: string]: any} = {
1801
+ 'contextStack': request.getContextStack() ?? null,
1802
+ 'stampSheet': request.getStampSheet() ?? null,
1803
+ 'keyId': request.getKeyId() ?? null,
1804
+ };
1805
+ return axios.post(
1806
+ url,
1807
+ body,
1808
+ {
1809
+ headers,
1810
+ },
1811
+ ).then((response: any) => {
1812
+ return Result.AcquireActionToPropertyFormPropertiesByStampSheetResult.fromDict(response.data);
1813
+ }).catch((error: any) => {
1814
+ if (error.response) {
1815
+ throw JSON.parse(error.response.data.message);
1816
+ } else {
1817
+ throw [];
1818
+ }
1819
+ });
1820
+ }
1378
1821
  }
@@ -0,0 +1,30 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2Formation from '../model';
3
+ export default class AcquireActionToPropertyFormPropertiesByStampSheetResult implements IResult {
4
+ private item;
5
+ private transactionId;
6
+ private stampSheet;
7
+ private stampSheetEncryptionKeyId;
8
+ private autoRunStampSheet;
9
+ getItem(): Gs2Formation.PropertyForm | null;
10
+ setItem(item: Gs2Formation.PropertyForm | null): this;
11
+ withItem(item: Gs2Formation.PropertyForm | null): this;
12
+ getTransactionId(): string | null;
13
+ setTransactionId(transactionId: string | null): this;
14
+ withTransactionId(transactionId: string | null): this;
15
+ getStampSheet(): string | null;
16
+ setStampSheet(stampSheet: string | null): this;
17
+ withStampSheet(stampSheet: string | null): this;
18
+ getStampSheetEncryptionKeyId(): string | null;
19
+ setStampSheetEncryptionKeyId(stampSheetEncryptionKeyId: string | null): this;
20
+ withStampSheetEncryptionKeyId(stampSheetEncryptionKeyId: string | null): this;
21
+ getAutoRunStampSheet(): boolean | null;
22
+ setAutoRunStampSheet(autoRunStampSheet: boolean | null): this;
23
+ withAutoRunStampSheet(autoRunStampSheet: boolean | null): this;
24
+ static fromDict(data: {
25
+ [key: string]: any;
26
+ }): AcquireActionToPropertyFormPropertiesByStampSheetResult;
27
+ toDict(): {
28
+ [key: string]: any;
29
+ };
30
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var tslib_1 = require("tslib");
19
+ var Gs2Formation = tslib_1.__importStar(require("../model"));
20
+ var AcquireActionToPropertyFormPropertiesByStampSheetResult = /** @class */ (function () {
21
+ function AcquireActionToPropertyFormPropertiesByStampSheetResult() {
22
+ this.item = null;
23
+ this.transactionId = null;
24
+ this.stampSheet = null;
25
+ this.stampSheetEncryptionKeyId = null;
26
+ this.autoRunStampSheet = null;
27
+ }
28
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.getItem = function () {
29
+ return this.item;
30
+ };
31
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.setItem = function (item) {
32
+ this.item = item;
33
+ return this;
34
+ };
35
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.withItem = function (item) {
36
+ this.item = item;
37
+ return this;
38
+ };
39
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.getTransactionId = function () {
40
+ return this.transactionId;
41
+ };
42
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.setTransactionId = function (transactionId) {
43
+ this.transactionId = transactionId;
44
+ return this;
45
+ };
46
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.withTransactionId = function (transactionId) {
47
+ this.transactionId = transactionId;
48
+ return this;
49
+ };
50
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.getStampSheet = function () {
51
+ return this.stampSheet;
52
+ };
53
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.setStampSheet = function (stampSheet) {
54
+ this.stampSheet = stampSheet;
55
+ return this;
56
+ };
57
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.withStampSheet = function (stampSheet) {
58
+ this.stampSheet = stampSheet;
59
+ return this;
60
+ };
61
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.getStampSheetEncryptionKeyId = function () {
62
+ return this.stampSheetEncryptionKeyId;
63
+ };
64
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.setStampSheetEncryptionKeyId = function (stampSheetEncryptionKeyId) {
65
+ this.stampSheetEncryptionKeyId = stampSheetEncryptionKeyId;
66
+ return this;
67
+ };
68
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.withStampSheetEncryptionKeyId = function (stampSheetEncryptionKeyId) {
69
+ this.stampSheetEncryptionKeyId = stampSheetEncryptionKeyId;
70
+ return this;
71
+ };
72
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.getAutoRunStampSheet = function () {
73
+ return this.autoRunStampSheet;
74
+ };
75
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.setAutoRunStampSheet = function (autoRunStampSheet) {
76
+ this.autoRunStampSheet = autoRunStampSheet;
77
+ return this;
78
+ };
79
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.withAutoRunStampSheet = function (autoRunStampSheet) {
80
+ this.autoRunStampSheet = autoRunStampSheet;
81
+ return this;
82
+ };
83
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.fromDict = function (data) {
84
+ return new AcquireActionToPropertyFormPropertiesByStampSheetResult()
85
+ .withItem(Gs2Formation.PropertyForm.fromDict(data["item"]))
86
+ .withTransactionId(data["transactionId"])
87
+ .withStampSheet(data["stampSheet"])
88
+ .withStampSheetEncryptionKeyId(data["stampSheetEncryptionKeyId"])
89
+ .withAutoRunStampSheet(data["autoRunStampSheet"]);
90
+ };
91
+ AcquireActionToPropertyFormPropertiesByStampSheetResult.prototype.toDict = function () {
92
+ var _a;
93
+ return {
94
+ "item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
95
+ "transactionId": this.getTransactionId(),
96
+ "stampSheet": this.getStampSheet(),
97
+ "stampSheetEncryptionKeyId": this.getStampSheetEncryptionKeyId(),
98
+ "autoRunStampSheet": this.getAutoRunStampSheet(),
99
+ };
100
+ };
101
+ return AcquireActionToPropertyFormPropertiesByStampSheetResult;
102
+ }());
103
+ exports.default = AcquireActionToPropertyFormPropertiesByStampSheetResult;
104
+ //# sourceMappingURL=AcquireActionToPropertyFormPropertiesByStampSheetResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcquireActionToPropertyFormPropertiesByStampSheetResult.js","sourceRoot":"","sources":["AcquireActionToPropertyFormPropertiesByStampSheetResult.ts"],"names":[],"mappings":"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"}