gs2 1.3.142 → 1.3.144
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/inventory/model/AcquireCount.d.ts +17 -0
- package/inventory/model/AcquireCount.js +62 -0
- package/inventory/model/AcquireCount.js.map +1 -0
- package/inventory/model/AcquireCount.ts +60 -0
- package/inventory/model/ConsumeCount.d.ts +17 -0
- package/inventory/model/ConsumeCount.js +62 -0
- package/inventory/model/ConsumeCount.js.map +1 -0
- package/inventory/model/ConsumeCount.ts +60 -0
- package/inventory/model/SimpleInventory.d.ts +36 -0
- package/inventory/model/SimpleInventory.js +191 -0
- package/inventory/model/SimpleInventory.js.map +1 -0
- package/inventory/model/SimpleInventory.ts +207 -0
- package/inventory/model/SimpleInventoryModel.d.ts +32 -0
- package/inventory/model/SimpleInventoryModel.js +165 -0
- package/inventory/model/SimpleInventoryModel.js.map +1 -0
- package/inventory/model/SimpleInventoryModel.ts +179 -0
- package/inventory/model/SimpleInventoryModelMaster.d.ts +39 -0
- package/inventory/model/SimpleInventoryModelMaster.js +185 -0
- package/inventory/model/SimpleInventoryModelMaster.js.map +1 -0
- package/inventory/model/SimpleInventoryModelMaster.ts +198 -0
- package/inventory/model/SimpleItem.d.ts +33 -0
- package/inventory/model/SimpleItem.js +199 -0
- package/inventory/model/SimpleItem.js.map +1 -0
- package/inventory/model/SimpleItem.ts +218 -0
- package/inventory/model/SimpleItemModel.d.ts +28 -0
- package/inventory/model/SimpleItemModel.js +163 -0
- package/inventory/model/SimpleItemModel.js.map +1 -0
- package/inventory/model/SimpleItemModel.ts +179 -0
- package/inventory/model/SimpleItemModelMaster.d.ts +40 -0
- package/inventory/model/SimpleItemModelMaster.js +205 -0
- package/inventory/model/SimpleItemModelMaster.js.map +1 -0
- package/inventory/model/SimpleItemModelMaster.ts +221 -0
- package/inventory/model/index.d.ts +9 -1
- package/inventory/model/index.js +17 -1
- package/inventory/model/index.js.map +1 -1
- package/inventory/model/index.ts +16 -0
- package/{watch/request/GetInboxMetricsRequest.d.ts → inventory/request/AcquireSimpleItemsByStampSheetRequest.d.ts} +10 -2
- package/inventory/request/AcquireSimpleItemsByStampSheetRequest.js +83 -0
- package/inventory/request/AcquireSimpleItemsByStampSheetRequest.js.map +1 -0
- package/{watch/request/GetInboxMetricsRequest.ts → inventory/request/AcquireSimpleItemsByStampSheetRequest.ts} +32 -4
- package/inventory/request/AcquireSimpleItemsByUserIdRequest.d.ts +38 -0
- package/inventory/request/AcquireSimpleItemsByUserIdRequest.js +131 -0
- package/inventory/request/AcquireSimpleItemsByUserIdRequest.js.map +1 -0
- package/{version/request/GetBneAgreementUrlByUserIdRequest.ts → inventory/request/AcquireSimpleItemsByUserIdRequest.ts} +37 -60
- package/{watch/request/GetExchangeMetricsRequest.d.ts → inventory/request/ConsumeSimpleItemsByStampTaskRequest.d.ts} +10 -2
- package/inventory/request/ConsumeSimpleItemsByStampTaskRequest.js +83 -0
- package/inventory/request/ConsumeSimpleItemsByStampTaskRequest.js.map +1 -0
- package/{watch/request/GetAccountMetricsRequest.ts → inventory/request/ConsumeSimpleItemsByStampTaskRequest.ts} +32 -4
- package/inventory/request/ConsumeSimpleItemsByUserIdRequest.d.ts +38 -0
- package/inventory/request/ConsumeSimpleItemsByUserIdRequest.js +131 -0
- package/inventory/request/ConsumeSimpleItemsByUserIdRequest.js.map +1 -0
- package/inventory/request/ConsumeSimpleItemsByUserIdRequest.ts +141 -0
- package/inventory/request/ConsumeSimpleItemsRequest.d.ts +38 -0
- package/inventory/request/ConsumeSimpleItemsRequest.js +131 -0
- package/inventory/request/ConsumeSimpleItemsRequest.js.map +1 -0
- package/{version/request/AcceptBneAgreementRequest.ts → inventory/request/ConsumeSimpleItemsRequest.ts} +37 -34
- package/inventory/request/CreateSimpleInventoryModelMasterRequest.d.ts +33 -0
- package/inventory/request/CreateSimpleInventoryModelMasterRequest.js +111 -0
- package/inventory/request/CreateSimpleInventoryModelMasterRequest.js.map +1 -0
- package/inventory/request/CreateSimpleInventoryModelMasterRequest.ts +118 -0
- package/inventory/request/CreateSimpleItemModelMasterRequest.d.ts +37 -0
- package/inventory/request/CreateSimpleItemModelMasterRequest.js +125 -0
- package/inventory/request/CreateSimpleItemModelMasterRequest.js.map +1 -0
- package/inventory/request/CreateSimpleItemModelMasterRequest.ts +132 -0
- package/inventory/request/DeleteSimpleInventoryModelMasterRequest.d.ts +25 -0
- package/inventory/request/DeleteSimpleInventoryModelMasterRequest.js +83 -0
- package/inventory/request/DeleteSimpleInventoryModelMasterRequest.js.map +1 -0
- package/inventory/request/DeleteSimpleInventoryModelMasterRequest.ts +90 -0
- package/inventory/request/DeleteSimpleItemModelMasterRequest.d.ts +29 -0
- package/inventory/request/DeleteSimpleItemModelMasterRequest.js +97 -0
- package/inventory/request/DeleteSimpleItemModelMasterRequest.js.map +1 -0
- package/inventory/request/DeleteSimpleItemModelMasterRequest.ts +104 -0
- package/inventory/request/DeleteSimpleItemsByUserIdRequest.d.ts +33 -0
- package/inventory/request/DeleteSimpleItemsByUserIdRequest.js +109 -0
- package/inventory/request/DeleteSimpleItemsByUserIdRequest.js.map +1 -0
- package/{version/request/GetBneAgreementByUserIdRequest.ts → inventory/request/DeleteSimpleItemsByUserIdRequest.ts} +28 -22
- package/inventory/request/DescribeSimpleInventoryModelMastersRequest.d.ts +29 -0
- package/inventory/request/DescribeSimpleInventoryModelMastersRequest.js +97 -0
- package/inventory/request/DescribeSimpleInventoryModelMastersRequest.js.map +1 -0
- package/{account/request/SetBnlinkRequest.ts → inventory/request/DescribeSimpleInventoryModelMastersRequest.ts} +22 -31
- package/{watch/request/GetAccountMetricsRequest.d.ts → inventory/request/DescribeSimpleInventoryModelsRequest.d.ts} +6 -2
- package/inventory/request/DescribeSimpleInventoryModelsRequest.js +69 -0
- package/inventory/request/DescribeSimpleInventoryModelsRequest.js.map +1 -0
- package/{watch/request/GetExchangeMetricsRequest.ts → inventory/request/DescribeSimpleInventoryModelsRequest.ts} +18 -4
- package/inventory/request/DescribeSimpleItemModelMastersRequest.d.ts +33 -0
- package/inventory/request/DescribeSimpleItemModelMastersRequest.js +111 -0
- package/inventory/request/DescribeSimpleItemModelMastersRequest.js.map +1 -0
- package/inventory/request/DescribeSimpleItemModelMastersRequest.ts +118 -0
- package/inventory/request/DescribeSimpleItemModelsRequest.d.ts +25 -0
- package/inventory/request/DescribeSimpleItemModelsRequest.js +83 -0
- package/inventory/request/DescribeSimpleItemModelsRequest.js.map +1 -0
- package/inventory/request/DescribeSimpleItemModelsRequest.ts +90 -0
- package/inventory/request/DescribeSimpleItemsByUserIdRequest.d.ts +37 -0
- package/inventory/request/DescribeSimpleItemsByUserIdRequest.js +125 -0
- package/inventory/request/DescribeSimpleItemsByUserIdRequest.js.map +1 -0
- package/{account/request/DescribeBnlinksRequest.ts → inventory/request/DescribeSimpleItemsByUserIdRequest.ts} +22 -71
- package/{serialKey/request/DescribeSerialCodesRequest.d.ts → inventory/request/DescribeSimpleItemsRequest.d.ts} +10 -10
- package/inventory/request/DescribeSimpleItemsRequest.js +125 -0
- package/inventory/request/DescribeSimpleItemsRequest.js.map +1 -0
- package/{serialKey/request/DescribeSerialCodesRequest.ts → inventory/request/DescribeSimpleItemsRequest.ts} +22 -22
- package/inventory/request/GetSimpleInventoryModelMasterRequest.d.ts +25 -0
- package/inventory/request/GetSimpleInventoryModelMasterRequest.js +83 -0
- package/inventory/request/GetSimpleInventoryModelMasterRequest.js.map +1 -0
- package/inventory/request/GetSimpleInventoryModelMasterRequest.ts +90 -0
- package/inventory/request/GetSimpleInventoryModelRequest.d.ts +25 -0
- package/inventory/request/GetSimpleInventoryModelRequest.js +83 -0
- package/inventory/request/GetSimpleInventoryModelRequest.js.map +1 -0
- package/inventory/request/GetSimpleInventoryModelRequest.ts +90 -0
- package/{lottery/request/GetRawBoxByUserIdRequest.d.ts → inventory/request/GetSimpleItemByUserIdRequest.d.ts} +10 -6
- package/inventory/request/GetSimpleItemByUserIdRequest.js +111 -0
- package/inventory/request/GetSimpleItemByUserIdRequest.js.map +1 -0
- package/{version/request/DescribeBneAgreementTextUrlsByUserIdRequest.ts → inventory/request/GetSimpleItemByUserIdRequest.ts} +22 -34
- package/inventory/request/GetSimpleItemModelMasterRequest.d.ts +29 -0
- package/inventory/request/GetSimpleItemModelMasterRequest.js +97 -0
- package/inventory/request/GetSimpleItemModelMasterRequest.js.map +1 -0
- package/{account/request/DeleteBnlinkRequest.ts → inventory/request/GetSimpleItemModelMasterRequest.ts} +22 -31
- package/inventory/request/GetSimpleItemModelRequest.d.ts +29 -0
- package/inventory/request/GetSimpleItemModelRequest.js +97 -0
- package/inventory/request/GetSimpleItemModelRequest.js.map +1 -0
- package/{account/request/GetBnlinkRequest.ts → inventory/request/GetSimpleItemModelRequest.ts} +22 -31
- package/inventory/request/GetSimpleItemRequest.d.ts +33 -0
- package/inventory/request/GetSimpleItemRequest.js +111 -0
- package/inventory/request/GetSimpleItemRequest.js.map +1 -0
- package/{version/request/DescribeBneAgreementTextUrlsRequest.ts → inventory/request/GetSimpleItemRequest.ts} +22 -34
- package/inventory/request/GetSimpleItemWithSignatureByUserIdRequest.d.ts +37 -0
- package/inventory/request/GetSimpleItemWithSignatureByUserIdRequest.js +125 -0
- package/inventory/request/GetSimpleItemWithSignatureByUserIdRequest.js.map +1 -0
- package/{version/request/AcceptBneAgreementByUserIdRequest.ts → inventory/request/GetSimpleItemWithSignatureByUserIdRequest.ts} +36 -42
- package/inventory/request/GetSimpleItemWithSignatureRequest.d.ts +37 -0
- package/inventory/request/GetSimpleItemWithSignatureRequest.js +125 -0
- package/inventory/request/GetSimpleItemWithSignatureRequest.js.map +1 -0
- package/inventory/request/GetSimpleItemWithSignatureRequest.ts +132 -0
- package/inventory/request/UpdateSimpleInventoryModelMasterRequest.d.ts +33 -0
- package/inventory/request/UpdateSimpleInventoryModelMasterRequest.js +111 -0
- package/inventory/request/UpdateSimpleInventoryModelMasterRequest.js.map +1 -0
- package/inventory/request/UpdateSimpleInventoryModelMasterRequest.ts +118 -0
- package/inventory/request/UpdateSimpleItemModelMasterRequest.d.ts +37 -0
- package/inventory/request/UpdateSimpleItemModelMasterRequest.js +125 -0
- package/inventory/request/UpdateSimpleItemModelMasterRequest.js.map +1 -0
- package/inventory/request/UpdateSimpleItemModelMasterRequest.ts +132 -0
- package/inventory/request/index.d.ts +27 -1
- package/inventory/request/index.js +54 -2
- package/inventory/request/index.js.map +1 -1
- package/inventory/request/index.ts +52 -0
- package/inventory/rest.d.ts +26 -0
- package/inventory/rest.js +1098 -406
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +1085 -289
- package/inventory/result/AcquireSimpleItemsByStampSheetResult.d.ts +14 -0
- package/inventory/result/AcquireSimpleItemsByStampSheetResult.js +53 -0
- package/inventory/result/AcquireSimpleItemsByStampSheetResult.js.map +1 -0
- package/{version/result/GetBneAgreementResult.ts → inventory/result/AcquireSimpleItemsByStampSheetResult.ts} +10 -10
- package/inventory/result/AcquireSimpleItemsByUserIdResult.d.ts +14 -0
- package/inventory/result/AcquireSimpleItemsByUserIdResult.js +53 -0
- package/inventory/result/AcquireSimpleItemsByUserIdResult.js.map +1 -0
- package/{version/result/AcceptBneAgreementByUserIdResult.ts → inventory/result/AcquireSimpleItemsByUserIdResult.ts} +10 -10
- package/inventory/result/ConsumeSimpleItemsByStampTaskResult.d.ts +18 -0
- package/inventory/result/ConsumeSimpleItemsByStampTaskResult.js +67 -0
- package/inventory/result/ConsumeSimpleItemsByStampTaskResult.js.map +1 -0
- package/inventory/result/ConsumeSimpleItemsByStampTaskResult.ts +73 -0
- package/inventory/result/ConsumeSimpleItemsByUserIdResult.d.ts +14 -0
- package/inventory/result/ConsumeSimpleItemsByUserIdResult.js +53 -0
- package/inventory/result/ConsumeSimpleItemsByUserIdResult.js.map +1 -0
- package/{version/result/GetBneAgreementByUserIdResult.ts → inventory/result/ConsumeSimpleItemsByUserIdResult.ts} +10 -10
- package/inventory/result/ConsumeSimpleItemsResult.d.ts +14 -0
- package/inventory/result/ConsumeSimpleItemsResult.js +53 -0
- package/inventory/result/ConsumeSimpleItemsResult.js.map +1 -0
- package/{version/result/AcceptBneAgreementResult.ts → inventory/result/ConsumeSimpleItemsResult.ts} +10 -10
- package/inventory/result/CreateSimpleInventoryModelMasterResult.d.ts +14 -0
- package/inventory/result/CreateSimpleInventoryModelMasterResult.js +48 -0
- package/inventory/result/CreateSimpleInventoryModelMasterResult.js.map +1 -0
- package/inventory/result/CreateSimpleInventoryModelMasterResult.ts +48 -0
- package/inventory/result/CreateSimpleItemModelMasterResult.d.ts +14 -0
- package/{lottery/result/GetRawBoxByUserIdResult.js → inventory/result/CreateSimpleItemModelMasterResult.js} +13 -13
- package/inventory/result/CreateSimpleItemModelMasterResult.js.map +1 -0
- package/{account/result/GetBnlinkResult.ts → inventory/result/CreateSimpleItemModelMasterResult.ts} +9 -9
- package/inventory/result/DeleteSimpleInventoryModelMasterResult.d.ts +14 -0
- package/inventory/result/DeleteSimpleInventoryModelMasterResult.js +48 -0
- package/inventory/result/DeleteSimpleInventoryModelMasterResult.js.map +1 -0
- package/inventory/result/DeleteSimpleInventoryModelMasterResult.ts +48 -0
- package/inventory/result/DeleteSimpleItemModelMasterResult.d.ts +14 -0
- package/{watch/result/GetAccountMetricsResult.js → inventory/result/DeleteSimpleItemModelMasterResult.js} +13 -13
- package/inventory/result/DeleteSimpleItemModelMasterResult.js.map +1 -0
- package/{account/result/SetBnlinkResult.ts → inventory/result/DeleteSimpleItemModelMasterResult.ts} +9 -9
- package/inventory/result/DeleteSimpleItemsByUserIdResult.d.ts +9 -0
- package/inventory/result/DeleteSimpleItemsByUserIdResult.js +30 -0
- package/inventory/result/DeleteSimpleItemsByUserIdResult.js.map +1 -0
- package/{version/result/GetBneAgreementUrlResult.ts → inventory/result/DeleteSimpleItemsByUserIdResult.ts} +4 -21
- package/inventory/result/DescribeSimpleInventoryModelMastersResult.d.ts +18 -0
- package/inventory/result/DescribeSimpleInventoryModelMastersResult.js +67 -0
- package/inventory/result/DescribeSimpleInventoryModelMastersResult.js.map +1 -0
- package/inventory/result/DescribeSimpleInventoryModelMastersResult.ts +73 -0
- package/inventory/result/DescribeSimpleInventoryModelsResult.d.ts +14 -0
- package/inventory/result/DescribeSimpleInventoryModelsResult.js +53 -0
- package/inventory/result/DescribeSimpleInventoryModelsResult.js.map +1 -0
- package/{version/result/DescribeBneAgreementTextUrlsResult.ts → inventory/result/DescribeSimpleInventoryModelsResult.ts} +10 -10
- package/inventory/result/DescribeSimpleItemModelMastersResult.d.ts +18 -0
- package/inventory/result/DescribeSimpleItemModelMastersResult.js +67 -0
- package/inventory/result/DescribeSimpleItemModelMastersResult.js.map +1 -0
- package/inventory/result/DescribeSimpleItemModelMastersResult.ts +73 -0
- package/inventory/result/DescribeSimpleItemModelsResult.d.ts +14 -0
- package/inventory/result/DescribeSimpleItemModelsResult.js +53 -0
- package/inventory/result/DescribeSimpleItemModelsResult.js.map +1 -0
- package/{version/result/DescribeBneAgreementTextUrlsByUserIdResult.ts → inventory/result/DescribeSimpleItemModelsResult.ts} +10 -10
- package/inventory/result/DescribeSimpleItemsByUserIdResult.d.ts +18 -0
- package/inventory/result/DescribeSimpleItemsByUserIdResult.js +67 -0
- package/inventory/result/DescribeSimpleItemsByUserIdResult.js.map +1 -0
- package/{serialKey/result/DescribeSerialCodesResult.ts → inventory/result/DescribeSimpleItemsByUserIdResult.ts} +11 -11
- package/{serialKey/result/DescribeSerialCodesResult.d.ts → inventory/result/DescribeSimpleItemsResult.d.ts} +6 -5
- package/{serialKey/result/DescribeSerialCodesResult.js → inventory/result/DescribeSimpleItemsResult.js} +18 -16
- package/inventory/result/DescribeSimpleItemsResult.js.map +1 -0
- package/{account/result/DescribeBnlinksResult.ts → inventory/result/DescribeSimpleItemsResult.ts} +10 -10
- package/inventory/result/GetSimpleInventoryModelMasterResult.d.ts +14 -0
- package/{watch/result/GetExperienceMetricsResult.js → inventory/result/GetSimpleInventoryModelMasterResult.js} +13 -13
- package/inventory/result/GetSimpleInventoryModelMasterResult.js.map +1 -0
- package/inventory/result/GetSimpleInventoryModelMasterResult.ts +48 -0
- package/inventory/result/GetSimpleInventoryModelResult.d.ts +14 -0
- package/{watch/result/GetExchangeMetricsResult.js → inventory/result/GetSimpleInventoryModelResult.js} +13 -13
- package/inventory/result/GetSimpleInventoryModelResult.js.map +1 -0
- package/{watch/result/GetShowcaseMetricsResult.ts → inventory/result/GetSimpleInventoryModelResult.ts} +9 -9
- package/inventory/result/GetSimpleItemByUserIdResult.d.ts +18 -0
- package/inventory/result/GetSimpleItemByUserIdResult.js +62 -0
- package/inventory/result/GetSimpleItemByUserIdResult.js.map +1 -0
- package/inventory/result/GetSimpleItemByUserIdResult.ts +65 -0
- package/inventory/result/GetSimpleItemModelMasterResult.d.ts +14 -0
- package/{watch/result/GetInventoryMetricsResult.js → inventory/result/GetSimpleItemModelMasterResult.js} +13 -13
- package/inventory/result/GetSimpleItemModelMasterResult.js.map +1 -0
- package/{lottery/result/GetRawBoxByUserIdResult.ts → inventory/result/GetSimpleItemModelMasterResult.ts} +9 -9
- package/inventory/result/GetSimpleItemModelResult.d.ts +14 -0
- package/{watch/result/GetShowcaseMetricsResult.js → inventory/result/GetSimpleItemModelResult.js} +13 -13
- package/inventory/result/GetSimpleItemModelResult.js.map +1 -0
- package/{account/result/DeleteBnlinkResult.ts → inventory/result/GetSimpleItemModelResult.ts} +9 -9
- package/inventory/result/GetSimpleItemResult.d.ts +18 -0
- package/inventory/result/GetSimpleItemResult.js +62 -0
- package/inventory/result/GetSimpleItemResult.js.map +1 -0
- package/inventory/result/GetSimpleItemResult.ts +65 -0
- package/inventory/result/GetSimpleItemWithSignatureByUserIdResult.d.ts +26 -0
- package/inventory/result/GetSimpleItemWithSignatureByUserIdResult.js +90 -0
- package/inventory/result/GetSimpleItemWithSignatureByUserIdResult.js.map +1 -0
- package/inventory/result/GetSimpleItemWithSignatureByUserIdResult.ts +99 -0
- package/inventory/result/GetSimpleItemWithSignatureResult.d.ts +26 -0
- package/inventory/result/GetSimpleItemWithSignatureResult.js +90 -0
- package/inventory/result/GetSimpleItemWithSignatureResult.js.map +1 -0
- package/inventory/result/GetSimpleItemWithSignatureResult.ts +99 -0
- package/inventory/result/UpdateSimpleInventoryModelMasterResult.d.ts +14 -0
- package/inventory/result/UpdateSimpleInventoryModelMasterResult.js +48 -0
- package/inventory/result/UpdateSimpleInventoryModelMasterResult.js.map +1 -0
- package/inventory/result/UpdateSimpleInventoryModelMasterResult.ts +48 -0
- package/inventory/result/UpdateSimpleItemModelMasterResult.d.ts +14 -0
- package/{watch/result/GetRankingMetricsResult.js → inventory/result/UpdateSimpleItemModelMasterResult.js} +13 -13
- package/inventory/result/UpdateSimpleItemModelMasterResult.js.map +1 -0
- package/inventory/result/UpdateSimpleItemModelMasterResult.ts +48 -0
- package/inventory/result/index.d.ts +27 -1
- package/inventory/result/index.js +54 -2
- package/inventory/result/index.js.map +1 -1
- package/inventory/result/index.ts +52 -0
- package/package.json +1 -1
- package/jest.config.cjs +0 -9
- package/lottery/request/GetRawBoxByUserIdRequest.js +0 -97
- package/lottery/request/GetRawBoxByUserIdRequest.js.map +0 -1
- package/lottery/result/GetRawBoxByUserIdResult.d.ts +0 -14
- package/lottery/result/GetRawBoxByUserIdResult.js.map +0 -1
- package/serialKey/request/DescribeSerialCodesRequest.js +0 -125
- package/serialKey/request/DescribeSerialCodesRequest.js.map +0 -1
- package/serialKey/result/DescribeSerialCodesResult.js.map +0 -1
- package/tsconfig.json +0 -37
- package/tslint.json +0 -31
- package/version/request/GetBneAgreementRequest.ts +0 -113
- package/version/request/GetBneAgreementUrlRequest.ts +0 -164
- package/version/result/GetBneAgreementUrlByUserIdResult.ts +0 -48
- package/watch/request/GetAccountMetricsRequest.js +0 -54
- package/watch/request/GetAccountMetricsRequest.js.map +0 -1
- package/watch/request/GetExchangeMetricsRequest.js +0 -54
- package/watch/request/GetExchangeMetricsRequest.js.map +0 -1
- package/watch/request/GetInboxMetricsRequest.js +0 -54
- package/watch/request/GetInboxMetricsRequest.js.map +0 -1
- package/watch/request/GetInventoryMetricsRequest.d.ts +0 -17
- package/watch/request/GetInventoryMetricsRequest.js +0 -54
- package/watch/request/GetInventoryMetricsRequest.js.map +0 -1
- package/watch/request/GetInventoryMetricsRequest.ts +0 -62
- package/watch/request/GetLimitMetricsRequest.d.ts +0 -17
- package/watch/request/GetLimitMetricsRequest.js +0 -54
- package/watch/request/GetLimitMetricsRequest.js.map +0 -1
- package/watch/request/GetLimitMetricsRequest.ts +0 -62
- package/watch/request/GetMatchmakingMetricsRequest.d.ts +0 -17
- package/watch/request/GetMatchmakingMetricsRequest.js +0 -54
- package/watch/request/GetMatchmakingMetricsRequest.js.map +0 -1
- package/watch/request/GetMatchmakingMetricsRequest.ts +0 -62
- package/watch/request/GetMoneyMetricsRequest.d.ts +0 -17
- package/watch/request/GetMoneyMetricsRequest.js +0 -54
- package/watch/request/GetMoneyMetricsRequest.js.map +0 -1
- package/watch/request/GetMoneyMetricsRequest.ts +0 -62
- package/watch/request/GetQuestMetricsRequest.d.ts +0 -17
- package/watch/request/GetQuestMetricsRequest.js +0 -54
- package/watch/request/GetQuestMetricsRequest.js.map +0 -1
- package/watch/request/GetQuestMetricsRequest.ts +0 -62
- package/watch/request/GetRankingMetricsRequest.d.ts +0 -17
- package/watch/request/GetRankingMetricsRequest.js +0 -54
- package/watch/request/GetRankingMetricsRequest.js.map +0 -1
- package/watch/request/GetRankingMetricsRequest.ts +0 -62
- package/watch/request/GetShowcaseMetricsRequest.d.ts +0 -17
- package/watch/request/GetShowcaseMetricsRequest.js +0 -54
- package/watch/request/GetShowcaseMetricsRequest.js.map +0 -1
- package/watch/request/GetShowcaseMetricsRequest.ts +0 -62
- package/watch/result/GetAccountMetricsResult.d.ts +0 -14
- package/watch/result/GetAccountMetricsResult.js.map +0 -1
- package/watch/result/GetAccountMetricsResult.ts +0 -48
- package/watch/result/GetExchangeMetricsResult.d.ts +0 -14
- package/watch/result/GetExchangeMetricsResult.js.map +0 -1
- package/watch/result/GetExchangeMetricsResult.ts +0 -48
- package/watch/result/GetExperienceMetricsResult.d.ts +0 -14
- package/watch/result/GetExperienceMetricsResult.js.map +0 -1
- package/watch/result/GetExperienceMetricsResult.ts +0 -48
- package/watch/result/GetInboxMetricsResult.d.ts +0 -14
- package/watch/result/GetInboxMetricsResult.js +0 -48
- package/watch/result/GetInboxMetricsResult.js.map +0 -1
- package/watch/result/GetInboxMetricsResult.ts +0 -48
- package/watch/result/GetInventoryMetricsResult.d.ts +0 -14
- package/watch/result/GetInventoryMetricsResult.js.map +0 -1
- package/watch/result/GetInventoryMetricsResult.ts +0 -48
- package/watch/result/GetLimitMetricsResult.d.ts +0 -14
- package/watch/result/GetLimitMetricsResult.js +0 -48
- package/watch/result/GetLimitMetricsResult.js.map +0 -1
- package/watch/result/GetLimitMetricsResult.ts +0 -48
- package/watch/result/GetMatchmakingMetricsResult.d.ts +0 -14
- package/watch/result/GetMatchmakingMetricsResult.js +0 -48
- package/watch/result/GetMatchmakingMetricsResult.js.map +0 -1
- package/watch/result/GetMatchmakingMetricsResult.ts +0 -48
- package/watch/result/GetMoneyMetricsResult.d.ts +0 -14
- package/watch/result/GetMoneyMetricsResult.js +0 -48
- package/watch/result/GetMoneyMetricsResult.js.map +0 -1
- package/watch/result/GetMoneyMetricsResult.ts +0 -48
- package/watch/result/GetQuestMetricsResult.d.ts +0 -14
- package/watch/result/GetQuestMetricsResult.js +0 -48
- package/watch/result/GetQuestMetricsResult.js.map +0 -1
- package/watch/result/GetQuestMetricsResult.ts +0 -48
- package/watch/result/GetRankingMetricsResult.d.ts +0 -14
- package/watch/result/GetRankingMetricsResult.js.map +0 -1
- package/watch/result/GetRankingMetricsResult.ts +0 -48
- package/watch/result/GetShowcaseMetricsResult.d.ts +0 -14
- package/watch/result/GetShowcaseMetricsResult.js.map +0 -1
package/inventory/rest.js
CHANGED
|
@@ -541,9 +541,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
541
541
|
throw JSON.parse(error.response.data.message);
|
|
542
542
|
});
|
|
543
543
|
};
|
|
544
|
-
Gs2InventoryRestClient.prototype.
|
|
545
|
-
var _a, _b, _c;
|
|
546
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/
|
|
544
|
+
Gs2InventoryRestClient.prototype.describeSimpleInventoryModelMasters = function (request) {
|
|
545
|
+
var _a, _b, _c, _d, _e;
|
|
546
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory')
|
|
547
547
|
.replace('{service}', 'inventory')
|
|
548
548
|
.replace('{region}', this.session.region)
|
|
549
549
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
|
|
@@ -553,19 +553,21 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
553
553
|
}
|
|
554
554
|
var params = {
|
|
555
555
|
'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
|
|
556
|
+
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
557
|
+
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
556
558
|
};
|
|
557
559
|
return axios_1.default.get(url, {
|
|
558
560
|
params: params,
|
|
559
561
|
headers: headers,
|
|
560
562
|
}).then(function (response) {
|
|
561
|
-
return Result.
|
|
563
|
+
return Result.DescribeSimpleInventoryModelMastersResult.fromDict(response.data);
|
|
562
564
|
}).catch(function (error) {
|
|
563
565
|
throw JSON.parse(error.response.data.message);
|
|
564
566
|
});
|
|
565
567
|
};
|
|
566
|
-
Gs2InventoryRestClient.prototype.
|
|
567
|
-
var _a, _b, _c;
|
|
568
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
568
|
+
Gs2InventoryRestClient.prototype.createSimpleInventoryModelMaster = function (request) {
|
|
569
|
+
var _a, _b, _c, _d, _e, _f;
|
|
570
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory')
|
|
569
571
|
.replace('{service}', 'inventory')
|
|
570
572
|
.replace('{region}', this.session.region)
|
|
571
573
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
|
|
@@ -573,63 +575,68 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
573
575
|
if (request.getRequestId()) {
|
|
574
576
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
575
577
|
}
|
|
576
|
-
var
|
|
578
|
+
var body = {
|
|
577
579
|
'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
|
|
580
|
+
'name': (_d = request.getName()) !== null && _d !== void 0 ? _d : null,
|
|
581
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
582
|
+
'metadata': (_f = request.getMetadata()) !== null && _f !== void 0 ? _f : null,
|
|
578
583
|
};
|
|
579
|
-
return axios_1.default.
|
|
580
|
-
params: params,
|
|
584
|
+
return axios_1.default.post(url, body, {
|
|
581
585
|
headers: headers,
|
|
582
586
|
}).then(function (response) {
|
|
583
|
-
return Result.
|
|
587
|
+
return Result.CreateSimpleInventoryModelMasterResult.fromDict(response.data);
|
|
584
588
|
}).catch(function (error) {
|
|
585
|
-
|
|
589
|
+
if (error.response) {
|
|
590
|
+
throw JSON.parse(error.response.data.message);
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
throw [];
|
|
594
|
+
}
|
|
586
595
|
});
|
|
587
596
|
};
|
|
588
|
-
Gs2InventoryRestClient.prototype.
|
|
589
|
-
var _a, _b, _c, _d;
|
|
590
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
597
|
+
Gs2InventoryRestClient.prototype.getSimpleInventoryModelMaster = function (request) {
|
|
598
|
+
var _a, _b, _c, _d, _e;
|
|
599
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}')
|
|
591
600
|
.replace('{service}', 'inventory')
|
|
592
601
|
.replace('{region}', this.session.region)
|
|
593
|
-
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
602
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
603
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
594
604
|
var headers = this.createAuthorizedHeaders();
|
|
595
605
|
if (request.getRequestId()) {
|
|
596
606
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
597
607
|
}
|
|
598
|
-
var
|
|
599
|
-
'contextStack': (
|
|
600
|
-
'settings': (_d = request.getSettings()) !== null && _d !== void 0 ? _d : null,
|
|
608
|
+
var params = {
|
|
609
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
601
610
|
};
|
|
602
|
-
return axios_1.default.
|
|
611
|
+
return axios_1.default.get(url, {
|
|
612
|
+
params: params,
|
|
603
613
|
headers: headers,
|
|
604
614
|
}).then(function (response) {
|
|
605
|
-
return Result.
|
|
615
|
+
return Result.GetSimpleInventoryModelMasterResult.fromDict(response.data);
|
|
606
616
|
}).catch(function (error) {
|
|
607
|
-
|
|
608
|
-
throw JSON.parse(error.response.data.message);
|
|
609
|
-
}
|
|
610
|
-
else {
|
|
611
|
-
throw [];
|
|
612
|
-
}
|
|
617
|
+
throw JSON.parse(error.response.data.message);
|
|
613
618
|
});
|
|
614
619
|
};
|
|
615
|
-
Gs2InventoryRestClient.prototype.
|
|
616
|
-
var _a, _b, _c, _d, _e;
|
|
617
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/
|
|
620
|
+
Gs2InventoryRestClient.prototype.updateSimpleInventoryModelMaster = function (request) {
|
|
621
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
622
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}')
|
|
618
623
|
.replace('{service}', 'inventory')
|
|
619
624
|
.replace('{region}', this.session.region)
|
|
620
|
-
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
625
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
626
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
621
627
|
var headers = this.createAuthorizedHeaders();
|
|
622
628
|
if (request.getRequestId()) {
|
|
623
629
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
624
630
|
}
|
|
625
631
|
var body = {
|
|
626
|
-
'contextStack': (
|
|
627
|
-
'
|
|
632
|
+
'contextStack': (_e = request.getContextStack()) !== 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,
|
|
628
635
|
};
|
|
629
636
|
return axios_1.default.put(url, body, {
|
|
630
637
|
headers: headers,
|
|
631
638
|
}).then(function (response) {
|
|
632
|
-
return Result.
|
|
639
|
+
return Result.UpdateSimpleInventoryModelMasterResult.fromDict(response.data);
|
|
633
640
|
}).catch(function (error) {
|
|
634
641
|
if (error.response) {
|
|
635
642
|
throw JSON.parse(error.response.data.message);
|
|
@@ -639,61 +646,54 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
639
646
|
}
|
|
640
647
|
});
|
|
641
648
|
};
|
|
642
|
-
Gs2InventoryRestClient.prototype.
|
|
643
|
-
var _a, _b, _c, _d, _e
|
|
644
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/
|
|
649
|
+
Gs2InventoryRestClient.prototype.deleteSimpleInventoryModelMaster = function (request) {
|
|
650
|
+
var _a, _b, _c, _d, _e;
|
|
651
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}')
|
|
645
652
|
.replace('{service}', 'inventory')
|
|
646
653
|
.replace('{region}', this.session.region)
|
|
647
|
-
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
654
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
655
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
648
656
|
var headers = this.createAuthorizedHeaders();
|
|
649
657
|
if (request.getRequestId()) {
|
|
650
658
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
651
659
|
}
|
|
652
|
-
if (request.getAccessToken()) {
|
|
653
|
-
headers['X-GS2-ACCESS-TOKEN'] = (_c = request.getAccessToken()) !== null && _c !== void 0 ? _c : null;
|
|
654
|
-
}
|
|
655
660
|
var params = {
|
|
656
|
-
'contextStack': (
|
|
657
|
-
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
658
|
-
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
661
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
659
662
|
};
|
|
660
|
-
return axios_1.default.
|
|
663
|
+
return axios_1.default.delete(url, {
|
|
661
664
|
params: params,
|
|
662
665
|
headers: headers,
|
|
663
666
|
}).then(function (response) {
|
|
664
|
-
return Result.
|
|
667
|
+
return Result.DeleteSimpleInventoryModelMasterResult.fromDict(response.data);
|
|
665
668
|
}).catch(function (error) {
|
|
666
669
|
throw JSON.parse(error.response.data.message);
|
|
667
670
|
});
|
|
668
671
|
};
|
|
669
|
-
Gs2InventoryRestClient.prototype.
|
|
670
|
-
var _a, _b, _c
|
|
671
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/
|
|
672
|
+
Gs2InventoryRestClient.prototype.describeSimpleInventoryModels = function (request) {
|
|
673
|
+
var _a, _b, _c;
|
|
674
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory')
|
|
672
675
|
.replace('{service}', 'inventory')
|
|
673
676
|
.replace('{region}', this.session.region)
|
|
674
|
-
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
675
|
-
.replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'));
|
|
677
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
|
|
676
678
|
var headers = this.createAuthorizedHeaders();
|
|
677
679
|
if (request.getRequestId()) {
|
|
678
680
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
679
681
|
}
|
|
680
682
|
var params = {
|
|
681
|
-
'contextStack': (
|
|
682
|
-
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
683
|
-
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
683
|
+
'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
|
|
684
684
|
};
|
|
685
685
|
return axios_1.default.get(url, {
|
|
686
686
|
params: params,
|
|
687
687
|
headers: headers,
|
|
688
688
|
}).then(function (response) {
|
|
689
|
-
return Result.
|
|
689
|
+
return Result.DescribeSimpleInventoryModelsResult.fromDict(response.data);
|
|
690
690
|
}).catch(function (error) {
|
|
691
691
|
throw JSON.parse(error.response.data.message);
|
|
692
692
|
});
|
|
693
693
|
};
|
|
694
|
-
Gs2InventoryRestClient.prototype.
|
|
695
|
-
var _a, _b, _c, _d, _e
|
|
696
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/
|
|
694
|
+
Gs2InventoryRestClient.prototype.getSimpleInventoryModel = function (request) {
|
|
695
|
+
var _a, _b, _c, _d, _e;
|
|
696
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory/{inventoryName}')
|
|
697
697
|
.replace('{service}', 'inventory')
|
|
698
698
|
.replace('{region}', this.session.region)
|
|
699
699
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
@@ -702,100 +702,64 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
702
702
|
if (request.getRequestId()) {
|
|
703
703
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
704
704
|
}
|
|
705
|
-
if (request.getAccessToken()) {
|
|
706
|
-
headers['X-GS2-ACCESS-TOKEN'] = (_e = request.getAccessToken()) !== null && _e !== void 0 ? _e : null;
|
|
707
|
-
}
|
|
708
705
|
var params = {
|
|
709
|
-
'contextStack': (
|
|
706
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
710
707
|
};
|
|
711
708
|
return axios_1.default.get(url, {
|
|
712
709
|
params: params,
|
|
713
710
|
headers: headers,
|
|
714
711
|
}).then(function (response) {
|
|
715
|
-
return Result.
|
|
712
|
+
return Result.GetSimpleInventoryModelResult.fromDict(response.data);
|
|
716
713
|
}).catch(function (error) {
|
|
717
714
|
throw JSON.parse(error.response.data.message);
|
|
718
715
|
});
|
|
719
716
|
};
|
|
720
|
-
Gs2InventoryRestClient.prototype.
|
|
717
|
+
Gs2InventoryRestClient.prototype.describeSimpleItemModelMasters = function (request) {
|
|
721
718
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
722
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/
|
|
719
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item')
|
|
723
720
|
.replace('{service}', 'inventory')
|
|
724
721
|
.replace('{region}', this.session.region)
|
|
725
722
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
726
|
-
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
727
|
-
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
723
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
728
724
|
var headers = this.createAuthorizedHeaders();
|
|
729
725
|
if (request.getRequestId()) {
|
|
730
726
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
731
727
|
}
|
|
732
728
|
var params = {
|
|
733
|
-
'contextStack': (
|
|
729
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
730
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
731
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
734
732
|
};
|
|
735
733
|
return axios_1.default.get(url, {
|
|
736
734
|
params: params,
|
|
737
735
|
headers: headers,
|
|
738
736
|
}).then(function (response) {
|
|
739
|
-
return Result.
|
|
737
|
+
return Result.DescribeSimpleItemModelMastersResult.fromDict(response.data);
|
|
740
738
|
}).catch(function (error) {
|
|
741
739
|
throw JSON.parse(error.response.data.message);
|
|
742
740
|
});
|
|
743
741
|
};
|
|
744
|
-
Gs2InventoryRestClient.prototype.
|
|
745
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
746
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/
|
|
742
|
+
Gs2InventoryRestClient.prototype.createSimpleItemModelMaster = function (request) {
|
|
743
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
744
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item')
|
|
747
745
|
.replace('{service}', 'inventory')
|
|
748
746
|
.replace('{region}', this.session.region)
|
|
749
747
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
750
|
-
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
751
|
-
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
748
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
752
749
|
var headers = this.createAuthorizedHeaders();
|
|
753
750
|
if (request.getRequestId()) {
|
|
754
751
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
755
752
|
}
|
|
756
|
-
if (request.getDuplicationAvoider()) {
|
|
757
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
758
|
-
}
|
|
759
753
|
var body = {
|
|
760
|
-
'contextStack': (
|
|
761
|
-
'
|
|
754
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
755
|
+
'name': (_f = request.getName()) !== null && _f !== void 0 ? _f : null,
|
|
756
|
+
'description': (_g = request.getDescription()) !== null && _g !== void 0 ? _g : null,
|
|
757
|
+
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
762
758
|
};
|
|
763
759
|
return axios_1.default.post(url, body, {
|
|
764
760
|
headers: headers,
|
|
765
761
|
}).then(function (response) {
|
|
766
|
-
return Result.
|
|
767
|
-
}).catch(function (error) {
|
|
768
|
-
if (error.response) {
|
|
769
|
-
throw JSON.parse(error.response.data.message);
|
|
770
|
-
}
|
|
771
|
-
else {
|
|
772
|
-
throw [];
|
|
773
|
-
}
|
|
774
|
-
});
|
|
775
|
-
};
|
|
776
|
-
Gs2InventoryRestClient.prototype.setCapacityByUserId = function (request) {
|
|
777
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
778
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/capacity')
|
|
779
|
-
.replace('{service}', 'inventory')
|
|
780
|
-
.replace('{region}', this.session.region)
|
|
781
|
-
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
782
|
-
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
783
|
-
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
784
|
-
var headers = this.createAuthorizedHeaders();
|
|
785
|
-
if (request.getRequestId()) {
|
|
786
|
-
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
787
|
-
}
|
|
788
|
-
if (request.getDuplicationAvoider()) {
|
|
789
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
790
|
-
}
|
|
791
|
-
var body = {
|
|
792
|
-
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
793
|
-
'newCapacityValue': (_j = request.getNewCapacityValue()) !== null && _j !== void 0 ? _j : null,
|
|
794
|
-
};
|
|
795
|
-
return axios_1.default.put(url, body, {
|
|
796
|
-
headers: headers,
|
|
797
|
-
}).then(function (response) {
|
|
798
|
-
return Result.SetCapacityByUserIdResult.fromDict(response.data);
|
|
762
|
+
return Result.CreateSimpleItemModelMasterResult.fromDict(response.data);
|
|
799
763
|
}).catch(function (error) {
|
|
800
764
|
if (error.response) {
|
|
801
765
|
throw JSON.parse(error.response.data.message);
|
|
@@ -805,51 +769,51 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
805
769
|
}
|
|
806
770
|
});
|
|
807
771
|
};
|
|
808
|
-
Gs2InventoryRestClient.prototype.
|
|
809
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
810
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/
|
|
772
|
+
Gs2InventoryRestClient.prototype.getSimpleItemModelMaster = function (request) {
|
|
773
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
774
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item/{itemName}')
|
|
811
775
|
.replace('{service}', 'inventory')
|
|
812
776
|
.replace('{region}', this.session.region)
|
|
813
777
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
814
778
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
815
|
-
.replace('{
|
|
779
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
816
780
|
var headers = this.createAuthorizedHeaders();
|
|
817
781
|
if (request.getRequestId()) {
|
|
818
782
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
819
783
|
}
|
|
820
|
-
if (request.getDuplicationAvoider()) {
|
|
821
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
822
|
-
}
|
|
823
784
|
var params = {
|
|
824
|
-
'contextStack': (
|
|
785
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
825
786
|
};
|
|
826
|
-
return axios_1.default.
|
|
787
|
+
return axios_1.default.get(url, {
|
|
827
788
|
params: params,
|
|
828
789
|
headers: headers,
|
|
829
790
|
}).then(function (response) {
|
|
830
|
-
return Result.
|
|
791
|
+
return Result.GetSimpleItemModelMasterResult.fromDict(response.data);
|
|
831
792
|
}).catch(function (error) {
|
|
832
793
|
throw JSON.parse(error.response.data.message);
|
|
833
794
|
});
|
|
834
795
|
};
|
|
835
|
-
Gs2InventoryRestClient.prototype.
|
|
836
|
-
var _a, _b, _c;
|
|
837
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/
|
|
796
|
+
Gs2InventoryRestClient.prototype.updateSimpleItemModelMaster = function (request) {
|
|
797
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
798
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item/{itemName}')
|
|
838
799
|
.replace('{service}', 'inventory')
|
|
839
|
-
.replace('{region}', this.session.region)
|
|
800
|
+
.replace('{region}', this.session.region)
|
|
801
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
802
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
803
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
840
804
|
var headers = this.createAuthorizedHeaders();
|
|
841
805
|
if (request.getRequestId()) {
|
|
842
806
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
843
807
|
}
|
|
844
808
|
var body = {
|
|
845
|
-
'contextStack': (
|
|
846
|
-
'
|
|
847
|
-
'
|
|
809
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
810
|
+
'description': (_h = request.getDescription()) !== null && _h !== void 0 ? _h : null,
|
|
811
|
+
'metadata': (_j = request.getMetadata()) !== null && _j !== void 0 ? _j : null,
|
|
848
812
|
};
|
|
849
|
-
return axios_1.default.
|
|
813
|
+
return axios_1.default.put(url, body, {
|
|
850
814
|
headers: headers,
|
|
851
815
|
}).then(function (response) {
|
|
852
|
-
return Result.
|
|
816
|
+
return Result.UpdateSimpleItemModelMasterResult.fromDict(response.data);
|
|
853
817
|
}).catch(function (error) {
|
|
854
818
|
if (error.response) {
|
|
855
819
|
throw JSON.parse(error.response.data.message);
|
|
@@ -859,36 +823,33 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
859
823
|
}
|
|
860
824
|
});
|
|
861
825
|
};
|
|
862
|
-
Gs2InventoryRestClient.prototype.
|
|
863
|
-
var _a, _b, _c;
|
|
864
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/
|
|
826
|
+
Gs2InventoryRestClient.prototype.deleteSimpleItemModelMaster = function (request) {
|
|
827
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
828
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/simple/inventory/{inventoryName}/item/{itemName}')
|
|
865
829
|
.replace('{service}', 'inventory')
|
|
866
|
-
.replace('{region}', this.session.region)
|
|
830
|
+
.replace('{region}', this.session.region)
|
|
831
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
832
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
833
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
867
834
|
var headers = this.createAuthorizedHeaders();
|
|
868
835
|
if (request.getRequestId()) {
|
|
869
836
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
870
837
|
}
|
|
871
|
-
var
|
|
872
|
-
'contextStack': (
|
|
873
|
-
'stampSheet': (_b = request.getStampSheet()) !== null && _b !== void 0 ? _b : null,
|
|
874
|
-
'keyId': (_c = request.getKeyId()) !== null && _c !== void 0 ? _c : null,
|
|
838
|
+
var params = {
|
|
839
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
875
840
|
};
|
|
876
|
-
return axios_1.default.
|
|
841
|
+
return axios_1.default.delete(url, {
|
|
842
|
+
params: params,
|
|
877
843
|
headers: headers,
|
|
878
844
|
}).then(function (response) {
|
|
879
|
-
return Result.
|
|
845
|
+
return Result.DeleteSimpleItemModelMasterResult.fromDict(response.data);
|
|
880
846
|
}).catch(function (error) {
|
|
881
|
-
|
|
882
|
-
throw JSON.parse(error.response.data.message);
|
|
883
|
-
}
|
|
884
|
-
else {
|
|
885
|
-
throw [];
|
|
886
|
-
}
|
|
847
|
+
throw JSON.parse(error.response.data.message);
|
|
887
848
|
});
|
|
888
849
|
};
|
|
889
|
-
Gs2InventoryRestClient.prototype.
|
|
890
|
-
var _a, _b, _c, _d, _e
|
|
891
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/
|
|
850
|
+
Gs2InventoryRestClient.prototype.describeSimpleItemModels = function (request) {
|
|
851
|
+
var _a, _b, _c, _d, _e;
|
|
852
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory/{inventoryName}/item')
|
|
892
853
|
.replace('{service}', 'inventory')
|
|
893
854
|
.replace('{region}', this.session.region)
|
|
894
855
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
@@ -897,67 +858,459 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
897
858
|
if (request.getRequestId()) {
|
|
898
859
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
899
860
|
}
|
|
900
|
-
if (request.getAccessToken()) {
|
|
901
|
-
headers['X-GS2-ACCESS-TOKEN'] = (_e = request.getAccessToken()) !== null && _e !== void 0 ? _e : null;
|
|
902
|
-
}
|
|
903
861
|
var params = {
|
|
904
|
-
'contextStack': (
|
|
905
|
-
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
906
|
-
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
862
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
907
863
|
};
|
|
908
864
|
return axios_1.default.get(url, {
|
|
909
865
|
params: params,
|
|
910
866
|
headers: headers,
|
|
911
867
|
}).then(function (response) {
|
|
912
|
-
return Result.
|
|
868
|
+
return Result.DescribeSimpleItemModelsResult.fromDict(response.data);
|
|
913
869
|
}).catch(function (error) {
|
|
914
870
|
throw JSON.parse(error.response.data.message);
|
|
915
871
|
});
|
|
916
872
|
};
|
|
917
|
-
Gs2InventoryRestClient.prototype.
|
|
918
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
919
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/
|
|
873
|
+
Gs2InventoryRestClient.prototype.getSimpleItemModel = function (request) {
|
|
874
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
875
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/simple/inventory/{inventoryName}/item/{itemName}')
|
|
920
876
|
.replace('{service}', 'inventory')
|
|
921
877
|
.replace('{region}', this.session.region)
|
|
922
878
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
923
879
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
924
|
-
.replace('{
|
|
880
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
925
881
|
var headers = this.createAuthorizedHeaders();
|
|
926
882
|
if (request.getRequestId()) {
|
|
927
883
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
928
884
|
}
|
|
929
885
|
var params = {
|
|
930
886
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
931
|
-
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
932
|
-
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
933
887
|
};
|
|
934
888
|
return axios_1.default.get(url, {
|
|
935
889
|
params: params,
|
|
936
890
|
headers: headers,
|
|
937
891
|
}).then(function (response) {
|
|
938
|
-
return Result.
|
|
892
|
+
return Result.GetSimpleItemModelResult.fromDict(response.data);
|
|
939
893
|
}).catch(function (error) {
|
|
940
894
|
throw JSON.parse(error.response.data.message);
|
|
941
895
|
});
|
|
942
896
|
};
|
|
943
|
-
Gs2InventoryRestClient.prototype.
|
|
944
|
-
var _a, _b, _c
|
|
945
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/
|
|
897
|
+
Gs2InventoryRestClient.prototype.exportMaster = function (request) {
|
|
898
|
+
var _a, _b, _c;
|
|
899
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
946
900
|
.replace('{service}', 'inventory')
|
|
947
901
|
.replace('{region}', this.session.region)
|
|
948
|
-
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
949
|
-
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
950
|
-
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
902
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
|
|
951
903
|
var headers = this.createAuthorizedHeaders();
|
|
952
904
|
if (request.getRequestId()) {
|
|
953
905
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
954
906
|
}
|
|
955
|
-
if (request.getAccessToken()) {
|
|
956
|
-
headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
|
|
957
|
-
}
|
|
958
907
|
var params = {
|
|
959
|
-
'contextStack': (
|
|
960
|
-
|
|
908
|
+
'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
|
|
909
|
+
};
|
|
910
|
+
return axios_1.default.get(url, {
|
|
911
|
+
params: params,
|
|
912
|
+
headers: headers,
|
|
913
|
+
}).then(function (response) {
|
|
914
|
+
return Result.ExportMasterResult.fromDict(response.data);
|
|
915
|
+
}).catch(function (error) {
|
|
916
|
+
throw JSON.parse(error.response.data.message);
|
|
917
|
+
});
|
|
918
|
+
};
|
|
919
|
+
Gs2InventoryRestClient.prototype.getCurrentItemModelMaster = function (request) {
|
|
920
|
+
var _a, _b, _c;
|
|
921
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
922
|
+
.replace('{service}', 'inventory')
|
|
923
|
+
.replace('{region}', this.session.region)
|
|
924
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
|
|
925
|
+
var headers = this.createAuthorizedHeaders();
|
|
926
|
+
if (request.getRequestId()) {
|
|
927
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
928
|
+
}
|
|
929
|
+
var params = {
|
|
930
|
+
'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
|
|
931
|
+
};
|
|
932
|
+
return axios_1.default.get(url, {
|
|
933
|
+
params: params,
|
|
934
|
+
headers: headers,
|
|
935
|
+
}).then(function (response) {
|
|
936
|
+
return Result.GetCurrentItemModelMasterResult.fromDict(response.data);
|
|
937
|
+
}).catch(function (error) {
|
|
938
|
+
throw JSON.parse(error.response.data.message);
|
|
939
|
+
});
|
|
940
|
+
};
|
|
941
|
+
Gs2InventoryRestClient.prototype.updateCurrentItemModelMaster = function (request) {
|
|
942
|
+
var _a, _b, _c, _d;
|
|
943
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
944
|
+
.replace('{service}', 'inventory')
|
|
945
|
+
.replace('{region}', this.session.region)
|
|
946
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
|
|
947
|
+
var headers = this.createAuthorizedHeaders();
|
|
948
|
+
if (request.getRequestId()) {
|
|
949
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
950
|
+
}
|
|
951
|
+
var body = {
|
|
952
|
+
'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
|
|
953
|
+
'settings': (_d = request.getSettings()) !== null && _d !== void 0 ? _d : null,
|
|
954
|
+
};
|
|
955
|
+
return axios_1.default.put(url, body, {
|
|
956
|
+
headers: headers,
|
|
957
|
+
}).then(function (response) {
|
|
958
|
+
return Result.UpdateCurrentItemModelMasterResult.fromDict(response.data);
|
|
959
|
+
}).catch(function (error) {
|
|
960
|
+
if (error.response) {
|
|
961
|
+
throw JSON.parse(error.response.data.message);
|
|
962
|
+
}
|
|
963
|
+
else {
|
|
964
|
+
throw [];
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
};
|
|
968
|
+
Gs2InventoryRestClient.prototype.updateCurrentItemModelMasterFromGitHub = function (request) {
|
|
969
|
+
var _a, _b, _c, _d, _e;
|
|
970
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
971
|
+
.replace('{service}', 'inventory')
|
|
972
|
+
.replace('{region}', this.session.region)
|
|
973
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
|
|
974
|
+
var headers = this.createAuthorizedHeaders();
|
|
975
|
+
if (request.getRequestId()) {
|
|
976
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
977
|
+
}
|
|
978
|
+
var body = {
|
|
979
|
+
'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
|
|
980
|
+
'checkoutSetting': (_e = (_d = request.getCheckoutSetting()) === null || _d === void 0 ? void 0 : _d.toDict()) !== null && _e !== void 0 ? _e : null,
|
|
981
|
+
};
|
|
982
|
+
return axios_1.default.put(url, body, {
|
|
983
|
+
headers: headers,
|
|
984
|
+
}).then(function (response) {
|
|
985
|
+
return Result.UpdateCurrentItemModelMasterFromGitHubResult.fromDict(response.data);
|
|
986
|
+
}).catch(function (error) {
|
|
987
|
+
if (error.response) {
|
|
988
|
+
throw JSON.parse(error.response.data.message);
|
|
989
|
+
}
|
|
990
|
+
else {
|
|
991
|
+
throw [];
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
};
|
|
995
|
+
Gs2InventoryRestClient.prototype.describeInventories = function (request) {
|
|
996
|
+
var _a, _b, _c, _d, _e, _f;
|
|
997
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory')
|
|
998
|
+
.replace('{service}', 'inventory')
|
|
999
|
+
.replace('{region}', this.session.region)
|
|
1000
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
|
|
1001
|
+
var headers = this.createAuthorizedHeaders();
|
|
1002
|
+
if (request.getRequestId()) {
|
|
1003
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1004
|
+
}
|
|
1005
|
+
if (request.getAccessToken()) {
|
|
1006
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_c = request.getAccessToken()) !== null && _c !== void 0 ? _c : null;
|
|
1007
|
+
}
|
|
1008
|
+
var params = {
|
|
1009
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1010
|
+
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
1011
|
+
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
1012
|
+
};
|
|
1013
|
+
return axios_1.default.get(url, {
|
|
1014
|
+
params: params,
|
|
1015
|
+
headers: headers,
|
|
1016
|
+
}).then(function (response) {
|
|
1017
|
+
return Result.DescribeInventoriesResult.fromDict(response.data);
|
|
1018
|
+
}).catch(function (error) {
|
|
1019
|
+
throw JSON.parse(error.response.data.message);
|
|
1020
|
+
});
|
|
1021
|
+
};
|
|
1022
|
+
Gs2InventoryRestClient.prototype.describeInventoriesByUserId = function (request) {
|
|
1023
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1024
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory')
|
|
1025
|
+
.replace('{service}', 'inventory')
|
|
1026
|
+
.replace('{region}', this.session.region)
|
|
1027
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1028
|
+
.replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'));
|
|
1029
|
+
var headers = this.createAuthorizedHeaders();
|
|
1030
|
+
if (request.getRequestId()) {
|
|
1031
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1032
|
+
}
|
|
1033
|
+
var params = {
|
|
1034
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
1035
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1036
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1037
|
+
};
|
|
1038
|
+
return axios_1.default.get(url, {
|
|
1039
|
+
params: params,
|
|
1040
|
+
headers: headers,
|
|
1041
|
+
}).then(function (response) {
|
|
1042
|
+
return Result.DescribeInventoriesByUserIdResult.fromDict(response.data);
|
|
1043
|
+
}).catch(function (error) {
|
|
1044
|
+
throw JSON.parse(error.response.data.message);
|
|
1045
|
+
});
|
|
1046
|
+
};
|
|
1047
|
+
Gs2InventoryRestClient.prototype.getInventory = function (request) {
|
|
1048
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1049
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}')
|
|
1050
|
+
.replace('{service}', 'inventory')
|
|
1051
|
+
.replace('{region}', this.session.region)
|
|
1052
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1053
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
1054
|
+
var headers = this.createAuthorizedHeaders();
|
|
1055
|
+
if (request.getRequestId()) {
|
|
1056
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1057
|
+
}
|
|
1058
|
+
if (request.getAccessToken()) {
|
|
1059
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_e = request.getAccessToken()) !== null && _e !== void 0 ? _e : null;
|
|
1060
|
+
}
|
|
1061
|
+
var params = {
|
|
1062
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1063
|
+
};
|
|
1064
|
+
return axios_1.default.get(url, {
|
|
1065
|
+
params: params,
|
|
1066
|
+
headers: headers,
|
|
1067
|
+
}).then(function (response) {
|
|
1068
|
+
return Result.GetInventoryResult.fromDict(response.data);
|
|
1069
|
+
}).catch(function (error) {
|
|
1070
|
+
throw JSON.parse(error.response.data.message);
|
|
1071
|
+
});
|
|
1072
|
+
};
|
|
1073
|
+
Gs2InventoryRestClient.prototype.getInventoryByUserId = function (request) {
|
|
1074
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1075
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}')
|
|
1076
|
+
.replace('{service}', 'inventory')
|
|
1077
|
+
.replace('{region}', this.session.region)
|
|
1078
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1079
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1080
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1081
|
+
var headers = this.createAuthorizedHeaders();
|
|
1082
|
+
if (request.getRequestId()) {
|
|
1083
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1084
|
+
}
|
|
1085
|
+
var params = {
|
|
1086
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1087
|
+
};
|
|
1088
|
+
return axios_1.default.get(url, {
|
|
1089
|
+
params: params,
|
|
1090
|
+
headers: headers,
|
|
1091
|
+
}).then(function (response) {
|
|
1092
|
+
return Result.GetInventoryByUserIdResult.fromDict(response.data);
|
|
1093
|
+
}).catch(function (error) {
|
|
1094
|
+
throw JSON.parse(error.response.data.message);
|
|
1095
|
+
});
|
|
1096
|
+
};
|
|
1097
|
+
Gs2InventoryRestClient.prototype.addCapacityByUserId = function (request) {
|
|
1098
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1099
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/capacity')
|
|
1100
|
+
.replace('{service}', 'inventory')
|
|
1101
|
+
.replace('{region}', this.session.region)
|
|
1102
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1103
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1104
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1105
|
+
var headers = this.createAuthorizedHeaders();
|
|
1106
|
+
if (request.getRequestId()) {
|
|
1107
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1108
|
+
}
|
|
1109
|
+
if (request.getDuplicationAvoider()) {
|
|
1110
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1111
|
+
}
|
|
1112
|
+
var body = {
|
|
1113
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1114
|
+
'addCapacityValue': (_j = request.getAddCapacityValue()) !== null && _j !== void 0 ? _j : null,
|
|
1115
|
+
};
|
|
1116
|
+
return axios_1.default.post(url, body, {
|
|
1117
|
+
headers: headers,
|
|
1118
|
+
}).then(function (response) {
|
|
1119
|
+
return Result.AddCapacityByUserIdResult.fromDict(response.data);
|
|
1120
|
+
}).catch(function (error) {
|
|
1121
|
+
if (error.response) {
|
|
1122
|
+
throw JSON.parse(error.response.data.message);
|
|
1123
|
+
}
|
|
1124
|
+
else {
|
|
1125
|
+
throw [];
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
};
|
|
1129
|
+
Gs2InventoryRestClient.prototype.setCapacityByUserId = function (request) {
|
|
1130
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1131
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/capacity')
|
|
1132
|
+
.replace('{service}', 'inventory')
|
|
1133
|
+
.replace('{region}', this.session.region)
|
|
1134
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1135
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1136
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1137
|
+
var headers = this.createAuthorizedHeaders();
|
|
1138
|
+
if (request.getRequestId()) {
|
|
1139
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1140
|
+
}
|
|
1141
|
+
if (request.getDuplicationAvoider()) {
|
|
1142
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1143
|
+
}
|
|
1144
|
+
var body = {
|
|
1145
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1146
|
+
'newCapacityValue': (_j = request.getNewCapacityValue()) !== null && _j !== void 0 ? _j : null,
|
|
1147
|
+
};
|
|
1148
|
+
return axios_1.default.put(url, body, {
|
|
1149
|
+
headers: headers,
|
|
1150
|
+
}).then(function (response) {
|
|
1151
|
+
return Result.SetCapacityByUserIdResult.fromDict(response.data);
|
|
1152
|
+
}).catch(function (error) {
|
|
1153
|
+
if (error.response) {
|
|
1154
|
+
throw JSON.parse(error.response.data.message);
|
|
1155
|
+
}
|
|
1156
|
+
else {
|
|
1157
|
+
throw [];
|
|
1158
|
+
}
|
|
1159
|
+
});
|
|
1160
|
+
};
|
|
1161
|
+
Gs2InventoryRestClient.prototype.deleteInventoryByUserId = function (request) {
|
|
1162
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1163
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}')
|
|
1164
|
+
.replace('{service}', 'inventory')
|
|
1165
|
+
.replace('{region}', this.session.region)
|
|
1166
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1167
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1168
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1169
|
+
var headers = this.createAuthorizedHeaders();
|
|
1170
|
+
if (request.getRequestId()) {
|
|
1171
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1172
|
+
}
|
|
1173
|
+
if (request.getDuplicationAvoider()) {
|
|
1174
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1175
|
+
}
|
|
1176
|
+
var params = {
|
|
1177
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1178
|
+
};
|
|
1179
|
+
return axios_1.default.delete(url, {
|
|
1180
|
+
params: params,
|
|
1181
|
+
headers: headers,
|
|
1182
|
+
}).then(function (response) {
|
|
1183
|
+
return Result.DeleteInventoryByUserIdResult.fromDict(response.data);
|
|
1184
|
+
}).catch(function (error) {
|
|
1185
|
+
throw JSON.parse(error.response.data.message);
|
|
1186
|
+
});
|
|
1187
|
+
};
|
|
1188
|
+
Gs2InventoryRestClient.prototype.addCapacityByStampSheet = function (request) {
|
|
1189
|
+
var _a, _b, _c;
|
|
1190
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/inventory/capacity/add')
|
|
1191
|
+
.replace('{service}', 'inventory')
|
|
1192
|
+
.replace('{region}', this.session.region);
|
|
1193
|
+
var headers = this.createAuthorizedHeaders();
|
|
1194
|
+
if (request.getRequestId()) {
|
|
1195
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1196
|
+
}
|
|
1197
|
+
var body = {
|
|
1198
|
+
'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
|
|
1199
|
+
'stampSheet': (_b = request.getStampSheet()) !== null && _b !== void 0 ? _b : null,
|
|
1200
|
+
'keyId': (_c = request.getKeyId()) !== null && _c !== void 0 ? _c : null,
|
|
1201
|
+
};
|
|
1202
|
+
return axios_1.default.post(url, body, {
|
|
1203
|
+
headers: headers,
|
|
1204
|
+
}).then(function (response) {
|
|
1205
|
+
return Result.AddCapacityByStampSheetResult.fromDict(response.data);
|
|
1206
|
+
}).catch(function (error) {
|
|
1207
|
+
if (error.response) {
|
|
1208
|
+
throw JSON.parse(error.response.data.message);
|
|
1209
|
+
}
|
|
1210
|
+
else {
|
|
1211
|
+
throw [];
|
|
1212
|
+
}
|
|
1213
|
+
});
|
|
1214
|
+
};
|
|
1215
|
+
Gs2InventoryRestClient.prototype.setCapacityByStampSheet = function (request) {
|
|
1216
|
+
var _a, _b, _c;
|
|
1217
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/inventory/capacity/set')
|
|
1218
|
+
.replace('{service}', 'inventory')
|
|
1219
|
+
.replace('{region}', this.session.region);
|
|
1220
|
+
var headers = this.createAuthorizedHeaders();
|
|
1221
|
+
if (request.getRequestId()) {
|
|
1222
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1223
|
+
}
|
|
1224
|
+
var body = {
|
|
1225
|
+
'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
|
|
1226
|
+
'stampSheet': (_b = request.getStampSheet()) !== null && _b !== void 0 ? _b : null,
|
|
1227
|
+
'keyId': (_c = request.getKeyId()) !== null && _c !== void 0 ? _c : null,
|
|
1228
|
+
};
|
|
1229
|
+
return axios_1.default.post(url, body, {
|
|
1230
|
+
headers: headers,
|
|
1231
|
+
}).then(function (response) {
|
|
1232
|
+
return Result.SetCapacityByStampSheetResult.fromDict(response.data);
|
|
1233
|
+
}).catch(function (error) {
|
|
1234
|
+
if (error.response) {
|
|
1235
|
+
throw JSON.parse(error.response.data.message);
|
|
1236
|
+
}
|
|
1237
|
+
else {
|
|
1238
|
+
throw [];
|
|
1239
|
+
}
|
|
1240
|
+
});
|
|
1241
|
+
};
|
|
1242
|
+
Gs2InventoryRestClient.prototype.describeItemSets = function (request) {
|
|
1243
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1244
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item')
|
|
1245
|
+
.replace('{service}', 'inventory')
|
|
1246
|
+
.replace('{region}', this.session.region)
|
|
1247
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1248
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
1249
|
+
var headers = this.createAuthorizedHeaders();
|
|
1250
|
+
if (request.getRequestId()) {
|
|
1251
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1252
|
+
}
|
|
1253
|
+
if (request.getAccessToken()) {
|
|
1254
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_e = request.getAccessToken()) !== null && _e !== void 0 ? _e : null;
|
|
1255
|
+
}
|
|
1256
|
+
var params = {
|
|
1257
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1258
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
1259
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
1260
|
+
};
|
|
1261
|
+
return axios_1.default.get(url, {
|
|
1262
|
+
params: params,
|
|
1263
|
+
headers: headers,
|
|
1264
|
+
}).then(function (response) {
|
|
1265
|
+
return Result.DescribeItemSetsResult.fromDict(response.data);
|
|
1266
|
+
}).catch(function (error) {
|
|
1267
|
+
throw JSON.parse(error.response.data.message);
|
|
1268
|
+
});
|
|
1269
|
+
};
|
|
1270
|
+
Gs2InventoryRestClient.prototype.describeItemSetsByUserId = function (request) {
|
|
1271
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1272
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item')
|
|
1273
|
+
.replace('{service}', 'inventory')
|
|
1274
|
+
.replace('{region}', this.session.region)
|
|
1275
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1276
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1277
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1278
|
+
var headers = this.createAuthorizedHeaders();
|
|
1279
|
+
if (request.getRequestId()) {
|
|
1280
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1281
|
+
}
|
|
1282
|
+
var params = {
|
|
1283
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1284
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1285
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1286
|
+
};
|
|
1287
|
+
return axios_1.default.get(url, {
|
|
1288
|
+
params: params,
|
|
1289
|
+
headers: headers,
|
|
1290
|
+
}).then(function (response) {
|
|
1291
|
+
return Result.DescribeItemSetsByUserIdResult.fromDict(response.data);
|
|
1292
|
+
}).catch(function (error) {
|
|
1293
|
+
throw JSON.parse(error.response.data.message);
|
|
1294
|
+
});
|
|
1295
|
+
};
|
|
1296
|
+
Gs2InventoryRestClient.prototype.getItemSet = function (request) {
|
|
1297
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1298
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}')
|
|
1299
|
+
.replace('{service}', 'inventory')
|
|
1300
|
+
.replace('{region}', this.session.region)
|
|
1301
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1302
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1303
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1304
|
+
var headers = this.createAuthorizedHeaders();
|
|
1305
|
+
if (request.getRequestId()) {
|
|
1306
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1307
|
+
}
|
|
1308
|
+
if (request.getAccessToken()) {
|
|
1309
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
|
|
1310
|
+
}
|
|
1311
|
+
var params = {
|
|
1312
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1313
|
+
'itemSetName': String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : null),
|
|
961
1314
|
};
|
|
962
1315
|
return axios_1.default.get(url, {
|
|
963
1316
|
params: params,
|
|
@@ -965,118 +1318,418 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
965
1318
|
}).then(function (response) {
|
|
966
1319
|
return Result.GetItemSetResult.fromDict(response.data);
|
|
967
1320
|
}).catch(function (error) {
|
|
968
|
-
throw JSON.parse(error.response.data.message);
|
|
1321
|
+
throw JSON.parse(error.response.data.message);
|
|
1322
|
+
});
|
|
1323
|
+
};
|
|
1324
|
+
Gs2InventoryRestClient.prototype.getItemSetByUserId = function (request) {
|
|
1325
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1326
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}')
|
|
1327
|
+
.replace('{service}', 'inventory')
|
|
1328
|
+
.replace('{region}', this.session.region)
|
|
1329
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1330
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1331
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1332
|
+
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1333
|
+
var headers = this.createAuthorizedHeaders();
|
|
1334
|
+
if (request.getRequestId()) {
|
|
1335
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1336
|
+
}
|
|
1337
|
+
var params = {
|
|
1338
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1339
|
+
'itemSetName': String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : null),
|
|
1340
|
+
};
|
|
1341
|
+
return axios_1.default.get(url, {
|
|
1342
|
+
params: params,
|
|
1343
|
+
headers: headers,
|
|
1344
|
+
}).then(function (response) {
|
|
1345
|
+
return Result.GetItemSetByUserIdResult.fromDict(response.data);
|
|
1346
|
+
}).catch(function (error) {
|
|
1347
|
+
throw JSON.parse(error.response.data.message);
|
|
1348
|
+
});
|
|
1349
|
+
};
|
|
1350
|
+
Gs2InventoryRestClient.prototype.getItemWithSignature = function (request) {
|
|
1351
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1352
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/signature')
|
|
1353
|
+
.replace('{service}', 'inventory')
|
|
1354
|
+
.replace('{region}', this.session.region)
|
|
1355
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1356
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1357
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1358
|
+
var headers = this.createAuthorizedHeaders();
|
|
1359
|
+
if (request.getRequestId()) {
|
|
1360
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1361
|
+
}
|
|
1362
|
+
if (request.getAccessToken()) {
|
|
1363
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
|
|
1364
|
+
}
|
|
1365
|
+
var params = {
|
|
1366
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1367
|
+
'itemSetName': String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : null),
|
|
1368
|
+
'keyId': String((_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null),
|
|
1369
|
+
};
|
|
1370
|
+
return axios_1.default.get(url, {
|
|
1371
|
+
params: params,
|
|
1372
|
+
headers: headers,
|
|
1373
|
+
}).then(function (response) {
|
|
1374
|
+
return Result.GetItemWithSignatureResult.fromDict(response.data);
|
|
1375
|
+
}).catch(function (error) {
|
|
1376
|
+
throw JSON.parse(error.response.data.message);
|
|
1377
|
+
});
|
|
1378
|
+
};
|
|
1379
|
+
Gs2InventoryRestClient.prototype.getItemWithSignatureByUserId = function (request) {
|
|
1380
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1381
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/signature')
|
|
1382
|
+
.replace('{service}', 'inventory')
|
|
1383
|
+
.replace('{region}', this.session.region)
|
|
1384
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1385
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1386
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1387
|
+
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1388
|
+
var headers = this.createAuthorizedHeaders();
|
|
1389
|
+
if (request.getRequestId()) {
|
|
1390
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1391
|
+
}
|
|
1392
|
+
var params = {
|
|
1393
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1394
|
+
'itemSetName': String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : null),
|
|
1395
|
+
'keyId': String((_l = request.getKeyId()) !== null && _l !== void 0 ? _l : null),
|
|
1396
|
+
};
|
|
1397
|
+
return axios_1.default.get(url, {
|
|
1398
|
+
params: params,
|
|
1399
|
+
headers: headers,
|
|
1400
|
+
}).then(function (response) {
|
|
1401
|
+
return Result.GetItemWithSignatureByUserIdResult.fromDict(response.data);
|
|
1402
|
+
}).catch(function (error) {
|
|
1403
|
+
throw JSON.parse(error.response.data.message);
|
|
1404
|
+
});
|
|
1405
|
+
};
|
|
1406
|
+
Gs2InventoryRestClient.prototype.acquireItemSetByUserId = function (request) {
|
|
1407
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1408
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/acquire')
|
|
1409
|
+
.replace('{service}', 'inventory')
|
|
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('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1413
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1414
|
+
.replace('{userId}', String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getUserId()) !== 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
|
+
'acquireCount': (_l = request.getAcquireCount()) !== null && _l !== void 0 ? _l : null,
|
|
1425
|
+
'expiresAt': (_m = request.getExpiresAt()) !== null && _m !== void 0 ? _m : null,
|
|
1426
|
+
'createNewItemSet': (_o = request.getCreateNewItemSet()) !== null && _o !== void 0 ? _o : null,
|
|
1427
|
+
'itemSetName': (_p = request.getItemSetName()) !== null && _p !== void 0 ? _p : null,
|
|
1428
|
+
};
|
|
1429
|
+
return axios_1.default.post(url, body, {
|
|
1430
|
+
headers: headers,
|
|
1431
|
+
}).then(function (response) {
|
|
1432
|
+
return Result.AcquireItemSetByUserIdResult.fromDict(response.data);
|
|
1433
|
+
}).catch(function (error) {
|
|
1434
|
+
if (error.response) {
|
|
1435
|
+
throw JSON.parse(error.response.data.message);
|
|
1436
|
+
}
|
|
1437
|
+
else {
|
|
1438
|
+
throw [];
|
|
1439
|
+
}
|
|
1440
|
+
});
|
|
1441
|
+
};
|
|
1442
|
+
Gs2InventoryRestClient.prototype.consumeItemSet = function (request) {
|
|
1443
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1444
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/consume')
|
|
1445
|
+
.replace('{service}', 'inventory')
|
|
1446
|
+
.replace('{region}', this.session.region)
|
|
1447
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1448
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1449
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1450
|
+
var headers = this.createAuthorizedHeaders();
|
|
1451
|
+
if (request.getRequestId()) {
|
|
1452
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1453
|
+
}
|
|
1454
|
+
if (request.getAccessToken()) {
|
|
1455
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
|
|
1456
|
+
}
|
|
1457
|
+
if (request.getDuplicationAvoider()) {
|
|
1458
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
1459
|
+
}
|
|
1460
|
+
var body = {
|
|
1461
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1462
|
+
'consumeCount': (_k = request.getConsumeCount()) !== null && _k !== void 0 ? _k : null,
|
|
1463
|
+
'itemSetName': (_l = request.getItemSetName()) !== null && _l !== void 0 ? _l : null,
|
|
1464
|
+
};
|
|
1465
|
+
return axios_1.default.post(url, body, {
|
|
1466
|
+
headers: headers,
|
|
1467
|
+
}).then(function (response) {
|
|
1468
|
+
return Result.ConsumeItemSetResult.fromDict(response.data);
|
|
1469
|
+
}).catch(function (error) {
|
|
1470
|
+
if (error.response) {
|
|
1471
|
+
throw JSON.parse(error.response.data.message);
|
|
1472
|
+
}
|
|
1473
|
+
else {
|
|
1474
|
+
throw [];
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
};
|
|
1478
|
+
Gs2InventoryRestClient.prototype.consumeItemSetByUserId = function (request) {
|
|
1479
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1480
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/consume')
|
|
1481
|
+
.replace('{service}', 'inventory')
|
|
1482
|
+
.replace('{region}', this.session.region)
|
|
1483
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1484
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1485
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1486
|
+
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1487
|
+
var headers = this.createAuthorizedHeaders();
|
|
1488
|
+
if (request.getRequestId()) {
|
|
1489
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1490
|
+
}
|
|
1491
|
+
if (request.getDuplicationAvoider()) {
|
|
1492
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1493
|
+
}
|
|
1494
|
+
var body = {
|
|
1495
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1496
|
+
'consumeCount': (_l = request.getConsumeCount()) !== null && _l !== void 0 ? _l : null,
|
|
1497
|
+
'itemSetName': (_m = request.getItemSetName()) !== null && _m !== void 0 ? _m : null,
|
|
1498
|
+
};
|
|
1499
|
+
return axios_1.default.post(url, body, {
|
|
1500
|
+
headers: headers,
|
|
1501
|
+
}).then(function (response) {
|
|
1502
|
+
return Result.ConsumeItemSetByUserIdResult.fromDict(response.data);
|
|
1503
|
+
}).catch(function (error) {
|
|
1504
|
+
if (error.response) {
|
|
1505
|
+
throw JSON.parse(error.response.data.message);
|
|
1506
|
+
}
|
|
1507
|
+
else {
|
|
1508
|
+
throw [];
|
|
1509
|
+
}
|
|
1510
|
+
});
|
|
1511
|
+
};
|
|
1512
|
+
Gs2InventoryRestClient.prototype.deleteItemSetByUserId = function (request) {
|
|
1513
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1514
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}')
|
|
1515
|
+
.replace('{service}', 'inventory')
|
|
1516
|
+
.replace('{region}', this.session.region)
|
|
1517
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1518
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1519
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1520
|
+
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1521
|
+
var headers = this.createAuthorizedHeaders();
|
|
1522
|
+
if (request.getRequestId()) {
|
|
1523
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1524
|
+
}
|
|
1525
|
+
if (request.getDuplicationAvoider()) {
|
|
1526
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1527
|
+
}
|
|
1528
|
+
var params = {
|
|
1529
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1530
|
+
'itemSetName': String((_l = request.getItemSetName()) !== null && _l !== void 0 ? _l : null),
|
|
1531
|
+
};
|
|
1532
|
+
return axios_1.default.delete(url, {
|
|
1533
|
+
params: params,
|
|
1534
|
+
headers: headers,
|
|
1535
|
+
}).then(function (response) {
|
|
1536
|
+
return Result.DeleteItemSetByUserIdResult.fromDict(response.data);
|
|
1537
|
+
}).catch(function (error) {
|
|
1538
|
+
throw JSON.parse(error.response.data.message);
|
|
1539
|
+
});
|
|
1540
|
+
};
|
|
1541
|
+
Gs2InventoryRestClient.prototype.acquireItemSetByStampSheet = function (request) {
|
|
1542
|
+
var _a, _b, _c;
|
|
1543
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/acquire')
|
|
1544
|
+
.replace('{service}', 'inventory')
|
|
1545
|
+
.replace('{region}', this.session.region);
|
|
1546
|
+
var headers = this.createAuthorizedHeaders();
|
|
1547
|
+
if (request.getRequestId()) {
|
|
1548
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1549
|
+
}
|
|
1550
|
+
var body = {
|
|
1551
|
+
'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
|
|
1552
|
+
'stampSheet': (_b = request.getStampSheet()) !== null && _b !== void 0 ? _b : null,
|
|
1553
|
+
'keyId': (_c = request.getKeyId()) !== null && _c !== void 0 ? _c : null,
|
|
1554
|
+
};
|
|
1555
|
+
return axios_1.default.post(url, body, {
|
|
1556
|
+
headers: headers,
|
|
1557
|
+
}).then(function (response) {
|
|
1558
|
+
return Result.AcquireItemSetByStampSheetResult.fromDict(response.data);
|
|
1559
|
+
}).catch(function (error) {
|
|
1560
|
+
if (error.response) {
|
|
1561
|
+
throw JSON.parse(error.response.data.message);
|
|
1562
|
+
}
|
|
1563
|
+
else {
|
|
1564
|
+
throw [];
|
|
1565
|
+
}
|
|
1566
|
+
});
|
|
1567
|
+
};
|
|
1568
|
+
Gs2InventoryRestClient.prototype.consumeItemSetByStampTask = function (request) {
|
|
1569
|
+
var _a, _b, _c;
|
|
1570
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/consume')
|
|
1571
|
+
.replace('{service}', 'inventory')
|
|
1572
|
+
.replace('{region}', this.session.region);
|
|
1573
|
+
var headers = this.createAuthorizedHeaders();
|
|
1574
|
+
if (request.getRequestId()) {
|
|
1575
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1576
|
+
}
|
|
1577
|
+
var body = {
|
|
1578
|
+
'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
|
|
1579
|
+
'stampTask': (_b = request.getStampTask()) !== null && _b !== void 0 ? _b : null,
|
|
1580
|
+
'keyId': (_c = request.getKeyId()) !== null && _c !== void 0 ? _c : null,
|
|
1581
|
+
};
|
|
1582
|
+
return axios_1.default.post(url, body, {
|
|
1583
|
+
headers: headers,
|
|
1584
|
+
}).then(function (response) {
|
|
1585
|
+
return Result.ConsumeItemSetByStampTaskResult.fromDict(response.data);
|
|
1586
|
+
}).catch(function (error) {
|
|
1587
|
+
if (error.response) {
|
|
1588
|
+
throw JSON.parse(error.response.data.message);
|
|
1589
|
+
}
|
|
1590
|
+
else {
|
|
1591
|
+
throw [];
|
|
1592
|
+
}
|
|
969
1593
|
});
|
|
970
1594
|
};
|
|
971
|
-
Gs2InventoryRestClient.prototype.
|
|
1595
|
+
Gs2InventoryRestClient.prototype.describeReferenceOf = function (request) {
|
|
972
1596
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
973
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/
|
|
1597
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
1598
|
+
.replace('{service}', 'inventory')
|
|
1599
|
+
.replace('{region}', this.session.region)
|
|
1600
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1601
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1602
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1603
|
+
.replace('{itemSetName}', String((_g = request.getItemSetName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1604
|
+
var headers = this.createAuthorizedHeaders();
|
|
1605
|
+
if (request.getRequestId()) {
|
|
1606
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1607
|
+
}
|
|
1608
|
+
if (request.getAccessToken()) {
|
|
1609
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_j = request.getAccessToken()) !== null && _j !== void 0 ? _j : null;
|
|
1610
|
+
}
|
|
1611
|
+
var params = {
|
|
1612
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1613
|
+
};
|
|
1614
|
+
return axios_1.default.get(url, {
|
|
1615
|
+
params: params,
|
|
1616
|
+
headers: headers,
|
|
1617
|
+
}).then(function (response) {
|
|
1618
|
+
return Result.DescribeReferenceOfResult.fromDict(response.data);
|
|
1619
|
+
}).catch(function (error) {
|
|
1620
|
+
throw JSON.parse(error.response.data.message);
|
|
1621
|
+
});
|
|
1622
|
+
};
|
|
1623
|
+
Gs2InventoryRestClient.prototype.describeReferenceOfByUserId = function (request) {
|
|
1624
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1625
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
974
1626
|
.replace('{service}', 'inventory')
|
|
975
1627
|
.replace('{region}', this.session.region)
|
|
976
1628
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
977
1629
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
978
1630
|
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
979
|
-
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1631
|
+
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1632
|
+
.replace('{itemSetName}', String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null'));
|
|
980
1633
|
var headers = this.createAuthorizedHeaders();
|
|
981
1634
|
if (request.getRequestId()) {
|
|
982
1635
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
983
1636
|
}
|
|
984
1637
|
var params = {
|
|
985
|
-
'contextStack': (
|
|
986
|
-
'itemSetName': String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : null),
|
|
1638
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
987
1639
|
};
|
|
988
1640
|
return axios_1.default.get(url, {
|
|
989
1641
|
params: params,
|
|
990
1642
|
headers: headers,
|
|
991
1643
|
}).then(function (response) {
|
|
992
|
-
return Result.
|
|
1644
|
+
return Result.DescribeReferenceOfByUserIdResult.fromDict(response.data);
|
|
993
1645
|
}).catch(function (error) {
|
|
994
1646
|
throw JSON.parse(error.response.data.message);
|
|
995
1647
|
});
|
|
996
1648
|
};
|
|
997
|
-
Gs2InventoryRestClient.prototype.
|
|
998
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
999
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/
|
|
1649
|
+
Gs2InventoryRestClient.prototype.getReferenceOf = function (request) {
|
|
1650
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1651
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
1000
1652
|
.replace('{service}', 'inventory')
|
|
1001
1653
|
.replace('{region}', this.session.region)
|
|
1002
1654
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1003
1655
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1004
|
-
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1656
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1657
|
+
.replace('{itemSetName}', String((_g = request.getItemSetName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1658
|
+
.replace('{referenceOf}', String((_j = request.getReferenceOf()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getReferenceOf()) !== null && _k !== void 0 ? _k : 'null'));
|
|
1005
1659
|
var headers = this.createAuthorizedHeaders();
|
|
1006
1660
|
if (request.getRequestId()) {
|
|
1007
1661
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1008
1662
|
}
|
|
1009
1663
|
if (request.getAccessToken()) {
|
|
1010
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1664
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_l = request.getAccessToken()) !== null && _l !== void 0 ? _l : null;
|
|
1011
1665
|
}
|
|
1012
1666
|
var params = {
|
|
1013
|
-
'contextStack': (
|
|
1014
|
-
'itemSetName': String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : null),
|
|
1015
|
-
'keyId': String((_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null),
|
|
1667
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1016
1668
|
};
|
|
1017
1669
|
return axios_1.default.get(url, {
|
|
1018
1670
|
params: params,
|
|
1019
1671
|
headers: headers,
|
|
1020
1672
|
}).then(function (response) {
|
|
1021
|
-
return Result.
|
|
1673
|
+
return Result.GetReferenceOfResult.fromDict(response.data);
|
|
1022
1674
|
}).catch(function (error) {
|
|
1023
1675
|
throw JSON.parse(error.response.data.message);
|
|
1024
1676
|
});
|
|
1025
1677
|
};
|
|
1026
|
-
Gs2InventoryRestClient.prototype.
|
|
1027
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1028
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/
|
|
1678
|
+
Gs2InventoryRestClient.prototype.getReferenceOfByUserId = function (request) {
|
|
1679
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1680
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
1029
1681
|
.replace('{service}', 'inventory')
|
|
1030
1682
|
.replace('{region}', this.session.region)
|
|
1031
1683
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1032
1684
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1033
1685
|
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1034
|
-
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1686
|
+
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1687
|
+
.replace('{itemSetName}', String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null'))
|
|
1688
|
+
.replace('{referenceOf}', String((_l = request.getReferenceOf()) !== null && _l !== void 0 ? _l : 'null') === "" ? "null" : String((_m = request.getReferenceOf()) !== null && _m !== void 0 ? _m : 'null'));
|
|
1035
1689
|
var headers = this.createAuthorizedHeaders();
|
|
1036
1690
|
if (request.getRequestId()) {
|
|
1037
1691
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1038
1692
|
}
|
|
1039
1693
|
var params = {
|
|
1040
|
-
'contextStack': (
|
|
1041
|
-
'itemSetName': String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : null),
|
|
1042
|
-
'keyId': String((_l = request.getKeyId()) !== null && _l !== void 0 ? _l : null),
|
|
1694
|
+
'contextStack': (_o = request.getContextStack()) !== null && _o !== void 0 ? _o : null,
|
|
1043
1695
|
};
|
|
1044
1696
|
return axios_1.default.get(url, {
|
|
1045
1697
|
params: params,
|
|
1046
1698
|
headers: headers,
|
|
1047
1699
|
}).then(function (response) {
|
|
1048
|
-
return Result.
|
|
1700
|
+
return Result.GetReferenceOfByUserIdResult.fromDict(response.data);
|
|
1049
1701
|
}).catch(function (error) {
|
|
1050
1702
|
throw JSON.parse(error.response.data.message);
|
|
1051
1703
|
});
|
|
1052
1704
|
};
|
|
1053
|
-
Gs2InventoryRestClient.prototype.
|
|
1054
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1055
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/
|
|
1705
|
+
Gs2InventoryRestClient.prototype.verifyReferenceOf = function (request) {
|
|
1706
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
1707
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}/verify/{verifyType}')
|
|
1056
1708
|
.replace('{service}', 'inventory')
|
|
1057
1709
|
.replace('{region}', this.session.region)
|
|
1058
1710
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1059
1711
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1060
1712
|
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1061
|
-
.replace('{
|
|
1713
|
+
.replace('{itemSetName}', String((_g = request.getItemSetName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1714
|
+
.replace('{referenceOf}', String((_j = request.getReferenceOf()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getReferenceOf()) !== null && _k !== void 0 ? _k : 'null'))
|
|
1715
|
+
.replace('{verifyType}', String((_l = request.getVerifyType()) !== null && _l !== void 0 ? _l : 'null') === "" ? "null" : String((_m = request.getVerifyType()) !== null && _m !== void 0 ? _m : 'null'));
|
|
1062
1716
|
var headers = this.createAuthorizedHeaders();
|
|
1063
1717
|
if (request.getRequestId()) {
|
|
1064
1718
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1065
1719
|
}
|
|
1720
|
+
if (request.getAccessToken()) {
|
|
1721
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_o = request.getAccessToken()) !== null && _o !== void 0 ? _o : null;
|
|
1722
|
+
}
|
|
1066
1723
|
if (request.getDuplicationAvoider()) {
|
|
1067
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1724
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_p = request.getDuplicationAvoider()) !== null && _p !== void 0 ? _p : null;
|
|
1068
1725
|
}
|
|
1069
1726
|
var body = {
|
|
1070
|
-
'contextStack': (
|
|
1071
|
-
'acquireCount': (_l = request.getAcquireCount()) !== null && _l !== void 0 ? _l : null,
|
|
1072
|
-
'expiresAt': (_m = request.getExpiresAt()) !== null && _m !== void 0 ? _m : null,
|
|
1073
|
-
'createNewItemSet': (_o = request.getCreateNewItemSet()) !== null && _o !== void 0 ? _o : null,
|
|
1074
|
-
'itemSetName': (_p = request.getItemSetName()) !== null && _p !== void 0 ? _p : null,
|
|
1727
|
+
'contextStack': (_q = request.getContextStack()) !== null && _q !== void 0 ? _q : null,
|
|
1075
1728
|
};
|
|
1076
1729
|
return axios_1.default.post(url, body, {
|
|
1077
1730
|
headers: headers,
|
|
1078
1731
|
}).then(function (response) {
|
|
1079
|
-
return Result.
|
|
1732
|
+
return Result.VerifyReferenceOfResult.fromDict(response.data);
|
|
1080
1733
|
}).catch(function (error) {
|
|
1081
1734
|
if (error.response) {
|
|
1082
1735
|
throw JSON.parse(error.response.data.message);
|
|
@@ -1086,33 +1739,68 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1086
1739
|
}
|
|
1087
1740
|
});
|
|
1088
1741
|
};
|
|
1089
|
-
Gs2InventoryRestClient.prototype.
|
|
1090
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1091
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/
|
|
1742
|
+
Gs2InventoryRestClient.prototype.verifyReferenceOfByUserId = function (request) {
|
|
1743
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
1744
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}/verify/{verifyType}')
|
|
1092
1745
|
.replace('{service}', 'inventory')
|
|
1093
1746
|
.replace('{region}', this.session.region)
|
|
1094
1747
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1095
1748
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1096
|
-
.replace('{
|
|
1749
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1750
|
+
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1751
|
+
.replace('{itemSetName}', String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null'))
|
|
1752
|
+
.replace('{referenceOf}', String((_l = request.getReferenceOf()) !== null && _l !== void 0 ? _l : 'null') === "" ? "null" : String((_m = request.getReferenceOf()) !== null && _m !== void 0 ? _m : 'null'))
|
|
1753
|
+
.replace('{verifyType}', String((_o = request.getVerifyType()) !== null && _o !== void 0 ? _o : 'null') === "" ? "null" : String((_p = request.getVerifyType()) !== null && _p !== void 0 ? _p : 'null'));
|
|
1754
|
+
var headers = this.createAuthorizedHeaders();
|
|
1755
|
+
if (request.getRequestId()) {
|
|
1756
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1757
|
+
}
|
|
1758
|
+
if (request.getDuplicationAvoider()) {
|
|
1759
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_q = request.getDuplicationAvoider()) !== null && _q !== void 0 ? _q : null;
|
|
1760
|
+
}
|
|
1761
|
+
var body = {
|
|
1762
|
+
'contextStack': (_r = request.getContextStack()) !== null && _r !== void 0 ? _r : null,
|
|
1763
|
+
};
|
|
1764
|
+
return axios_1.default.post(url, body, {
|
|
1765
|
+
headers: headers,
|
|
1766
|
+
}).then(function (response) {
|
|
1767
|
+
return Result.VerifyReferenceOfByUserIdResult.fromDict(response.data);
|
|
1768
|
+
}).catch(function (error) {
|
|
1769
|
+
if (error.response) {
|
|
1770
|
+
throw JSON.parse(error.response.data.message);
|
|
1771
|
+
}
|
|
1772
|
+
else {
|
|
1773
|
+
throw [];
|
|
1774
|
+
}
|
|
1775
|
+
});
|
|
1776
|
+
};
|
|
1777
|
+
Gs2InventoryRestClient.prototype.addReferenceOf = function (request) {
|
|
1778
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1779
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
1780
|
+
.replace('{service}', 'inventory')
|
|
1781
|
+
.replace('{region}', this.session.region)
|
|
1782
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1783
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1784
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1785
|
+
.replace('{itemSetName}', String((_g = request.getItemSetName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1097
1786
|
var headers = this.createAuthorizedHeaders();
|
|
1098
1787
|
if (request.getRequestId()) {
|
|
1099
1788
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1100
1789
|
}
|
|
1101
1790
|
if (request.getAccessToken()) {
|
|
1102
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1791
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_j = request.getAccessToken()) !== null && _j !== void 0 ? _j : null;
|
|
1103
1792
|
}
|
|
1104
1793
|
if (request.getDuplicationAvoider()) {
|
|
1105
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1794
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1106
1795
|
}
|
|
1107
1796
|
var body = {
|
|
1108
|
-
'contextStack': (
|
|
1109
|
-
'
|
|
1110
|
-
'itemSetName': (_l = request.getItemSetName()) !== null && _l !== void 0 ? _l : null,
|
|
1797
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1798
|
+
'referenceOf': (_m = request.getReferenceOf()) !== null && _m !== void 0 ? _m : null,
|
|
1111
1799
|
};
|
|
1112
1800
|
return axios_1.default.post(url, body, {
|
|
1113
1801
|
headers: headers,
|
|
1114
1802
|
}).then(function (response) {
|
|
1115
|
-
return Result.
|
|
1803
|
+
return Result.AddReferenceOfResult.fromDict(response.data);
|
|
1116
1804
|
}).catch(function (error) {
|
|
1117
1805
|
if (error.response) {
|
|
1118
1806
|
throw JSON.parse(error.response.data.message);
|
|
@@ -1122,31 +1810,31 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1122
1810
|
}
|
|
1123
1811
|
});
|
|
1124
1812
|
};
|
|
1125
|
-
Gs2InventoryRestClient.prototype.
|
|
1126
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1127
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/
|
|
1813
|
+
Gs2InventoryRestClient.prototype.addReferenceOfByUserId = function (request) {
|
|
1814
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1815
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference')
|
|
1128
1816
|
.replace('{service}', 'inventory')
|
|
1129
1817
|
.replace('{region}', this.session.region)
|
|
1130
1818
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1131
1819
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1132
1820
|
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1133
|
-
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1821
|
+
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1822
|
+
.replace('{itemSetName}', String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null'));
|
|
1134
1823
|
var headers = this.createAuthorizedHeaders();
|
|
1135
1824
|
if (request.getRequestId()) {
|
|
1136
1825
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1137
1826
|
}
|
|
1138
1827
|
if (request.getDuplicationAvoider()) {
|
|
1139
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1828
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_l = request.getDuplicationAvoider()) !== null && _l !== void 0 ? _l : null;
|
|
1140
1829
|
}
|
|
1141
1830
|
var body = {
|
|
1142
|
-
'contextStack': (
|
|
1143
|
-
'
|
|
1144
|
-
'itemSetName': (_m = request.getItemSetName()) !== null && _m !== void 0 ? _m : null,
|
|
1831
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1832
|
+
'referenceOf': (_o = request.getReferenceOf()) !== null && _o !== void 0 ? _o : null,
|
|
1145
1833
|
};
|
|
1146
1834
|
return axios_1.default.post(url, body, {
|
|
1147
1835
|
headers: headers,
|
|
1148
1836
|
}).then(function (response) {
|
|
1149
|
-
return Result.
|
|
1837
|
+
return Result.AddReferenceOfByUserIdResult.fromDict(response.data);
|
|
1150
1838
|
}).catch(function (error) {
|
|
1151
1839
|
if (error.response) {
|
|
1152
1840
|
throw JSON.parse(error.response.data.message);
|
|
@@ -1156,38 +1844,98 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1156
1844
|
}
|
|
1157
1845
|
});
|
|
1158
1846
|
};
|
|
1159
|
-
Gs2InventoryRestClient.prototype.
|
|
1160
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1161
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/
|
|
1847
|
+
Gs2InventoryRestClient.prototype.deleteReferenceOf = function (request) {
|
|
1848
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1849
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
1850
|
+
.replace('{service}', 'inventory')
|
|
1851
|
+
.replace('{region}', this.session.region)
|
|
1852
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1853
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1854
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1855
|
+
.replace('{itemSetName}', String((_g = request.getItemSetName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1856
|
+
.replace('{referenceOf}', String((_j = request.getReferenceOf()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getReferenceOf()) !== null && _k !== void 0 ? _k : 'null'));
|
|
1857
|
+
var headers = this.createAuthorizedHeaders();
|
|
1858
|
+
if (request.getRequestId()) {
|
|
1859
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1860
|
+
}
|
|
1861
|
+
if (request.getAccessToken()) {
|
|
1862
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_l = request.getAccessToken()) !== null && _l !== void 0 ? _l : null;
|
|
1863
|
+
}
|
|
1864
|
+
if (request.getDuplicationAvoider()) {
|
|
1865
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_m = request.getDuplicationAvoider()) !== null && _m !== void 0 ? _m : null;
|
|
1866
|
+
}
|
|
1867
|
+
var params = {
|
|
1868
|
+
'contextStack': (_o = request.getContextStack()) !== null && _o !== void 0 ? _o : null,
|
|
1869
|
+
};
|
|
1870
|
+
return axios_1.default.delete(url, {
|
|
1871
|
+
params: params,
|
|
1872
|
+
headers: headers,
|
|
1873
|
+
}).then(function (response) {
|
|
1874
|
+
return Result.DeleteReferenceOfResult.fromDict(response.data);
|
|
1875
|
+
}).catch(function (error) {
|
|
1876
|
+
throw JSON.parse(error.response.data.message);
|
|
1877
|
+
});
|
|
1878
|
+
};
|
|
1879
|
+
Gs2InventoryRestClient.prototype.deleteReferenceOfByUserId = function (request) {
|
|
1880
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1881
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/{itemSetName}/reference/{referenceOf}')
|
|
1162
1882
|
.replace('{service}', 'inventory')
|
|
1163
1883
|
.replace('{region}', this.session.region)
|
|
1164
1884
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1165
1885
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1166
1886
|
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1167
|
-
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1887
|
+
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1888
|
+
.replace('{itemSetName}', String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null'))
|
|
1889
|
+
.replace('{referenceOf}', String((_l = request.getReferenceOf()) !== null && _l !== void 0 ? _l : 'null') === "" ? "null" : String((_m = request.getReferenceOf()) !== null && _m !== void 0 ? _m : 'null'));
|
|
1890
|
+
var headers = this.createAuthorizedHeaders();
|
|
1891
|
+
if (request.getRequestId()) {
|
|
1892
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1893
|
+
}
|
|
1894
|
+
if (request.getDuplicationAvoider()) {
|
|
1895
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_o = request.getDuplicationAvoider()) !== null && _o !== void 0 ? _o : null;
|
|
1896
|
+
}
|
|
1897
|
+
var params = {
|
|
1898
|
+
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
1899
|
+
};
|
|
1900
|
+
return axios_1.default.delete(url, {
|
|
1901
|
+
params: params,
|
|
1902
|
+
headers: headers,
|
|
1903
|
+
}).then(function (response) {
|
|
1904
|
+
return Result.DeleteReferenceOfByUserIdResult.fromDict(response.data);
|
|
1905
|
+
}).catch(function (error) {
|
|
1906
|
+
throw JSON.parse(error.response.data.message);
|
|
1907
|
+
});
|
|
1908
|
+
};
|
|
1909
|
+
Gs2InventoryRestClient.prototype.addReferenceOfItemSetByStampSheet = function (request) {
|
|
1910
|
+
var _a, _b, _c;
|
|
1911
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/reference/add')
|
|
1912
|
+
.replace('{service}', 'inventory')
|
|
1913
|
+
.replace('{region}', this.session.region);
|
|
1168
1914
|
var headers = this.createAuthorizedHeaders();
|
|
1169
1915
|
if (request.getRequestId()) {
|
|
1170
1916
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1171
1917
|
}
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1177
|
-
'itemSetName': String((_l = request.getItemSetName()) !== null && _l !== void 0 ? _l : null),
|
|
1918
|
+
var body = {
|
|
1919
|
+
'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
|
|
1920
|
+
'stampSheet': (_b = request.getStampSheet()) !== null && _b !== void 0 ? _b : null,
|
|
1921
|
+
'keyId': (_c = request.getKeyId()) !== null && _c !== void 0 ? _c : null,
|
|
1178
1922
|
};
|
|
1179
|
-
return axios_1.default.
|
|
1180
|
-
params: params,
|
|
1923
|
+
return axios_1.default.post(url, body, {
|
|
1181
1924
|
headers: headers,
|
|
1182
1925
|
}).then(function (response) {
|
|
1183
|
-
return Result.
|
|
1926
|
+
return Result.AddReferenceOfItemSetByStampSheetResult.fromDict(response.data);
|
|
1184
1927
|
}).catch(function (error) {
|
|
1185
|
-
|
|
1928
|
+
if (error.response) {
|
|
1929
|
+
throw JSON.parse(error.response.data.message);
|
|
1930
|
+
}
|
|
1931
|
+
else {
|
|
1932
|
+
throw [];
|
|
1933
|
+
}
|
|
1186
1934
|
});
|
|
1187
1935
|
};
|
|
1188
|
-
Gs2InventoryRestClient.prototype.
|
|
1936
|
+
Gs2InventoryRestClient.prototype.deleteReferenceOfItemSetByStampSheet = function (request) {
|
|
1189
1937
|
var _a, _b, _c;
|
|
1190
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/
|
|
1938
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/reference/delete')
|
|
1191
1939
|
.replace('{service}', 'inventory')
|
|
1192
1940
|
.replace('{region}', this.session.region);
|
|
1193
1941
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1202,7 +1950,7 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1202
1950
|
return axios_1.default.post(url, body, {
|
|
1203
1951
|
headers: headers,
|
|
1204
1952
|
}).then(function (response) {
|
|
1205
|
-
return Result.
|
|
1953
|
+
return Result.DeleteReferenceOfItemSetByStampSheetResult.fromDict(response.data);
|
|
1206
1954
|
}).catch(function (error) {
|
|
1207
1955
|
if (error.response) {
|
|
1208
1956
|
throw JSON.parse(error.response.data.message);
|
|
@@ -1212,9 +1960,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1212
1960
|
}
|
|
1213
1961
|
});
|
|
1214
1962
|
};
|
|
1215
|
-
Gs2InventoryRestClient.prototype.
|
|
1963
|
+
Gs2InventoryRestClient.prototype.verifyReferenceOfByStampTask = function (request) {
|
|
1216
1964
|
var _a, _b, _c;
|
|
1217
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/
|
|
1965
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/verify')
|
|
1218
1966
|
.replace('{service}', 'inventory')
|
|
1219
1967
|
.replace('{region}', this.session.region);
|
|
1220
1968
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1229,7 +1977,7 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1229
1977
|
return axios_1.default.post(url, body, {
|
|
1230
1978
|
headers: headers,
|
|
1231
1979
|
}).then(function (response) {
|
|
1232
|
-
return Result.
|
|
1980
|
+
return Result.VerifyReferenceOfByStampTaskResult.fromDict(response.data);
|
|
1233
1981
|
}).catch(function (error) {
|
|
1234
1982
|
if (error.response) {
|
|
1235
1983
|
throw JSON.parse(error.response.data.message);
|
|
@@ -1239,215 +1987,189 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1239
1987
|
}
|
|
1240
1988
|
});
|
|
1241
1989
|
};
|
|
1242
|
-
Gs2InventoryRestClient.prototype.
|
|
1243
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
1244
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item
|
|
1990
|
+
Gs2InventoryRestClient.prototype.describeSimpleItems = function (request) {
|
|
1991
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1992
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/item')
|
|
1245
1993
|
.replace('{service}', 'inventory')
|
|
1246
1994
|
.replace('{region}', this.session.region)
|
|
1247
1995
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1248
|
-
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1249
|
-
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1250
|
-
.replace('{itemSetName}', String((_g = request.getItemSetName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1996
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
1251
1997
|
var headers = this.createAuthorizedHeaders();
|
|
1252
1998
|
if (request.getRequestId()) {
|
|
1253
1999
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1254
2000
|
}
|
|
1255
2001
|
if (request.getAccessToken()) {
|
|
1256
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2002
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_e = request.getAccessToken()) !== null && _e !== void 0 ? _e : null;
|
|
1257
2003
|
}
|
|
1258
2004
|
var params = {
|
|
1259
|
-
'contextStack': (
|
|
2005
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
2006
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
2007
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
1260
2008
|
};
|
|
1261
2009
|
return axios_1.default.get(url, {
|
|
1262
2010
|
params: params,
|
|
1263
2011
|
headers: headers,
|
|
1264
2012
|
}).then(function (response) {
|
|
1265
|
-
return Result.
|
|
2013
|
+
return Result.DescribeSimpleItemsResult.fromDict(response.data);
|
|
1266
2014
|
}).catch(function (error) {
|
|
1267
2015
|
throw JSON.parse(error.response.data.message);
|
|
1268
2016
|
});
|
|
1269
2017
|
};
|
|
1270
|
-
Gs2InventoryRestClient.prototype.
|
|
1271
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
1272
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item
|
|
2018
|
+
Gs2InventoryRestClient.prototype.describeSimpleItemsByUserId = function (request) {
|
|
2019
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2020
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/item')
|
|
1273
2021
|
.replace('{service}', 'inventory')
|
|
1274
2022
|
.replace('{region}', this.session.region)
|
|
1275
2023
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1276
2024
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1277
|
-
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1278
|
-
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1279
|
-
.replace('{itemSetName}', String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null'));
|
|
2025
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1280
2026
|
var headers = this.createAuthorizedHeaders();
|
|
1281
2027
|
if (request.getRequestId()) {
|
|
1282
2028
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1283
2029
|
}
|
|
1284
2030
|
var params = {
|
|
1285
|
-
'contextStack': (
|
|
2031
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
2032
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
2033
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1286
2034
|
};
|
|
1287
2035
|
return axios_1.default.get(url, {
|
|
1288
2036
|
params: params,
|
|
1289
2037
|
headers: headers,
|
|
1290
2038
|
}).then(function (response) {
|
|
1291
|
-
return Result.
|
|
2039
|
+
return Result.DescribeSimpleItemsByUserIdResult.fromDict(response.data);
|
|
1292
2040
|
}).catch(function (error) {
|
|
1293
2041
|
throw JSON.parse(error.response.data.message);
|
|
1294
2042
|
});
|
|
1295
2043
|
};
|
|
1296
|
-
Gs2InventoryRestClient.prototype.
|
|
1297
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
1298
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}
|
|
2044
|
+
Gs2InventoryRestClient.prototype.getSimpleItem = function (request) {
|
|
2045
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2046
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/item/{itemName}')
|
|
1299
2047
|
.replace('{service}', 'inventory')
|
|
1300
2048
|
.replace('{region}', this.session.region)
|
|
1301
2049
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1302
2050
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1303
|
-
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1304
|
-
.replace('{itemSetName}', String((_g = request.getItemSetName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1305
|
-
.replace('{referenceOf}', String((_j = request.getReferenceOf()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getReferenceOf()) !== null && _k !== void 0 ? _k : 'null'));
|
|
2051
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1306
2052
|
var headers = this.createAuthorizedHeaders();
|
|
1307
2053
|
if (request.getRequestId()) {
|
|
1308
2054
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1309
2055
|
}
|
|
1310
2056
|
if (request.getAccessToken()) {
|
|
1311
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
2057
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
|
|
1312
2058
|
}
|
|
1313
2059
|
var params = {
|
|
1314
|
-
'contextStack': (
|
|
2060
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1315
2061
|
};
|
|
1316
2062
|
return axios_1.default.get(url, {
|
|
1317
2063
|
params: params,
|
|
1318
2064
|
headers: headers,
|
|
1319
2065
|
}).then(function (response) {
|
|
1320
|
-
return Result.
|
|
2066
|
+
return Result.GetSimpleItemResult.fromDict(response.data);
|
|
1321
2067
|
}).catch(function (error) {
|
|
1322
2068
|
throw JSON.parse(error.response.data.message);
|
|
1323
2069
|
});
|
|
1324
2070
|
};
|
|
1325
|
-
Gs2InventoryRestClient.prototype.
|
|
1326
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
1327
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}
|
|
2071
|
+
Gs2InventoryRestClient.prototype.getSimpleItemByUserId = function (request) {
|
|
2072
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2073
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/item/{itemName}')
|
|
1328
2074
|
.replace('{service}', 'inventory')
|
|
1329
2075
|
.replace('{region}', this.session.region)
|
|
1330
2076
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1331
2077
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1332
2078
|
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1333
|
-
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1334
|
-
.replace('{itemSetName}', String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null'))
|
|
1335
|
-
.replace('{referenceOf}', String((_l = request.getReferenceOf()) !== null && _l !== void 0 ? _l : 'null') === "" ? "null" : String((_m = request.getReferenceOf()) !== null && _m !== void 0 ? _m : 'null'));
|
|
2079
|
+
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1336
2080
|
var headers = this.createAuthorizedHeaders();
|
|
1337
2081
|
if (request.getRequestId()) {
|
|
1338
2082
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1339
2083
|
}
|
|
1340
2084
|
var params = {
|
|
1341
|
-
'contextStack': (
|
|
2085
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1342
2086
|
};
|
|
1343
2087
|
return axios_1.default.get(url, {
|
|
1344
2088
|
params: params,
|
|
1345
2089
|
headers: headers,
|
|
1346
2090
|
}).then(function (response) {
|
|
1347
|
-
return Result.
|
|
2091
|
+
return Result.GetSimpleItemByUserIdResult.fromDict(response.data);
|
|
1348
2092
|
}).catch(function (error) {
|
|
1349
2093
|
throw JSON.parse(error.response.data.message);
|
|
1350
2094
|
});
|
|
1351
2095
|
};
|
|
1352
|
-
Gs2InventoryRestClient.prototype.
|
|
1353
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
1354
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/inventory/{inventoryName}/item/{itemName}/
|
|
2096
|
+
Gs2InventoryRestClient.prototype.getSimpleItemWithSignature = function (request) {
|
|
2097
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2098
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/item/{itemName}/signature')
|
|
1355
2099
|
.replace('{service}', 'inventory')
|
|
1356
2100
|
.replace('{region}', this.session.region)
|
|
1357
2101
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1358
2102
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1359
|
-
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1360
|
-
.replace('{itemSetName}', String((_g = request.getItemSetName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1361
|
-
.replace('{referenceOf}', String((_j = request.getReferenceOf()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getReferenceOf()) !== null && _k !== void 0 ? _k : 'null'))
|
|
1362
|
-
.replace('{verifyType}', String((_l = request.getVerifyType()) !== null && _l !== void 0 ? _l : 'null') === "" ? "null" : String((_m = request.getVerifyType()) !== null && _m !== void 0 ? _m : 'null'));
|
|
2103
|
+
.replace('{itemName}', String((_e = request.getItemName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getItemName()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1363
2104
|
var headers = this.createAuthorizedHeaders();
|
|
1364
2105
|
if (request.getRequestId()) {
|
|
1365
2106
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1366
2107
|
}
|
|
1367
2108
|
if (request.getAccessToken()) {
|
|
1368
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1369
|
-
}
|
|
1370
|
-
if (request.getDuplicationAvoider()) {
|
|
1371
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (_p = request.getDuplicationAvoider()) !== null && _p !== void 0 ? _p : null;
|
|
2109
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
|
|
1372
2110
|
}
|
|
1373
|
-
var
|
|
1374
|
-
'contextStack': (
|
|
2111
|
+
var params = {
|
|
2112
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
2113
|
+
'keyId': String((_j = request.getKeyId()) !== null && _j !== void 0 ? _j : null),
|
|
1375
2114
|
};
|
|
1376
|
-
return axios_1.default.
|
|
2115
|
+
return axios_1.default.get(url, {
|
|
2116
|
+
params: params,
|
|
1377
2117
|
headers: headers,
|
|
1378
2118
|
}).then(function (response) {
|
|
1379
|
-
return Result.
|
|
2119
|
+
return Result.GetSimpleItemWithSignatureResult.fromDict(response.data);
|
|
1380
2120
|
}).catch(function (error) {
|
|
1381
|
-
|
|
1382
|
-
throw JSON.parse(error.response.data.message);
|
|
1383
|
-
}
|
|
1384
|
-
else {
|
|
1385
|
-
throw [];
|
|
1386
|
-
}
|
|
2121
|
+
throw JSON.parse(error.response.data.message);
|
|
1387
2122
|
});
|
|
1388
2123
|
};
|
|
1389
|
-
Gs2InventoryRestClient.prototype.
|
|
1390
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
1391
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}/item/{itemName}/
|
|
2124
|
+
Gs2InventoryRestClient.prototype.getSimpleItemWithSignatureByUserId = function (request) {
|
|
2125
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2126
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/item/{itemName}/signature')
|
|
1392
2127
|
.replace('{service}', 'inventory')
|
|
1393
2128
|
.replace('{region}', this.session.region)
|
|
1394
2129
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1395
2130
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1396
2131
|
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1397
|
-
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1398
|
-
.replace('{itemSetName}', String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null'))
|
|
1399
|
-
.replace('{referenceOf}', String((_l = request.getReferenceOf()) !== null && _l !== void 0 ? _l : 'null') === "" ? "null" : String((_m = request.getReferenceOf()) !== null && _m !== void 0 ? _m : 'null'))
|
|
1400
|
-
.replace('{verifyType}', String((_o = request.getVerifyType()) !== null && _o !== void 0 ? _o : 'null') === "" ? "null" : String((_p = request.getVerifyType()) !== null && _p !== void 0 ? _p : 'null'));
|
|
2132
|
+
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'));
|
|
1401
2133
|
var headers = this.createAuthorizedHeaders();
|
|
1402
2134
|
if (request.getRequestId()) {
|
|
1403
2135
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1404
2136
|
}
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
var body = {
|
|
1409
|
-
'contextStack': (_r = request.getContextStack()) !== null && _r !== void 0 ? _r : null,
|
|
2137
|
+
var params = {
|
|
2138
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2139
|
+
'keyId': String((_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null),
|
|
1410
2140
|
};
|
|
1411
|
-
return axios_1.default.
|
|
2141
|
+
return axios_1.default.get(url, {
|
|
2142
|
+
params: params,
|
|
1412
2143
|
headers: headers,
|
|
1413
2144
|
}).then(function (response) {
|
|
1414
|
-
return Result.
|
|
2145
|
+
return Result.GetSimpleItemWithSignatureByUserIdResult.fromDict(response.data);
|
|
1415
2146
|
}).catch(function (error) {
|
|
1416
|
-
|
|
1417
|
-
throw JSON.parse(error.response.data.message);
|
|
1418
|
-
}
|
|
1419
|
-
else {
|
|
1420
|
-
throw [];
|
|
1421
|
-
}
|
|
2147
|
+
throw JSON.parse(error.response.data.message);
|
|
1422
2148
|
});
|
|
1423
2149
|
};
|
|
1424
|
-
Gs2InventoryRestClient.prototype.
|
|
1425
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
1426
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/
|
|
2150
|
+
Gs2InventoryRestClient.prototype.acquireSimpleItemsByUserId = function (request) {
|
|
2151
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2152
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/acquire')
|
|
1427
2153
|
.replace('{service}', 'inventory')
|
|
1428
2154
|
.replace('{region}', this.session.region)
|
|
1429
2155
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1430
2156
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1431
|
-
.replace('{
|
|
1432
|
-
.replace('{itemSetName}', String((_g = request.getItemSetName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null'));
|
|
2157
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1433
2158
|
var headers = this.createAuthorizedHeaders();
|
|
1434
2159
|
if (request.getRequestId()) {
|
|
1435
2160
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1436
2161
|
}
|
|
1437
|
-
if (request.getAccessToken()) {
|
|
1438
|
-
headers['X-GS2-ACCESS-TOKEN'] = (_j = request.getAccessToken()) !== null && _j !== void 0 ? _j : null;
|
|
1439
|
-
}
|
|
1440
2162
|
if (request.getDuplicationAvoider()) {
|
|
1441
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2163
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1442
2164
|
}
|
|
1443
2165
|
var body = {
|
|
1444
|
-
'contextStack': (
|
|
1445
|
-
'
|
|
2166
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
2167
|
+
'acquireCounts': (_k = (_j = request.getAcquireCounts()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
1446
2168
|
};
|
|
1447
2169
|
return axios_1.default.post(url, body, {
|
|
1448
2170
|
headers: headers,
|
|
1449
2171
|
}).then(function (response) {
|
|
1450
|
-
return Result.
|
|
2172
|
+
return Result.AcquireSimpleItemsByUserIdResult.fromDict(response.data);
|
|
1451
2173
|
}).catch(function (error) {
|
|
1452
2174
|
if (error.response) {
|
|
1453
2175
|
throw JSON.parse(error.response.data.message);
|
|
@@ -1457,31 +2179,31 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1457
2179
|
}
|
|
1458
2180
|
});
|
|
1459
2181
|
};
|
|
1460
|
-
Gs2InventoryRestClient.prototype.
|
|
1461
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
1462
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/
|
|
2182
|
+
Gs2InventoryRestClient.prototype.consumeSimpleItems = function (request) {
|
|
2183
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2184
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/simple/inventory/{inventoryName}/consume')
|
|
1463
2185
|
.replace('{service}', 'inventory')
|
|
1464
2186
|
.replace('{region}', this.session.region)
|
|
1465
2187
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1466
|
-
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1467
|
-
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1468
|
-
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1469
|
-
.replace('{itemSetName}', String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null'));
|
|
2188
|
+
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
1470
2189
|
var headers = this.createAuthorizedHeaders();
|
|
1471
2190
|
if (request.getRequestId()) {
|
|
1472
2191
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1473
2192
|
}
|
|
2193
|
+
if (request.getAccessToken()) {
|
|
2194
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_e = request.getAccessToken()) !== null && _e !== void 0 ? _e : null;
|
|
2195
|
+
}
|
|
1474
2196
|
if (request.getDuplicationAvoider()) {
|
|
1475
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2197
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1476
2198
|
}
|
|
1477
2199
|
var body = {
|
|
1478
|
-
'contextStack': (
|
|
1479
|
-
'
|
|
2200
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
2201
|
+
'consumeCounts': (_j = (_h = request.getConsumeCounts()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
|
|
1480
2202
|
};
|
|
1481
2203
|
return axios_1.default.post(url, body, {
|
|
1482
2204
|
headers: headers,
|
|
1483
2205
|
}).then(function (response) {
|
|
1484
|
-
return Result.
|
|
2206
|
+
return Result.ConsumeSimpleItemsResult.fromDict(response.data);
|
|
1485
2207
|
}).catch(function (error) {
|
|
1486
2208
|
if (error.response) {
|
|
1487
2209
|
throw JSON.parse(error.response.data.message);
|
|
@@ -1491,98 +2213,68 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1491
2213
|
}
|
|
1492
2214
|
});
|
|
1493
2215
|
};
|
|
1494
|
-
Gs2InventoryRestClient.prototype.
|
|
1495
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
1496
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/
|
|
2216
|
+
Gs2InventoryRestClient.prototype.consumeSimpleItemsByUserId = function (request) {
|
|
2217
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2218
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}/consume')
|
|
1497
2219
|
.replace('{service}', 'inventory')
|
|
1498
2220
|
.replace('{region}', this.session.region)
|
|
1499
2221
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1500
2222
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1501
|
-
.replace('{
|
|
1502
|
-
.replace('{itemSetName}', String((_g = request.getItemSetName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemSetName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1503
|
-
.replace('{referenceOf}', String((_j = request.getReferenceOf()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getReferenceOf()) !== null && _k !== void 0 ? _k : 'null'));
|
|
2223
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1504
2224
|
var headers = this.createAuthorizedHeaders();
|
|
1505
2225
|
if (request.getRequestId()) {
|
|
1506
2226
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1507
2227
|
}
|
|
1508
|
-
if (request.getAccessToken()) {
|
|
1509
|
-
headers['X-GS2-ACCESS-TOKEN'] = (_l = request.getAccessToken()) !== null && _l !== void 0 ? _l : null;
|
|
1510
|
-
}
|
|
1511
2228
|
if (request.getDuplicationAvoider()) {
|
|
1512
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2229
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1513
2230
|
}
|
|
1514
|
-
var
|
|
1515
|
-
'contextStack': (
|
|
2231
|
+
var body = {
|
|
2232
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
2233
|
+
'consumeCounts': (_k = (_j = request.getConsumeCounts()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
1516
2234
|
};
|
|
1517
|
-
return axios_1.default.
|
|
1518
|
-
params: params,
|
|
2235
|
+
return axios_1.default.post(url, body, {
|
|
1519
2236
|
headers: headers,
|
|
1520
2237
|
}).then(function (response) {
|
|
1521
|
-
return Result.
|
|
2238
|
+
return Result.ConsumeSimpleItemsByUserIdResult.fromDict(response.data);
|
|
1522
2239
|
}).catch(function (error) {
|
|
1523
|
-
|
|
2240
|
+
if (error.response) {
|
|
2241
|
+
throw JSON.parse(error.response.data.message);
|
|
2242
|
+
}
|
|
2243
|
+
else {
|
|
2244
|
+
throw [];
|
|
2245
|
+
}
|
|
1524
2246
|
});
|
|
1525
2247
|
};
|
|
1526
|
-
Gs2InventoryRestClient.prototype.
|
|
1527
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
1528
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/inventory/{inventoryName}
|
|
2248
|
+
Gs2InventoryRestClient.prototype.deleteSimpleItemsByUserId = function (request) {
|
|
2249
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2250
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/simple/inventory/{inventoryName}')
|
|
1529
2251
|
.replace('{service}', 'inventory')
|
|
1530
2252
|
.replace('{region}', this.session.region)
|
|
1531
2253
|
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
1532
2254
|
.replace('{inventoryName}', String((_c = request.getInventoryName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getInventoryName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
1533
|
-
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'))
|
|
1534
|
-
.replace('{itemName}', String((_g = request.getItemName()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getItemName()) !== null && _h !== void 0 ? _h : 'null'))
|
|
1535
|
-
.replace('{itemSetName}', String((_j = request.getItemSetName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getItemSetName()) !== null && _k !== void 0 ? _k : 'null'))
|
|
1536
|
-
.replace('{referenceOf}', String((_l = request.getReferenceOf()) !== null && _l !== void 0 ? _l : 'null') === "" ? "null" : String((_m = request.getReferenceOf()) !== null && _m !== void 0 ? _m : 'null'));
|
|
2255
|
+
.replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
1537
2256
|
var headers = this.createAuthorizedHeaders();
|
|
1538
2257
|
if (request.getRequestId()) {
|
|
1539
2258
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1540
2259
|
}
|
|
1541
2260
|
if (request.getDuplicationAvoider()) {
|
|
1542
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
2261
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
1543
2262
|
}
|
|
1544
2263
|
var params = {
|
|
1545
|
-
'contextStack': (
|
|
2264
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1546
2265
|
};
|
|
1547
2266
|
return axios_1.default.delete(url, {
|
|
1548
2267
|
params: params,
|
|
1549
2268
|
headers: headers,
|
|
1550
2269
|
}).then(function (response) {
|
|
1551
|
-
return Result.
|
|
2270
|
+
return Result.DeleteSimpleItemsByUserIdResult.fromDict(response.data);
|
|
1552
2271
|
}).catch(function (error) {
|
|
1553
2272
|
throw JSON.parse(error.response.data.message);
|
|
1554
2273
|
});
|
|
1555
2274
|
};
|
|
1556
|
-
Gs2InventoryRestClient.prototype.
|
|
1557
|
-
var _a, _b, _c;
|
|
1558
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/reference/add')
|
|
1559
|
-
.replace('{service}', 'inventory')
|
|
1560
|
-
.replace('{region}', this.session.region);
|
|
1561
|
-
var headers = this.createAuthorizedHeaders();
|
|
1562
|
-
if (request.getRequestId()) {
|
|
1563
|
-
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1564
|
-
}
|
|
1565
|
-
var body = {
|
|
1566
|
-
'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
|
|
1567
|
-
'stampSheet': (_b = request.getStampSheet()) !== null && _b !== void 0 ? _b : null,
|
|
1568
|
-
'keyId': (_c = request.getKeyId()) !== null && _c !== void 0 ? _c : null,
|
|
1569
|
-
};
|
|
1570
|
-
return axios_1.default.post(url, body, {
|
|
1571
|
-
headers: headers,
|
|
1572
|
-
}).then(function (response) {
|
|
1573
|
-
return Result.AddReferenceOfItemSetByStampSheetResult.fromDict(response.data);
|
|
1574
|
-
}).catch(function (error) {
|
|
1575
|
-
if (error.response) {
|
|
1576
|
-
throw JSON.parse(error.response.data.message);
|
|
1577
|
-
}
|
|
1578
|
-
else {
|
|
1579
|
-
throw [];
|
|
1580
|
-
}
|
|
1581
|
-
});
|
|
1582
|
-
};
|
|
1583
|
-
Gs2InventoryRestClient.prototype.deleteReferenceOfItemSetByStampSheet = function (request) {
|
|
2275
|
+
Gs2InventoryRestClient.prototype.acquireSimpleItemsByStampSheet = function (request) {
|
|
1584
2276
|
var _a, _b, _c;
|
|
1585
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/
|
|
2277
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/acquire')
|
|
1586
2278
|
.replace('{service}', 'inventory')
|
|
1587
2279
|
.replace('{region}', this.session.region);
|
|
1588
2280
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1597,7 +2289,7 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1597
2289
|
return axios_1.default.post(url, body, {
|
|
1598
2290
|
headers: headers,
|
|
1599
2291
|
}).then(function (response) {
|
|
1600
|
-
return Result.
|
|
2292
|
+
return Result.AcquireSimpleItemsByStampSheetResult.fromDict(response.data);
|
|
1601
2293
|
}).catch(function (error) {
|
|
1602
2294
|
if (error.response) {
|
|
1603
2295
|
throw JSON.parse(error.response.data.message);
|
|
@@ -1607,9 +2299,9 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1607
2299
|
}
|
|
1608
2300
|
});
|
|
1609
2301
|
};
|
|
1610
|
-
Gs2InventoryRestClient.prototype.
|
|
2302
|
+
Gs2InventoryRestClient.prototype.consumeSimpleItemsByStampTask = function (request) {
|
|
1611
2303
|
var _a, _b, _c;
|
|
1612
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/item/
|
|
2304
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/simple/item/consume')
|
|
1613
2305
|
.replace('{service}', 'inventory')
|
|
1614
2306
|
.replace('{region}', this.session.region);
|
|
1615
2307
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1624,7 +2316,7 @@ var Gs2InventoryRestClient = /** @class */ (function (_super) {
|
|
|
1624
2316
|
return axios_1.default.post(url, body, {
|
|
1625
2317
|
headers: headers,
|
|
1626
2318
|
}).then(function (response) {
|
|
1627
|
-
return Result.
|
|
2319
|
+
return Result.ConsumeSimpleItemsByStampTaskResult.fromDict(response.data);
|
|
1628
2320
|
}).catch(function (error) {
|
|
1629
2321
|
if (error.response) {
|
|
1630
2322
|
throw JSON.parse(error.response.data.message);
|