From b5f9d6196c42654f4a896cb18607a1e6fd167c05 Mon Sep 17 00:00:00 2001 From: QEDIT Deploy Date: Thu, 31 Oct 2019 09:26:59 +0000 Subject: [PATCH] feat: automatic push to dev_guide from CI [tag=v1.6.1] --- go/sdk/README.md | 12 +- go/sdk/api/openapi.yaml | 171 +++++++-- go/sdk/api_analytics.go | 2 +- go/sdk/api_health.go | 2 +- go/sdk/api_node.go | 134 ++++++- go/sdk/api_wallet.go | 2 +- go/sdk/client.go | 4 +- go/sdk/configuration.go | 4 +- go/sdk/docs/EmptyContent.md | 9 + go/sdk/docs/GetNotificationsRequest.md | 15 + go/sdk/docs/GetNotificationsResponse.md | 10 + go/sdk/docs/GetTasksRequest.md | 2 +- go/sdk/docs/NodeApi.md | 29 ++ go/sdk/docs/Notification.md | 15 + go/sdk/docs/NotificationType.md | 9 + go/sdk/docs/OrderEnum.md | 9 + go/sdk/docs/TaskData.md | 1 + go/sdk/git_push.sh | 4 +- go/sdk/model_analytic_issue_wallet_tx.go | 2 +- go/sdk/model_analytic_rule_wallet_tx.go | 2 +- go/sdk/model_analytic_transaction.go | 2 +- go/sdk/model_analytic_transfer_wallet_tx.go | 2 +- go/sdk/model_analytic_wallet_metadata.go | 2 +- go/sdk/model_analytic_wallet_tx.go | 2 +- ...ytics_confidential_issuance_description.go | 2 +- go/sdk/model_analytics_issue_tx.go | 2 +- go/sdk/model_analytics_multi_transfer_tx.go | 2 +- go/sdk/model_analytics_output.go | 2 +- go/sdk/model_analytics_output_description.go | 2 +- ...l_analytics_public_issuance_description.go | 2 +- go/sdk/model_analytics_rule_definition.go | 2 +- go/sdk/model_analytics_rule_tx.go | 2 +- .../model_analytics_rule_wallet_definition.go | 2 +- go/sdk/model_analytics_spend_description.go | 2 +- go/sdk/model_analytics_transfer_tx.go | 2 +- go/sdk/model_analytics_tx_metadata.go | 2 +- go/sdk/model_analytics_tx_type.go | 2 +- go/sdk/model_async_task_created_response.go | 2 +- go/sdk/model_balance_for_asset.go | 2 +- go/sdk/model_create_rule_request.go | 2 +- go/sdk/model_delete_rule_request.go | 2 +- go/sdk/model_delete_wallet_request.go | 2 +- go/sdk/model_empty_content.go | 13 + go/sdk/model_error_response.go | 2 +- ...el_export_auditor_access_wallet_request.go | 2 +- ...l_export_auditor_access_wallet_response.go | 2 +- go/sdk/model_export_wallet_request.go | 2 +- go/sdk/model_export_wallet_response.go | 2 +- go/sdk/model_generate_wallet_request.go | 2 +- go/sdk/model_get_all_wallets_response.go | 2 +- go/sdk/model_get_network_activity_request.go | 2 +- go/sdk/model_get_network_activity_response.go | 2 +- go/sdk/model_get_new_address_request.go | 2 +- go/sdk/model_get_new_address_response.go | 2 +- go/sdk/model_get_notifications_request.go | 24 ++ go/sdk/model_get_notifications_response.go | 14 + go/sdk/model_get_public_key_request.go | 2 +- go/sdk/model_get_public_key_response.go | 2 +- go/sdk/model_get_rules_response.go | 2 +- go/sdk/model_get_sync_status_response.go | 2 +- go/sdk/model_get_task_status_request.go | 2 +- go/sdk/model_get_task_status_response.go | 2 +- go/sdk/model_get_tasks_request.go | 5 +- go/sdk/model_get_tasks_response.go | 2 +- go/sdk/model_get_wallet_activity_request.go | 2 +- go/sdk/model_get_wallet_activity_response.go | 2 +- go/sdk/model_get_wallet_balance_request.go | 2 +- go/sdk/model_get_wallet_balance_response.go | 2 +- go/sdk/model_healthcheck_response.go | 2 +- go/sdk/model_healthcheck_response_item.go | 2 +- ...el_import_auditor_access_wallet_request.go | 2 +- go/sdk/model_import_wallet_request.go | 2 +- go/sdk/model_issue_asset_request.go | 2 +- go/sdk/model_notification.go | 24 ++ go/sdk/model_notification_type.go | 18 + go/sdk/model_order_enum.go | 18 + go/sdk/model_result.go | 2 +- go/sdk/model_rule.go | 2 +- go/sdk/model_task_action_request.go | 2 +- go/sdk/model_task_data.go | 6 +- go/sdk/model_task_state.go | 4 +- go/sdk/model_task_type.go | 2 +- go/sdk/model_transfer_asset_request.go | 2 +- go/sdk/model_unlock_wallet_request.go | 2 +- go/sdk/response.go | 2 +- js/sdk/README.md | 215 ++++++----- js/sdk/docs/AnalyticIssueWalletTx.md | 2 +- js/sdk/docs/AnalyticRuleWalletTx.md | 2 +- js/sdk/docs/AnalyticTransaction.md | 2 +- js/sdk/docs/AnalyticTransferWalletTx.md | 2 +- js/sdk/docs/AnalyticWalletMetadata.md | 2 +- js/sdk/docs/AnalyticWalletTx.md | 2 +- js/sdk/docs/AnalyticsApi.md | 44 ++- ...AnalyticsAssetConverterProofDescription.md | 8 +- ...nalyticsConfidentialIssuanceDescription.md | 2 +- js/sdk/docs/AnalyticsIssueTx.md | 2 +- js/sdk/docs/AnalyticsMultiTransferTx.md | 2 +- js/sdk/docs/AnalyticsOutput.md | 2 +- js/sdk/docs/AnalyticsOutputDescription.md | 2 +- .../AnalyticsPublicIssuanceDescription.md | 2 +- js/sdk/docs/AnalyticsRule.md | 2 +- js/sdk/docs/AnalyticsRuleDefinition.md | 2 +- js/sdk/docs/AnalyticsRuleTx.md | 2 +- js/sdk/docs/AnalyticsRuleWalletDefinition.md | 2 +- js/sdk/docs/AnalyticsSpendDescription.md | 2 +- js/sdk/docs/AnalyticsTransferTx.md | 2 +- js/sdk/docs/AnalyticsTxMetadata.md | 2 +- js/sdk/docs/AnalyticsTxType.md | 2 +- js/sdk/docs/AsyncTaskCreatedResponse.md | 2 +- js/sdk/docs/BalanceForAsset.md | 2 +- js/sdk/docs/CreateRuleRequest.md | 2 +- js/sdk/docs/DeleteRuleRequest.md | 2 +- js/sdk/docs/DeleteWalletRequest.md | 2 +- js/sdk/docs/EmptyContent.md | 7 + js/sdk/docs/ErrorResponse.md | 2 +- .../docs/ExportAuditorAccessWalletRequest.md | 2 +- .../docs/ExportAuditorAccessWalletResponse.md | 2 +- js/sdk/docs/ExportWalletRequest.md | 2 +- js/sdk/docs/ExportWalletResponse.md | 2 +- js/sdk/docs/GenerateWalletRequest.md | 2 +- js/sdk/docs/GetAllWalletsResponse.md | 2 +- js/sdk/docs/GetNetworkActivityRequest.md | 2 +- js/sdk/docs/GetNetworkActivityResponse.md | 2 +- js/sdk/docs/GetNewAddressRequest.md | 2 +- js/sdk/docs/GetNewAddressResponse.md | 2 +- js/sdk/docs/GetNotificationsRequest.md | 13 + js/sdk/docs/GetNotificationsResponse.md | 8 + js/sdk/docs/GetPublicKeyRequest.md | 2 +- js/sdk/docs/GetPublicKeyResponse.md | 2 +- js/sdk/docs/GetRulesResponse.md | 2 +- js/sdk/docs/GetSyncStatusResponse.md | 2 +- js/sdk/docs/GetTaskStatusRequest.md | 2 +- js/sdk/docs/GetTaskStatusResponse.md | 2 +- js/sdk/docs/GetTasksRequest.md | 15 +- js/sdk/docs/GetTasksResponse.md | 2 +- js/sdk/docs/GetWalletActivityRequest.md | 2 +- js/sdk/docs/GetWalletActivityResponse.md | 2 +- js/sdk/docs/GetWalletBalanceRequest.md | 2 +- js/sdk/docs/GetWalletBalanceResponse.md | 2 +- js/sdk/docs/HealthApi.md | 22 +- js/sdk/docs/HealthcheckResponse.md | 2 +- js/sdk/docs/HealthcheckResponseItem.md | 2 +- .../docs/ImportAuditorAccessWalletRequest.md | 2 +- js/sdk/docs/ImportWalletRequest.md | 2 +- js/sdk/docs/IssueAssetRequest.md | 2 +- js/sdk/docs/NodeApi.md | 334 +++++++++------- js/sdk/docs/Notification.md | 13 + js/sdk/docs/NotificationType.md | 10 + js/sdk/docs/OrderEnum.md | 10 + js/sdk/docs/Result.md | 2 +- js/sdk/docs/Rule.md | 2 +- js/sdk/docs/TaskActionRequest.md | 2 +- js/sdk/docs/TaskData.md | 3 +- js/sdk/docs/TaskState.md | 2 +- js/sdk/docs/TaskType.md | 2 +- js/sdk/docs/TransferAssetRequest.md | 2 +- js/sdk/docs/UnlockWalletRequest.md | 2 +- js/sdk/docs/WalletApi.md | 178 +++++---- js/sdk/git_push.sh | 4 +- js/sdk/package.json | 4 +- js/sdk/src/ApiClient.js | 43 ++- js/sdk/src/api/AnalyticsApi.js | 59 ++- js/sdk/src/api/HealthApi.js | 36 +- js/sdk/src/api/NodeApi.js | 357 +++++++++--------- js/sdk/src/api/WalletApi.js | 198 ++++------ js/sdk/src/index.js | 55 ++- js/sdk/src/model/AnalyticIssueWalletTx.js | 10 +- js/sdk/src/model/AnalyticRuleWalletTx.js | 10 +- js/sdk/src/model/AnalyticTransaction.js | 10 +- js/sdk/src/model/AnalyticTransferWalletTx.js | 10 +- js/sdk/src/model/AnalyticWalletMetadata.js | 10 +- js/sdk/src/model/AnalyticWalletTx.js | 10 +- ...AnalyticsAssetConverterProofDescription.js | 4 - ...nalyticsConfidentialIssuanceDescription.js | 10 +- js/sdk/src/model/AnalyticsIssueTx.js | 10 +- js/sdk/src/model/AnalyticsMultiTransferTx.js | 10 +- js/sdk/src/model/AnalyticsOutput.js | 10 +- .../src/model/AnalyticsOutputDescription.js | 10 +- .../AnalyticsPublicIssuanceDescription.js | 10 +- js/sdk/src/model/AnalyticsRule.js | 6 +- js/sdk/src/model/AnalyticsRuleDefinition.js | 10 +- js/sdk/src/model/AnalyticsRuleTx.js | 10 +- .../model/AnalyticsRuleWalletDefinition.js | 10 +- js/sdk/src/model/AnalyticsSpendDescription.js | 10 +- js/sdk/src/model/AnalyticsTransferTx.js | 10 +- js/sdk/src/model/AnalyticsTxMetadata.js | 10 +- js/sdk/src/model/AnalyticsTxType.js | 8 +- js/sdk/src/model/AsyncTaskCreatedResponse.js | 10 +- js/sdk/src/model/BalanceForAsset.js | 10 +- js/sdk/src/model/CreateRuleRequest.js | 10 +- js/sdk/src/model/DeleteRuleRequest.js | 10 +- js/sdk/src/model/DeleteWalletRequest.js | 10 +- js/sdk/src/model/EmptyContent.js | 71 ++++ js/sdk/src/model/ErrorResponse.js | 10 +- .../model/ExportAuditorAccessWalletRequest.js | 10 +- .../ExportAuditorAccessWalletResponse.js | 10 +- js/sdk/src/model/ExportWalletRequest.js | 10 +- js/sdk/src/model/ExportWalletResponse.js | 10 +- js/sdk/src/model/GenerateWalletRequest.js | 10 +- js/sdk/src/model/GetAllWalletsResponse.js | 10 +- js/sdk/src/model/GetNetworkActivityRequest.js | 10 +- .../src/model/GetNetworkActivityResponse.js | 10 +- js/sdk/src/model/GetNewAddressRequest.js | 10 +- js/sdk/src/model/GetNewAddressResponse.js | 10 +- js/sdk/src/model/GetNotificationsRequest.js | 119 ++++++ js/sdk/src/model/GetNotificationsResponse.js | 78 ++++ js/sdk/src/model/GetPublicKeyRequest.js | 10 +- js/sdk/src/model/GetPublicKeyResponse.js | 10 +- js/sdk/src/model/GetRulesResponse.js | 10 +- js/sdk/src/model/GetSyncStatusResponse.js | 10 +- js/sdk/src/model/GetTaskStatusRequest.js | 10 +- js/sdk/src/model/GetTaskStatusResponse.js | 10 +- js/sdk/src/model/GetTasksRequest.js | 41 +- js/sdk/src/model/GetTasksResponse.js | 10 +- js/sdk/src/model/GetWalletActivityRequest.js | 10 +- js/sdk/src/model/GetWalletActivityResponse.js | 10 +- js/sdk/src/model/GetWalletBalanceRequest.js | 10 +- js/sdk/src/model/GetWalletBalanceResponse.js | 10 +- js/sdk/src/model/HealthcheckResponse.js | 10 +- js/sdk/src/model/HealthcheckResponseItem.js | 10 +- .../model/ImportAuditorAccessWalletRequest.js | 10 +- js/sdk/src/model/ImportWalletRequest.js | 10 +- js/sdk/src/model/IssueAssetRequest.js | 10 +- js/sdk/src/model/Notification.js | 126 +++++++ js/sdk/src/model/NotificationType.js | 63 ++++ js/sdk/src/model/OrderEnum.js | 63 ++++ js/sdk/src/model/Result.js | 8 +- js/sdk/src/model/Rule.js | 10 +- js/sdk/src/model/TaskActionRequest.js | 10 +- js/sdk/src/model/TaskData.js | 20 +- js/sdk/src/model/TaskState.js | 8 +- js/sdk/src/model/TaskType.js | 8 +- js/sdk/src/model/TransferAssetRequest.js | 10 +- js/sdk/src/model/UnlockWalletRequest.js | 10 +- js/sdk/test/api/AnalyticsApi.spec.js | 12 +- js/sdk/test/api/HealthApi.spec.js | 2 +- js/sdk/test/api/NodeApi.spec.js | 22 +- js/sdk/test/api/WalletApi.spec.js | 2 +- .../test/model/AnalyticIssueWalletTx.spec.js | 14 +- .../test/model/AnalyticRuleWalletTx.spec.js | 2 +- js/sdk/test/model/AnalyticTransaction.spec.js | 2 +- .../model/AnalyticTransferWalletTx.spec.js | 14 +- .../test/model/AnalyticWalletMetadata.spec.js | 2 +- js/sdk/test/model/AnalyticWalletTx.spec.js | 2 +- ...icsConfidentialIssuanceDescription.spec.js | 14 +- js/sdk/test/model/AnalyticsIssueTx.spec.js | 2 +- .../model/AnalyticsMultiTransferTx.spec.js | 2 +- js/sdk/test/model/AnalyticsOutput.spec.js | 2 +- .../model/AnalyticsOutputDescription.spec.js | 10 +- ...AnalyticsPublicIssuanceDescription.spec.js | 2 +- js/sdk/test/model/AnalyticsRule.spec.js | 12 +- .../model/AnalyticsRuleDefinition.spec.js | 16 +- js/sdk/test/model/AnalyticsRuleTx.spec.js | 2 +- .../AnalyticsRuleWalletDefinition.spec.js | 16 +- .../model/AnalyticsSpendDescription.spec.js | 2 +- js/sdk/test/model/AnalyticsTransferTx.spec.js | 16 +- js/sdk/test/model/AnalyticsTxMetadata.spec.js | 14 +- .../model/AsyncTaskCreatedResponse.spec.js | 2 +- js/sdk/test/model/BalanceForAsset.spec.js | 2 +- js/sdk/test/model/CreateRuleRequest.spec.js | 2 +- js/sdk/test/model/DeleteRuleRequest.spec.js | 2 +- js/sdk/test/model/DeleteWalletRequest.spec.js | 2 +- js/sdk/test/model/EmptyContent.spec.js | 61 +++ js/sdk/test/model/ErrorResponse.spec.js | 2 +- .../ExportAuditorAccessWalletRequest.spec.js | 2 +- .../ExportAuditorAccessWalletResponse.spec.js | 2 +- js/sdk/test/model/ExportWalletRequest.spec.js | 2 +- .../test/model/ExportWalletResponse.spec.js | 2 +- .../test/model/GenerateWalletRequest.spec.js | 2 +- .../test/model/GetAllWalletsResponse.spec.js | 2 +- .../model/GetNetworkActivityRequest.spec.js | 8 +- .../model/GetNetworkActivityResponse.spec.js | 2 +- .../test/model/GetNewAddressRequest.spec.js | 2 +- .../test/model/GetNewAddressResponse.spec.js | 2 +- .../model/GetNotificationsRequest.spec.js | 97 +++++ .../model/GetNotificationsResponse.spec.js | 67 ++++ js/sdk/test/model/GetPublicKeyRequest.spec.js | 2 +- .../test/model/GetPublicKeyResponse.spec.js | 2 +- js/sdk/test/model/GetRulesResponse.spec.js | 2 +- .../test/model/GetTaskStatusRequest.spec.js | 2 +- .../test/model/GetTaskStatusResponse.spec.js | 2 +- js/sdk/test/model/GetTasksRequest.spec.js | 2 +- js/sdk/test/model/GetTasksResponse.spec.js | 2 +- .../model/GetWalletActivityRequest.spec.js | 2 +- .../model/GetWalletActivityResponse.spec.js | 2 +- .../model/GetWalletBalanceRequest.spec.js | 2 +- .../model/GetWalletBalanceResponse.spec.js | 2 +- js/sdk/test/model/HealthcheckResponse.spec.js | 2 +- .../model/HealthcheckResponseItem.spec.js | 2 +- .../ImportAuditorAccessWalletRequest.spec.js | 2 +- js/sdk/test/model/ImportWalletRequest.spec.js | 2 +- js/sdk/test/model/IssueAssetRequest.spec.js | 10 +- js/sdk/test/model/Notification.spec.js | 97 +++++ js/sdk/test/model/NotificationType.spec.js | 60 +++ js/sdk/test/model/OrderEnum.spec.js | 60 +++ js/sdk/test/model/Rule.spec.js | 20 +- .../test/model/TransferAssetRequest.spec.js | 16 +- js/sdk/test/model/UnlockWalletRequest.spec.js | 2 +- spec/asset-swagger.yaml | 150 ++++++-- 299 files changed, 3060 insertions(+), 1425 deletions(-) create mode 100644 go/sdk/docs/EmptyContent.md create mode 100644 go/sdk/docs/GetNotificationsRequest.md create mode 100644 go/sdk/docs/GetNotificationsResponse.md create mode 100644 go/sdk/docs/Notification.md create mode 100644 go/sdk/docs/NotificationType.md create mode 100644 go/sdk/docs/OrderEnum.md create mode 100644 go/sdk/model_empty_content.go create mode 100644 go/sdk/model_get_notifications_request.go create mode 100644 go/sdk/model_get_notifications_response.go create mode 100644 go/sdk/model_notification.go create mode 100644 go/sdk/model_notification_type.go create mode 100644 go/sdk/model_order_enum.go create mode 100644 js/sdk/docs/EmptyContent.md create mode 100644 js/sdk/docs/GetNotificationsRequest.md create mode 100644 js/sdk/docs/GetNotificationsResponse.md create mode 100644 js/sdk/docs/Notification.md create mode 100644 js/sdk/docs/NotificationType.md create mode 100644 js/sdk/docs/OrderEnum.md create mode 100644 js/sdk/src/model/EmptyContent.js create mode 100644 js/sdk/src/model/GetNotificationsRequest.js create mode 100644 js/sdk/src/model/GetNotificationsResponse.js create mode 100644 js/sdk/src/model/Notification.js create mode 100644 js/sdk/src/model/NotificationType.js create mode 100644 js/sdk/src/model/OrderEnum.js create mode 100644 js/sdk/test/model/EmptyContent.spec.js create mode 100644 js/sdk/test/model/GetNotificationsRequest.spec.js create mode 100644 js/sdk/test/model/GetNotificationsResponse.spec.js create mode 100644 js/sdk/test/model/Notification.spec.js create mode 100644 js/sdk/test/model/NotificationType.spec.js create mode 100644 js/sdk/test/model/OrderEnum.spec.js diff --git a/go/sdk/README.md b/go/sdk/README.md index e19088d..0748028 100644 --- a/go/sdk/README.md +++ b/go/sdk/README.md @@ -5,8 +5,8 @@ No description provided (generated by Openapi Generator https://github.com/opena ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 1.6.0 -- Package version: 1.1.0 +- API version: 1.6.1 +- Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen ## Installation @@ -40,6 +40,7 @@ Class | Method | HTTP request | Description *NodeApi* | [**NodeExportWalletPost**](docs/NodeApi.md#nodeexportwalletpost) | **Post** /node/export_wallet | Export wallet secret key *NodeApi* | [**NodeGenerateWalletPost**](docs/NodeApi.md#nodegeneratewalletpost) | **Post** /node/generate_wallet | Generate a new Wallet *NodeApi* | [**NodeGetAllWalletsPost**](docs/NodeApi.md#nodegetallwalletspost) | **Post** /node/get_all_wallets | Get all wallet IDs +*NodeApi* | [**NodeGetNotificationsPost**](docs/NodeApi.md#nodegetnotificationspost) | **Post** /node/get_notifications | Get notifications *NodeApi* | [**NodeGetRulesPost**](docs/NodeApi.md#nodegetrulespost) | **Post** /node/get_rules | Get network governance Rules *NodeApi* | [**NodeGetTaskStatusPost**](docs/NodeApi.md#nodegettaskstatuspost) | **Post** /node/get_task_status | Get a specific task (by ID) *NodeApi* | [**NodeGetTasksPost**](docs/NodeApi.md#nodegettaskspost) | **Post** /node/get_tasks | Get a (potentially) filtered list of all Tasks @@ -70,7 +71,6 @@ Class | Method | HTTP request | Description - [AnalyticsOutput](docs/AnalyticsOutput.md) - [AnalyticsOutputDescription](docs/AnalyticsOutputDescription.md) - [AnalyticsPublicIssuanceDescription](docs/AnalyticsPublicIssuanceDescription.md) - - [AnalyticsRule](docs/AnalyticsRule.md) - [AnalyticsRuleDefinition](docs/AnalyticsRuleDefinition.md) - [AnalyticsRuleTx](docs/AnalyticsRuleTx.md) - [AnalyticsRuleWalletDefinition](docs/AnalyticsRuleWalletDefinition.md) @@ -83,6 +83,7 @@ Class | Method | HTTP request | Description - [CreateRuleRequest](docs/CreateRuleRequest.md) - [DeleteRuleRequest](docs/DeleteRuleRequest.md) - [DeleteWalletRequest](docs/DeleteWalletRequest.md) + - [EmptyContent](docs/EmptyContent.md) - [ErrorResponse](docs/ErrorResponse.md) - [ExportAuditorAccessWalletRequest](docs/ExportAuditorAccessWalletRequest.md) - [ExportAuditorAccessWalletResponse](docs/ExportAuditorAccessWalletResponse.md) @@ -94,6 +95,8 @@ Class | Method | HTTP request | Description - [GetNetworkActivityResponse](docs/GetNetworkActivityResponse.md) - [GetNewAddressRequest](docs/GetNewAddressRequest.md) - [GetNewAddressResponse](docs/GetNewAddressResponse.md) + - [GetNotificationsRequest](docs/GetNotificationsRequest.md) + - [GetNotificationsResponse](docs/GetNotificationsResponse.md) - [GetPublicKeyRequest](docs/GetPublicKeyRequest.md) - [GetPublicKeyResponse](docs/GetPublicKeyResponse.md) - [GetRulesResponse](docs/GetRulesResponse.md) @@ -111,6 +114,9 @@ Class | Method | HTTP request | Description - [ImportAuditorAccessWalletRequest](docs/ImportAuditorAccessWalletRequest.md) - [ImportWalletRequest](docs/ImportWalletRequest.md) - [IssueAssetRequest](docs/IssueAssetRequest.md) + - [Notification](docs/Notification.md) + - [NotificationType](docs/NotificationType.md) + - [OrderEnum](docs/OrderEnum.md) - [Result](docs/Result.md) - [Rule](docs/Rule.md) - [TaskActionRequest](docs/TaskActionRequest.md) diff --git a/go/sdk/api/openapi.yaml b/go/sdk/api/openapi.yaml index 09e92e8..e72a94b 100644 --- a/go/sdk/api/openapi.yaml +++ b/go/sdk/api/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: title: QEDIT - Asset Transfers - version: 1.6.0 + version: 1.6.1 servers: - url: http://{server_url}:{port} variables: @@ -821,6 +821,43 @@ paths: summary: Cancel task with pending incoming transaction both incoming and outgoing [async call] tags: - Node + /node/get_notifications: + post: + description: Notifications are the Node's way to report about recent activity and status changes. This endpoint allows polling for these changes and fetching the updates. The notifications can be filtered in multiple ways. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetNotificationsRequest' + required: true + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetNotificationsResponse' + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Get notifications + tags: + - Node /health: post: description: Reports the health of the various components of the system as well as an overall status for the Node. If the Node's status is good, then the Node is synced with the Blockchain and can successfully process requests. @@ -958,6 +995,110 @@ components: - authorization - task_id type: object + GetNotificationsRequest: + description: The request body determines which filters to apply to the notifications. All filters are optional, while the maximal number of results defaults to 100 and the order defaults to descending. + example: + wallet_id: wallet_id + types: + - null + - null + max_results: 603 + after_id: 0 + starting_with_time: 2000-01-23 + properties: + wallet_id: + description: Fetch notifications that relate to this wallet ID only + type: string + types: + items: + $ref: '#/components/schemas/NotificationType' + type: array + starting_with_time: + description: Fetch notifications reported at this timestamp or later/earlier. Later notifications will be fetched if the order is ascending, and earlier ones if the order is descending. The timestamp is expected to be in RFC-3339 format. + format: date + type: string + after_id: + description: Fetch notifications after this given ID (not including the notification with the given ID). This is meant to facilitate pagination. Later notifications will be fetched if ascending order is selected, and earlier ones if descending order is selected. Warning - do not assume anything about the implementation of after_id; the values of the ID are intended to be copy-pasted from retrieved notifications for pagination. + format: int32 + type: integer + order: + $ref: '#/components/schemas/OrderEnum' + max_results: + default: 100 + description: The maximal number of results to fetch + format: int32 + maximum: 1000 + minimum: 1 + type: integer + type: object + NotificationType: + description: The type of notification. This also determines the type of the content of the notification. + enum: + - task_completed_successfully + - task_failed + type: string + OrderEnum: + default: desc + description: Order of results to fetch (either ascending or descending); ordering is chronological where the time is set to when the retrieved object was created + enum: + - asc + - desc + type: string + GetNotificationsResponse: + example: + notifications: + - wallet_id: wallet_id + created_at: 2000-01-23 + task_id: task_id + id: 0 + content: "" + - wallet_id: wallet_id + created_at: 2000-01-23 + task_id: task_id + id: 0 + content: "" + properties: + notifications: + items: + $ref: '#/components/schemas/Notification' + type: array + type: object + Notification: + description: A notification including some metadata and a content field whose type depends on the type of notification. + example: + wallet_id: wallet_id + created_at: 2000-01-23 + task_id: task_id + id: 0 + content: "" + properties: + id: + description: The unique identifier of the notification. Can be used for pagination purposes. + format: int32 + type: integer + created_at: + description: Timestamp the notification was created at, in RFC-3339 format. + format: date + type: string + wallet_id: + description: The ID of the wallet the notification relates to. May be null in cases there is no such specific wallet. + type: string + task_id: + description: The ID of the task the notification relates to. May be empty in cases there is no such specific task. + type: string + notification_type: + $ref: '#/components/schemas/NotificationType' + content: + oneOf: + - $ref: '#/components/schemas/EmptyContent' + required: + - created_at + - id + - notification_type + - task_id + type: object + EmptyContent: + type: object GetWalletActivityRequest: example: wallet_id: source_wallet @@ -1052,12 +1193,7 @@ components: $ref: '#/components/schemas/Result' type: array order: - default: desc - description: Order of tasks to fetch (either ascending or descending); ordering is chronological where the time is set to when the task was created in this Node - enum: - - asc - - desc - type: string + $ref: '#/components/schemas/OrderEnum' required: - number_of_results - start_index @@ -1112,7 +1248,7 @@ components: - failure type: string TaskState: - description: A fine-grained status of the node's inner state. This field is subject to changes and should not be relied upon during development + description: A fine-grained status of the node's inner state. This field is subject to changes and should not be relied upon during development. enum: - pending_state - in_progress_state @@ -1138,8 +1274,11 @@ components: - incoming_confirm_request type: string TaskData: - description: an object that includes additional request details + description: An object that includes additional request details properties: + sender_public_key: + description: The public key of the sender of the confirmation request + type: string require_confirmation_from: description: The public key for the confirmation request receiver type: string @@ -1918,18 +2057,6 @@ components: description: The Proof that the issued Asset Type indeed matches the reported Rule type: string type: object - AnalyticsRule: - description: The Rule used in the Issuance - example: - namespace: bank-a.loans.* - properties: - namespace: - description: | - A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. - type: string - required: - - namespace - type: object GetWalletActivityResponse: example: wallet_id: wallet_id @@ -2050,7 +2177,7 @@ components: type: object HealthcheckResponse: example: - version: 1.5.0 + version: 1.7.0 blockchain_connector: error: 'Post http://localhost:8082/connector/get_block: dial tcp 127.0.0.1:8082:connect: connection refused' diff --git a/go/sdk/api_analytics.go b/go/sdk/api_analytics.go index 1bbcc4b..3cabffe 100644 --- a/go/sdk/api_analytics.go +++ b/go/sdk/api_analytics.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/api_health.go b/go/sdk/api_health.go index 8c731b1..da03cc3 100644 --- a/go/sdk/api_health.go +++ b/go/sdk/api_health.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/api_node.go b/go/sdk/api_node.go index 132014e..dc546e7 100644 --- a/go/sdk/api_node.go +++ b/go/sdk/api_node.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -872,6 +872,138 @@ func (a *NodeApiService) NodeGetAllWalletsPost(ctx context.Context) (GetAllWalle return localVarReturnValue, localVarHttpResponse, nil } +/* +NodeApiService Get notifications +Notifications are the Node's way to report about recent activity and status changes. This endpoint allows polling for these changes and fetching the updates. The notifications can be filtered in multiple ways. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param getNotificationsRequest +@return GetNotificationsResponse +*/ +func (a *NodeApiService) NodeGetNotificationsPost(ctx context.Context, getNotificationsRequest GetNotificationsRequest) (GetNotificationsResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GetNotificationsResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/get_notifications" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &getNotificationsRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v GetNotificationsResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + /* NodeApiService Get network governance Rules Returns a full list of all the Rules that govern admin and issuance rights within the network. diff --git a/go/sdk/api_wallet.go b/go/sdk/api_wallet.go index 4a6f12c..b660e77 100644 --- a/go/sdk/api_wallet.go +++ b/go/sdk/api_wallet.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/client.go b/go/sdk/client.go index dfaea9f..626d34c 100644 --- a/go/sdk/client.go +++ b/go/sdk/client.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -37,7 +37,7 @@ var ( xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") ) -// APIClient manages communication with the QEDIT - Asset Transfers API v1.6.0 +// APIClient manages communication with the QEDIT - Asset Transfers API v1.6.1 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/go/sdk/configuration.go b/go/sdk/configuration.go index 082f1b0..27edc04 100644 --- a/go/sdk/configuration.go +++ b/go/sdk/configuration.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -62,7 +62,7 @@ func NewConfiguration() *Configuration { cfg := &Configuration{ BasePath: "http://localhost:12052", DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.1.0/go", + UserAgent: "OpenAPI-Generator/1.0.0/go", } return cfg } diff --git a/go/sdk/docs/EmptyContent.md b/go/sdk/docs/EmptyContent.md new file mode 100644 index 0000000..50f5507 --- /dev/null +++ b/go/sdk/docs/EmptyContent.md @@ -0,0 +1,9 @@ +# EmptyContent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/GetNotificationsRequest.md b/go/sdk/docs/GetNotificationsRequest.md new file mode 100644 index 0000000..a735db8 --- /dev/null +++ b/go/sdk/docs/GetNotificationsRequest.md @@ -0,0 +1,15 @@ +# GetNotificationsRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | Fetch notifications that relate to this wallet ID only | [optional] +**Types** | [**[]NotificationType**](NotificationType.md) | | [optional] +**StartingWithTime** | **string** | Fetch notifications reported at this timestamp or later/earlier. Later notifications will be fetched if the order is ascending, and earlier ones if the order is descending. The timestamp is expected to be in RFC-3339 format. | [optional] +**AfterId** | **int32** | Fetch notifications after this given ID (not including the notification with the given ID). This is meant to facilitate pagination. Later notifications will be fetched if ascending order is selected, and earlier ones if descending order is selected. Warning - do not assume anything about the implementation of after_id; the values of the ID are intended to be copy-pasted from retrieved notifications for pagination. | [optional] +**Order** | [**OrderEnum**](OrderEnum.md) | | [optional] +**MaxResults** | **int32** | The maximal number of results to fetch | [optional] [default to 100] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/GetNotificationsResponse.md b/go/sdk/docs/GetNotificationsResponse.md new file mode 100644 index 0000000..0aae174 --- /dev/null +++ b/go/sdk/docs/GetNotificationsResponse.md @@ -0,0 +1,10 @@ +# GetNotificationsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Notifications** | [**[]Notification**](Notification.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/GetTasksRequest.md b/go/sdk/docs/GetTasksRequest.md index a57919b..8c13097 100644 --- a/go/sdk/docs/GetTasksRequest.md +++ b/go/sdk/docs/GetTasksRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **NumberOfResults** | **int32** | Maximal number of results to fetch in this call | **Types** | [**[]TaskType**](TaskType.md) | Types of Tasks to fetch; fetch all types if omitted | [optional] **Results** | [**[]Result**](Result.md) | List of results (statuses) to filter by; fetch in_progress tasks if omitted | [optional] -**Order** | **string** | Order of tasks to fetch (either ascending or descending); ordering is chronological where the time is set to when the task was created in this Node | [optional] [default to ORDER_DESC] +**Order** | [**OrderEnum**](OrderEnum.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go/sdk/docs/NodeApi.md b/go/sdk/docs/NodeApi.md index 2d99e65..dbd562b 100644 --- a/go/sdk/docs/NodeApi.md +++ b/go/sdk/docs/NodeApi.md @@ -11,6 +11,7 @@ Method | HTTP request | Description [**NodeExportWalletPost**](NodeApi.md#NodeExportWalletPost) | **Post** /node/export_wallet | Export wallet secret key [**NodeGenerateWalletPost**](NodeApi.md#NodeGenerateWalletPost) | **Post** /node/generate_wallet | Generate a new Wallet [**NodeGetAllWalletsPost**](NodeApi.md#NodeGetAllWalletsPost) | **Post** /node/get_all_wallets | Get all wallet IDs +[**NodeGetNotificationsPost**](NodeApi.md#NodeGetNotificationsPost) | **Post** /node/get_notifications | Get notifications [**NodeGetRulesPost**](NodeApi.md#NodeGetRulesPost) | **Post** /node/get_rules | Get network governance Rules [**NodeGetTaskStatusPost**](NodeApi.md#NodeGetTaskStatusPost) | **Post** /node/get_task_status | Get a specific task (by ID) [**NodeGetTasksPost**](NodeApi.md#NodeGetTasksPost) | **Post** /node/get_tasks | Get a (potentially) filtered list of all Tasks @@ -211,6 +212,34 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **NodeGetNotificationsPost** +> GetNotificationsResponse NodeGetNotificationsPost(ctx, getNotificationsRequest) +Get notifications + +Notifications are the Node's way to report about recent activity and status changes. This endpoint allows polling for these changes and fetching the updates. The notifications can be filtered in multiple ways. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **getNotificationsRequest** | [**GetNotificationsRequest**](GetNotificationsRequest.md)| | + +### Return type + +[**GetNotificationsResponse**](GetNotificationsResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **NodeGetRulesPost** > GetRulesResponse NodeGetRulesPost(ctx, ) Get network governance Rules diff --git a/go/sdk/docs/Notification.md b/go/sdk/docs/Notification.md new file mode 100644 index 0000000..4d47a3b --- /dev/null +++ b/go/sdk/docs/Notification.md @@ -0,0 +1,15 @@ +# Notification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | The unique identifier of the notification. Can be used for pagination purposes. | +**CreatedAt** | **string** | Timestamp the notification was created at, in RFC-3339 format. | +**WalletId** | **string** | The ID of the wallet the notification relates to. May be null in cases there is no such specific wallet. | [optional] +**TaskId** | **string** | The ID of the task the notification relates to. May be empty in cases there is no such specific task. | +**NotificationType** | [**NotificationType**](NotificationType.md) | | +**Content** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/NotificationType.md b/go/sdk/docs/NotificationType.md new file mode 100644 index 0000000..c160f01 --- /dev/null +++ b/go/sdk/docs/NotificationType.md @@ -0,0 +1,9 @@ +# NotificationType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/OrderEnum.md b/go/sdk/docs/OrderEnum.md new file mode 100644 index 0000000..87181b1 --- /dev/null +++ b/go/sdk/docs/OrderEnum.md @@ -0,0 +1,9 @@ +# OrderEnum + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/TaskData.md b/go/sdk/docs/TaskData.md index d3041e4..67ae4ba 100644 --- a/go/sdk/docs/TaskData.md +++ b/go/sdk/docs/TaskData.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**SenderPublicKey** | **string** | The public key of the sender of the confirmation request | [optional] **RequireConfirmationFrom** | **string** | The public key for the confirmation request receiver | [optional] **RecipientAddress** | **string** | The address the request was sent to | [optional] **AssetId** | **string** | | [optional] diff --git a/go/sdk/git_push.sh b/go/sdk/git_push.sh index 8442b80..27d941b 100644 --- a/go/sdk/git_push.sh +++ b/go/sdk/git_push.sh @@ -8,12 +8,12 @@ git_repo_id=$2 release_note=$3 if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" + git_user_id="QED-it" echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" fi if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" + git_repo_id="goqedit" echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" fi diff --git a/go/sdk/model_analytic_issue_wallet_tx.go b/go/sdk/model_analytic_issue_wallet_tx.go index 63f45a5..42c8182 100644 --- a/go/sdk/model_analytic_issue_wallet_tx.go +++ b/go/sdk/model_analytic_issue_wallet_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytic_rule_wallet_tx.go b/go/sdk/model_analytic_rule_wallet_tx.go index 596d55d..ccf4952 100644 --- a/go/sdk/model_analytic_rule_wallet_tx.go +++ b/go/sdk/model_analytic_rule_wallet_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytic_transaction.go b/go/sdk/model_analytic_transaction.go index 454b7c8..cef0908 100644 --- a/go/sdk/model_analytic_transaction.go +++ b/go/sdk/model_analytic_transaction.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytic_transfer_wallet_tx.go b/go/sdk/model_analytic_transfer_wallet_tx.go index 38b20e0..7a2ccad 100644 --- a/go/sdk/model_analytic_transfer_wallet_tx.go +++ b/go/sdk/model_analytic_transfer_wallet_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytic_wallet_metadata.go b/go/sdk/model_analytic_wallet_metadata.go index 8192573..42caa49 100644 --- a/go/sdk/model_analytic_wallet_metadata.go +++ b/go/sdk/model_analytic_wallet_metadata.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytic_wallet_tx.go b/go/sdk/model_analytic_wallet_tx.go index b8fc8ff..4d7a782 100644 --- a/go/sdk/model_analytic_wallet_tx.go +++ b/go/sdk/model_analytic_wallet_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_confidential_issuance_description.go b/go/sdk/model_analytics_confidential_issuance_description.go index 7519d34..04f4c2d 100644 --- a/go/sdk/model_analytics_confidential_issuance_description.go +++ b/go/sdk/model_analytics_confidential_issuance_description.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_issue_tx.go b/go/sdk/model_analytics_issue_tx.go index 1224053..a0677a8 100644 --- a/go/sdk/model_analytics_issue_tx.go +++ b/go/sdk/model_analytics_issue_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_multi_transfer_tx.go b/go/sdk/model_analytics_multi_transfer_tx.go index c74c1ac..b780c99 100644 --- a/go/sdk/model_analytics_multi_transfer_tx.go +++ b/go/sdk/model_analytics_multi_transfer_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_output.go b/go/sdk/model_analytics_output.go index aca3b55..79ae315 100644 --- a/go/sdk/model_analytics_output.go +++ b/go/sdk/model_analytics_output.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_output_description.go b/go/sdk/model_analytics_output_description.go index 4d5c5a8..df38d16 100644 --- a/go/sdk/model_analytics_output_description.go +++ b/go/sdk/model_analytics_output_description.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_public_issuance_description.go b/go/sdk/model_analytics_public_issuance_description.go index 153e822..a3e83ab 100644 --- a/go/sdk/model_analytics_public_issuance_description.go +++ b/go/sdk/model_analytics_public_issuance_description.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_rule_definition.go b/go/sdk/model_analytics_rule_definition.go index 7636e88..c841d08 100644 --- a/go/sdk/model_analytics_rule_definition.go +++ b/go/sdk/model_analytics_rule_definition.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_rule_tx.go b/go/sdk/model_analytics_rule_tx.go index 683bf92..bb086eb 100644 --- a/go/sdk/model_analytics_rule_tx.go +++ b/go/sdk/model_analytics_rule_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_rule_wallet_definition.go b/go/sdk/model_analytics_rule_wallet_definition.go index 6c09c61..5680aae 100644 --- a/go/sdk/model_analytics_rule_wallet_definition.go +++ b/go/sdk/model_analytics_rule_wallet_definition.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_spend_description.go b/go/sdk/model_analytics_spend_description.go index ab5061b..36595b9 100644 --- a/go/sdk/model_analytics_spend_description.go +++ b/go/sdk/model_analytics_spend_description.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_transfer_tx.go b/go/sdk/model_analytics_transfer_tx.go index c114c81..8c7aff9 100644 --- a/go/sdk/model_analytics_transfer_tx.go +++ b/go/sdk/model_analytics_transfer_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_tx_metadata.go b/go/sdk/model_analytics_tx_metadata.go index 0169c61..b423b00 100644 --- a/go/sdk/model_analytics_tx_metadata.go +++ b/go/sdk/model_analytics_tx_metadata.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_tx_type.go b/go/sdk/model_analytics_tx_type.go index 92e2bdf..7937cdb 100644 --- a/go/sdk/model_analytics_tx_type.go +++ b/go/sdk/model_analytics_tx_type.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_async_task_created_response.go b/go/sdk/model_async_task_created_response.go index edde97e..f14d21b 100644 --- a/go/sdk/model_async_task_created_response.go +++ b/go/sdk/model_async_task_created_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_balance_for_asset.go b/go/sdk/model_balance_for_asset.go index 19fdba9..5bd0c46 100644 --- a/go/sdk/model_balance_for_asset.go +++ b/go/sdk/model_balance_for_asset.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_create_rule_request.go b/go/sdk/model_create_rule_request.go index da1578f..fc214cb 100644 --- a/go/sdk/model_create_rule_request.go +++ b/go/sdk/model_create_rule_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_delete_rule_request.go b/go/sdk/model_delete_rule_request.go index 758d305..62bce48 100644 --- a/go/sdk/model_delete_rule_request.go +++ b/go/sdk/model_delete_rule_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_delete_wallet_request.go b/go/sdk/model_delete_wallet_request.go index 5a13ce8..44cbabf 100644 --- a/go/sdk/model_delete_wallet_request.go +++ b/go/sdk/model_delete_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_empty_content.go b/go/sdk/model_empty_content.go new file mode 100644 index 0000000..7270044 --- /dev/null +++ b/go/sdk/model_empty_content.go @@ -0,0 +1,13 @@ +/* + * QEDIT - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.6.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type EmptyContent struct { +} diff --git a/go/sdk/model_error_response.go b/go/sdk/model_error_response.go index 3dc2f30..1d2c5d9 100644 --- a/go/sdk/model_error_response.go +++ b/go/sdk/model_error_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_export_auditor_access_wallet_request.go b/go/sdk/model_export_auditor_access_wallet_request.go index 3fd2bd9..901994c 100644 --- a/go/sdk/model_export_auditor_access_wallet_request.go +++ b/go/sdk/model_export_auditor_access_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_export_auditor_access_wallet_response.go b/go/sdk/model_export_auditor_access_wallet_response.go index f7a9290..0bb7eea 100644 --- a/go/sdk/model_export_auditor_access_wallet_response.go +++ b/go/sdk/model_export_auditor_access_wallet_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_export_wallet_request.go b/go/sdk/model_export_wallet_request.go index 7a90c1b..84d6c4c 100644 --- a/go/sdk/model_export_wallet_request.go +++ b/go/sdk/model_export_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_export_wallet_response.go b/go/sdk/model_export_wallet_response.go index f39e4de..4be2f4f 100644 --- a/go/sdk/model_export_wallet_response.go +++ b/go/sdk/model_export_wallet_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_generate_wallet_request.go b/go/sdk/model_generate_wallet_request.go index 933499c..1e084f0 100644 --- a/go/sdk/model_generate_wallet_request.go +++ b/go/sdk/model_generate_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_all_wallets_response.go b/go/sdk/model_get_all_wallets_response.go index 03d9b8b..f8d53dd 100644 --- a/go/sdk/model_get_all_wallets_response.go +++ b/go/sdk/model_get_all_wallets_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_network_activity_request.go b/go/sdk/model_get_network_activity_request.go index 85e35e5..8b7b786 100644 --- a/go/sdk/model_get_network_activity_request.go +++ b/go/sdk/model_get_network_activity_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_network_activity_response.go b/go/sdk/model_get_network_activity_response.go index f6bbc52..ab40fa4 100644 --- a/go/sdk/model_get_network_activity_response.go +++ b/go/sdk/model_get_network_activity_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_new_address_request.go b/go/sdk/model_get_new_address_request.go index d25cb84..0ba813a 100644 --- a/go/sdk/model_get_new_address_request.go +++ b/go/sdk/model_get_new_address_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_new_address_response.go b/go/sdk/model_get_new_address_response.go index b4136c6..19c7e41 100644 --- a/go/sdk/model_get_new_address_response.go +++ b/go/sdk/model_get_new_address_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_notifications_request.go b/go/sdk/model_get_notifications_request.go new file mode 100644 index 0000000..e10a837 --- /dev/null +++ b/go/sdk/model_get_notifications_request.go @@ -0,0 +1,24 @@ +/* + * QEDIT - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.6.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +// The request body determines which filters to apply to the notifications. All filters are optional, while the maximal number of results defaults to 100 and the order defaults to descending. +type GetNotificationsRequest struct { + // Fetch notifications that relate to this wallet ID only + WalletId string `json:"wallet_id,omitempty"` + Types []NotificationType `json:"types,omitempty"` + // Fetch notifications reported at this timestamp or later/earlier. Later notifications will be fetched if the order is ascending, and earlier ones if the order is descending. The timestamp is expected to be in RFC-3339 format. + StartingWithTime string `json:"starting_with_time,omitempty"` + // Fetch notifications after this given ID (not including the notification with the given ID). This is meant to facilitate pagination. Later notifications will be fetched if ascending order is selected, and earlier ones if descending order is selected. Warning - do not assume anything about the implementation of after_id; the values of the ID are intended to be copy-pasted from retrieved notifications for pagination. + AfterId int32 `json:"after_id,omitempty"` + Order OrderEnum `json:"order,omitempty"` + // The maximal number of results to fetch + MaxResults int32 `json:"max_results,omitempty"` +} diff --git a/go/sdk/model_get_notifications_response.go b/go/sdk/model_get_notifications_response.go new file mode 100644 index 0000000..1f2b69e --- /dev/null +++ b/go/sdk/model_get_notifications_response.go @@ -0,0 +1,14 @@ +/* + * QEDIT - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.6.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetNotificationsResponse struct { + Notifications []Notification `json:"notifications,omitempty"` +} diff --git a/go/sdk/model_get_public_key_request.go b/go/sdk/model_get_public_key_request.go index cdba14a..a79384a 100644 --- a/go/sdk/model_get_public_key_request.go +++ b/go/sdk/model_get_public_key_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_public_key_response.go b/go/sdk/model_get_public_key_response.go index 448f67d..1d20071 100644 --- a/go/sdk/model_get_public_key_response.go +++ b/go/sdk/model_get_public_key_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_rules_response.go b/go/sdk/model_get_rules_response.go index 23fbabd..4e4f744 100644 --- a/go/sdk/model_get_rules_response.go +++ b/go/sdk/model_get_rules_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_sync_status_response.go b/go/sdk/model_get_sync_status_response.go index a412288..3d31d77 100644 --- a/go/sdk/model_get_sync_status_response.go +++ b/go/sdk/model_get_sync_status_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_task_status_request.go b/go/sdk/model_get_task_status_request.go index 490798e..9ac8bd3 100644 --- a/go/sdk/model_get_task_status_request.go +++ b/go/sdk/model_get_task_status_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_task_status_response.go b/go/sdk/model_get_task_status_response.go index 0162ff2..c62e45f 100644 --- a/go/sdk/model_get_task_status_response.go +++ b/go/sdk/model_get_task_status_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_tasks_request.go b/go/sdk/model_get_tasks_request.go index f631f11..b052f7b 100644 --- a/go/sdk/model_get_tasks_request.go +++ b/go/sdk/model_get_tasks_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -18,6 +18,5 @@ type GetTasksRequest struct { Types []TaskType `json:"types,omitempty"` // List of results (statuses) to filter by; fetch in_progress tasks if omitted Results []Result `json:"results,omitempty"` - // Order of tasks to fetch (either ascending or descending); ordering is chronological where the time is set to when the task was created in this Node - Order string `json:"order,omitempty"` + Order OrderEnum `json:"order,omitempty"` } diff --git a/go/sdk/model_get_tasks_response.go b/go/sdk/model_get_tasks_response.go index f54e738..e7a08d7 100644 --- a/go/sdk/model_get_tasks_response.go +++ b/go/sdk/model_get_tasks_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_wallet_activity_request.go b/go/sdk/model_get_wallet_activity_request.go index f49f0d8..c082750 100644 --- a/go/sdk/model_get_wallet_activity_request.go +++ b/go/sdk/model_get_wallet_activity_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_wallet_activity_response.go b/go/sdk/model_get_wallet_activity_response.go index 73c0a16..ac2ac9d 100644 --- a/go/sdk/model_get_wallet_activity_response.go +++ b/go/sdk/model_get_wallet_activity_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_wallet_balance_request.go b/go/sdk/model_get_wallet_balance_request.go index 09c6bbe..5d78749 100644 --- a/go/sdk/model_get_wallet_balance_request.go +++ b/go/sdk/model_get_wallet_balance_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_wallet_balance_response.go b/go/sdk/model_get_wallet_balance_response.go index 124113c..ef09e13 100644 --- a/go/sdk/model_get_wallet_balance_response.go +++ b/go/sdk/model_get_wallet_balance_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_healthcheck_response.go b/go/sdk/model_healthcheck_response.go index 102b1c3..ba476f6 100644 --- a/go/sdk/model_healthcheck_response.go +++ b/go/sdk/model_healthcheck_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_healthcheck_response_item.go b/go/sdk/model_healthcheck_response_item.go index f3ecc1a..85a4d67 100644 --- a/go/sdk/model_healthcheck_response_item.go +++ b/go/sdk/model_healthcheck_response_item.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_import_auditor_access_wallet_request.go b/go/sdk/model_import_auditor_access_wallet_request.go index 96fc822..10b221d 100644 --- a/go/sdk/model_import_auditor_access_wallet_request.go +++ b/go/sdk/model_import_auditor_access_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_import_wallet_request.go b/go/sdk/model_import_wallet_request.go index 0cb4cdf..353d568 100644 --- a/go/sdk/model_import_wallet_request.go +++ b/go/sdk/model_import_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_issue_asset_request.go b/go/sdk/model_issue_asset_request.go index 07864c5..6d3640f 100644 --- a/go/sdk/model_issue_asset_request.go +++ b/go/sdk/model_issue_asset_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_notification.go b/go/sdk/model_notification.go new file mode 100644 index 0000000..d29359c --- /dev/null +++ b/go/sdk/model_notification.go @@ -0,0 +1,24 @@ +/* + * QEDIT - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.6.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +// A notification including some metadata and a content field whose type depends on the type of notification. +type Notification struct { + // The unique identifier of the notification. Can be used for pagination purposes. + Id int32 `json:"id"` + // Timestamp the notification was created at, in RFC-3339 format. + CreatedAt string `json:"created_at"` + // The ID of the wallet the notification relates to. May be null in cases there is no such specific wallet. + WalletId string `json:"wallet_id,omitempty"` + // The ID of the task the notification relates to. May be empty in cases there is no such specific task. + TaskId string `json:"task_id"` + NotificationType NotificationType `json:"notification_type"` + Content map[string]interface{} `json:"content,omitempty"` +} diff --git a/go/sdk/model_notification_type.go b/go/sdk/model_notification_type.go new file mode 100644 index 0000000..ae25914 --- /dev/null +++ b/go/sdk/model_notification_type.go @@ -0,0 +1,18 @@ +/* + * QEDIT - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.6.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk +// NotificationType : The type of notification. This also determines the type of the content of the notification. +type NotificationType string + +// List of NotificationType +const ( + COMPLETED_SUCCESSFULLY NotificationType = "task_completed_successfully" + FAILED NotificationType = "task_failed" +) \ No newline at end of file diff --git a/go/sdk/model_order_enum.go b/go/sdk/model_order_enum.go new file mode 100644 index 0000000..f676408 --- /dev/null +++ b/go/sdk/model_order_enum.go @@ -0,0 +1,18 @@ +/* + * QEDIT - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.6.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk +// OrderEnum : Order of results to fetch (either ascending or descending); ordering is chronological where the time is set to when the retrieved object was created +type OrderEnum string + +// List of OrderEnum +const ( + ASC OrderEnum = "asc" + DESC OrderEnum = "desc" +) \ No newline at end of file diff --git a/go/sdk/model_result.go b/go/sdk/model_result.go index c4ab8b3..d0c9a85 100644 --- a/go/sdk/model_result.go +++ b/go/sdk/model_result.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_rule.go b/go/sdk/model_rule.go index 2ad0748..2a182c9 100644 --- a/go/sdk/model_rule.go +++ b/go/sdk/model_rule.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_task_action_request.go b/go/sdk/model_task_action_request.go index fe3b926..4e7e281 100644 --- a/go/sdk/model_task_action_request.go +++ b/go/sdk/model_task_action_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_task_data.go b/go/sdk/model_task_data.go index e8f47f6..49f7240 100644 --- a/go/sdk/model_task_data.go +++ b/go/sdk/model_task_data.go @@ -3,14 +3,16 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk -// an object that includes additional request details +// An object that includes additional request details type TaskData struct { + // The public key of the sender of the confirmation request + SenderPublicKey string `json:"sender_public_key,omitempty"` // The public key for the confirmation request receiver RequireConfirmationFrom string `json:"require_confirmation_from,omitempty"` // The address the request was sent to diff --git a/go/sdk/model_task_state.go b/go/sdk/model_task_state.go index 2fcb188..a2da6eb 100644 --- a/go/sdk/model_task_state.go +++ b/go/sdk/model_task_state.go @@ -3,12 +3,12 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk -// TaskState : A fine-grained status of the node's inner state. This field is subject to changes and should not be relied upon during development +// TaskState : A fine-grained status of the node's inner state. This field is subject to changes and should not be relied upon during development. type TaskState string // List of TaskState diff --git a/go/sdk/model_task_type.go b/go/sdk/model_task_type.go index d1aac8b..152abac 100644 --- a/go/sdk/model_task_type.go +++ b/go/sdk/model_task_type.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_transfer_asset_request.go b/go/sdk/model_transfer_asset_request.go index 6727e45..3d2dae7 100644 --- a/go/sdk/model_transfer_asset_request.go +++ b/go/sdk/model_transfer_asset_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_unlock_wallet_request.go b/go/sdk/model_unlock_wallet_request.go index 227a578..5121b94 100644 --- a/go/sdk/model_unlock_wallet_request.go +++ b/go/sdk/model_unlock_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/response.go b/go/sdk/response.go index ae837df..89c8249 100644 --- a/go/sdk/response.go +++ b/go/sdk/response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.6.0 + * API version: 1.6.1 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/js/sdk/README.md b/js/sdk/README.md index 3f5fe2a..cf5ac69 100644 --- a/js/sdk/README.md +++ b/js/sdk/README.md @@ -1,11 +1,11 @@ -# qed-it-asset-transfers +# qedit___asset_transfers -QedItAssetTransfers - JavaScript client for qed-it-asset-transfers +QeditAssetTransfers - JavaScript client for qedit___asset_transfers No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.6.0 -- Package version: 1.6.0 +- API version: 1.6.1 +- Package version: 1.6.1 - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen ## Installation @@ -20,7 +20,7 @@ please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.co Then install it via: ```shell -npm install qed-it-asset-transfers --save +npm install qedit___asset_transfers --save ``` ##### Local development @@ -38,23 +38,23 @@ Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the follow npm link ``` -Finally, switch to the directory you want to use your qed-it-asset-transfers from, and run: +Finally, switch to the directory you want to use your qedit___asset_transfers from, and run: ```shell npm link /path/to/ ``` -You should now be able to `require('qed-it-asset-transfers')` in javascript files from the directory you ran the last +You should now be able to `require('qedit___asset_transfers')` in javascript files from the directory you ran the last command above from. #### git # If the library is hosted at a git repository, e.g. -https://github.com/GIT_USER_ID/GIT_REPO_ID +https://github.com/QED-it/jqqedit then install it via: ```shell - npm install GIT_USER_ID/GIT_REPO_ID --save + npm install QED-it/jqqedit --save ``` ### For browser @@ -93,9 +93,9 @@ module: { Please follow the [installation](#installation) instruction and execute the following JS code: ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); +var QeditAssetTransfers = require('qedit___asset_transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; @@ -103,14 +103,17 @@ ApiKeyAuth.apiKey = "YOUR API KEY" // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix['x-auth-token'] = "Token" -var api = new QedItAssetTransfers.AnalyticsApi() -var getNetworkActivityRequest = new QedItAssetTransfers.GetNetworkActivityRequest(); // {GetNetworkActivityRequest} -api.analyticsGetNetworkActivityPost(getNetworkActivityRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); +var api = new QeditAssetTransfers.AnalyticsApi() +var getNetworkActivityRequest = new QeditAssetTransfers.GetNetworkActivityRequest(); // {GetNetworkActivityRequest} +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +api.analyticsGetNetworkActivityPost(getNetworkActivityRequest, callback); ``` @@ -120,95 +123,101 @@ All URIs are relative to *http://localhost:12052* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*QedItAssetTransfers.AnalyticsApi* | [**analyticsGetNetworkActivityPost**](docs/AnalyticsApi.md#analyticsGetNetworkActivityPost) | **POST** /analytics/get_network_activity | Get details on past blocks either by order using start_index and number_of_results or by the tx_hashes of the transactions -*QedItAssetTransfers.AnalyticsApi* | [**analyticsGetSyncStatusPost**](docs/AnalyticsApi.md#analyticsGetSyncStatusPost) | **POST** /analytics/get_sync_status | Get blockchain sync status information -*QedItAssetTransfers.HealthApi* | [**healthPost**](docs/HealthApi.md#healthPost) | **POST** /health | Perform a healthcheck of the node and its dependent services -*QedItAssetTransfers.NodeApi* | [**nodeApproveTaskPost**](docs/NodeApi.md#nodeApproveTaskPost) | **POST** /node/approve_task | Approve task with pending incoming transaction [async call] -*QedItAssetTransfers.NodeApi* | [**nodeCancelTaskPost**](docs/NodeApi.md#nodeCancelTaskPost) | **POST** /node/cancel_task | Cancel task with pending incoming transaction both incoming and outgoing [async call] -*QedItAssetTransfers.NodeApi* | [**nodeDeleteWalletPost**](docs/NodeApi.md#nodeDeleteWalletPost) | **POST** /node/delete_wallet | Delete a Wallet [async call] -*QedItAssetTransfers.NodeApi* | [**nodeExportAuditorAccessWalletPost**](docs/NodeApi.md#nodeExportAuditorAccessWalletPost) | **POST** /node/export_auditor_access_wallet | Export viewing credentials for a Wallet -*QedItAssetTransfers.NodeApi* | [**nodeExportWalletPost**](docs/NodeApi.md#nodeExportWalletPost) | **POST** /node/export_wallet | Export wallet secret key -*QedItAssetTransfers.NodeApi* | [**nodeGenerateWalletPost**](docs/NodeApi.md#nodeGenerateWalletPost) | **POST** /node/generate_wallet | Generate a new Wallet -*QedItAssetTransfers.NodeApi* | [**nodeGetAllWalletsPost**](docs/NodeApi.md#nodeGetAllWalletsPost) | **POST** /node/get_all_wallets | Get all wallet IDs -*QedItAssetTransfers.NodeApi* | [**nodeGetRulesPost**](docs/NodeApi.md#nodeGetRulesPost) | **POST** /node/get_rules | Get network governance Rules -*QedItAssetTransfers.NodeApi* | [**nodeGetTaskStatusPost**](docs/NodeApi.md#nodeGetTaskStatusPost) | **POST** /node/get_task_status | Get a specific task (by ID) -*QedItAssetTransfers.NodeApi* | [**nodeGetTasksPost**](docs/NodeApi.md#nodeGetTasksPost) | **POST** /node/get_tasks | Get a (potentially) filtered list of all Tasks -*QedItAssetTransfers.NodeApi* | [**nodeImportAuditorAccessWalletPost**](docs/NodeApi.md#nodeImportAuditorAccessWalletPost) | **POST** /node/import_auditor_access_wallet | Import viewing credentials for a Wallet [async call] -*QedItAssetTransfers.NodeApi* | [**nodeImportWalletPost**](docs/NodeApi.md#nodeImportWalletPost) | **POST** /node/import_wallet | Import Wallet from a known secret key and authorization [async call] -*QedItAssetTransfers.NodeApi* | [**nodeUnlockWalletPost**](docs/NodeApi.md#nodeUnlockWalletPost) | **POST** /node/unlock_wallet | Unlocks a wallet for a given amount of seconds [async call] -*QedItAssetTransfers.WalletApi* | [**walletCreateRulePost**](docs/WalletApi.md#walletCreateRulePost) | **POST** /wallet/create_rule | Create a new Rule in the network [async call] -*QedItAssetTransfers.WalletApi* | [**walletDeleteRulePost**](docs/WalletApi.md#walletDeleteRulePost) | **POST** /wallet/delete_rule | Delete an existing Rule from the network [async call] -*QedItAssetTransfers.WalletApi* | [**walletGetActivityPost**](docs/WalletApi.md#walletGetActivityPost) | **POST** /wallet/get_activity | Get wallet activity (transactions) -*QedItAssetTransfers.WalletApi* | [**walletGetBalancesPost**](docs/WalletApi.md#walletGetBalancesPost) | **POST** /wallet/get_balances | Get wallets balances -*QedItAssetTransfers.WalletApi* | [**walletGetNewAddressPost**](docs/WalletApi.md#walletGetNewAddressPost) | **POST** /wallet/get_new_address | Get a new address from a given diversifier or generate randomly -*QedItAssetTransfers.WalletApi* | [**walletGetPublicKeyPost**](docs/WalletApi.md#walletGetPublicKeyPost) | **POST** /wallet/get_public_key | Get wallet public key -*QedItAssetTransfers.WalletApi* | [**walletIssueAssetPost**](docs/WalletApi.md#walletIssueAssetPost) | **POST** /wallet/issue_asset | Issue assets [async call] -*QedItAssetTransfers.WalletApi* | [**walletTransferAssetPost**](docs/WalletApi.md#walletTransferAssetPost) | **POST** /wallet/transfer_asset | Transfer assets [async call] +*QeditAssetTransfers.AnalyticsApi* | [**analyticsGetNetworkActivityPost**](docs/AnalyticsApi.md#analyticsGetNetworkActivityPost) | **POST** /analytics/get_network_activity | Get details on past blocks either by order using start_index and number_of_results or by the tx_hashes of the transactions +*QeditAssetTransfers.AnalyticsApi* | [**analyticsGetSyncStatusPost**](docs/AnalyticsApi.md#analyticsGetSyncStatusPost) | **POST** /analytics/get_sync_status | Get blockchain sync status information +*QeditAssetTransfers.HealthApi* | [**healthPost**](docs/HealthApi.md#healthPost) | **POST** /health | Perform a healthcheck of the node and its dependent services +*QeditAssetTransfers.NodeApi* | [**nodeApproveTaskPost**](docs/NodeApi.md#nodeApproveTaskPost) | **POST** /node/approve_task | Approve task with pending incoming transaction [async call] +*QeditAssetTransfers.NodeApi* | [**nodeCancelTaskPost**](docs/NodeApi.md#nodeCancelTaskPost) | **POST** /node/cancel_task | Cancel task with pending incoming transaction both incoming and outgoing [async call] +*QeditAssetTransfers.NodeApi* | [**nodeDeleteWalletPost**](docs/NodeApi.md#nodeDeleteWalletPost) | **POST** /node/delete_wallet | Delete a Wallet [async call] +*QeditAssetTransfers.NodeApi* | [**nodeExportAuditorAccessWalletPost**](docs/NodeApi.md#nodeExportAuditorAccessWalletPost) | **POST** /node/export_auditor_access_wallet | Export viewing credentials for a Wallet +*QeditAssetTransfers.NodeApi* | [**nodeExportWalletPost**](docs/NodeApi.md#nodeExportWalletPost) | **POST** /node/export_wallet | Export wallet secret key +*QeditAssetTransfers.NodeApi* | [**nodeGenerateWalletPost**](docs/NodeApi.md#nodeGenerateWalletPost) | **POST** /node/generate_wallet | Generate a new Wallet +*QeditAssetTransfers.NodeApi* | [**nodeGetAllWalletsPost**](docs/NodeApi.md#nodeGetAllWalletsPost) | **POST** /node/get_all_wallets | Get all wallet IDs +*QeditAssetTransfers.NodeApi* | [**nodeGetNotificationsPost**](docs/NodeApi.md#nodeGetNotificationsPost) | **POST** /node/get_notifications | Get notifications +*QeditAssetTransfers.NodeApi* | [**nodeGetRulesPost**](docs/NodeApi.md#nodeGetRulesPost) | **POST** /node/get_rules | Get network governance Rules +*QeditAssetTransfers.NodeApi* | [**nodeGetTaskStatusPost**](docs/NodeApi.md#nodeGetTaskStatusPost) | **POST** /node/get_task_status | Get a specific task (by ID) +*QeditAssetTransfers.NodeApi* | [**nodeGetTasksPost**](docs/NodeApi.md#nodeGetTasksPost) | **POST** /node/get_tasks | Get a (potentially) filtered list of all Tasks +*QeditAssetTransfers.NodeApi* | [**nodeImportAuditorAccessWalletPost**](docs/NodeApi.md#nodeImportAuditorAccessWalletPost) | **POST** /node/import_auditor_access_wallet | Import viewing credentials for a Wallet [async call] +*QeditAssetTransfers.NodeApi* | [**nodeImportWalletPost**](docs/NodeApi.md#nodeImportWalletPost) | **POST** /node/import_wallet | Import Wallet from a known secret key and authorization [async call] +*QeditAssetTransfers.NodeApi* | [**nodeUnlockWalletPost**](docs/NodeApi.md#nodeUnlockWalletPost) | **POST** /node/unlock_wallet | Unlocks a wallet for a given amount of seconds [async call] +*QeditAssetTransfers.WalletApi* | [**walletCreateRulePost**](docs/WalletApi.md#walletCreateRulePost) | **POST** /wallet/create_rule | Create a new Rule in the network [async call] +*QeditAssetTransfers.WalletApi* | [**walletDeleteRulePost**](docs/WalletApi.md#walletDeleteRulePost) | **POST** /wallet/delete_rule | Delete an existing Rule from the network [async call] +*QeditAssetTransfers.WalletApi* | [**walletGetActivityPost**](docs/WalletApi.md#walletGetActivityPost) | **POST** /wallet/get_activity | Get wallet activity (transactions) +*QeditAssetTransfers.WalletApi* | [**walletGetBalancesPost**](docs/WalletApi.md#walletGetBalancesPost) | **POST** /wallet/get_balances | Get wallets balances +*QeditAssetTransfers.WalletApi* | [**walletGetNewAddressPost**](docs/WalletApi.md#walletGetNewAddressPost) | **POST** /wallet/get_new_address | Get a new address from a given diversifier or generate randomly +*QeditAssetTransfers.WalletApi* | [**walletGetPublicKeyPost**](docs/WalletApi.md#walletGetPublicKeyPost) | **POST** /wallet/get_public_key | Get wallet public key +*QeditAssetTransfers.WalletApi* | [**walletIssueAssetPost**](docs/WalletApi.md#walletIssueAssetPost) | **POST** /wallet/issue_asset | Issue assets [async call] +*QeditAssetTransfers.WalletApi* | [**walletTransferAssetPost**](docs/WalletApi.md#walletTransferAssetPost) | **POST** /wallet/transfer_asset | Transfer assets [async call] ## Documentation for Models - - [QedItAssetTransfers.AnalyticIssueWalletTx](docs/AnalyticIssueWalletTx.md) - - [QedItAssetTransfers.AnalyticRuleWalletTx](docs/AnalyticRuleWalletTx.md) - - [QedItAssetTransfers.AnalyticTransaction](docs/AnalyticTransaction.md) - - [QedItAssetTransfers.AnalyticTransferWalletTx](docs/AnalyticTransferWalletTx.md) - - [QedItAssetTransfers.AnalyticWalletMetadata](docs/AnalyticWalletMetadata.md) - - [QedItAssetTransfers.AnalyticWalletTx](docs/AnalyticWalletTx.md) - - [QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription](docs/AnalyticsConfidentialIssuanceDescription.md) - - [QedItAssetTransfers.AnalyticsIssueTx](docs/AnalyticsIssueTx.md) - - [QedItAssetTransfers.AnalyticsMultiTransferTx](docs/AnalyticsMultiTransferTx.md) - - [QedItAssetTransfers.AnalyticsOutput](docs/AnalyticsOutput.md) - - [QedItAssetTransfers.AnalyticsOutputDescription](docs/AnalyticsOutputDescription.md) - - [QedItAssetTransfers.AnalyticsPublicIssuanceDescription](docs/AnalyticsPublicIssuanceDescription.md) - - [QedItAssetTransfers.AnalyticsRule](docs/AnalyticsRule.md) - - [QedItAssetTransfers.AnalyticsRuleDefinition](docs/AnalyticsRuleDefinition.md) - - [QedItAssetTransfers.AnalyticsRuleTx](docs/AnalyticsRuleTx.md) - - [QedItAssetTransfers.AnalyticsRuleWalletDefinition](docs/AnalyticsRuleWalletDefinition.md) - - [QedItAssetTransfers.AnalyticsSpendDescription](docs/AnalyticsSpendDescription.md) - - [QedItAssetTransfers.AnalyticsTransferTx](docs/AnalyticsTransferTx.md) - - [QedItAssetTransfers.AnalyticsTxMetadata](docs/AnalyticsTxMetadata.md) - - [QedItAssetTransfers.AnalyticsTxType](docs/AnalyticsTxType.md) - - [QedItAssetTransfers.AsyncTaskCreatedResponse](docs/AsyncTaskCreatedResponse.md) - - [QedItAssetTransfers.BalanceForAsset](docs/BalanceForAsset.md) - - [QedItAssetTransfers.CreateRuleRequest](docs/CreateRuleRequest.md) - - [QedItAssetTransfers.DeleteRuleRequest](docs/DeleteRuleRequest.md) - - [QedItAssetTransfers.DeleteWalletRequest](docs/DeleteWalletRequest.md) - - [QedItAssetTransfers.ErrorResponse](docs/ErrorResponse.md) - - [QedItAssetTransfers.ExportAuditorAccessWalletRequest](docs/ExportAuditorAccessWalletRequest.md) - - [QedItAssetTransfers.ExportAuditorAccessWalletResponse](docs/ExportAuditorAccessWalletResponse.md) - - [QedItAssetTransfers.ExportWalletRequest](docs/ExportWalletRequest.md) - - [QedItAssetTransfers.ExportWalletResponse](docs/ExportWalletResponse.md) - - [QedItAssetTransfers.GenerateWalletRequest](docs/GenerateWalletRequest.md) - - [QedItAssetTransfers.GetAllWalletsResponse](docs/GetAllWalletsResponse.md) - - [QedItAssetTransfers.GetNetworkActivityRequest](docs/GetNetworkActivityRequest.md) - - [QedItAssetTransfers.GetNetworkActivityResponse](docs/GetNetworkActivityResponse.md) - - [QedItAssetTransfers.GetNewAddressRequest](docs/GetNewAddressRequest.md) - - [QedItAssetTransfers.GetNewAddressResponse](docs/GetNewAddressResponse.md) - - [QedItAssetTransfers.GetPublicKeyRequest](docs/GetPublicKeyRequest.md) - - [QedItAssetTransfers.GetPublicKeyResponse](docs/GetPublicKeyResponse.md) - - [QedItAssetTransfers.GetRulesResponse](docs/GetRulesResponse.md) - - [QedItAssetTransfers.GetSyncStatusResponse](docs/GetSyncStatusResponse.md) - - [QedItAssetTransfers.GetTaskStatusRequest](docs/GetTaskStatusRequest.md) - - [QedItAssetTransfers.GetTaskStatusResponse](docs/GetTaskStatusResponse.md) - - [QedItAssetTransfers.GetTasksRequest](docs/GetTasksRequest.md) - - [QedItAssetTransfers.GetTasksResponse](docs/GetTasksResponse.md) - - [QedItAssetTransfers.GetWalletActivityRequest](docs/GetWalletActivityRequest.md) - - [QedItAssetTransfers.GetWalletActivityResponse](docs/GetWalletActivityResponse.md) - - [QedItAssetTransfers.GetWalletBalanceRequest](docs/GetWalletBalanceRequest.md) - - [QedItAssetTransfers.GetWalletBalanceResponse](docs/GetWalletBalanceResponse.md) - - [QedItAssetTransfers.HealthcheckResponse](docs/HealthcheckResponse.md) - - [QedItAssetTransfers.HealthcheckResponseItem](docs/HealthcheckResponseItem.md) - - [QedItAssetTransfers.ImportAuditorAccessWalletRequest](docs/ImportAuditorAccessWalletRequest.md) - - [QedItAssetTransfers.ImportWalletRequest](docs/ImportWalletRequest.md) - - [QedItAssetTransfers.IssueAssetRequest](docs/IssueAssetRequest.md) - - [QedItAssetTransfers.Result](docs/Result.md) - - [QedItAssetTransfers.Rule](docs/Rule.md) - - [QedItAssetTransfers.TaskActionRequest](docs/TaskActionRequest.md) - - [QedItAssetTransfers.TaskData](docs/TaskData.md) - - [QedItAssetTransfers.TaskState](docs/TaskState.md) - - [QedItAssetTransfers.TaskType](docs/TaskType.md) - - [QedItAssetTransfers.TransferAssetRequest](docs/TransferAssetRequest.md) - - [QedItAssetTransfers.UnlockWalletRequest](docs/UnlockWalletRequest.md) + - [QeditAssetTransfers.AnalyticIssueWalletTx](docs/AnalyticIssueWalletTx.md) + - [QeditAssetTransfers.AnalyticRuleWalletTx](docs/AnalyticRuleWalletTx.md) + - [QeditAssetTransfers.AnalyticTransaction](docs/AnalyticTransaction.md) + - [QeditAssetTransfers.AnalyticTransferWalletTx](docs/AnalyticTransferWalletTx.md) + - [QeditAssetTransfers.AnalyticWalletMetadata](docs/AnalyticWalletMetadata.md) + - [QeditAssetTransfers.AnalyticWalletTx](docs/AnalyticWalletTx.md) + - [QeditAssetTransfers.AnalyticsConfidentialIssuanceDescription](docs/AnalyticsConfidentialIssuanceDescription.md) + - [QeditAssetTransfers.AnalyticsIssueTx](docs/AnalyticsIssueTx.md) + - [QeditAssetTransfers.AnalyticsMultiTransferTx](docs/AnalyticsMultiTransferTx.md) + - [QeditAssetTransfers.AnalyticsOutput](docs/AnalyticsOutput.md) + - [QeditAssetTransfers.AnalyticsOutputDescription](docs/AnalyticsOutputDescription.md) + - [QeditAssetTransfers.AnalyticsPublicIssuanceDescription](docs/AnalyticsPublicIssuanceDescription.md) + - [QeditAssetTransfers.AnalyticsRuleDefinition](docs/AnalyticsRuleDefinition.md) + - [QeditAssetTransfers.AnalyticsRuleTx](docs/AnalyticsRuleTx.md) + - [QeditAssetTransfers.AnalyticsRuleWalletDefinition](docs/AnalyticsRuleWalletDefinition.md) + - [QeditAssetTransfers.AnalyticsSpendDescription](docs/AnalyticsSpendDescription.md) + - [QeditAssetTransfers.AnalyticsTransferTx](docs/AnalyticsTransferTx.md) + - [QeditAssetTransfers.AnalyticsTxMetadata](docs/AnalyticsTxMetadata.md) + - [QeditAssetTransfers.AnalyticsTxType](docs/AnalyticsTxType.md) + - [QeditAssetTransfers.AsyncTaskCreatedResponse](docs/AsyncTaskCreatedResponse.md) + - [QeditAssetTransfers.BalanceForAsset](docs/BalanceForAsset.md) + - [QeditAssetTransfers.CreateRuleRequest](docs/CreateRuleRequest.md) + - [QeditAssetTransfers.DeleteRuleRequest](docs/DeleteRuleRequest.md) + - [QeditAssetTransfers.DeleteWalletRequest](docs/DeleteWalletRequest.md) + - [QeditAssetTransfers.EmptyContent](docs/EmptyContent.md) + - [QeditAssetTransfers.ErrorResponse](docs/ErrorResponse.md) + - [QeditAssetTransfers.ExportAuditorAccessWalletRequest](docs/ExportAuditorAccessWalletRequest.md) + - [QeditAssetTransfers.ExportAuditorAccessWalletResponse](docs/ExportAuditorAccessWalletResponse.md) + - [QeditAssetTransfers.ExportWalletRequest](docs/ExportWalletRequest.md) + - [QeditAssetTransfers.ExportWalletResponse](docs/ExportWalletResponse.md) + - [QeditAssetTransfers.GenerateWalletRequest](docs/GenerateWalletRequest.md) + - [QeditAssetTransfers.GetAllWalletsResponse](docs/GetAllWalletsResponse.md) + - [QeditAssetTransfers.GetNetworkActivityRequest](docs/GetNetworkActivityRequest.md) + - [QeditAssetTransfers.GetNetworkActivityResponse](docs/GetNetworkActivityResponse.md) + - [QeditAssetTransfers.GetNewAddressRequest](docs/GetNewAddressRequest.md) + - [QeditAssetTransfers.GetNewAddressResponse](docs/GetNewAddressResponse.md) + - [QeditAssetTransfers.GetNotificationsRequest](docs/GetNotificationsRequest.md) + - [QeditAssetTransfers.GetNotificationsResponse](docs/GetNotificationsResponse.md) + - [QeditAssetTransfers.GetPublicKeyRequest](docs/GetPublicKeyRequest.md) + - [QeditAssetTransfers.GetPublicKeyResponse](docs/GetPublicKeyResponse.md) + - [QeditAssetTransfers.GetRulesResponse](docs/GetRulesResponse.md) + - [QeditAssetTransfers.GetSyncStatusResponse](docs/GetSyncStatusResponse.md) + - [QeditAssetTransfers.GetTaskStatusRequest](docs/GetTaskStatusRequest.md) + - [QeditAssetTransfers.GetTaskStatusResponse](docs/GetTaskStatusResponse.md) + - [QeditAssetTransfers.GetTasksRequest](docs/GetTasksRequest.md) + - [QeditAssetTransfers.GetTasksResponse](docs/GetTasksResponse.md) + - [QeditAssetTransfers.GetWalletActivityRequest](docs/GetWalletActivityRequest.md) + - [QeditAssetTransfers.GetWalletActivityResponse](docs/GetWalletActivityResponse.md) + - [QeditAssetTransfers.GetWalletBalanceRequest](docs/GetWalletBalanceRequest.md) + - [QeditAssetTransfers.GetWalletBalanceResponse](docs/GetWalletBalanceResponse.md) + - [QeditAssetTransfers.HealthcheckResponse](docs/HealthcheckResponse.md) + - [QeditAssetTransfers.HealthcheckResponseItem](docs/HealthcheckResponseItem.md) + - [QeditAssetTransfers.ImportAuditorAccessWalletRequest](docs/ImportAuditorAccessWalletRequest.md) + - [QeditAssetTransfers.ImportWalletRequest](docs/ImportWalletRequest.md) + - [QeditAssetTransfers.IssueAssetRequest](docs/IssueAssetRequest.md) + - [QeditAssetTransfers.Notification](docs/Notification.md) + - [QeditAssetTransfers.NotificationType](docs/NotificationType.md) + - [QeditAssetTransfers.OrderEnum](docs/OrderEnum.md) + - [QeditAssetTransfers.Result](docs/Result.md) + - [QeditAssetTransfers.Rule](docs/Rule.md) + - [QeditAssetTransfers.TaskActionRequest](docs/TaskActionRequest.md) + - [QeditAssetTransfers.TaskData](docs/TaskData.md) + - [QeditAssetTransfers.TaskState](docs/TaskState.md) + - [QeditAssetTransfers.TaskType](docs/TaskType.md) + - [QeditAssetTransfers.TransferAssetRequest](docs/TransferAssetRequest.md) + - [QeditAssetTransfers.UnlockWalletRequest](docs/UnlockWalletRequest.md) ## Documentation for Authorization diff --git a/js/sdk/docs/AnalyticIssueWalletTx.md b/js/sdk/docs/AnalyticIssueWalletTx.md index 2cf8d2d..0009371 100644 --- a/js/sdk/docs/AnalyticIssueWalletTx.md +++ b/js/sdk/docs/AnalyticIssueWalletTx.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticIssueWalletTx +# QeditAssetTransfers.AnalyticIssueWalletTx ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticRuleWalletTx.md b/js/sdk/docs/AnalyticRuleWalletTx.md index eb48d32..f5f60b9 100644 --- a/js/sdk/docs/AnalyticRuleWalletTx.md +++ b/js/sdk/docs/AnalyticRuleWalletTx.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticRuleWalletTx +# QeditAssetTransfers.AnalyticRuleWalletTx ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticTransaction.md b/js/sdk/docs/AnalyticTransaction.md index 2812cb4..53a93e6 100644 --- a/js/sdk/docs/AnalyticTransaction.md +++ b/js/sdk/docs/AnalyticTransaction.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticTransaction +# QeditAssetTransfers.AnalyticTransaction ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticTransferWalletTx.md b/js/sdk/docs/AnalyticTransferWalletTx.md index 02ac2e3..34e6b67 100644 --- a/js/sdk/docs/AnalyticTransferWalletTx.md +++ b/js/sdk/docs/AnalyticTransferWalletTx.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticTransferWalletTx +# QeditAssetTransfers.AnalyticTransferWalletTx ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticWalletMetadata.md b/js/sdk/docs/AnalyticWalletMetadata.md index 994f783..58960e5 100644 --- a/js/sdk/docs/AnalyticWalletMetadata.md +++ b/js/sdk/docs/AnalyticWalletMetadata.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticWalletMetadata +# QeditAssetTransfers.AnalyticWalletMetadata ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticWalletTx.md b/js/sdk/docs/AnalyticWalletTx.md index 81aa844..52da1ad 100644 --- a/js/sdk/docs/AnalyticWalletTx.md +++ b/js/sdk/docs/AnalyticWalletTx.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticWalletTx +# QeditAssetTransfers.AnalyticWalletTx ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsApi.md b/js/sdk/docs/AnalyticsApi.md index 4557cc3..2128a0b 100644 --- a/js/sdk/docs/AnalyticsApi.md +++ b/js/sdk/docs/AnalyticsApi.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsApi +# QeditAssetTransfers.AnalyticsApi All URIs are relative to *http://localhost:12052* @@ -18,22 +18,24 @@ List all verified Transactions from the network, even ones that do not have anyt ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.AnalyticsApi(); -var getNetworkActivityRequest = new QedItAssetTransfers.GetNetworkActivityRequest(); // GetNetworkActivityRequest | -apiInstance.analyticsGetNetworkActivityPost(getNetworkActivityRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.AnalyticsApi(); +var getNetworkActivityRequest = new QeditAssetTransfers.GetNetworkActivityRequest(); // GetNetworkActivityRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.analyticsGetNetworkActivityPost(getNetworkActivityRequest, callback); ``` ### Parameters @@ -65,21 +67,23 @@ Returns detailed information about the status of the sync between the QEDIT Node ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.AnalyticsApi(); -apiInstance.analyticsGetSyncStatusPost().then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.AnalyticsApi(); +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.analyticsGetSyncStatusPost(callback); ``` ### Parameters diff --git a/js/sdk/docs/AnalyticsAssetConverterProofDescription.md b/js/sdk/docs/AnalyticsAssetConverterProofDescription.md index 6665d82..35a6a74 100644 --- a/js/sdk/docs/AnalyticsAssetConverterProofDescription.md +++ b/js/sdk/docs/AnalyticsAssetConverterProofDescription.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**inputCv** | **String** | The commitment to both the Asset Type and amount of the Note | [optional] -**amountCv** | **String** | The commitment to the Asset amount | [optional] -**assetCv** | **String** | The commitment to the ID of the Asset Type | [optional] -**zkproof** | **String** | The Proof that the commitment contents match | [optional] +**inputCv** | **String** | | [optional] +**amountCv** | **String** | | [optional] +**assetCv** | **String** | | [optional] +**zkproof** | **String** | | [optional] diff --git a/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md b/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md index 657a08d..e524f9a 100644 --- a/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md +++ b/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription +# QeditAssetTransfers.AnalyticsConfidentialIssuanceDescription ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsIssueTx.md b/js/sdk/docs/AnalyticsIssueTx.md index c4a92c0..176f219 100644 --- a/js/sdk/docs/AnalyticsIssueTx.md +++ b/js/sdk/docs/AnalyticsIssueTx.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsIssueTx +# QeditAssetTransfers.AnalyticsIssueTx ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsMultiTransferTx.md b/js/sdk/docs/AnalyticsMultiTransferTx.md index d1fa782..8f39dc6 100644 --- a/js/sdk/docs/AnalyticsMultiTransferTx.md +++ b/js/sdk/docs/AnalyticsMultiTransferTx.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsMultiTransferTx +# QeditAssetTransfers.AnalyticsMultiTransferTx ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsOutput.md b/js/sdk/docs/AnalyticsOutput.md index 92290b4..7d7a57c 100644 --- a/js/sdk/docs/AnalyticsOutput.md +++ b/js/sdk/docs/AnalyticsOutput.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsOutput +# QeditAssetTransfers.AnalyticsOutput ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsOutputDescription.md b/js/sdk/docs/AnalyticsOutputDescription.md index dabcb79..f0b0618 100644 --- a/js/sdk/docs/AnalyticsOutputDescription.md +++ b/js/sdk/docs/AnalyticsOutputDescription.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsOutputDescription +# QeditAssetTransfers.AnalyticsOutputDescription ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsPublicIssuanceDescription.md b/js/sdk/docs/AnalyticsPublicIssuanceDescription.md index 48d0f22..e3f190c 100644 --- a/js/sdk/docs/AnalyticsPublicIssuanceDescription.md +++ b/js/sdk/docs/AnalyticsPublicIssuanceDescription.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsPublicIssuanceDescription +# QeditAssetTransfers.AnalyticsPublicIssuanceDescription ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsRule.md b/js/sdk/docs/AnalyticsRule.md index 0a4b036..d8c26b6 100644 --- a/js/sdk/docs/AnalyticsRule.md +++ b/js/sdk/docs/AnalyticsRule.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsRule +# QeditAssetTransfers.AnalyticsRule ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsRuleDefinition.md b/js/sdk/docs/AnalyticsRuleDefinition.md index 8fdc7f5..f0b6e8f 100644 --- a/js/sdk/docs/AnalyticsRuleDefinition.md +++ b/js/sdk/docs/AnalyticsRuleDefinition.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsRuleDefinition +# QeditAssetTransfers.AnalyticsRuleDefinition ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsRuleTx.md b/js/sdk/docs/AnalyticsRuleTx.md index 4ccc6b4..a220d6f 100644 --- a/js/sdk/docs/AnalyticsRuleTx.md +++ b/js/sdk/docs/AnalyticsRuleTx.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsRuleTx +# QeditAssetTransfers.AnalyticsRuleTx ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsRuleWalletDefinition.md b/js/sdk/docs/AnalyticsRuleWalletDefinition.md index 4c7e1a0..0defe92 100644 --- a/js/sdk/docs/AnalyticsRuleWalletDefinition.md +++ b/js/sdk/docs/AnalyticsRuleWalletDefinition.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsRuleWalletDefinition +# QeditAssetTransfers.AnalyticsRuleWalletDefinition ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsSpendDescription.md b/js/sdk/docs/AnalyticsSpendDescription.md index 7b485c1..cfad67b 100644 --- a/js/sdk/docs/AnalyticsSpendDescription.md +++ b/js/sdk/docs/AnalyticsSpendDescription.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsSpendDescription +# QeditAssetTransfers.AnalyticsSpendDescription ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsTransferTx.md b/js/sdk/docs/AnalyticsTransferTx.md index 2f005f6..76e9519 100644 --- a/js/sdk/docs/AnalyticsTransferTx.md +++ b/js/sdk/docs/AnalyticsTransferTx.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsTransferTx +# QeditAssetTransfers.AnalyticsTransferTx ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsTxMetadata.md b/js/sdk/docs/AnalyticsTxMetadata.md index 53ecf9f..9c78e7b 100644 --- a/js/sdk/docs/AnalyticsTxMetadata.md +++ b/js/sdk/docs/AnalyticsTxMetadata.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsTxMetadata +# QeditAssetTransfers.AnalyticsTxMetadata ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/AnalyticsTxType.md b/js/sdk/docs/AnalyticsTxType.md index fe06033..618d8ae 100644 --- a/js/sdk/docs/AnalyticsTxType.md +++ b/js/sdk/docs/AnalyticsTxType.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AnalyticsTxType +# QeditAssetTransfers.AnalyticsTxType ## Enum diff --git a/js/sdk/docs/AsyncTaskCreatedResponse.md b/js/sdk/docs/AsyncTaskCreatedResponse.md index 75e320c..9afba27 100644 --- a/js/sdk/docs/AsyncTaskCreatedResponse.md +++ b/js/sdk/docs/AsyncTaskCreatedResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.AsyncTaskCreatedResponse +# QeditAssetTransfers.AsyncTaskCreatedResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/BalanceForAsset.md b/js/sdk/docs/BalanceForAsset.md index eaa5a70..89f4899 100644 --- a/js/sdk/docs/BalanceForAsset.md +++ b/js/sdk/docs/BalanceForAsset.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.BalanceForAsset +# QeditAssetTransfers.BalanceForAsset ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/CreateRuleRequest.md b/js/sdk/docs/CreateRuleRequest.md index 1cc1ea1..7ffab26 100644 --- a/js/sdk/docs/CreateRuleRequest.md +++ b/js/sdk/docs/CreateRuleRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.CreateRuleRequest +# QeditAssetTransfers.CreateRuleRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/DeleteRuleRequest.md b/js/sdk/docs/DeleteRuleRequest.md index a35a4ab..37762f6 100644 --- a/js/sdk/docs/DeleteRuleRequest.md +++ b/js/sdk/docs/DeleteRuleRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.DeleteRuleRequest +# QeditAssetTransfers.DeleteRuleRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/DeleteWalletRequest.md b/js/sdk/docs/DeleteWalletRequest.md index decf624..2248bd0 100644 --- a/js/sdk/docs/DeleteWalletRequest.md +++ b/js/sdk/docs/DeleteWalletRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.DeleteWalletRequest +# QeditAssetTransfers.DeleteWalletRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/EmptyContent.md b/js/sdk/docs/EmptyContent.md new file mode 100644 index 0000000..15c711d --- /dev/null +++ b/js/sdk/docs/EmptyContent.md @@ -0,0 +1,7 @@ +# QeditAssetTransfers.EmptyContent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + diff --git a/js/sdk/docs/ErrorResponse.md b/js/sdk/docs/ErrorResponse.md index c1527ba..2c404bf 100644 --- a/js/sdk/docs/ErrorResponse.md +++ b/js/sdk/docs/ErrorResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.ErrorResponse +# QeditAssetTransfers.ErrorResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/ExportAuditorAccessWalletRequest.md b/js/sdk/docs/ExportAuditorAccessWalletRequest.md index 2b4aa4d..2996f16 100644 --- a/js/sdk/docs/ExportAuditorAccessWalletRequest.md +++ b/js/sdk/docs/ExportAuditorAccessWalletRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.ExportAuditorAccessWalletRequest +# QeditAssetTransfers.ExportAuditorAccessWalletRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/ExportAuditorAccessWalletResponse.md b/js/sdk/docs/ExportAuditorAccessWalletResponse.md index 10e7253..77cef66 100644 --- a/js/sdk/docs/ExportAuditorAccessWalletResponse.md +++ b/js/sdk/docs/ExportAuditorAccessWalletResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.ExportAuditorAccessWalletResponse +# QeditAssetTransfers.ExportAuditorAccessWalletResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/ExportWalletRequest.md b/js/sdk/docs/ExportWalletRequest.md index cc5953a..957a3eb 100644 --- a/js/sdk/docs/ExportWalletRequest.md +++ b/js/sdk/docs/ExportWalletRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.ExportWalletRequest +# QeditAssetTransfers.ExportWalletRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/ExportWalletResponse.md b/js/sdk/docs/ExportWalletResponse.md index e44a513..e9a9c14 100644 --- a/js/sdk/docs/ExportWalletResponse.md +++ b/js/sdk/docs/ExportWalletResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.ExportWalletResponse +# QeditAssetTransfers.ExportWalletResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GenerateWalletRequest.md b/js/sdk/docs/GenerateWalletRequest.md index 6fe28d1..5c928f3 100644 --- a/js/sdk/docs/GenerateWalletRequest.md +++ b/js/sdk/docs/GenerateWalletRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GenerateWalletRequest +# QeditAssetTransfers.GenerateWalletRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetAllWalletsResponse.md b/js/sdk/docs/GetAllWalletsResponse.md index d74624e..8217703 100644 --- a/js/sdk/docs/GetAllWalletsResponse.md +++ b/js/sdk/docs/GetAllWalletsResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetAllWalletsResponse +# QeditAssetTransfers.GetAllWalletsResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetNetworkActivityRequest.md b/js/sdk/docs/GetNetworkActivityRequest.md index 329fe05..63eab3d 100644 --- a/js/sdk/docs/GetNetworkActivityRequest.md +++ b/js/sdk/docs/GetNetworkActivityRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetNetworkActivityRequest +# QeditAssetTransfers.GetNetworkActivityRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetNetworkActivityResponse.md b/js/sdk/docs/GetNetworkActivityResponse.md index 1db00cf..7f56b5f 100644 --- a/js/sdk/docs/GetNetworkActivityResponse.md +++ b/js/sdk/docs/GetNetworkActivityResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetNetworkActivityResponse +# QeditAssetTransfers.GetNetworkActivityResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetNewAddressRequest.md b/js/sdk/docs/GetNewAddressRequest.md index c169fee..1d64e44 100644 --- a/js/sdk/docs/GetNewAddressRequest.md +++ b/js/sdk/docs/GetNewAddressRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetNewAddressRequest +# QeditAssetTransfers.GetNewAddressRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetNewAddressResponse.md b/js/sdk/docs/GetNewAddressResponse.md index cd45afd..aab17c8 100644 --- a/js/sdk/docs/GetNewAddressResponse.md +++ b/js/sdk/docs/GetNewAddressResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetNewAddressResponse +# QeditAssetTransfers.GetNewAddressResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetNotificationsRequest.md b/js/sdk/docs/GetNotificationsRequest.md new file mode 100644 index 0000000..76d9668 --- /dev/null +++ b/js/sdk/docs/GetNotificationsRequest.md @@ -0,0 +1,13 @@ +# QeditAssetTransfers.GetNotificationsRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | Fetch notifications that relate to this wallet ID only | [optional] +**types** | [**[NotificationType]**](NotificationType.md) | | [optional] +**startingWithTime** | **Date** | Fetch notifications reported at this timestamp or later/earlier. Later notifications will be fetched if the order is ascending, and earlier ones if the order is descending. The timestamp is expected to be in RFC-3339 format. | [optional] +**afterId** | **Number** | Fetch notifications after this given ID (not including the notification with the given ID). This is meant to facilitate pagination. Later notifications will be fetched if ascending order is selected, and earlier ones if descending order is selected. Warning - do not assume anything about the implementation of after_id; the values of the ID are intended to be copy-pasted from retrieved notifications for pagination. | [optional] +**order** | [**OrderEnum**](OrderEnum.md) | | [optional] +**maxResults** | **Number** | The maximal number of results to fetch | [optional] [default to 100] + + diff --git a/js/sdk/docs/GetNotificationsResponse.md b/js/sdk/docs/GetNotificationsResponse.md new file mode 100644 index 0000000..070c7bb --- /dev/null +++ b/js/sdk/docs/GetNotificationsResponse.md @@ -0,0 +1,8 @@ +# QeditAssetTransfers.GetNotificationsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notifications** | [**[Notification]**](Notification.md) | | [optional] + + diff --git a/js/sdk/docs/GetPublicKeyRequest.md b/js/sdk/docs/GetPublicKeyRequest.md index 9d6fbe6..bab5c0e 100644 --- a/js/sdk/docs/GetPublicKeyRequest.md +++ b/js/sdk/docs/GetPublicKeyRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetPublicKeyRequest +# QeditAssetTransfers.GetPublicKeyRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetPublicKeyResponse.md b/js/sdk/docs/GetPublicKeyResponse.md index a1a2c22..e8b0b88 100644 --- a/js/sdk/docs/GetPublicKeyResponse.md +++ b/js/sdk/docs/GetPublicKeyResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetPublicKeyResponse +# QeditAssetTransfers.GetPublicKeyResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetRulesResponse.md b/js/sdk/docs/GetRulesResponse.md index f810f80..adffb17 100644 --- a/js/sdk/docs/GetRulesResponse.md +++ b/js/sdk/docs/GetRulesResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetRulesResponse +# QeditAssetTransfers.GetRulesResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetSyncStatusResponse.md b/js/sdk/docs/GetSyncStatusResponse.md index 52364ff..c627e84 100644 --- a/js/sdk/docs/GetSyncStatusResponse.md +++ b/js/sdk/docs/GetSyncStatusResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetSyncStatusResponse +# QeditAssetTransfers.GetSyncStatusResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetTaskStatusRequest.md b/js/sdk/docs/GetTaskStatusRequest.md index e4727cf..98e1f96 100644 --- a/js/sdk/docs/GetTaskStatusRequest.md +++ b/js/sdk/docs/GetTaskStatusRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetTaskStatusRequest +# QeditAssetTransfers.GetTaskStatusRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetTaskStatusResponse.md b/js/sdk/docs/GetTaskStatusResponse.md index 84fd880..b399a09 100644 --- a/js/sdk/docs/GetTaskStatusResponse.md +++ b/js/sdk/docs/GetTaskStatusResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetTaskStatusResponse +# QeditAssetTransfers.GetTaskStatusResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetTasksRequest.md b/js/sdk/docs/GetTasksRequest.md index 9cd0b24..e72d424 100644 --- a/js/sdk/docs/GetTasksRequest.md +++ b/js/sdk/docs/GetTasksRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetTasksRequest +# QeditAssetTransfers.GetTasksRequest ## Properties Name | Type | Description | Notes @@ -7,17 +7,6 @@ Name | Type | Description | Notes **numberOfResults** | **Number** | Maximal number of results to fetch in this call | **types** | [**[TaskType]**](TaskType.md) | Types of Tasks to fetch; fetch all types if omitted | [optional] **results** | [**[Result]**](Result.md) | List of results (statuses) to filter by; fetch in_progress tasks if omitted | [optional] -**order** | **String** | Order of tasks to fetch (either ascending or descending); ordering is chronological where the time is set to when the task was created in this Node | [optional] [default to 'desc'] - - - -## Enum: OrderEnum - - -* `asc` (value: `"asc"`) - -* `desc` (value: `"desc"`) - - +**order** | [**OrderEnum**](OrderEnum.md) | | [optional] diff --git a/js/sdk/docs/GetTasksResponse.md b/js/sdk/docs/GetTasksResponse.md index adacba7..0e39f95 100644 --- a/js/sdk/docs/GetTasksResponse.md +++ b/js/sdk/docs/GetTasksResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetTasksResponse +# QeditAssetTransfers.GetTasksResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetWalletActivityRequest.md b/js/sdk/docs/GetWalletActivityRequest.md index 9cd832f..8a1cf8f 100644 --- a/js/sdk/docs/GetWalletActivityRequest.md +++ b/js/sdk/docs/GetWalletActivityRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetWalletActivityRequest +# QeditAssetTransfers.GetWalletActivityRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetWalletActivityResponse.md b/js/sdk/docs/GetWalletActivityResponse.md index d7f6081..78126b0 100644 --- a/js/sdk/docs/GetWalletActivityResponse.md +++ b/js/sdk/docs/GetWalletActivityResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetWalletActivityResponse +# QeditAssetTransfers.GetWalletActivityResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetWalletBalanceRequest.md b/js/sdk/docs/GetWalletBalanceRequest.md index 8922ea9..b63a103 100644 --- a/js/sdk/docs/GetWalletBalanceRequest.md +++ b/js/sdk/docs/GetWalletBalanceRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetWalletBalanceRequest +# QeditAssetTransfers.GetWalletBalanceRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/GetWalletBalanceResponse.md b/js/sdk/docs/GetWalletBalanceResponse.md index 3756a47..4b84d53 100644 --- a/js/sdk/docs/GetWalletBalanceResponse.md +++ b/js/sdk/docs/GetWalletBalanceResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.GetWalletBalanceResponse +# QeditAssetTransfers.GetWalletBalanceResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/HealthApi.md b/js/sdk/docs/HealthApi.md index fe4507e..1c1d3df 100644 --- a/js/sdk/docs/HealthApi.md +++ b/js/sdk/docs/HealthApi.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.HealthApi +# QeditAssetTransfers.HealthApi All URIs are relative to *http://localhost:12052* @@ -17,21 +17,23 @@ Reports the health of the various components of the system as well as an overall ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.HealthApi(); -apiInstance.healthPost().then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.HealthApi(); +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.healthPost(callback); ``` ### Parameters diff --git a/js/sdk/docs/HealthcheckResponse.md b/js/sdk/docs/HealthcheckResponse.md index a09375c..9f11d89 100644 --- a/js/sdk/docs/HealthcheckResponse.md +++ b/js/sdk/docs/HealthcheckResponse.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.HealthcheckResponse +# QeditAssetTransfers.HealthcheckResponse ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/HealthcheckResponseItem.md b/js/sdk/docs/HealthcheckResponseItem.md index c12a1c7..889b2fb 100644 --- a/js/sdk/docs/HealthcheckResponseItem.md +++ b/js/sdk/docs/HealthcheckResponseItem.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.HealthcheckResponseItem +# QeditAssetTransfers.HealthcheckResponseItem ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/ImportAuditorAccessWalletRequest.md b/js/sdk/docs/ImportAuditorAccessWalletRequest.md index e8be122..783abea 100644 --- a/js/sdk/docs/ImportAuditorAccessWalletRequest.md +++ b/js/sdk/docs/ImportAuditorAccessWalletRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.ImportAuditorAccessWalletRequest +# QeditAssetTransfers.ImportAuditorAccessWalletRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/ImportWalletRequest.md b/js/sdk/docs/ImportWalletRequest.md index 0767930..2453774 100644 --- a/js/sdk/docs/ImportWalletRequest.md +++ b/js/sdk/docs/ImportWalletRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.ImportWalletRequest +# QeditAssetTransfers.ImportWalletRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/IssueAssetRequest.md b/js/sdk/docs/IssueAssetRequest.md index ef737d0..f407435 100644 --- a/js/sdk/docs/IssueAssetRequest.md +++ b/js/sdk/docs/IssueAssetRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.IssueAssetRequest +# QeditAssetTransfers.IssueAssetRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/NodeApi.md b/js/sdk/docs/NodeApi.md index 0c3be0c..3a041d4 100644 --- a/js/sdk/docs/NodeApi.md +++ b/js/sdk/docs/NodeApi.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.NodeApi +# QeditAssetTransfers.NodeApi All URIs are relative to *http://localhost:12052* @@ -11,6 +11,7 @@ Method | HTTP request | Description [**nodeExportWalletPost**](NodeApi.md#nodeExportWalletPost) | **POST** /node/export_wallet | Export wallet secret key [**nodeGenerateWalletPost**](NodeApi.md#nodeGenerateWalletPost) | **POST** /node/generate_wallet | Generate a new Wallet [**nodeGetAllWalletsPost**](NodeApi.md#nodeGetAllWalletsPost) | **POST** /node/get_all_wallets | Get all wallet IDs +[**nodeGetNotificationsPost**](NodeApi.md#nodeGetNotificationsPost) | **POST** /node/get_notifications | Get notifications [**nodeGetRulesPost**](NodeApi.md#nodeGetRulesPost) | **POST** /node/get_rules | Get network governance Rules [**nodeGetTaskStatusPost**](NodeApi.md#nodeGetTaskStatusPost) | **POST** /node/get_task_status | Get a specific task (by ID) [**nodeGetTasksPost**](NodeApi.md#nodeGetTasksPost) | **POST** /node/get_tasks | Get a (potentially) filtered list of all Tasks @@ -29,22 +30,24 @@ Confirmation request tasks are confirmed using this point. After the user confir ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -var taskActionRequest = new QedItAssetTransfers.TaskActionRequest(); // TaskActionRequest | -apiInstance.nodeApproveTaskPost(taskActionRequest).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var taskActionRequest = new QeditAssetTransfers.TaskActionRequest(); // TaskActionRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.nodeApproveTaskPost(taskActionRequest, callback); ``` ### Parameters @@ -76,22 +79,24 @@ A user may select to decline an incoming transaction. The related task will chan ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -var taskActionRequest = new QedItAssetTransfers.TaskActionRequest(); // TaskActionRequest | -apiInstance.nodeCancelTaskPost(taskActionRequest).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var taskActionRequest = new QeditAssetTransfers.TaskActionRequest(); // TaskActionRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.nodeCancelTaskPost(taskActionRequest, callback); ``` ### Parameters @@ -123,22 +128,24 @@ Deletes a Wallet from the Node; All private information about the Wallet will be ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -var deleteWalletRequest = new QedItAssetTransfers.DeleteWalletRequest(); // DeleteWalletRequest | -apiInstance.nodeDeleteWalletPost(deleteWalletRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var deleteWalletRequest = new QeditAssetTransfers.DeleteWalletRequest(); // DeleteWalletRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.nodeDeleteWalletPost(deleteWalletRequest, callback); ``` ### Parameters @@ -170,22 +177,24 @@ Export a viewing key that allows viewing all transactions to and from a wallet, ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -var exportAuditorAccessWalletRequest = new QedItAssetTransfers.ExportAuditorAccessWalletRequest(); // ExportAuditorAccessWalletRequest | -apiInstance.nodeExportAuditorAccessWalletPost(exportAuditorAccessWalletRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var exportAuditorAccessWalletRequest = new QeditAssetTransfers.ExportAuditorAccessWalletRequest(); // ExportAuditorAccessWalletRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.nodeExportAuditorAccessWalletPost(exportAuditorAccessWalletRequest, callback); ``` ### Parameters @@ -217,22 +226,24 @@ Export an encrypted form of the Wallet's secret key; The authorization passw ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -var exportWalletRequest = new QedItAssetTransfers.ExportWalletRequest(); // ExportWalletRequest | -apiInstance.nodeExportWalletPost(exportWalletRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var exportWalletRequest = new QeditAssetTransfers.ExportWalletRequest(); // ExportWalletRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.nodeExportWalletPost(exportWalletRequest, callback); ``` ### Parameters @@ -264,22 +275,24 @@ Randomly generate a new Wallet under a specified ID; This only affects the Node ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -var generateWalletRequest = new QedItAssetTransfers.GenerateWalletRequest(); // GenerateWalletRequest | -apiInstance.nodeGenerateWalletPost(generateWalletRequest).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var generateWalletRequest = new QeditAssetTransfers.GenerateWalletRequest(); // GenerateWalletRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +apiInstance.nodeGenerateWalletPost(generateWalletRequest, callback); ``` ### Parameters @@ -311,21 +324,23 @@ Returns a list of the IDs of all Wallets currently stored on the Node. Both full ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -apiInstance.nodeGetAllWalletsPost().then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.nodeGetAllWalletsPost(callback); ``` ### Parameters @@ -344,6 +359,55 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json + +# **nodeGetNotificationsPost** +> GetNotificationsResponse nodeGetNotificationsPost(getNotificationsRequest) + +Get notifications + +Notifications are the Node's way to report about recent activity and status changes. This endpoint allows polling for these changes and fetching the updates. The notifications can be filtered in multiple ways. + +### Example +```javascript +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QeditAssetTransfers.NodeApi(); +var getNotificationsRequest = new QeditAssetTransfers.GetNotificationsRequest(); // GetNotificationsRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.nodeGetNotificationsPost(getNotificationsRequest, callback); +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getNotificationsRequest** | [**GetNotificationsRequest**](GetNotificationsRequest.md)| | + +### Return type + +[**GetNotificationsResponse**](GetNotificationsResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + # **nodeGetRulesPost** > GetRulesResponse nodeGetRulesPost() @@ -354,21 +418,23 @@ Returns a full list of all the Rules that govern admin and issuance rights withi ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -apiInstance.nodeGetRulesPost().then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.nodeGetRulesPost(callback); ``` ### Parameters @@ -397,22 +463,24 @@ Returns the meta-data of a given Task and its current status. The particular, pr ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -var getTaskStatusRequest = new QedItAssetTransfers.GetTaskStatusRequest(); // GetTaskStatusRequest | -apiInstance.nodeGetTaskStatusPost(getTaskStatusRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var getTaskStatusRequest = new QeditAssetTransfers.GetTaskStatusRequest(); // GetTaskStatusRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.nodeGetTaskStatusPost(getTaskStatusRequest, callback); ``` ### Parameters @@ -444,22 +512,24 @@ Returns a list of all Tasks along with their meta-data and statuses. The particu ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -var getTasksRequest = new QedItAssetTransfers.GetTasksRequest(); // GetTasksRequest | -apiInstance.nodeGetTasksPost(getTasksRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var getTasksRequest = new QeditAssetTransfers.GetTasksRequest(); // GetTasksRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.nodeGetTasksPost(getTasksRequest, callback); ``` ### Parameters @@ -491,22 +561,24 @@ Import a viewing key generated by the export_auditor_access_wallet endpoint. Thi ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -var importAuditorAccessWalletRequest = new QedItAssetTransfers.ImportAuditorAccessWalletRequest(); // ImportAuditorAccessWalletRequest | -apiInstance.nodeImportAuditorAccessWalletPost(importAuditorAccessWalletRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var importAuditorAccessWalletRequest = new QeditAssetTransfers.ImportAuditorAccessWalletRequest(); // ImportAuditorAccessWalletRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.nodeImportAuditorAccessWalletPost(importAuditorAccessWalletRequest, callback); ``` ### Parameters @@ -538,22 +610,24 @@ Import a Wallet into the Node under a specified ID; All the transactional histor ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -var importWalletRequest = new QedItAssetTransfers.ImportWalletRequest(); // ImportWalletRequest | -apiInstance.nodeImportWalletPost(importWalletRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var importWalletRequest = new QeditAssetTransfers.ImportWalletRequest(); // ImportWalletRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.nodeImportWalletPost(importWalletRequest, callback); ``` ### Parameters @@ -585,22 +659,24 @@ Causes a specified Wallet's secret key to be stored in-memory for a specifie ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.NodeApi(); -var unlockWalletRequest = new QedItAssetTransfers.UnlockWalletRequest(); // UnlockWalletRequest | -apiInstance.nodeUnlockWalletPost(unlockWalletRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.NodeApi(); +var unlockWalletRequest = new QeditAssetTransfers.UnlockWalletRequest(); // UnlockWalletRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.nodeUnlockWalletPost(unlockWalletRequest, callback); ``` ### Parameters diff --git a/js/sdk/docs/Notification.md b/js/sdk/docs/Notification.md new file mode 100644 index 0000000..69eeafc --- /dev/null +++ b/js/sdk/docs/Notification.md @@ -0,0 +1,13 @@ +# QeditAssetTransfers.Notification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The unique identifier of the notification. Can be used for pagination purposes. | +**createdAt** | **Date** | Timestamp the notification was created at, in RFC-3339 format. | +**walletId** | **String** | The ID of the wallet the notification relates to. May be null in cases there is no such specific wallet. | [optional] +**taskId** | **String** | The ID of the task the notification relates to. May be empty in cases there is no such specific task. | +**notificationType** | [**NotificationType**](NotificationType.md) | | +**content** | **Object** | | [optional] + + diff --git a/js/sdk/docs/NotificationType.md b/js/sdk/docs/NotificationType.md new file mode 100644 index 0000000..445c8b1 --- /dev/null +++ b/js/sdk/docs/NotificationType.md @@ -0,0 +1,10 @@ +# QeditAssetTransfers.NotificationType + +## Enum + + +* `completed_successfully` (value: `"task_completed_successfully"`) + +* `failed` (value: `"task_failed"`) + + diff --git a/js/sdk/docs/OrderEnum.md b/js/sdk/docs/OrderEnum.md new file mode 100644 index 0000000..791bd5e --- /dev/null +++ b/js/sdk/docs/OrderEnum.md @@ -0,0 +1,10 @@ +# QeditAssetTransfers.OrderEnum + +## Enum + + +* `asc` (value: `"asc"`) + +* `desc` (value: `"desc"`) + + diff --git a/js/sdk/docs/Result.md b/js/sdk/docs/Result.md index 9999ab2..ca1405d 100644 --- a/js/sdk/docs/Result.md +++ b/js/sdk/docs/Result.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.Result +# QeditAssetTransfers.Result ## Enum diff --git a/js/sdk/docs/Rule.md b/js/sdk/docs/Rule.md index f6897b5..eef88f1 100644 --- a/js/sdk/docs/Rule.md +++ b/js/sdk/docs/Rule.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.Rule +# QeditAssetTransfers.Rule ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/TaskActionRequest.md b/js/sdk/docs/TaskActionRequest.md index 5458659..11dd16c 100644 --- a/js/sdk/docs/TaskActionRequest.md +++ b/js/sdk/docs/TaskActionRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.TaskActionRequest +# QeditAssetTransfers.TaskActionRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/TaskData.md b/js/sdk/docs/TaskData.md index 899e2a8..844a0f6 100644 --- a/js/sdk/docs/TaskData.md +++ b/js/sdk/docs/TaskData.md @@ -1,8 +1,9 @@ -# QedItAssetTransfers.TaskData +# QeditAssetTransfers.TaskData ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**senderPublicKey** | **String** | The public key of the sender of the confirmation request | [optional] **requireConfirmationFrom** | **String** | The public key for the confirmation request receiver | [optional] **recipientAddress** | **String** | The address the request was sent to | [optional] **assetId** | **String** | | [optional] diff --git a/js/sdk/docs/TaskState.md b/js/sdk/docs/TaskState.md index bede76f..93daf77 100644 --- a/js/sdk/docs/TaskState.md +++ b/js/sdk/docs/TaskState.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.TaskState +# QeditAssetTransfers.TaskState ## Enum diff --git a/js/sdk/docs/TaskType.md b/js/sdk/docs/TaskType.md index e9bc728..c578fe8 100644 --- a/js/sdk/docs/TaskType.md +++ b/js/sdk/docs/TaskType.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.TaskType +# QeditAssetTransfers.TaskType ## Enum diff --git a/js/sdk/docs/TransferAssetRequest.md b/js/sdk/docs/TransferAssetRequest.md index 88cc406..d16e5a0 100644 --- a/js/sdk/docs/TransferAssetRequest.md +++ b/js/sdk/docs/TransferAssetRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.TransferAssetRequest +# QeditAssetTransfers.TransferAssetRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/UnlockWalletRequest.md b/js/sdk/docs/UnlockWalletRequest.md index d31f026..7c7ebd6 100644 --- a/js/sdk/docs/UnlockWalletRequest.md +++ b/js/sdk/docs/UnlockWalletRequest.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.UnlockWalletRequest +# QeditAssetTransfers.UnlockWalletRequest ## Properties Name | Type | Description | Notes diff --git a/js/sdk/docs/WalletApi.md b/js/sdk/docs/WalletApi.md index 8860cc2..c26fa2a 100644 --- a/js/sdk/docs/WalletApi.md +++ b/js/sdk/docs/WalletApi.md @@ -1,4 +1,4 @@ -# QedItAssetTransfers.WalletApi +# QeditAssetTransfers.WalletApi All URIs are relative to *http://localhost:12052* @@ -24,22 +24,24 @@ Create new Rules that can either create a new admin, a new issuer, or both; The ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.WalletApi(); -var createRuleRequest = new QedItAssetTransfers.CreateRuleRequest(); // CreateRuleRequest | -apiInstance.walletCreateRulePost(createRuleRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.WalletApi(); +var createRuleRequest = new QeditAssetTransfers.CreateRuleRequest(); // CreateRuleRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.walletCreateRulePost(createRuleRequest, callback); ``` ### Parameters @@ -71,22 +73,24 @@ Delete an existing Rule from the network; The Rule is deleted by a Wallet which ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.WalletApi(); -var deleteRuleRequest = new QedItAssetTransfers.DeleteRuleRequest(); // DeleteRuleRequest | -apiInstance.walletDeleteRulePost(deleteRuleRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.WalletApi(); +var deleteRuleRequest = new QeditAssetTransfers.DeleteRuleRequest(); // DeleteRuleRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.walletDeleteRulePost(deleteRuleRequest, callback); ``` ### Parameters @@ -118,22 +122,24 @@ List transactions that were created by a specifed Wallet or that affected that W ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.WalletApi(); -var getWalletActivityRequest = new QedItAssetTransfers.GetWalletActivityRequest(); // GetWalletActivityRequest | -apiInstance.walletGetActivityPost(getWalletActivityRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.WalletApi(); +var getWalletActivityRequest = new QeditAssetTransfers.GetWalletActivityRequest(); // GetWalletActivityRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.walletGetActivityPost(getWalletActivityRequest, callback); ``` ### Parameters @@ -165,22 +171,24 @@ Get a list of the Asset Types held within a given Wallet and the amount of each ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.WalletApi(); -var getWalletBalanceRequest = new QedItAssetTransfers.GetWalletBalanceRequest(); // GetWalletBalanceRequest | -apiInstance.walletGetBalancesPost(getWalletBalanceRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.WalletApi(); +var getWalletBalanceRequest = new QeditAssetTransfers.GetWalletBalanceRequest(); // GetWalletBalanceRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.walletGetBalancesPost(getWalletBalanceRequest, callback); ``` ### Parameters @@ -212,22 +220,24 @@ Generate an Address for the Wallet; the address can be used by other Wallet owne ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.WalletApi(); -var getNewAddressRequest = new QedItAssetTransfers.GetNewAddressRequest(); // GetNewAddressRequest | -apiInstance.walletGetNewAddressPost(getNewAddressRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.WalletApi(); +var getNewAddressRequest = new QeditAssetTransfers.GetNewAddressRequest(); // GetNewAddressRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.walletGetNewAddressPost(getNewAddressRequest, callback); ``` ### Parameters @@ -259,22 +269,24 @@ Get the unique public key of the Wallet; This key is unique across the entire ne ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.WalletApi(); -var getPublicKeyRequest = new QedItAssetTransfers.GetPublicKeyRequest(); // GetPublicKeyRequest | -apiInstance.walletGetPublicKeyPost(getPublicKeyRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.WalletApi(); +var getPublicKeyRequest = new QeditAssetTransfers.GetPublicKeyRequest(); // GetPublicKeyRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.walletGetPublicKeyPost(getPublicKeyRequest, callback); ``` ### Parameters @@ -306,22 +318,24 @@ Issue Assets from a Wallet to a recipient Address; The issuing Wallet is require ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.WalletApi(); -var issueAssetRequest = new QedItAssetTransfers.IssueAssetRequest(); // IssueAssetRequest | -apiInstance.walletIssueAssetPost(issueAssetRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.WalletApi(); +var issueAssetRequest = new QeditAssetTransfers.IssueAssetRequest(); // IssueAssetRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.walletIssueAssetPost(issueAssetRequest, callback); ``` ### Parameters @@ -353,22 +367,24 @@ Transfer a specified amount of a specified Asset Type from a specified Wallet to ### Example ```javascript -var QedItAssetTransfers = require('qed-it-asset-transfers'); -var defaultClient = QedItAssetTransfers.ApiClient.instance; +var QeditAssetTransfers = require('qedit___asset_transfers'); +var defaultClient = QeditAssetTransfers.ApiClient.instance; // Configure API key authorization: ApiKeyAuth var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; ApiKeyAuth.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.apiKeyPrefix = 'Token'; -var apiInstance = new QedItAssetTransfers.WalletApi(); -var transferAssetRequest = new QedItAssetTransfers.TransferAssetRequest(); // TransferAssetRequest | -apiInstance.walletTransferAssetPost(transferAssetRequest).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - +var apiInstance = new QeditAssetTransfers.WalletApi(); +var transferAssetRequest = new QeditAssetTransfers.TransferAssetRequest(); // TransferAssetRequest | +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +apiInstance.walletTransferAssetPost(transferAssetRequest, callback); ``` ### Parameters diff --git a/js/sdk/git_push.sh b/js/sdk/git_push.sh index 04dd5df..4930a94 100644 --- a/js/sdk/git_push.sh +++ b/js/sdk/git_push.sh @@ -8,12 +8,12 @@ git_repo_id=$2 release_note=$3 if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" + git_user_id="QED-it" echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" fi if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" + git_repo_id="jqqedit" echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" fi diff --git a/js/sdk/package.json b/js/sdk/package.json index 614baca..75ae5e4 100644 --- a/js/sdk/package.json +++ b/js/sdk/package.json @@ -1,6 +1,6 @@ { - "name": "qed-it-asset-transfers", - "version": "1.6.0", + "name": "qedit___asset_transfers", + "version": "1.6.1", "description": "ERROR_UNKNOWN", "license": "Unlicense", "main": "src/index.js", diff --git a/js/sdk/src/ApiClient.js b/js/sdk/src/ApiClient.js index 0e45f04..21f2c9b 100644 --- a/js/sdk/src/ApiClient.js +++ b/js/sdk/src/ApiClient.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,17 +22,17 @@ module.exports = factory(require('superagent'), require('querystring')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.ApiClient = factory(root.superagent, root.querystring); + root.QeditAssetTransfers.ApiClient = factory(root.superagent, root.querystring); } }(this, function(superagent, querystring) { 'use strict'; /** * @module ApiClient - * @version 1.6.0 + * @version 1.6.1 */ /** @@ -350,6 +350,14 @@ return exports.convertToType(data, returnType); }; + /** + * Callback function to receive the result of the operation. + * @callback module:ApiClient~callApiCallback + * @param {String} error Error message, if any. + * @param data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + /** * Invokes the REST service using the supplied settings and parameters. * @param {String} path The base URL to invoke. @@ -365,11 +373,12 @@ * @param {Array.} accepts An array of acceptable response MIME types. * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the * constructor for a complex type. - * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. + * @param {module:ApiClient~callApiCallback} callback The callback function. + * @returns {Object} The SuperAgent request object. */ exports.prototype.callApi = function callApi(path, httpMethod, pathParams, queryParams, collectionQueryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, - returnType) { + returnType, callback) { var _this = this; var url = this.buildUrl(path, pathParams); @@ -464,23 +473,25 @@ } } - return new Promise(function(resolve, reject) { - request.end(function(error, response) { - if (error) { - reject(error); - } else { + + request.end(function(error, response) { + if (callback) { + var data = null; + if (!error) { try { - var data = _this.deserialize(response, returnType); + data = _this.deserialize(response, returnType); if (_this.enableCookies && typeof window === 'undefined'){ _this.agent._saveCookies(response); } - resolve({data: data, response: response}); } catch (err) { - reject(err); + error = err; } } - }); + callback(error, data, response); + } }); + + return request; }; /** diff --git a/js/sdk/src/api/AnalyticsApi.js b/js/sdk/src/api/AnalyticsApi.js index f881865..6701428 100644 --- a/js/sdk/src/api/AnalyticsApi.js +++ b/js/sdk/src/api/AnalyticsApi.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('../model/ErrorResponse'), require('../model/GetNetworkActivityRequest'), require('../model/GetNetworkActivityResponse'), require('../model/GetSyncStatusResponse')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.GetNetworkActivityRequest, root.QedItAssetTransfers.GetNetworkActivityResponse, root.QedItAssetTransfers.GetSyncStatusResponse); + root.QeditAssetTransfers.AnalyticsApi = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.ErrorResponse, root.QeditAssetTransfers.GetNetworkActivityRequest, root.QeditAssetTransfers.GetNetworkActivityResponse, root.QeditAssetTransfers.GetSyncStatusResponse); } }(this, function(ApiClient, ErrorResponse, GetNetworkActivityRequest, GetNetworkActivityResponse, GetSyncStatusResponse) { 'use strict'; @@ -33,7 +33,7 @@ /** * Analytics service. * @module api/AnalyticsApi - * @version 1.6.0 + * @version 1.6.1 */ /** @@ -47,14 +47,22 @@ this.apiClient = apiClient || ApiClient.instance; + /** + * Callback function to receive the result of the analyticsGetNetworkActivityPost operation. + * @callback module:api/AnalyticsApi~analyticsGetNetworkActivityPostCallback + * @param {String} error Error message, if any. + * @param {module:model/GetNetworkActivityResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ /** * Get details on past blocks either by order using start_index and number_of_results or by the tx_hashes of the transactions * List all verified Transactions from the network, even ones that do not have anything to do with any Wallet stored in the Node; For each such Transaction all of public information is returned in a structured format; However, no private information is returned even if some private information is known. * @param {module:model/GetNetworkActivityRequest} getNetworkActivityRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNetworkActivityResponse} and HTTP response + * @param {module:api/AnalyticsApi~analyticsGetNetworkActivityPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetNetworkActivityResponse} */ - this.analyticsGetNetworkActivityPostWithHttpInfo = function(getNetworkActivityRequest) { + this.analyticsGetNetworkActivityPost = function(getNetworkActivityRequest, callback) { var postBody = getNetworkActivityRequest; // verify the required parameter 'getNetworkActivityRequest' is set @@ -82,30 +90,25 @@ return this.apiClient.callApi( '/analytics/get_network_activity', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Get details on past blocks either by order using start_index and number_of_results or by the tx_hashes of the transactions - * List all verified Transactions from the network, even ones that do not have anything to do with any Wallet stored in the Node; For each such Transaction all of public information is returned in a structured format; However, no private information is returned even if some private information is known. - * @param {module:model/GetNetworkActivityRequest} getNetworkActivityRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNetworkActivityResponse} + * Callback function to receive the result of the analyticsGetSyncStatusPost operation. + * @callback module:api/AnalyticsApi~analyticsGetSyncStatusPostCallback + * @param {String} error Error message, if any. + * @param {module:model/GetSyncStatusResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.analyticsGetNetworkActivityPost = function(getNetworkActivityRequest) { - return this.analyticsGetNetworkActivityPostWithHttpInfo(getNetworkActivityRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Get blockchain sync status information * Returns detailed information about the status of the sync between the QEDIT Node and the underlying Blockchain - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSyncStatusResponse} and HTTP response + * @param {module:api/AnalyticsApi~analyticsGetSyncStatusPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetSyncStatusResponse} */ - this.analyticsGetSyncStatusPostWithHttpInfo = function() { + this.analyticsGetSyncStatusPost = function(callback) { var postBody = null; @@ -128,21 +131,9 @@ return this.apiClient.callApi( '/analytics/get_sync_status', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } - - /** - * Get blockchain sync status information - * Returns detailed information about the status of the sync between the QEDIT Node and the underlying Blockchain - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSyncStatusResponse} - */ - this.analyticsGetSyncStatusPost = function() { - return this.analyticsGetSyncStatusPostWithHttpInfo() - .then(function(response_and_data) { - return response_and_data.data; - }); - } }; return exports; diff --git a/js/sdk/src/api/HealthApi.js b/js/sdk/src/api/HealthApi.js index e1afa2d..b842d47 100644 --- a/js/sdk/src/api/HealthApi.js +++ b/js/sdk/src/api/HealthApi.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('../model/ErrorResponse'), require('../model/HealthcheckResponse')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.HealthApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.HealthcheckResponse); + root.QeditAssetTransfers.HealthApi = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.ErrorResponse, root.QeditAssetTransfers.HealthcheckResponse); } }(this, function(ApiClient, ErrorResponse, HealthcheckResponse) { 'use strict'; @@ -33,7 +33,7 @@ /** * Health service. * @module api/HealthApi - * @version 1.6.0 + * @version 1.6.1 */ /** @@ -47,13 +47,21 @@ this.apiClient = apiClient || ApiClient.instance; + /** + * Callback function to receive the result of the healthPost operation. + * @callback module:api/HealthApi~healthPostCallback + * @param {String} error Error message, if any. + * @param {module:model/HealthcheckResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ /** * Perform a healthcheck of the node and its dependent services * Reports the health of the various components of the system as well as an overall status for the Node. If the Node's status is good, then the Node is synced with the Blockchain and can successfully process requests. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HealthcheckResponse} and HTTP response + * @param {module:api/HealthApi~healthPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/HealthcheckResponse} */ - this.healthPostWithHttpInfo = function() { + this.healthPost = function(callback) { var postBody = null; @@ -76,21 +84,9 @@ return this.apiClient.callApi( '/health', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } - - /** - * Perform a healthcheck of the node and its dependent services - * Reports the health of the various components of the system as well as an overall status for the Node. If the Node's status is good, then the Node is synced with the Blockchain and can successfully process requests. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HealthcheckResponse} - */ - this.healthPost = function() { - return this.healthPostWithHttpInfo() - .then(function(response_and_data) { - return response_and_data.data; - }); - } }; return exports; diff --git a/js/sdk/src/api/NodeApi.js b/js/sdk/src/api/NodeApi.js index d846f56..775a8a9 100644 --- a/js/sdk/src/api/NodeApi.js +++ b/js/sdk/src/api/NodeApi.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,24 +16,24 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AsyncTaskCreatedResponse', 'model/DeleteWalletRequest', 'model/ErrorResponse', 'model/ExportAuditorAccessWalletRequest', 'model/ExportAuditorAccessWalletResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetAllWalletsResponse', 'model/GetRulesResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/GetTasksRequest', 'model/GetTasksResponse', 'model/ImportAuditorAccessWalletRequest', 'model/ImportWalletRequest', 'model/TaskActionRequest', 'model/UnlockWalletRequest'], factory); + define(['ApiClient', 'model/AsyncTaskCreatedResponse', 'model/DeleteWalletRequest', 'model/ErrorResponse', 'model/ExportAuditorAccessWalletRequest', 'model/ExportAuditorAccessWalletResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetAllWalletsResponse', 'model/GetNotificationsRequest', 'model/GetNotificationsResponse', 'model/GetRulesResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/GetTasksRequest', 'model/GetTasksResponse', 'model/ImportAuditorAccessWalletRequest', 'model/ImportWalletRequest', 'model/TaskActionRequest', 'model/UnlockWalletRequest'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/AsyncTaskCreatedResponse'), require('../model/DeleteWalletRequest'), require('../model/ErrorResponse'), require('../model/ExportAuditorAccessWalletRequest'), require('../model/ExportAuditorAccessWalletResponse'), require('../model/ExportWalletRequest'), require('../model/ExportWalletResponse'), require('../model/GenerateWalletRequest'), require('../model/GetAllWalletsResponse'), require('../model/GetRulesResponse'), require('../model/GetTaskStatusRequest'), require('../model/GetTaskStatusResponse'), require('../model/GetTasksRequest'), require('../model/GetTasksResponse'), require('../model/ImportAuditorAccessWalletRequest'), require('../model/ImportWalletRequest'), require('../model/TaskActionRequest'), require('../model/UnlockWalletRequest')); + module.exports = factory(require('../ApiClient'), require('../model/AsyncTaskCreatedResponse'), require('../model/DeleteWalletRequest'), require('../model/ErrorResponse'), require('../model/ExportAuditorAccessWalletRequest'), require('../model/ExportAuditorAccessWalletResponse'), require('../model/ExportWalletRequest'), require('../model/ExportWalletResponse'), require('../model/GenerateWalletRequest'), require('../model/GetAllWalletsResponse'), require('../model/GetNotificationsRequest'), require('../model/GetNotificationsResponse'), require('../model/GetRulesResponse'), require('../model/GetTaskStatusRequest'), require('../model/GetTaskStatusResponse'), require('../model/GetTasksRequest'), require('../model/GetTasksResponse'), require('../model/ImportAuditorAccessWalletRequest'), require('../model/ImportWalletRequest'), require('../model/TaskActionRequest'), require('../model/UnlockWalletRequest')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.NodeApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AsyncTaskCreatedResponse, root.QedItAssetTransfers.DeleteWalletRequest, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.ExportAuditorAccessWalletRequest, root.QedItAssetTransfers.ExportAuditorAccessWalletResponse, root.QedItAssetTransfers.ExportWalletRequest, root.QedItAssetTransfers.ExportWalletResponse, root.QedItAssetTransfers.GenerateWalletRequest, root.QedItAssetTransfers.GetAllWalletsResponse, root.QedItAssetTransfers.GetRulesResponse, root.QedItAssetTransfers.GetTaskStatusRequest, root.QedItAssetTransfers.GetTaskStatusResponse, root.QedItAssetTransfers.GetTasksRequest, root.QedItAssetTransfers.GetTasksResponse, root.QedItAssetTransfers.ImportAuditorAccessWalletRequest, root.QedItAssetTransfers.ImportWalletRequest, root.QedItAssetTransfers.TaskActionRequest, root.QedItAssetTransfers.UnlockWalletRequest); + root.QeditAssetTransfers.NodeApi = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AsyncTaskCreatedResponse, root.QeditAssetTransfers.DeleteWalletRequest, root.QeditAssetTransfers.ErrorResponse, root.QeditAssetTransfers.ExportAuditorAccessWalletRequest, root.QeditAssetTransfers.ExportAuditorAccessWalletResponse, root.QeditAssetTransfers.ExportWalletRequest, root.QeditAssetTransfers.ExportWalletResponse, root.QeditAssetTransfers.GenerateWalletRequest, root.QeditAssetTransfers.GetAllWalletsResponse, root.QeditAssetTransfers.GetNotificationsRequest, root.QeditAssetTransfers.GetNotificationsResponse, root.QeditAssetTransfers.GetRulesResponse, root.QeditAssetTransfers.GetTaskStatusRequest, root.QeditAssetTransfers.GetTaskStatusResponse, root.QeditAssetTransfers.GetTasksRequest, root.QeditAssetTransfers.GetTasksResponse, root.QeditAssetTransfers.ImportAuditorAccessWalletRequest, root.QeditAssetTransfers.ImportWalletRequest, root.QeditAssetTransfers.TaskActionRequest, root.QeditAssetTransfers.UnlockWalletRequest); } -}(this, function(ApiClient, AsyncTaskCreatedResponse, DeleteWalletRequest, ErrorResponse, ExportAuditorAccessWalletRequest, ExportAuditorAccessWalletResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetAllWalletsResponse, GetRulesResponse, GetTaskStatusRequest, GetTaskStatusResponse, GetTasksRequest, GetTasksResponse, ImportAuditorAccessWalletRequest, ImportWalletRequest, TaskActionRequest, UnlockWalletRequest) { +}(this, function(ApiClient, AsyncTaskCreatedResponse, DeleteWalletRequest, ErrorResponse, ExportAuditorAccessWalletRequest, ExportAuditorAccessWalletResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetAllWalletsResponse, GetNotificationsRequest, GetNotificationsResponse, GetRulesResponse, GetTaskStatusRequest, GetTaskStatusResponse, GetTasksRequest, GetTasksResponse, ImportAuditorAccessWalletRequest, ImportWalletRequest, TaskActionRequest, UnlockWalletRequest) { 'use strict'; /** * Node service. * @module api/NodeApi - * @version 1.6.0 + * @version 1.6.1 */ /** @@ -47,14 +47,21 @@ this.apiClient = apiClient || ApiClient.instance; + /** + * Callback function to receive the result of the nodeApproveTaskPost operation. + * @callback module:api/NodeApi~nodeApproveTaskPostCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ /** * Approve task with pending incoming transaction [async call] * Confirmation request tasks are confirmed using this point. After the user confirms the incoming transaction, it is asynchronously sent to the blockchain and its status can be queried like any other async task. * @param {module:model/TaskActionRequest} taskActionRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @param {module:api/NodeApi~nodeApproveTaskPostCallback} callback The callback function, accepting three arguments: error, data, response */ - this.nodeApproveTaskPostWithHttpInfo = function(taskActionRequest) { + this.nodeApproveTaskPost = function(taskActionRequest, callback) { var postBody = taskActionRequest; // verify the required parameter 'taskActionRequest' is set @@ -82,31 +89,25 @@ return this.apiClient.callApi( '/node/approve_task', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Approve task with pending incoming transaction [async call] - * Confirmation request tasks are confirmed using this point. After the user confirms the incoming transaction, it is asynchronously sent to the blockchain and its status can be queried like any other async task. - * @param {module:model/TaskActionRequest} taskActionRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * Callback function to receive the result of the nodeCancelTaskPost operation. + * @callback module:api/NodeApi~nodeCancelTaskPostCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. */ - this.nodeApproveTaskPost = function(taskActionRequest) { - return this.nodeApproveTaskPostWithHttpInfo(taskActionRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Cancel task with pending incoming transaction both incoming and outgoing [async call] * A user may select to decline an incoming transaction. The related task will change its result to failure both on senders and the receivers side. This endpoint can also be used to cancel an outgoing pending transaction that is awaiting user interaction from the receiver * @param {module:model/TaskActionRequest} taskActionRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @param {module:api/NodeApi~nodeCancelTaskPostCallback} callback The callback function, accepting three arguments: error, data, response */ - this.nodeCancelTaskPostWithHttpInfo = function(taskActionRequest) { + this.nodeCancelTaskPost = function(taskActionRequest, callback) { var postBody = taskActionRequest; // verify the required parameter 'taskActionRequest' is set @@ -134,31 +135,26 @@ return this.apiClient.callApi( '/node/cancel_task', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Cancel task with pending incoming transaction both incoming and outgoing [async call] - * A user may select to decline an incoming transaction. The related task will change its result to failure both on senders and the receivers side. This endpoint can also be used to cancel an outgoing pending transaction that is awaiting user interaction from the receiver - * @param {module:model/TaskActionRequest} taskActionRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * Callback function to receive the result of the nodeDeleteWalletPost operation. + * @callback module:api/NodeApi~nodeDeleteWalletPostCallback + * @param {String} error Error message, if any. + * @param {module:model/AsyncTaskCreatedResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.nodeCancelTaskPost = function(taskActionRequest) { - return this.nodeCancelTaskPostWithHttpInfo(taskActionRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Delete a Wallet [async call] * Deletes a Wallet from the Node; All private information about the Wallet will be deleted including transactional history, balances, and keys; If the secret key of the Wallet are not stored elsewhere then all Assets held in the Wallet will be forever lost! If the secret key of the Wallet is stored elsewhere, then all held Assets and the entire transactional history of the Wallet can be restored from the Blockchain at any time by importing the Wallet into a Node. * @param {module:model/DeleteWalletRequest} deleteWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + * @param {module:api/NodeApi~nodeDeleteWalletPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AsyncTaskCreatedResponse} */ - this.nodeDeleteWalletPostWithHttpInfo = function(deleteWalletRequest) { + this.nodeDeleteWalletPost = function(deleteWalletRequest, callback) { var postBody = deleteWalletRequest; // verify the required parameter 'deleteWalletRequest' is set @@ -186,31 +182,26 @@ return this.apiClient.callApi( '/node/delete_wallet', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Delete a Wallet [async call] - * Deletes a Wallet from the Node; All private information about the Wallet will be deleted including transactional history, balances, and keys; If the secret key of the Wallet are not stored elsewhere then all Assets held in the Wallet will be forever lost! If the secret key of the Wallet is stored elsewhere, then all held Assets and the entire transactional history of the Wallet can be restored from the Blockchain at any time by importing the Wallet into a Node. - * @param {module:model/DeleteWalletRequest} deleteWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + * Callback function to receive the result of the nodeExportAuditorAccessWalletPost operation. + * @callback module:api/NodeApi~nodeExportAuditorAccessWalletPostCallback + * @param {String} error Error message, if any. + * @param {module:model/ExportAuditorAccessWalletResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.nodeDeleteWalletPost = function(deleteWalletRequest) { - return this.nodeDeleteWalletPostWithHttpInfo(deleteWalletRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Export viewing credentials for a Wallet * Export a viewing key that allows viewing all transactions to and from a wallet, including past transactions. The viewing key is encrypted for a specific Address, and can only be recovered by someone in possession of either a secret key or a viewing key for the Wallet that Address belongs to. The viewing key does enable making any transactions (including rule changes, issuance, and transfers) on behalf of the exported Wallet. * @param {module:model/ExportAuditorAccessWalletRequest} exportAuditorAccessWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExportAuditorAccessWalletResponse} and HTTP response + * @param {module:api/NodeApi~nodeExportAuditorAccessWalletPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/ExportAuditorAccessWalletResponse} */ - this.nodeExportAuditorAccessWalletPostWithHttpInfo = function(exportAuditorAccessWalletRequest) { + this.nodeExportAuditorAccessWalletPost = function(exportAuditorAccessWalletRequest, callback) { var postBody = exportAuditorAccessWalletRequest; // verify the required parameter 'exportAuditorAccessWalletRequest' is set @@ -238,31 +229,26 @@ return this.apiClient.callApi( '/node/export_auditor_access_wallet', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Export viewing credentials for a Wallet - * Export a viewing key that allows viewing all transactions to and from a wallet, including past transactions. The viewing key is encrypted for a specific Address, and can only be recovered by someone in possession of either a secret key or a viewing key for the Wallet that Address belongs to. The viewing key does enable making any transactions (including rule changes, issuance, and transfers) on behalf of the exported Wallet. - * @param {module:model/ExportAuditorAccessWalletRequest} exportAuditorAccessWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExportAuditorAccessWalletResponse} + * Callback function to receive the result of the nodeExportWalletPost operation. + * @callback module:api/NodeApi~nodeExportWalletPostCallback + * @param {String} error Error message, if any. + * @param {module:model/ExportWalletResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.nodeExportAuditorAccessWalletPost = function(exportAuditorAccessWalletRequest) { - return this.nodeExportAuditorAccessWalletPostWithHttpInfo(exportAuditorAccessWalletRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Export wallet secret key * Export an encrypted form of the Wallet's secret key; The authorization password under which the secret key is encrypted is the same one under which it was originally created or imported; Knowledge of the secret key and the authorization password is required to import the Wallet into a Node in the future. * @param {module:model/ExportWalletRequest} exportWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExportWalletResponse} and HTTP response + * @param {module:api/NodeApi~nodeExportWalletPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/ExportWalletResponse} */ - this.nodeExportWalletPostWithHttpInfo = function(exportWalletRequest) { + this.nodeExportWalletPost = function(exportWalletRequest, callback) { var postBody = exportWalletRequest; // verify the required parameter 'exportWalletRequest' is set @@ -290,31 +276,25 @@ return this.apiClient.callApi( '/node/export_wallet', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Export wallet secret key - * Export an encrypted form of the Wallet's secret key; The authorization password under which the secret key is encrypted is the same one under which it was originally created or imported; Knowledge of the secret key and the authorization password is required to import the Wallet into a Node in the future. - * @param {module:model/ExportWalletRequest} exportWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExportWalletResponse} + * Callback function to receive the result of the nodeGenerateWalletPost operation. + * @callback module:api/NodeApi~nodeGenerateWalletPostCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. */ - this.nodeExportWalletPost = function(exportWalletRequest) { - return this.nodeExportWalletPostWithHttpInfo(exportWalletRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Generate a new Wallet * Randomly generate a new Wallet under a specified ID; This only affects the Node and in particular nothing about this action is broadcast to the Blockchain; The Wallet ID is required to be unique within the Node, but can otherwise be user-defined. * @param {module:model/GenerateWalletRequest} generateWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @param {module:api/NodeApi~nodeGenerateWalletPostCallback} callback The callback function, accepting three arguments: error, data, response */ - this.nodeGenerateWalletPostWithHttpInfo = function(generateWalletRequest) { + this.nodeGenerateWalletPost = function(generateWalletRequest, callback) { var postBody = generateWalletRequest; // verify the required parameter 'generateWalletRequest' is set @@ -342,30 +322,25 @@ return this.apiClient.callApi( '/node/generate_wallet', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Generate a new Wallet - * Randomly generate a new Wallet under a specified ID; This only affects the Node and in particular nothing about this action is broadcast to the Blockchain; The Wallet ID is required to be unique within the Node, but can otherwise be user-defined. - * @param {module:model/GenerateWalletRequest} generateWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * Callback function to receive the result of the nodeGetAllWalletsPost operation. + * @callback module:api/NodeApi~nodeGetAllWalletsPostCallback + * @param {String} error Error message, if any. + * @param {module:model/GetAllWalletsResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.nodeGenerateWalletPost = function(generateWalletRequest) { - return this.nodeGenerateWalletPostWithHttpInfo(generateWalletRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Get all wallet IDs * Returns a list of the IDs of all Wallets currently stored on the Node. Both full-access and view-only Wallets are listed. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAllWalletsResponse} and HTTP response + * @param {module:api/NodeApi~nodeGetAllWalletsPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetAllWalletsResponse} */ - this.nodeGetAllWalletsPostWithHttpInfo = function() { + this.nodeGetAllWalletsPost = function(callback) { var postBody = null; @@ -388,29 +363,72 @@ return this.apiClient.callApi( '/node/get_all_wallets', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Get all wallet IDs - * Returns a list of the IDs of all Wallets currently stored on the Node. Both full-access and view-only Wallets are listed. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAllWalletsResponse} + * Callback function to receive the result of the nodeGetNotificationsPost operation. + * @callback module:api/NodeApi~nodeGetNotificationsPostCallback + * @param {String} error Error message, if any. + * @param {module:model/GetNotificationsResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.nodeGetAllWalletsPost = function() { - return this.nodeGetAllWalletsPostWithHttpInfo() - .then(function(response_and_data) { - return response_and_data.data; - }); + + /** + * Get notifications + * Notifications are the Node's way to report about recent activity and status changes. This endpoint allows polling for these changes and fetching the updates. The notifications can be filtered in multiple ways. + * @param {module:model/GetNotificationsRequest} getNotificationsRequest + * @param {module:api/NodeApi~nodeGetNotificationsPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetNotificationsResponse} + */ + this.nodeGetNotificationsPost = function(getNotificationsRequest, callback) { + var postBody = getNotificationsRequest; + + // verify the required parameter 'getNotificationsRequest' is set + if (getNotificationsRequest === undefined || getNotificationsRequest === null) { + throw new Error("Missing the required parameter 'getNotificationsRequest' when calling nodeGetNotificationsPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = GetNotificationsResponse; + + return this.apiClient.callApi( + '/node/get_notifications', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, callback + ); } + /** + * Callback function to receive the result of the nodeGetRulesPost operation. + * @callback module:api/NodeApi~nodeGetRulesPostCallback + * @param {String} error Error message, if any. + * @param {module:model/GetRulesResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ /** * Get network governance Rules * Returns a full list of all the Rules that govern admin and issuance rights within the network. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRulesResponse} and HTTP response + * @param {module:api/NodeApi~nodeGetRulesPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetRulesResponse} */ - this.nodeGetRulesPostWithHttpInfo = function() { + this.nodeGetRulesPost = function(callback) { var postBody = null; @@ -433,30 +451,26 @@ return this.apiClient.callApi( '/node/get_rules', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Get network governance Rules - * Returns a full list of all the Rules that govern admin and issuance rights within the network. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRulesResponse} + * Callback function to receive the result of the nodeGetTaskStatusPost operation. + * @callback module:api/NodeApi~nodeGetTaskStatusPostCallback + * @param {String} error Error message, if any. + * @param {module:model/GetTaskStatusResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.nodeGetRulesPost = function() { - return this.nodeGetRulesPostWithHttpInfo() - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Get a specific task (by ID) * Returns the meta-data of a given Task and its current status. The particular, private details of the Task such as an Asset ID or amount in a Transfer are not returned. * @param {module:model/GetTaskStatusRequest} getTaskStatusRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTaskStatusResponse} and HTTP response + * @param {module:api/NodeApi~nodeGetTaskStatusPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetTaskStatusResponse} */ - this.nodeGetTaskStatusPostWithHttpInfo = function(getTaskStatusRequest) { + this.nodeGetTaskStatusPost = function(getTaskStatusRequest, callback) { var postBody = getTaskStatusRequest; // verify the required parameter 'getTaskStatusRequest' is set @@ -484,31 +498,26 @@ return this.apiClient.callApi( '/node/get_task_status', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Get a specific task (by ID) - * Returns the meta-data of a given Task and its current status. The particular, private details of the Task such as an Asset ID or amount in a Transfer are not returned. - * @param {module:model/GetTaskStatusRequest} getTaskStatusRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTaskStatusResponse} + * Callback function to receive the result of the nodeGetTasksPost operation. + * @callback module:api/NodeApi~nodeGetTasksPostCallback + * @param {String} error Error message, if any. + * @param {module:model/GetTasksResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.nodeGetTaskStatusPost = function(getTaskStatusRequest) { - return this.nodeGetTaskStatusPostWithHttpInfo(getTaskStatusRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Get a (potentially) filtered list of all Tasks * Returns a list of all Tasks along with their meta-data and statuses. The particular, private details of the Task such as an Asset ID or amount in a Transfer are not returned. Tasks can be filtered using various parameters as specified in the request body. * @param {module:model/GetTasksRequest} getTasksRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTasksResponse} and HTTP response + * @param {module:api/NodeApi~nodeGetTasksPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetTasksResponse} */ - this.nodeGetTasksPostWithHttpInfo = function(getTasksRequest) { + this.nodeGetTasksPost = function(getTasksRequest, callback) { var postBody = getTasksRequest; // verify the required parameter 'getTasksRequest' is set @@ -536,31 +545,26 @@ return this.apiClient.callApi( '/node/get_tasks', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Get a (potentially) filtered list of all Tasks - * Returns a list of all Tasks along with their meta-data and statuses. The particular, private details of the Task such as an Asset ID or amount in a Transfer are not returned. Tasks can be filtered using various parameters as specified in the request body. - * @param {module:model/GetTasksRequest} getTasksRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTasksResponse} + * Callback function to receive the result of the nodeImportAuditorAccessWalletPost operation. + * @callback module:api/NodeApi~nodeImportAuditorAccessWalletPostCallback + * @param {String} error Error message, if any. + * @param {module:model/AsyncTaskCreatedResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.nodeGetTasksPost = function(getTasksRequest) { - return this.nodeGetTasksPostWithHttpInfo(getTasksRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Import viewing credentials for a Wallet [async call] * Import a viewing key generated by the export_auditor_access_wallet endpoint. This will create a read-only wallet which can be queried with endpoints such as get_activity and get_balances, but cannot be used to perform transactions. The Wallet whose Address was used as the recipient for the exported viewing key must already be imported within the Node in order for this process to succeed. * @param {module:model/ImportAuditorAccessWalletRequest} importAuditorAccessWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + * @param {module:api/NodeApi~nodeImportAuditorAccessWalletPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AsyncTaskCreatedResponse} */ - this.nodeImportAuditorAccessWalletPostWithHttpInfo = function(importAuditorAccessWalletRequest) { + this.nodeImportAuditorAccessWalletPost = function(importAuditorAccessWalletRequest, callback) { var postBody = importAuditorAccessWalletRequest; // verify the required parameter 'importAuditorAccessWalletRequest' is set @@ -588,31 +592,26 @@ return this.apiClient.callApi( '/node/import_auditor_access_wallet', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Import viewing credentials for a Wallet [async call] - * Import a viewing key generated by the export_auditor_access_wallet endpoint. This will create a read-only wallet which can be queried with endpoints such as get_activity and get_balances, but cannot be used to perform transactions. The Wallet whose Address was used as the recipient for the exported viewing key must already be imported within the Node in order for this process to succeed. - * @param {module:model/ImportAuditorAccessWalletRequest} importAuditorAccessWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + * Callback function to receive the result of the nodeImportWalletPost operation. + * @callback module:api/NodeApi~nodeImportWalletPostCallback + * @param {String} error Error message, if any. + * @param {module:model/AsyncTaskCreatedResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.nodeImportAuditorAccessWalletPost = function(importAuditorAccessWalletRequest) { - return this.nodeImportAuditorAccessWalletPostWithHttpInfo(importAuditorAccessWalletRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Import Wallet from a known secret key and authorization [async call] * Import a Wallet into the Node under a specified ID; All the transactional history and outstanding balanced of the Wallet will be extracted from the Blockchain; The Wallet ID is required to be unique within the Node, but can otherwise be user-defined. * @param {module:model/ImportWalletRequest} importWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + * @param {module:api/NodeApi~nodeImportWalletPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AsyncTaskCreatedResponse} */ - this.nodeImportWalletPostWithHttpInfo = function(importWalletRequest) { + this.nodeImportWalletPost = function(importWalletRequest, callback) { var postBody = importWalletRequest; // verify the required parameter 'importWalletRequest' is set @@ -640,31 +639,26 @@ return this.apiClient.callApi( '/node/import_wallet', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Import Wallet from a known secret key and authorization [async call] - * Import a Wallet into the Node under a specified ID; All the transactional history and outstanding balanced of the Wallet will be extracted from the Blockchain; The Wallet ID is required to be unique within the Node, but can otherwise be user-defined. - * @param {module:model/ImportWalletRequest} importWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + * Callback function to receive the result of the nodeUnlockWalletPost operation. + * @callback module:api/NodeApi~nodeUnlockWalletPostCallback + * @param {String} error Error message, if any. + * @param {module:model/AsyncTaskCreatedResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.nodeImportWalletPost = function(importWalletRequest) { - return this.nodeImportWalletPostWithHttpInfo(importWalletRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Unlocks a wallet for a given amount of seconds [async call] * Causes a specified Wallet's secret key to be stored in-memory for a specified amount of time in order to increase transactional latency. Should only be used in cases where latency is highly sensitive. * @param {module:model/UnlockWalletRequest} unlockWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + * @param {module:api/NodeApi~nodeUnlockWalletPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AsyncTaskCreatedResponse} */ - this.nodeUnlockWalletPostWithHttpInfo = function(unlockWalletRequest) { + this.nodeUnlockWalletPost = function(unlockWalletRequest, callback) { var postBody = unlockWalletRequest; // verify the required parameter 'unlockWalletRequest' is set @@ -692,22 +686,9 @@ return this.apiClient.callApi( '/node/unlock_wallet', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } - - /** - * Unlocks a wallet for a given amount of seconds [async call] - * Causes a specified Wallet's secret key to be stored in-memory for a specified amount of time in order to increase transactional latency. Should only be used in cases where latency is highly sensitive. - * @param {module:model/UnlockWalletRequest} unlockWalletRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} - */ - this.nodeUnlockWalletPost = function(unlockWalletRequest) { - return this.nodeUnlockWalletPostWithHttpInfo(unlockWalletRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } }; return exports; diff --git a/js/sdk/src/api/WalletApi.js b/js/sdk/src/api/WalletApi.js index 79f0b6a..3f4dd60 100644 --- a/js/sdk/src/api/WalletApi.js +++ b/js/sdk/src/api/WalletApi.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('../model/AsyncTaskCreatedResponse'), require('../model/CreateRuleRequest'), require('../model/DeleteRuleRequest'), require('../model/ErrorResponse'), require('../model/GetNewAddressRequest'), require('../model/GetNewAddressResponse'), require('../model/GetPublicKeyRequest'), require('../model/GetPublicKeyResponse'), require('../model/GetWalletActivityRequest'), require('../model/GetWalletActivityResponse'), require('../model/GetWalletBalanceRequest'), require('../model/GetWalletBalanceResponse'), require('../model/IssueAssetRequest'), require('../model/TransferAssetRequest')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.WalletApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AsyncTaskCreatedResponse, root.QedItAssetTransfers.CreateRuleRequest, root.QedItAssetTransfers.DeleteRuleRequest, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.GetNewAddressRequest, root.QedItAssetTransfers.GetNewAddressResponse, root.QedItAssetTransfers.GetPublicKeyRequest, root.QedItAssetTransfers.GetPublicKeyResponse, root.QedItAssetTransfers.GetWalletActivityRequest, root.QedItAssetTransfers.GetWalletActivityResponse, root.QedItAssetTransfers.GetWalletBalanceRequest, root.QedItAssetTransfers.GetWalletBalanceResponse, root.QedItAssetTransfers.IssueAssetRequest, root.QedItAssetTransfers.TransferAssetRequest); + root.QeditAssetTransfers.WalletApi = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AsyncTaskCreatedResponse, root.QeditAssetTransfers.CreateRuleRequest, root.QeditAssetTransfers.DeleteRuleRequest, root.QeditAssetTransfers.ErrorResponse, root.QeditAssetTransfers.GetNewAddressRequest, root.QeditAssetTransfers.GetNewAddressResponse, root.QeditAssetTransfers.GetPublicKeyRequest, root.QeditAssetTransfers.GetPublicKeyResponse, root.QeditAssetTransfers.GetWalletActivityRequest, root.QeditAssetTransfers.GetWalletActivityResponse, root.QeditAssetTransfers.GetWalletBalanceRequest, root.QeditAssetTransfers.GetWalletBalanceResponse, root.QeditAssetTransfers.IssueAssetRequest, root.QeditAssetTransfers.TransferAssetRequest); } }(this, function(ApiClient, AsyncTaskCreatedResponse, CreateRuleRequest, DeleteRuleRequest, ErrorResponse, GetNewAddressRequest, GetNewAddressResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetWalletActivityRequest, GetWalletActivityResponse, GetWalletBalanceRequest, GetWalletBalanceResponse, IssueAssetRequest, TransferAssetRequest) { 'use strict'; @@ -33,7 +33,7 @@ /** * Wallet service. * @module api/WalletApi - * @version 1.6.0 + * @version 1.6.1 */ /** @@ -47,14 +47,22 @@ this.apiClient = apiClient || ApiClient.instance; + /** + * Callback function to receive the result of the walletCreateRulePost operation. + * @callback module:api/WalletApi~walletCreateRulePostCallback + * @param {String} error Error message, if any. + * @param {module:model/AsyncTaskCreatedResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ /** * Create a new Rule in the network [async call] * Create new Rules that can either create a new admin, a new issuer, or both; The Rules are created by a Wallet that needs to have admin rights; The Rules grant rights to other Wallets through the Wallets' public keys. * @param {module:model/CreateRuleRequest} createRuleRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + * @param {module:api/WalletApi~walletCreateRulePostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AsyncTaskCreatedResponse} */ - this.walletCreateRulePostWithHttpInfo = function(createRuleRequest) { + this.walletCreateRulePost = function(createRuleRequest, callback) { var postBody = createRuleRequest; // verify the required parameter 'createRuleRequest' is set @@ -82,31 +90,26 @@ return this.apiClient.callApi( '/wallet/create_rule', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Create a new Rule in the network [async call] - * Create new Rules that can either create a new admin, a new issuer, or both; The Rules are created by a Wallet that needs to have admin rights; The Rules grant rights to other Wallets through the Wallets' public keys. - * @param {module:model/CreateRuleRequest} createRuleRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + * Callback function to receive the result of the walletDeleteRulePost operation. + * @callback module:api/WalletApi~walletDeleteRulePostCallback + * @param {String} error Error message, if any. + * @param {module:model/AsyncTaskCreatedResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.walletCreateRulePost = function(createRuleRequest) { - return this.walletCreateRulePostWithHttpInfo(createRuleRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Delete an existing Rule from the network [async call] * Delete an existing Rule from the network; The Rule is deleted by a Wallet which needs to have admin rights. * @param {module:model/DeleteRuleRequest} deleteRuleRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + * @param {module:api/WalletApi~walletDeleteRulePostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AsyncTaskCreatedResponse} */ - this.walletDeleteRulePostWithHttpInfo = function(deleteRuleRequest) { + this.walletDeleteRulePost = function(deleteRuleRequest, callback) { var postBody = deleteRuleRequest; // verify the required parameter 'deleteRuleRequest' is set @@ -134,31 +137,26 @@ return this.apiClient.callApi( '/wallet/delete_rule', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Delete an existing Rule from the network [async call] - * Delete an existing Rule from the network; The Rule is deleted by a Wallet which needs to have admin rights. - * @param {module:model/DeleteRuleRequest} deleteRuleRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + * Callback function to receive the result of the walletGetActivityPost operation. + * @callback module:api/WalletApi~walletGetActivityPostCallback + * @param {String} error Error message, if any. + * @param {module:model/GetWalletActivityResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.walletDeleteRulePost = function(deleteRuleRequest) { - return this.walletDeleteRulePostWithHttpInfo(deleteRuleRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Get wallet activity (transactions) * List transactions that were created by a specifed Wallet or that affected that Wallet; All known details of each such transaction will be returned. * @param {module:model/GetWalletActivityRequest} getWalletActivityRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWalletActivityResponse} and HTTP response + * @param {module:api/WalletApi~walletGetActivityPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetWalletActivityResponse} */ - this.walletGetActivityPostWithHttpInfo = function(getWalletActivityRequest) { + this.walletGetActivityPost = function(getWalletActivityRequest, callback) { var postBody = getWalletActivityRequest; // verify the required parameter 'getWalletActivityRequest' is set @@ -186,31 +184,26 @@ return this.apiClient.callApi( '/wallet/get_activity', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Get wallet activity (transactions) - * List transactions that were created by a specifed Wallet or that affected that Wallet; All known details of each such transaction will be returned. - * @param {module:model/GetWalletActivityRequest} getWalletActivityRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWalletActivityResponse} + * Callback function to receive the result of the walletGetBalancesPost operation. + * @callback module:api/WalletApi~walletGetBalancesPostCallback + * @param {String} error Error message, if any. + * @param {module:model/GetWalletBalanceResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.walletGetActivityPost = function(getWalletActivityRequest) { - return this.walletGetActivityPostWithHttpInfo(getWalletActivityRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Get wallets balances * Get a list of the Asset Types held within a given Wallet and the amount of each type held. * @param {module:model/GetWalletBalanceRequest} getWalletBalanceRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWalletBalanceResponse} and HTTP response + * @param {module:api/WalletApi~walletGetBalancesPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetWalletBalanceResponse} */ - this.walletGetBalancesPostWithHttpInfo = function(getWalletBalanceRequest) { + this.walletGetBalancesPost = function(getWalletBalanceRequest, callback) { var postBody = getWalletBalanceRequest; // verify the required parameter 'getWalletBalanceRequest' is set @@ -238,31 +231,26 @@ return this.apiClient.callApi( '/wallet/get_balances', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Get wallets balances - * Get a list of the Asset Types held within a given Wallet and the amount of each type held. - * @param {module:model/GetWalletBalanceRequest} getWalletBalanceRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWalletBalanceResponse} + * Callback function to receive the result of the walletGetNewAddressPost operation. + * @callback module:api/WalletApi~walletGetNewAddressPostCallback + * @param {String} error Error message, if any. + * @param {module:model/GetNewAddressResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.walletGetBalancesPost = function(getWalletBalanceRequest) { - return this.walletGetBalancesPostWithHttpInfo(getWalletBalanceRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Get a new address from a given diversifier or generate randomly * Generate an Address for the Wallet; the address can be used by other Wallet owners to issue or transfer Assets into said Wallet; If a diversifier is provided, then the generated address is deterministically generated from the diversifier; If the diversifier is omitted, then a random diversifier is used and the resulting Address will be random; in both cases the Address cannot be linked to the Wallet by parties that do not have access to the Wallet. All generated Addresses of a Wallet are always valid and cannot be invalidated. * @param {module:model/GetNewAddressRequest} getNewAddressRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNewAddressResponse} and HTTP response + * @param {module:api/WalletApi~walletGetNewAddressPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetNewAddressResponse} */ - this.walletGetNewAddressPostWithHttpInfo = function(getNewAddressRequest) { + this.walletGetNewAddressPost = function(getNewAddressRequest, callback) { var postBody = getNewAddressRequest; // verify the required parameter 'getNewAddressRequest' is set @@ -290,31 +278,26 @@ return this.apiClient.callApi( '/wallet/get_new_address', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Get a new address from a given diversifier or generate randomly - * Generate an Address for the Wallet; the address can be used by other Wallet owners to issue or transfer Assets into said Wallet; If a diversifier is provided, then the generated address is deterministically generated from the diversifier; If the diversifier is omitted, then a random diversifier is used and the resulting Address will be random; in both cases the Address cannot be linked to the Wallet by parties that do not have access to the Wallet. All generated Addresses of a Wallet are always valid and cannot be invalidated. - * @param {module:model/GetNewAddressRequest} getNewAddressRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNewAddressResponse} + * Callback function to receive the result of the walletGetPublicKeyPost operation. + * @callback module:api/WalletApi~walletGetPublicKeyPostCallback + * @param {String} error Error message, if any. + * @param {module:model/GetPublicKeyResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.walletGetNewAddressPost = function(getNewAddressRequest) { - return this.walletGetNewAddressPostWithHttpInfo(getNewAddressRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Get wallet public key * Get the unique public key of the Wallet; This key is unique across the entire network and is used to identify the Wallet. * @param {module:model/GetPublicKeyRequest} getPublicKeyRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetPublicKeyResponse} and HTTP response + * @param {module:api/WalletApi~walletGetPublicKeyPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetPublicKeyResponse} */ - this.walletGetPublicKeyPostWithHttpInfo = function(getPublicKeyRequest) { + this.walletGetPublicKeyPost = function(getPublicKeyRequest, callback) { var postBody = getPublicKeyRequest; // verify the required parameter 'getPublicKeyRequest' is set @@ -342,31 +325,26 @@ return this.apiClient.callApi( '/wallet/get_public_key', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Get wallet public key - * Get the unique public key of the Wallet; This key is unique across the entire network and is used to identify the Wallet. - * @param {module:model/GetPublicKeyRequest} getPublicKeyRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetPublicKeyResponse} + * Callback function to receive the result of the walletIssueAssetPost operation. + * @callback module:api/WalletApi~walletIssueAssetPostCallback + * @param {String} error Error message, if any. + * @param {module:model/AsyncTaskCreatedResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.walletGetPublicKeyPost = function(getPublicKeyRequest) { - return this.walletGetPublicKeyPostWithHttpInfo(getPublicKeyRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Issue assets [async call] * Issue Assets from a Wallet to a recipient Address; The issuing Wallet is required to have matching issuance rights (in the form of a matching Rule); Issuance can be done either confidentially or in public; In order to issue confidentially, the matching Rule must explicitly allow this. * @param {module:model/IssueAssetRequest} issueAssetRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + * @param {module:api/WalletApi~walletIssueAssetPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AsyncTaskCreatedResponse} */ - this.walletIssueAssetPostWithHttpInfo = function(issueAssetRequest) { + this.walletIssueAssetPost = function(issueAssetRequest, callback) { var postBody = issueAssetRequest; // verify the required parameter 'issueAssetRequest' is set @@ -394,31 +372,26 @@ return this.apiClient.callApi( '/wallet/issue_asset', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } /** - * Issue assets [async call] - * Issue Assets from a Wallet to a recipient Address; The issuing Wallet is required to have matching issuance rights (in the form of a matching Rule); Issuance can be done either confidentially or in public; In order to issue confidentially, the matching Rule must explicitly allow this. - * @param {module:model/IssueAssetRequest} issueAssetRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + * Callback function to receive the result of the walletTransferAssetPost operation. + * @callback module:api/WalletApi~walletTransferAssetPostCallback + * @param {String} error Error message, if any. + * @param {module:model/AsyncTaskCreatedResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. */ - this.walletIssueAssetPost = function(issueAssetRequest) { - return this.walletIssueAssetPostWithHttpInfo(issueAssetRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - /** * Transfer assets [async call] * Transfer a specified amount of a specified Asset Type from a specified Wallet to a specified Address; Transfers are always completely confidential. * @param {module:model/TransferAssetRequest} transferAssetRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + * @param {module:api/WalletApi~walletTransferAssetPostCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AsyncTaskCreatedResponse} */ - this.walletTransferAssetPostWithHttpInfo = function(transferAssetRequest) { + this.walletTransferAssetPost = function(transferAssetRequest, callback) { var postBody = transferAssetRequest; // verify the required parameter 'transferAssetRequest' is set @@ -446,22 +419,9 @@ return this.apiClient.callApi( '/wallet/transfer_asset', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType + authNames, contentTypes, accepts, returnType, callback ); } - - /** - * Transfer assets [async call] - * Transfer a specified amount of a specified Asset Type from a specified Wallet to a specified Address; Transfers are always completely confidential. - * @param {module:model/TransferAssetRequest} transferAssetRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} - */ - this.walletTransferAssetPost = function(transferAssetRequest) { - return this.walletTransferAssetPostWithHttpInfo(transferAssetRequest) - .then(function(response_and_data) { - return response_and_data.data; - }); - } }; return exports; diff --git a/js/sdk/src/index.js b/js/sdk/src/index.js index a22906a..66d7cd9 100644 --- a/js/sdk/src/index.js +++ b/js/sdk/src/index.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,12 +16,12 @@ (function(factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AnalyticIssueWalletTx', 'model/AnalyticRuleWalletTx', 'model/AnalyticTransaction', 'model/AnalyticTransferWalletTx', 'model/AnalyticWalletMetadata', 'model/AnalyticWalletTx', 'model/AnalyticsConfidentialIssuanceDescription', 'model/AnalyticsIssueTx', 'model/AnalyticsMultiTransferTx', 'model/AnalyticsOutput', 'model/AnalyticsOutputDescription', 'model/AnalyticsPublicIssuanceDescription', 'model/AnalyticsRule', 'model/AnalyticsRuleDefinition', 'model/AnalyticsRuleTx', 'model/AnalyticsRuleWalletDefinition', 'model/AnalyticsSpendDescription', 'model/AnalyticsTransferTx', 'model/AnalyticsTxMetadata', 'model/AnalyticsTxType', 'model/AsyncTaskCreatedResponse', 'model/BalanceForAsset', 'model/CreateRuleRequest', 'model/DeleteRuleRequest', 'model/DeleteWalletRequest', 'model/ErrorResponse', 'model/ExportAuditorAccessWalletRequest', 'model/ExportAuditorAccessWalletResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetAllWalletsResponse', 'model/GetNetworkActivityRequest', 'model/GetNetworkActivityResponse', 'model/GetNewAddressRequest', 'model/GetNewAddressResponse', 'model/GetPublicKeyRequest', 'model/GetPublicKeyResponse', 'model/GetRulesResponse', 'model/GetSyncStatusResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/GetTasksRequest', 'model/GetTasksResponse', 'model/GetWalletActivityRequest', 'model/GetWalletActivityResponse', 'model/GetWalletBalanceRequest', 'model/GetWalletBalanceResponse', 'model/HealthcheckResponse', 'model/HealthcheckResponseItem', 'model/ImportAuditorAccessWalletRequest', 'model/ImportWalletRequest', 'model/IssueAssetRequest', 'model/Result', 'model/Rule', 'model/TaskActionRequest', 'model/TaskData', 'model/TaskState', 'model/TaskType', 'model/TransferAssetRequest', 'model/UnlockWalletRequest', 'api/AnalyticsApi', 'api/HealthApi', 'api/NodeApi', 'api/WalletApi'], factory); + define(['ApiClient', 'model/AnalyticIssueWalletTx', 'model/AnalyticRuleWalletTx', 'model/AnalyticTransaction', 'model/AnalyticTransferWalletTx', 'model/AnalyticWalletMetadata', 'model/AnalyticWalletTx', 'model/AnalyticsConfidentialIssuanceDescription', 'model/AnalyticsIssueTx', 'model/AnalyticsMultiTransferTx', 'model/AnalyticsOutput', 'model/AnalyticsOutputDescription', 'model/AnalyticsPublicIssuanceDescription', 'model/AnalyticsRuleDefinition', 'model/AnalyticsRuleTx', 'model/AnalyticsRuleWalletDefinition', 'model/AnalyticsSpendDescription', 'model/AnalyticsTransferTx', 'model/AnalyticsTxMetadata', 'model/AnalyticsTxType', 'model/AsyncTaskCreatedResponse', 'model/BalanceForAsset', 'model/CreateRuleRequest', 'model/DeleteRuleRequest', 'model/DeleteWalletRequest', 'model/EmptyContent', 'model/ErrorResponse', 'model/ExportAuditorAccessWalletRequest', 'model/ExportAuditorAccessWalletResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetAllWalletsResponse', 'model/GetNetworkActivityRequest', 'model/GetNetworkActivityResponse', 'model/GetNewAddressRequest', 'model/GetNewAddressResponse', 'model/GetNotificationsRequest', 'model/GetNotificationsResponse', 'model/GetPublicKeyRequest', 'model/GetPublicKeyResponse', 'model/GetRulesResponse', 'model/GetSyncStatusResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/GetTasksRequest', 'model/GetTasksResponse', 'model/GetWalletActivityRequest', 'model/GetWalletActivityResponse', 'model/GetWalletBalanceRequest', 'model/GetWalletBalanceResponse', 'model/HealthcheckResponse', 'model/HealthcheckResponseItem', 'model/ImportAuditorAccessWalletRequest', 'model/ImportWalletRequest', 'model/IssueAssetRequest', 'model/Notification', 'model/NotificationType', 'model/OrderEnum', 'model/Result', 'model/Rule', 'model/TaskActionRequest', 'model/TaskData', 'model/TaskState', 'model/TaskType', 'model/TransferAssetRequest', 'model/UnlockWalletRequest', 'api/AnalyticsApi', 'api/HealthApi', 'api/NodeApi', 'api/WalletApi'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('./ApiClient'), require('./model/AnalyticIssueWalletTx'), require('./model/AnalyticRuleWalletTx'), require('./model/AnalyticTransaction'), require('./model/AnalyticTransferWalletTx'), require('./model/AnalyticWalletMetadata'), require('./model/AnalyticWalletTx'), require('./model/AnalyticsConfidentialIssuanceDescription'), require('./model/AnalyticsIssueTx'), require('./model/AnalyticsMultiTransferTx'), require('./model/AnalyticsOutput'), require('./model/AnalyticsOutputDescription'), require('./model/AnalyticsPublicIssuanceDescription'), require('./model/AnalyticsRule'), require('./model/AnalyticsRuleDefinition'), require('./model/AnalyticsRuleTx'), require('./model/AnalyticsRuleWalletDefinition'), require('./model/AnalyticsSpendDescription'), require('./model/AnalyticsTransferTx'), require('./model/AnalyticsTxMetadata'), require('./model/AnalyticsTxType'), require('./model/AsyncTaskCreatedResponse'), require('./model/BalanceForAsset'), require('./model/CreateRuleRequest'), require('./model/DeleteRuleRequest'), require('./model/DeleteWalletRequest'), require('./model/ErrorResponse'), require('./model/ExportAuditorAccessWalletRequest'), require('./model/ExportAuditorAccessWalletResponse'), require('./model/ExportWalletRequest'), require('./model/ExportWalletResponse'), require('./model/GenerateWalletRequest'), require('./model/GetAllWalletsResponse'), require('./model/GetNetworkActivityRequest'), require('./model/GetNetworkActivityResponse'), require('./model/GetNewAddressRequest'), require('./model/GetNewAddressResponse'), require('./model/GetPublicKeyRequest'), require('./model/GetPublicKeyResponse'), require('./model/GetRulesResponse'), require('./model/GetSyncStatusResponse'), require('./model/GetTaskStatusRequest'), require('./model/GetTaskStatusResponse'), require('./model/GetTasksRequest'), require('./model/GetTasksResponse'), require('./model/GetWalletActivityRequest'), require('./model/GetWalletActivityResponse'), require('./model/GetWalletBalanceRequest'), require('./model/GetWalletBalanceResponse'), require('./model/HealthcheckResponse'), require('./model/HealthcheckResponseItem'), require('./model/ImportAuditorAccessWalletRequest'), require('./model/ImportWalletRequest'), require('./model/IssueAssetRequest'), require('./model/Result'), require('./model/Rule'), require('./model/TaskActionRequest'), require('./model/TaskData'), require('./model/TaskState'), require('./model/TaskType'), require('./model/TransferAssetRequest'), require('./model/UnlockWalletRequest'), require('./api/AnalyticsApi'), require('./api/HealthApi'), require('./api/NodeApi'), require('./api/WalletApi')); + module.exports = factory(require('./ApiClient'), require('./model/AnalyticIssueWalletTx'), require('./model/AnalyticRuleWalletTx'), require('./model/AnalyticTransaction'), require('./model/AnalyticTransferWalletTx'), require('./model/AnalyticWalletMetadata'), require('./model/AnalyticWalletTx'), require('./model/AnalyticsConfidentialIssuanceDescription'), require('./model/AnalyticsIssueTx'), require('./model/AnalyticsMultiTransferTx'), require('./model/AnalyticsOutput'), require('./model/AnalyticsOutputDescription'), require('./model/AnalyticsPublicIssuanceDescription'), require('./model/AnalyticsRuleDefinition'), require('./model/AnalyticsRuleTx'), require('./model/AnalyticsRuleWalletDefinition'), require('./model/AnalyticsSpendDescription'), require('./model/AnalyticsTransferTx'), require('./model/AnalyticsTxMetadata'), require('./model/AnalyticsTxType'), require('./model/AsyncTaskCreatedResponse'), require('./model/BalanceForAsset'), require('./model/CreateRuleRequest'), require('./model/DeleteRuleRequest'), require('./model/DeleteWalletRequest'), require('./model/EmptyContent'), require('./model/ErrorResponse'), require('./model/ExportAuditorAccessWalletRequest'), require('./model/ExportAuditorAccessWalletResponse'), require('./model/ExportWalletRequest'), require('./model/ExportWalletResponse'), require('./model/GenerateWalletRequest'), require('./model/GetAllWalletsResponse'), require('./model/GetNetworkActivityRequest'), require('./model/GetNetworkActivityResponse'), require('./model/GetNewAddressRequest'), require('./model/GetNewAddressResponse'), require('./model/GetNotificationsRequest'), require('./model/GetNotificationsResponse'), require('./model/GetPublicKeyRequest'), require('./model/GetPublicKeyResponse'), require('./model/GetRulesResponse'), require('./model/GetSyncStatusResponse'), require('./model/GetTaskStatusRequest'), require('./model/GetTaskStatusResponse'), require('./model/GetTasksRequest'), require('./model/GetTasksResponse'), require('./model/GetWalletActivityRequest'), require('./model/GetWalletActivityResponse'), require('./model/GetWalletBalanceRequest'), require('./model/GetWalletBalanceResponse'), require('./model/HealthcheckResponse'), require('./model/HealthcheckResponseItem'), require('./model/ImportAuditorAccessWalletRequest'), require('./model/ImportWalletRequest'), require('./model/IssueAssetRequest'), require('./model/Notification'), require('./model/NotificationType'), require('./model/OrderEnum'), require('./model/Result'), require('./model/Rule'), require('./model/TaskActionRequest'), require('./model/TaskData'), require('./model/TaskState'), require('./model/TaskType'), require('./model/TransferAssetRequest'), require('./model/UnlockWalletRequest'), require('./api/AnalyticsApi'), require('./api/HealthApi'), require('./api/NodeApi'), require('./api/WalletApi')); } -}(function(ApiClient, AnalyticIssueWalletTx, AnalyticRuleWalletTx, AnalyticTransaction, AnalyticTransferWalletTx, AnalyticWalletMetadata, AnalyticWalletTx, AnalyticsConfidentialIssuanceDescription, AnalyticsIssueTx, AnalyticsMultiTransferTx, AnalyticsOutput, AnalyticsOutputDescription, AnalyticsPublicIssuanceDescription, AnalyticsRule, AnalyticsRuleDefinition, AnalyticsRuleTx, AnalyticsRuleWalletDefinition, AnalyticsSpendDescription, AnalyticsTransferTx, AnalyticsTxMetadata, AnalyticsTxType, AsyncTaskCreatedResponse, BalanceForAsset, CreateRuleRequest, DeleteRuleRequest, DeleteWalletRequest, ErrorResponse, ExportAuditorAccessWalletRequest, ExportAuditorAccessWalletResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetAllWalletsResponse, GetNetworkActivityRequest, GetNetworkActivityResponse, GetNewAddressRequest, GetNewAddressResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetRulesResponse, GetSyncStatusResponse, GetTaskStatusRequest, GetTaskStatusResponse, GetTasksRequest, GetTasksResponse, GetWalletActivityRequest, GetWalletActivityResponse, GetWalletBalanceRequest, GetWalletBalanceResponse, HealthcheckResponse, HealthcheckResponseItem, ImportAuditorAccessWalletRequest, ImportWalletRequest, IssueAssetRequest, Result, Rule, TaskActionRequest, TaskData, TaskState, TaskType, TransferAssetRequest, UnlockWalletRequest, AnalyticsApi, HealthApi, NodeApi, WalletApi) { +}(function(ApiClient, AnalyticIssueWalletTx, AnalyticRuleWalletTx, AnalyticTransaction, AnalyticTransferWalletTx, AnalyticWalletMetadata, AnalyticWalletTx, AnalyticsConfidentialIssuanceDescription, AnalyticsIssueTx, AnalyticsMultiTransferTx, AnalyticsOutput, AnalyticsOutputDescription, AnalyticsPublicIssuanceDescription, AnalyticsRuleDefinition, AnalyticsRuleTx, AnalyticsRuleWalletDefinition, AnalyticsSpendDescription, AnalyticsTransferTx, AnalyticsTxMetadata, AnalyticsTxType, AsyncTaskCreatedResponse, BalanceForAsset, CreateRuleRequest, DeleteRuleRequest, DeleteWalletRequest, EmptyContent, ErrorResponse, ExportAuditorAccessWalletRequest, ExportAuditorAccessWalletResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetAllWalletsResponse, GetNetworkActivityRequest, GetNetworkActivityResponse, GetNewAddressRequest, GetNewAddressResponse, GetNotificationsRequest, GetNotificationsResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetRulesResponse, GetSyncStatusResponse, GetTaskStatusRequest, GetTaskStatusResponse, GetTasksRequest, GetTasksResponse, GetWalletActivityRequest, GetWalletActivityResponse, GetWalletBalanceRequest, GetWalletBalanceResponse, HealthcheckResponse, HealthcheckResponseItem, ImportAuditorAccessWalletRequest, ImportWalletRequest, IssueAssetRequest, Notification, NotificationType, OrderEnum, Result, Rule, TaskActionRequest, TaskData, TaskState, TaskType, TransferAssetRequest, UnlockWalletRequest, AnalyticsApi, HealthApi, NodeApi, WalletApi) { 'use strict'; /** @@ -30,9 +30,9 @@ *

* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: *

-   * var QedItAssetTransfers = require('index'); // See note below*.
-   * var xxxSvc = new QedItAssetTransfers.XxxApi(); // Allocate the API class we're going to use.
-   * var yyyModel = new QedItAssetTransfers.Yyy(); // Construct a model instance.
+   * var QeditAssetTransfers = require('index'); // See note below*.
+   * var xxxSvc = new QeditAssetTransfers.XxxApi(); // Allocate the API class we're going to use.
+   * var yyyModel = new QeditAssetTransfers.Yyy(); // Construct a model instance.
    * yyyModel.someProperty = 'someValue';
    * ...
    * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@@ -44,8 +44,8 @@
    * 

* A non-AMD browser application (discouraged) might do something like this: *

-   * var xxxSvc = new QedItAssetTransfers.XxxApi(); // Allocate the API class we're going to use.
-   * var yyy = new QedItAssetTransfers.Yyy(); // Construct a model instance.
+   * var xxxSvc = new QeditAssetTransfers.XxxApi(); // Allocate the API class we're going to use.
+   * var yyy = new QeditAssetTransfers.Yyy(); // Construct a model instance.
    * yyyModel.someProperty = 'someValue';
    * ...
    * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@@ -53,7 +53,7 @@
    * 
*

* @module index - * @version 1.6.0 + * @version 1.6.1 */ var exports = { /** @@ -121,11 +121,6 @@ * @property {module:model/AnalyticsPublicIssuanceDescription} */ AnalyticsPublicIssuanceDescription: AnalyticsPublicIssuanceDescription, - /** - * The AnalyticsRule model constructor. - * @property {module:model/AnalyticsRule} - */ - AnalyticsRule: AnalyticsRule, /** * The AnalyticsRuleDefinition model constructor. * @property {module:model/AnalyticsRuleDefinition} @@ -186,6 +181,11 @@ * @property {module:model/DeleteWalletRequest} */ DeleteWalletRequest: DeleteWalletRequest, + /** + * The EmptyContent model constructor. + * @property {module:model/EmptyContent} + */ + EmptyContent: EmptyContent, /** * The ErrorResponse model constructor. * @property {module:model/ErrorResponse} @@ -241,6 +241,16 @@ * @property {module:model/GetNewAddressResponse} */ GetNewAddressResponse: GetNewAddressResponse, + /** + * The GetNotificationsRequest model constructor. + * @property {module:model/GetNotificationsRequest} + */ + GetNotificationsRequest: GetNotificationsRequest, + /** + * The GetNotificationsResponse model constructor. + * @property {module:model/GetNotificationsResponse} + */ + GetNotificationsResponse: GetNotificationsResponse, /** * The GetPublicKeyRequest model constructor. * @property {module:model/GetPublicKeyRequest} @@ -326,6 +336,21 @@ * @property {module:model/IssueAssetRequest} */ IssueAssetRequest: IssueAssetRequest, + /** + * The Notification model constructor. + * @property {module:model/Notification} + */ + Notification: Notification, + /** + * The NotificationType model constructor. + * @property {module:model/NotificationType} + */ + NotificationType: NotificationType, + /** + * The OrderEnum model constructor. + * @property {module:model/OrderEnum} + */ + OrderEnum: OrderEnum, /** * The Result model constructor. * @property {module:model/Result} diff --git a/js/sdk/src/model/AnalyticIssueWalletTx.js b/js/sdk/src/model/AnalyticIssueWalletTx.js index 4162ebd..e69cdbb 100644 --- a/js/sdk/src/model/AnalyticIssueWalletTx.js +++ b/js/sdk/src/model/AnalyticIssueWalletTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticIssueWalletTx = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.AnalyticIssueWalletTx = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticIssueWalletTx model module. * @module model/AnalyticIssueWalletTx - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticRuleWalletTx.js b/js/sdk/src/model/AnalyticRuleWalletTx.js index cf2766d..86e0efa 100644 --- a/js/sdk/src/model/AnalyticRuleWalletTx.js +++ b/js/sdk/src/model/AnalyticRuleWalletTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticsRuleWalletDefinition')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticRuleWalletTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsRuleWalletDefinition); + root.QeditAssetTransfers.AnalyticRuleWalletTx = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticsRuleWalletDefinition); } }(this, function(ApiClient, AnalyticsRuleWalletDefinition) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticRuleWalletTx model module. * @module model/AnalyticRuleWalletTx - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticTransaction.js b/js/sdk/src/model/AnalyticTransaction.js index 75ef6f0..45ea4b7 100644 --- a/js/sdk/src/model/AnalyticTransaction.js +++ b/js/sdk/src/model/AnalyticTransaction.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticsTxMetadata')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticTransaction = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsTxMetadata); + root.QeditAssetTransfers.AnalyticTransaction = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticsTxMetadata); } }(this, function(ApiClient, AnalyticsTxMetadata) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticTransaction model module. * @module model/AnalyticTransaction - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticTransferWalletTx.js b/js/sdk/src/model/AnalyticTransferWalletTx.js index f690fdb..8fdbbc6 100644 --- a/js/sdk/src/model/AnalyticTransferWalletTx.js +++ b/js/sdk/src/model/AnalyticTransferWalletTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticTransferWalletTx = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.AnalyticTransferWalletTx = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticTransferWalletTx model module. * @module model/AnalyticTransferWalletTx - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticWalletMetadata.js b/js/sdk/src/model/AnalyticWalletMetadata.js index b1c302b..1a5b9b6 100644 --- a/js/sdk/src/model/AnalyticWalletMetadata.js +++ b/js/sdk/src/model/AnalyticWalletMetadata.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticsTxType')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticWalletMetadata = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsTxType); + root.QeditAssetTransfers.AnalyticWalletMetadata = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticsTxType); } }(this, function(ApiClient, AnalyticsTxType) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticWalletMetadata model module. * @module model/AnalyticWalletMetadata - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticWalletTx.js b/js/sdk/src/model/AnalyticWalletTx.js index 283a775..a65c127 100644 --- a/js/sdk/src/model/AnalyticWalletTx.js +++ b/js/sdk/src/model/AnalyticWalletTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticWalletMetadata')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticWalletTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticWalletMetadata); + root.QeditAssetTransfers.AnalyticWalletTx = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticWalletMetadata); } }(this, function(ApiClient, AnalyticWalletMetadata) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticWalletTx model module. * @module model/AnalyticWalletTx - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsAssetConverterProofDescription.js b/js/sdk/src/model/AnalyticsAssetConverterProofDescription.js index 6d62409..bde0470 100644 --- a/js/sdk/src/model/AnalyticsAssetConverterProofDescription.js +++ b/js/sdk/src/model/AnalyticsAssetConverterProofDescription.js @@ -75,22 +75,18 @@ } /** - * The commitment to both the Asset Type and amount of the Note * @member {String} input_cv */ exports.prototype['input_cv'] = undefined; /** - * The commitment to the Asset amount * @member {String} amount_cv */ exports.prototype['amount_cv'] = undefined; /** - * The commitment to the ID of the Asset Type * @member {String} asset_cv */ exports.prototype['asset_cv'] = undefined; /** - * The Proof that the commitment contents match * @member {String} zkproof */ exports.prototype['zkproof'] = undefined; diff --git a/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js b/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js index ddc8f66..1016025 100644 --- a/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js +++ b/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.AnalyticsConfidentialIssuanceDescription = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsConfidentialIssuanceDescription model module. * @module model/AnalyticsConfidentialIssuanceDescription - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsIssueTx.js b/js/sdk/src/model/AnalyticsIssueTx.js index 6fdd785..56f64aa 100644 --- a/js/sdk/src/model/AnalyticsIssueTx.js +++ b/js/sdk/src/model/AnalyticsIssueTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticsOutput')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsIssueTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsOutput); + root.QeditAssetTransfers.AnalyticsIssueTx = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticsOutput); } }(this, function(ApiClient, AnalyticsOutput) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsIssueTx model module. * @module model/AnalyticsIssueTx - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsMultiTransferTx.js b/js/sdk/src/model/AnalyticsMultiTransferTx.js index 22b577a..f28d953 100644 --- a/js/sdk/src/model/AnalyticsMultiTransferTx.js +++ b/js/sdk/src/model/AnalyticsMultiTransferTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticsTransferTx')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsMultiTransferTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsTransferTx); + root.QeditAssetTransfers.AnalyticsMultiTransferTx = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticsTransferTx); } }(this, function(ApiClient, AnalyticsTransferTx) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsMultiTransferTx model module. * @module model/AnalyticsMultiTransferTx - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsOutput.js b/js/sdk/src/model/AnalyticsOutput.js index e82ec1e..fa69e8c 100644 --- a/js/sdk/src/model/AnalyticsOutput.js +++ b/js/sdk/src/model/AnalyticsOutput.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticsConfidentialIssuanceDescription'), require('./AnalyticsOutputDescription'), require('./AnalyticsPublicIssuanceDescription')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsOutput = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription, root.QedItAssetTransfers.AnalyticsOutputDescription, root.QedItAssetTransfers.AnalyticsPublicIssuanceDescription); + root.QeditAssetTransfers.AnalyticsOutput = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticsConfidentialIssuanceDescription, root.QeditAssetTransfers.AnalyticsOutputDescription, root.QeditAssetTransfers.AnalyticsPublicIssuanceDescription); } }(this, function(ApiClient, AnalyticsConfidentialIssuanceDescription, AnalyticsOutputDescription, AnalyticsPublicIssuanceDescription) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsOutput model module. * @module model/AnalyticsOutput - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsOutputDescription.js b/js/sdk/src/model/AnalyticsOutputDescription.js index b2b5e3e..7c60a5d 100644 --- a/js/sdk/src/model/AnalyticsOutputDescription.js +++ b/js/sdk/src/model/AnalyticsOutputDescription.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsOutputDescription = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.AnalyticsOutputDescription = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsOutputDescription model module. * @module model/AnalyticsOutputDescription - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js b/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js index 54246e7..4536459 100644 --- a/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js +++ b/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsPublicIssuanceDescription = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.AnalyticsPublicIssuanceDescription = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsPublicIssuanceDescription model module. * @module model/AnalyticsPublicIssuanceDescription - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsRule.js b/js/sdk/src/model/AnalyticsRule.js index dd758ce..dad2d18 100644 --- a/js/sdk/src/model/AnalyticsRule.js +++ b/js/sdk/src/model/AnalyticsRule.js @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsRule = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.AnalyticsRule = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; diff --git a/js/sdk/src/model/AnalyticsRuleDefinition.js b/js/sdk/src/model/AnalyticsRuleDefinition.js index 3a92878..fb71b3c 100644 --- a/js/sdk/src/model/AnalyticsRuleDefinition.js +++ b/js/sdk/src/model/AnalyticsRuleDefinition.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsRuleDefinition = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.AnalyticsRuleDefinition = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsRuleDefinition model module. * @module model/AnalyticsRuleDefinition - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsRuleTx.js b/js/sdk/src/model/AnalyticsRuleTx.js index 1cdffbb..d9a1e96 100644 --- a/js/sdk/src/model/AnalyticsRuleTx.js +++ b/js/sdk/src/model/AnalyticsRuleTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticsRuleDefinition')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsRuleTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsRuleDefinition); + root.QeditAssetTransfers.AnalyticsRuleTx = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticsRuleDefinition); } }(this, function(ApiClient, AnalyticsRuleDefinition) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsRuleTx model module. * @module model/AnalyticsRuleTx - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsRuleWalletDefinition.js b/js/sdk/src/model/AnalyticsRuleWalletDefinition.js index 7e34d1e..9dfc327 100644 --- a/js/sdk/src/model/AnalyticsRuleWalletDefinition.js +++ b/js/sdk/src/model/AnalyticsRuleWalletDefinition.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsRuleWalletDefinition = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.AnalyticsRuleWalletDefinition = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsRuleWalletDefinition model module. * @module model/AnalyticsRuleWalletDefinition - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsSpendDescription.js b/js/sdk/src/model/AnalyticsSpendDescription.js index 9a565e2..288a9bf 100644 --- a/js/sdk/src/model/AnalyticsSpendDescription.js +++ b/js/sdk/src/model/AnalyticsSpendDescription.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsSpendDescription = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.AnalyticsSpendDescription = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsSpendDescription model module. * @module model/AnalyticsSpendDescription - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsTransferTx.js b/js/sdk/src/model/AnalyticsTransferTx.js index 3926ac2..b129f50 100644 --- a/js/sdk/src/model/AnalyticsTransferTx.js +++ b/js/sdk/src/model/AnalyticsTransferTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticsOutputDescription'), require('./AnalyticsSpendDescription')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsTransferTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsOutputDescription, root.QedItAssetTransfers.AnalyticsSpendDescription); + root.QeditAssetTransfers.AnalyticsTransferTx = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticsOutputDescription, root.QeditAssetTransfers.AnalyticsSpendDescription); } }(this, function(ApiClient, AnalyticsOutputDescription, AnalyticsSpendDescription) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsTransferTx model module. * @module model/AnalyticsTransferTx - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsTxMetadata.js b/js/sdk/src/model/AnalyticsTxMetadata.js index 4913ea3..95bee21 100644 --- a/js/sdk/src/model/AnalyticsTxMetadata.js +++ b/js/sdk/src/model/AnalyticsTxMetadata.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticsTxType')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsTxMetadata = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsTxType); + root.QeditAssetTransfers.AnalyticsTxMetadata = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticsTxType); } }(this, function(ApiClient, AnalyticsTxType) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsTxMetadata model module. * @module model/AnalyticsTxMetadata - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/AnalyticsTxType.js b/js/sdk/src/model/AnalyticsTxType.js index 7c1e840..185c145 100644 --- a/js/sdk/src/model/AnalyticsTxType.js +++ b/js/sdk/src/model/AnalyticsTxType.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsTxType = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.AnalyticsTxType = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; diff --git a/js/sdk/src/model/AsyncTaskCreatedResponse.js b/js/sdk/src/model/AsyncTaskCreatedResponse.js index 4433e89..1b47d17 100644 --- a/js/sdk/src/model/AsyncTaskCreatedResponse.js +++ b/js/sdk/src/model/AsyncTaskCreatedResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.AsyncTaskCreatedResponse = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.AsyncTaskCreatedResponse = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AsyncTaskCreatedResponse model module. * @module model/AsyncTaskCreatedResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/BalanceForAsset.js b/js/sdk/src/model/BalanceForAsset.js index 2dc6142..8a2db96 100644 --- a/js/sdk/src/model/BalanceForAsset.js +++ b/js/sdk/src/model/BalanceForAsset.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.BalanceForAsset = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.BalanceForAsset = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The BalanceForAsset model module. * @module model/BalanceForAsset - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/CreateRuleRequest.js b/js/sdk/src/model/CreateRuleRequest.js index c11c6c5..e430291 100644 --- a/js/sdk/src/model/CreateRuleRequest.js +++ b/js/sdk/src/model/CreateRuleRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./Rule')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.CreateRuleRequest = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Rule); + root.QeditAssetTransfers.CreateRuleRequest = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.Rule); } }(this, function(ApiClient, Rule) { 'use strict'; @@ -35,7 +35,7 @@ /** * The CreateRuleRequest model module. * @module model/CreateRuleRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/DeleteRuleRequest.js b/js/sdk/src/model/DeleteRuleRequest.js index 65c64e5..1d1c0ab 100644 --- a/js/sdk/src/model/DeleteRuleRequest.js +++ b/js/sdk/src/model/DeleteRuleRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./Rule')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.DeleteRuleRequest = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Rule); + root.QeditAssetTransfers.DeleteRuleRequest = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.Rule); } }(this, function(ApiClient, Rule) { 'use strict'; @@ -35,7 +35,7 @@ /** * The DeleteRuleRequest model module. * @module model/DeleteRuleRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/DeleteWalletRequest.js b/js/sdk/src/model/DeleteWalletRequest.js index 1b1f311..f23d12c 100644 --- a/js/sdk/src/model/DeleteWalletRequest.js +++ b/js/sdk/src/model/DeleteWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.DeleteWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.DeleteWalletRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The DeleteWalletRequest model module. * @module model/DeleteWalletRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/EmptyContent.js b/js/sdk/src/model/EmptyContent.js new file mode 100644 index 0000000..8f831ff --- /dev/null +++ b/js/sdk/src/model/EmptyContent.js @@ -0,0 +1,71 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; + } + root.QeditAssetTransfers.EmptyContent = factory(root.QeditAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The EmptyContent model module. + * @module model/EmptyContent + * @version 1.6.1 + */ + + /** + * Constructs a new EmptyContent. + * @alias module:model/EmptyContent + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a EmptyContent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmptyContent} obj Optional instance to populate. + * @return {module:model/EmptyContent} The populated EmptyContent instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + } + return obj; + } + + + + + return exports; +})); + + diff --git a/js/sdk/src/model/ErrorResponse.js b/js/sdk/src/model/ErrorResponse.js index f25cb39..1917a60 100644 --- a/js/sdk/src/model/ErrorResponse.js +++ b/js/sdk/src/model/ErrorResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.ErrorResponse = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.ErrorResponse = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The ErrorResponse model module. * @module model/ErrorResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/ExportAuditorAccessWalletRequest.js b/js/sdk/src/model/ExportAuditorAccessWalletRequest.js index 90e9e20..c1de2fd 100644 --- a/js/sdk/src/model/ExportAuditorAccessWalletRequest.js +++ b/js/sdk/src/model/ExportAuditorAccessWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.ExportAuditorAccessWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.ExportAuditorAccessWalletRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The ExportAuditorAccessWalletRequest model module. * @module model/ExportAuditorAccessWalletRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/ExportAuditorAccessWalletResponse.js b/js/sdk/src/model/ExportAuditorAccessWalletResponse.js index 0d2f6c3..980d80b 100644 --- a/js/sdk/src/model/ExportAuditorAccessWalletResponse.js +++ b/js/sdk/src/model/ExportAuditorAccessWalletResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.ExportAuditorAccessWalletResponse = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.ExportAuditorAccessWalletResponse = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The ExportAuditorAccessWalletResponse model module. * @module model/ExportAuditorAccessWalletResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/ExportWalletRequest.js b/js/sdk/src/model/ExportWalletRequest.js index a76444a..0f7d888 100644 --- a/js/sdk/src/model/ExportWalletRequest.js +++ b/js/sdk/src/model/ExportWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.ExportWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.ExportWalletRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The ExportWalletRequest model module. * @module model/ExportWalletRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/ExportWalletResponse.js b/js/sdk/src/model/ExportWalletResponse.js index 4aba9d2..d4ad313 100644 --- a/js/sdk/src/model/ExportWalletResponse.js +++ b/js/sdk/src/model/ExportWalletResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.ExportWalletResponse = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.ExportWalletResponse = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The ExportWalletResponse model module. * @module model/ExportWalletResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GenerateWalletRequest.js b/js/sdk/src/model/GenerateWalletRequest.js index 6efe1d1..0150bbd 100644 --- a/js/sdk/src/model/GenerateWalletRequest.js +++ b/js/sdk/src/model/GenerateWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GenerateWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.GenerateWalletRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GenerateWalletRequest model module. * @module model/GenerateWalletRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetAllWalletsResponse.js b/js/sdk/src/model/GetAllWalletsResponse.js index 2f646e2..841cf3d 100644 --- a/js/sdk/src/model/GetAllWalletsResponse.js +++ b/js/sdk/src/model/GetAllWalletsResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetAllWalletsResponse = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.GetAllWalletsResponse = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetAllWalletsResponse model module. * @module model/GetAllWalletsResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetNetworkActivityRequest.js b/js/sdk/src/model/GetNetworkActivityRequest.js index 366e2c3..46feb69 100644 --- a/js/sdk/src/model/GetNetworkActivityRequest.js +++ b/js/sdk/src/model/GetNetworkActivityRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetNetworkActivityRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.GetNetworkActivityRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetNetworkActivityRequest model module. * @module model/GetNetworkActivityRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetNetworkActivityResponse.js b/js/sdk/src/model/GetNetworkActivityResponse.js index 4c9b2fd..ee0b7a7 100644 --- a/js/sdk/src/model/GetNetworkActivityResponse.js +++ b/js/sdk/src/model/GetNetworkActivityResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticTransaction')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetNetworkActivityResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticTransaction); + root.QeditAssetTransfers.GetNetworkActivityResponse = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticTransaction); } }(this, function(ApiClient, AnalyticTransaction) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetNetworkActivityResponse model module. * @module model/GetNetworkActivityResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetNewAddressRequest.js b/js/sdk/src/model/GetNewAddressRequest.js index 63e4f3a..bcc45dd 100644 --- a/js/sdk/src/model/GetNewAddressRequest.js +++ b/js/sdk/src/model/GetNewAddressRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetNewAddressRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.GetNewAddressRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetNewAddressRequest model module. * @module model/GetNewAddressRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetNewAddressResponse.js b/js/sdk/src/model/GetNewAddressResponse.js index bfd0e98..70c7682 100644 --- a/js/sdk/src/model/GetNewAddressResponse.js +++ b/js/sdk/src/model/GetNewAddressResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetNewAddressResponse = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.GetNewAddressResponse = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetNewAddressResponse model module. * @module model/GetNewAddressResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetNotificationsRequest.js b/js/sdk/src/model/GetNotificationsRequest.js new file mode 100644 index 0000000..a8c8d8a --- /dev/null +++ b/js/sdk/src/model/GetNotificationsRequest.js @@ -0,0 +1,119 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/NotificationType', 'model/OrderEnum'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./NotificationType'), require('./OrderEnum')); + } else { + // Browser globals (root is window) + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; + } + root.QeditAssetTransfers.GetNotificationsRequest = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.NotificationType, root.QeditAssetTransfers.OrderEnum); + } +}(this, function(ApiClient, NotificationType, OrderEnum) { + 'use strict'; + + + + /** + * The GetNotificationsRequest model module. + * @module model/GetNotificationsRequest + * @version 1.6.1 + */ + + /** + * Constructs a new GetNotificationsRequest. + * The request body determines which filters to apply to the notifications. All filters are optional, while the maximal number of results defaults to 100 and the order defaults to descending. + * @alias module:model/GetNotificationsRequest + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a GetNotificationsRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetNotificationsRequest} obj Optional instance to populate. + * @return {module:model/GetNotificationsRequest} The populated GetNotificationsRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('types')) { + obj['types'] = ApiClient.convertToType(data['types'], [NotificationType]); + } + if (data.hasOwnProperty('starting_with_time')) { + obj['starting_with_time'] = ApiClient.convertToType(data['starting_with_time'], 'Date'); + } + if (data.hasOwnProperty('after_id')) { + obj['after_id'] = ApiClient.convertToType(data['after_id'], 'Number'); + } + if (data.hasOwnProperty('order')) { + obj['order'] = OrderEnum.constructFromObject(data['order']); + } + if (data.hasOwnProperty('max_results')) { + obj['max_results'] = ApiClient.convertToType(data['max_results'], 'Number'); + } + } + return obj; + } + + /** + * Fetch notifications that relate to this wallet ID only + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {Array.} types + */ + exports.prototype['types'] = undefined; + /** + * Fetch notifications reported at this timestamp or later/earlier. Later notifications will be fetched if the order is ascending, and earlier ones if the order is descending. The timestamp is expected to be in RFC-3339 format. + * @member {Date} starting_with_time + */ + exports.prototype['starting_with_time'] = undefined; + /** + * Fetch notifications after this given ID (not including the notification with the given ID). This is meant to facilitate pagination. Later notifications will be fetched if ascending order is selected, and earlier ones if descending order is selected. Warning - do not assume anything about the implementation of after_id; the values of the ID are intended to be copy-pasted from retrieved notifications for pagination. + * @member {Number} after_id + */ + exports.prototype['after_id'] = undefined; + /** + * @member {module:model/OrderEnum} order + */ + exports.prototype['order'] = undefined; + /** + * The maximal number of results to fetch + * @member {Number} max_results + * @default 100 + */ + exports.prototype['max_results'] = 100; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/GetNotificationsResponse.js b/js/sdk/src/model/GetNotificationsResponse.js new file mode 100644 index 0000000..3595996 --- /dev/null +++ b/js/sdk/src/model/GetNotificationsResponse.js @@ -0,0 +1,78 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Notification'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Notification')); + } else { + // Browser globals (root is window) + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; + } + root.QeditAssetTransfers.GetNotificationsResponse = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.Notification); + } +}(this, function(ApiClient, Notification) { + 'use strict'; + + + + /** + * The GetNotificationsResponse model module. + * @module model/GetNotificationsResponse + * @version 1.6.1 + */ + + /** + * Constructs a new GetNotificationsResponse. + * @alias module:model/GetNotificationsResponse + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a GetNotificationsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetNotificationsResponse} obj Optional instance to populate. + * @return {module:model/GetNotificationsResponse} The populated GetNotificationsResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('notifications')) { + obj['notifications'] = ApiClient.convertToType(data['notifications'], [Notification]); + } + } + return obj; + } + + /** + * @member {Array.} notifications + */ + exports.prototype['notifications'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/GetPublicKeyRequest.js b/js/sdk/src/model/GetPublicKeyRequest.js index 6cd7099..8ba3bef 100644 --- a/js/sdk/src/model/GetPublicKeyRequest.js +++ b/js/sdk/src/model/GetPublicKeyRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetPublicKeyRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.GetPublicKeyRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetPublicKeyRequest model module. * @module model/GetPublicKeyRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetPublicKeyResponse.js b/js/sdk/src/model/GetPublicKeyResponse.js index 2517df7..32abe71 100644 --- a/js/sdk/src/model/GetPublicKeyResponse.js +++ b/js/sdk/src/model/GetPublicKeyResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetPublicKeyResponse = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.GetPublicKeyResponse = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetPublicKeyResponse model module. * @module model/GetPublicKeyResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetRulesResponse.js b/js/sdk/src/model/GetRulesResponse.js index 57badac..811a186 100644 --- a/js/sdk/src/model/GetRulesResponse.js +++ b/js/sdk/src/model/GetRulesResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./Rule')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetRulesResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Rule); + root.QeditAssetTransfers.GetRulesResponse = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.Rule); } }(this, function(ApiClient, Rule) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetRulesResponse model module. * @module model/GetRulesResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetSyncStatusResponse.js b/js/sdk/src/model/GetSyncStatusResponse.js index b433d7e..326a703 100644 --- a/js/sdk/src/model/GetSyncStatusResponse.js +++ b/js/sdk/src/model/GetSyncStatusResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetSyncStatusResponse = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.GetSyncStatusResponse = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetSyncStatusResponse model module. * @module model/GetSyncStatusResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetTaskStatusRequest.js b/js/sdk/src/model/GetTaskStatusRequest.js index 4182543..94df8a9 100644 --- a/js/sdk/src/model/GetTaskStatusRequest.js +++ b/js/sdk/src/model/GetTaskStatusRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetTaskStatusRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.GetTaskStatusRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetTaskStatusRequest model module. * @module model/GetTaskStatusRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetTaskStatusResponse.js b/js/sdk/src/model/GetTaskStatusResponse.js index 58a529c..703cd9b 100644 --- a/js/sdk/src/model/GetTaskStatusResponse.js +++ b/js/sdk/src/model/GetTaskStatusResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./Result'), require('./TaskData'), require('./TaskState'), require('./TaskType')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetTaskStatusResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Result, root.QedItAssetTransfers.TaskData, root.QedItAssetTransfers.TaskState, root.QedItAssetTransfers.TaskType); + root.QeditAssetTransfers.GetTaskStatusResponse = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.Result, root.QeditAssetTransfers.TaskData, root.QeditAssetTransfers.TaskState, root.QeditAssetTransfers.TaskType); } }(this, function(ApiClient, Result, TaskData, TaskState, TaskType) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetTaskStatusResponse model module. * @module model/GetTaskStatusResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetTasksRequest.js b/js/sdk/src/model/GetTasksRequest.js index b4b7d7d..da5ac53 100644 --- a/js/sdk/src/model/GetTasksRequest.js +++ b/js/sdk/src/model/GetTasksRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Result', 'model/TaskType'], factory); + define(['ApiClient', 'model/OrderEnum', 'model/Result', 'model/TaskType'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Result'), require('./TaskType')); + module.exports = factory(require('../ApiClient'), require('./OrderEnum'), require('./Result'), require('./TaskType')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetTasksRequest = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Result, root.QedItAssetTransfers.TaskType); + root.QeditAssetTransfers.GetTasksRequest = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.OrderEnum, root.QeditAssetTransfers.Result, root.QeditAssetTransfers.TaskType); } -}(this, function(ApiClient, Result, TaskType) { +}(this, function(ApiClient, OrderEnum, Result, TaskType) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetTasksRequest model module. * @module model/GetTasksRequest - * @version 1.6.0 + * @version 1.6.1 */ /** @@ -75,7 +75,7 @@ obj['results'] = ApiClient.convertToType(data['results'], [Result]); } if (data.hasOwnProperty('order')) { - obj['order'] = ApiClient.convertToType(data['order'], 'String'); + obj['order'] = OrderEnum.constructFromObject(data['order']); } } return obj; @@ -102,30 +102,11 @@ */ exports.prototype['results'] = undefined; /** - * Order of tasks to fetch (either ascending or descending); ordering is chronological where the time is set to when the task was created in this Node - * @member {module:model/GetTasksRequest.OrderEnum} order - * @default 'desc' + * @member {module:model/OrderEnum} order */ - exports.prototype['order'] = 'desc'; + exports.prototype['order'] = undefined; - /** - * Allowed values for the order property. - * @enum {String} - * @readonly - */ - exports.OrderEnum = { - /** - * value: "asc" - * @const - */ - "asc": "asc", - /** - * value: "desc" - * @const - */ - "desc": "desc" }; - return exports; })); diff --git a/js/sdk/src/model/GetTasksResponse.js b/js/sdk/src/model/GetTasksResponse.js index ff07d92..a9cdfb8 100644 --- a/js/sdk/src/model/GetTasksResponse.js +++ b/js/sdk/src/model/GetTasksResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./GetTaskStatusResponse')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetTasksResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.GetTaskStatusResponse); + root.QeditAssetTransfers.GetTasksResponse = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.GetTaskStatusResponse); } }(this, function(ApiClient, GetTaskStatusResponse) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetTasksResponse model module. * @module model/GetTasksResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetWalletActivityRequest.js b/js/sdk/src/model/GetWalletActivityRequest.js index 62e99a7..40e37e9 100644 --- a/js/sdk/src/model/GetWalletActivityRequest.js +++ b/js/sdk/src/model/GetWalletActivityRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetWalletActivityRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.GetWalletActivityRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetWalletActivityRequest model module. * @module model/GetWalletActivityRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetWalletActivityResponse.js b/js/sdk/src/model/GetWalletActivityResponse.js index 780b154..6a2f130 100644 --- a/js/sdk/src/model/GetWalletActivityResponse.js +++ b/js/sdk/src/model/GetWalletActivityResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./AnalyticWalletTx')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetWalletActivityResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticWalletTx); + root.QeditAssetTransfers.GetWalletActivityResponse = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.AnalyticWalletTx); } }(this, function(ApiClient, AnalyticWalletTx) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetWalletActivityResponse model module. * @module model/GetWalletActivityResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetWalletBalanceRequest.js b/js/sdk/src/model/GetWalletBalanceRequest.js index abb4e31..5e0ee47 100644 --- a/js/sdk/src/model/GetWalletBalanceRequest.js +++ b/js/sdk/src/model/GetWalletBalanceRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetWalletBalanceRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.GetWalletBalanceRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetWalletBalanceRequest model module. * @module model/GetWalletBalanceRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/GetWalletBalanceResponse.js b/js/sdk/src/model/GetWalletBalanceResponse.js index 9b003c2..7a6ed08 100644 --- a/js/sdk/src/model/GetWalletBalanceResponse.js +++ b/js/sdk/src/model/GetWalletBalanceResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./BalanceForAsset')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.GetWalletBalanceResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.BalanceForAsset); + root.QeditAssetTransfers.GetWalletBalanceResponse = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.BalanceForAsset); } }(this, function(ApiClient, BalanceForAsset) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetWalletBalanceResponse model module. * @module model/GetWalletBalanceResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/HealthcheckResponse.js b/js/sdk/src/model/HealthcheckResponse.js index d654ff1..c22364b 100644 --- a/js/sdk/src/model/HealthcheckResponse.js +++ b/js/sdk/src/model/HealthcheckResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient'), require('./HealthcheckResponseItem')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.HealthcheckResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.HealthcheckResponseItem); + root.QeditAssetTransfers.HealthcheckResponse = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.HealthcheckResponseItem); } }(this, function(ApiClient, HealthcheckResponseItem) { 'use strict'; @@ -35,7 +35,7 @@ /** * The HealthcheckResponse model module. * @module model/HealthcheckResponse - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/HealthcheckResponseItem.js b/js/sdk/src/model/HealthcheckResponseItem.js index 7545826..7c656f8 100644 --- a/js/sdk/src/model/HealthcheckResponseItem.js +++ b/js/sdk/src/model/HealthcheckResponseItem.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.HealthcheckResponseItem = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.HealthcheckResponseItem = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The HealthcheckResponseItem model module. * @module model/HealthcheckResponseItem - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/ImportAuditorAccessWalletRequest.js b/js/sdk/src/model/ImportAuditorAccessWalletRequest.js index fcff50f..a46d902 100644 --- a/js/sdk/src/model/ImportAuditorAccessWalletRequest.js +++ b/js/sdk/src/model/ImportAuditorAccessWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.ImportAuditorAccessWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.ImportAuditorAccessWalletRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The ImportAuditorAccessWalletRequest model module. * @module model/ImportAuditorAccessWalletRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/ImportWalletRequest.js b/js/sdk/src/model/ImportWalletRequest.js index b0d838b..dedfcb4 100644 --- a/js/sdk/src/model/ImportWalletRequest.js +++ b/js/sdk/src/model/ImportWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.ImportWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.ImportWalletRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The ImportWalletRequest model module. * @module model/ImportWalletRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/IssueAssetRequest.js b/js/sdk/src/model/IssueAssetRequest.js index 77d2a57..8d2b947 100644 --- a/js/sdk/src/model/IssueAssetRequest.js +++ b/js/sdk/src/model/IssueAssetRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.IssueAssetRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.IssueAssetRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The IssueAssetRequest model module. * @module model/IssueAssetRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/Notification.js b/js/sdk/src/model/Notification.js new file mode 100644 index 0000000..4cccade --- /dev/null +++ b/js/sdk/src/model/Notification.js @@ -0,0 +1,126 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/NotificationType'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./NotificationType')); + } else { + // Browser globals (root is window) + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; + } + root.QeditAssetTransfers.Notification = factory(root.QeditAssetTransfers.ApiClient, root.QeditAssetTransfers.NotificationType); + } +}(this, function(ApiClient, NotificationType) { + 'use strict'; + + + + /** + * The Notification model module. + * @module model/Notification + * @version 1.6.1 + */ + + /** + * Constructs a new Notification. + * A notification including some metadata and a content field whose type depends on the type of notification. + * @alias module:model/Notification + * @class + * @param id {Number} The unique identifier of the notification. Can be used for pagination purposes. + * @param createdAt {Date} Timestamp the notification was created at, in RFC-3339 format. + * @param taskId {String} The ID of the task the notification relates to. May be empty in cases there is no such specific task. + * @param notificationType {module:model/NotificationType} + */ + var exports = function(id, createdAt, taskId, notificationType) { + var _this = this; + + _this['id'] = id; + _this['created_at'] = createdAt; + _this['task_id'] = taskId; + _this['notification_type'] = notificationType; + }; + + /** + * Constructs a Notification from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Notification} obj Optional instance to populate. + * @return {module:model/Notification} The populated Notification instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('task_id')) { + obj['task_id'] = ApiClient.convertToType(data['task_id'], 'String'); + } + if (data.hasOwnProperty('notification_type')) { + obj['notification_type'] = NotificationType.constructFromObject(data['notification_type']); + } + if (data.hasOwnProperty('content')) { + obj['content'] = ApiClient.convertToType(data['content'], Object); + } + } + return obj; + } + + /** + * The unique identifier of the notification. Can be used for pagination purposes. + * @member {Number} id + */ + exports.prototype['id'] = undefined; + /** + * Timestamp the notification was created at, in RFC-3339 format. + * @member {Date} created_at + */ + exports.prototype['created_at'] = undefined; + /** + * The ID of the wallet the notification relates to. May be null in cases there is no such specific wallet. + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * The ID of the task the notification relates to. May be empty in cases there is no such specific task. + * @member {String} task_id + */ + exports.prototype['task_id'] = undefined; + /** + * @member {module:model/NotificationType} notification_type + */ + exports.prototype['notification_type'] = undefined; + /** + * @member {Object} content + */ + exports.prototype['content'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/NotificationType.js b/js/sdk/src/model/NotificationType.js new file mode 100644 index 0000000..edc5a1b --- /dev/null +++ b/js/sdk/src/model/NotificationType.js @@ -0,0 +1,63 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; + } + root.QeditAssetTransfers.NotificationType = factory(root.QeditAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + /** + * Enum class NotificationType. + * @enum {} + * @readonly + */ + var exports = { + /** + * value: "task_completed_successfully" + * @const + */ + "completed_successfully": "task_completed_successfully", + /** + * value: "task_failed" + * @const + */ + "failed": "task_failed" }; + + /** + * Returns a NotificationType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/NotificationType} The enum NotificationType value. + */ + exports.constructFromObject = function(object) { + return object; + } + + return exports; +})); + + diff --git a/js/sdk/src/model/OrderEnum.js b/js/sdk/src/model/OrderEnum.js new file mode 100644 index 0000000..b52a3ce --- /dev/null +++ b/js/sdk/src/model/OrderEnum.js @@ -0,0 +1,63 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; + } + root.QeditAssetTransfers.OrderEnum = factory(root.QeditAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + /** + * Enum class OrderEnum. + * @enum {} + * @readonly + */ + var exports = { + /** + * value: "asc" + * @const + */ + "asc": "asc", + /** + * value: "desc" + * @const + */ + "desc": "desc" }; + + /** + * Returns a OrderEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/OrderEnum} The enum OrderEnum value. + */ + exports.constructFromObject = function(object) { + return object; + } + + return exports; +})); + + diff --git a/js/sdk/src/model/Result.js b/js/sdk/src/model/Result.js index db4b832..a4c0cb7 100644 --- a/js/sdk/src/model/Result.js +++ b/js/sdk/src/model/Result.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.Result = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.Result = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; diff --git a/js/sdk/src/model/Rule.js b/js/sdk/src/model/Rule.js index 95d30d8..6f2702e 100644 --- a/js/sdk/src/model/Rule.js +++ b/js/sdk/src/model/Rule.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.Rule = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.Rule = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The Rule model module. * @module model/Rule - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/TaskActionRequest.js b/js/sdk/src/model/TaskActionRequest.js index b634b0c..db937ff 100644 --- a/js/sdk/src/model/TaskActionRequest.js +++ b/js/sdk/src/model/TaskActionRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.TaskActionRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.TaskActionRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The TaskActionRequest model module. * @module model/TaskActionRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/TaskData.js b/js/sdk/src/model/TaskData.js index b86e54a..0683146 100644 --- a/js/sdk/src/model/TaskData.js +++ b/js/sdk/src/model/TaskData.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.TaskData = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.TaskData = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,12 +35,12 @@ /** * The TaskData model module. * @module model/TaskData - * @version 1.6.0 + * @version 1.6.1 */ /** * Constructs a new TaskData. - * an object that includes additional request details + * An object that includes additional request details * @alias module:model/TaskData * @class */ @@ -59,6 +59,9 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); + if (data.hasOwnProperty('sender_public_key')) { + obj['sender_public_key'] = ApiClient.convertToType(data['sender_public_key'], 'String'); + } if (data.hasOwnProperty('require_confirmation_from')) { obj['require_confirmation_from'] = ApiClient.convertToType(data['require_confirmation_from'], 'String'); } @@ -78,6 +81,11 @@ return obj; } + /** + * The public key of the sender of the confirmation request + * @member {String} sender_public_key + */ + exports.prototype['sender_public_key'] = undefined; /** * The public key for the confirmation request receiver * @member {String} require_confirmation_from diff --git a/js/sdk/src/model/TaskState.js b/js/sdk/src/model/TaskState.js index 6139a10..e5f5896 100644 --- a/js/sdk/src/model/TaskState.js +++ b/js/sdk/src/model/TaskState.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.TaskState = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.TaskState = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; diff --git a/js/sdk/src/model/TaskType.js b/js/sdk/src/model/TaskType.js index cbd94e2..b5cdf86 100644 --- a/js/sdk/src/model/TaskType.js +++ b/js/sdk/src/model/TaskType.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.TaskType = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.TaskType = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; diff --git a/js/sdk/src/model/TransferAssetRequest.js b/js/sdk/src/model/TransferAssetRequest.js index c0c0ea1..4bd5607 100644 --- a/js/sdk/src/model/TransferAssetRequest.js +++ b/js/sdk/src/model/TransferAssetRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.TransferAssetRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.TransferAssetRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The TransferAssetRequest model module. * @module model/TransferAssetRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/src/model/UnlockWalletRequest.js b/js/sdk/src/model/UnlockWalletRequest.js index 486fc19..d0d7cb4 100644 --- a/js/sdk/src/model/UnlockWalletRequest.js +++ b/js/sdk/src/model/UnlockWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.6.1 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -22,10 +22,10 @@ module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) - if (!root.QedItAssetTransfers) { - root.QedItAssetTransfers = {}; + if (!root.QeditAssetTransfers) { + root.QeditAssetTransfers = {}; } - root.QedItAssetTransfers.UnlockWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + root.QeditAssetTransfers.UnlockWalletRequest = factory(root.QeditAssetTransfers.ApiClient); } }(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The UnlockWalletRequest model module. * @module model/UnlockWalletRequest - * @version 1.6.0 + * @version 1.6.1 */ /** diff --git a/js/sdk/test/api/AnalyticsApi.spec.js b/js/sdk/test/api/AnalyticsApi.spec.js index 1b61a5d..1d16a0a 100644 --- a/js/sdk/test/api/AnalyticsApi.spec.js +++ b/js/sdk/test/api/AnalyticsApi.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -60,16 +60,6 @@ done(); }); }); - describe('analyticsGetSyncStatusPost', function() { - it('should call analyticsGetSyncStatusPost successfully', function(done) { - //uncomment below and update the code to test analyticsGetSyncStatusPost - //instance.analyticsGetSyncStatusPost(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); }); })); diff --git a/js/sdk/test/api/HealthApi.spec.js b/js/sdk/test/api/HealthApi.spec.js index e6e1864..a7c6a90 100644 --- a/js/sdk/test/api/HealthApi.spec.js +++ b/js/sdk/test/api/HealthApi.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/api/NodeApi.spec.js b/js/sdk/test/api/NodeApi.spec.js index ee7a3f1..0c34fd2 100644 --- a/js/sdk/test/api/NodeApi.spec.js +++ b/js/sdk/test/api/NodeApi.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -50,26 +50,6 @@ } describe('NodeApi', function() { - describe('nodeApproveTaskPost', function() { - it('should call nodeApproveTaskPost successfully', function(done) { - //uncomment below and update the code to test nodeApproveTaskPost - //instance.nodeApproveTaskPost(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('nodeCancelTaskPost', function() { - it('should call nodeCancelTaskPost successfully', function(done) { - //uncomment below and update the code to test nodeCancelTaskPost - //instance.nodeCancelTaskPost(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('nodeDeleteWalletPost', function() { it('should call nodeDeleteWalletPost successfully', function(done) { //uncomment below and update the code to test nodeDeleteWalletPost diff --git a/js/sdk/test/api/WalletApi.spec.js b/js/sdk/test/api/WalletApi.spec.js index 08488ae..e104b17 100644 --- a/js/sdk/test/api/WalletApi.spec.js +++ b/js/sdk/test/api/WalletApi.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticIssueWalletTx.spec.js b/js/sdk/test/model/AnalyticIssueWalletTx.spec.js index 35434b7..c54eb56 100644 --- a/js/sdk/test/model/AnalyticIssueWalletTx.spec.js +++ b/js/sdk/test/model/AnalyticIssueWalletTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -74,6 +74,12 @@ //expect(instance).to.be(); }); + it('should have the property memo (base name: "memo")', function() { + // uncomment below and update the code to test the property memo + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + it('should have the property recipientAddress (base name: "recipient_address")', function() { // uncomment below and update the code to test the property recipientAddress //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); @@ -98,12 +104,6 @@ //expect(instance).to.be(); }); - it('should have the property memo (base name: "memo")', function() { - // uncomment below and update the code to test the property memo - //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); - //expect(instance).to.be(); - }); - }); })); diff --git a/js/sdk/test/model/AnalyticRuleWalletTx.spec.js b/js/sdk/test/model/AnalyticRuleWalletTx.spec.js index 841af8d..04a8b40 100644 --- a/js/sdk/test/model/AnalyticRuleWalletTx.spec.js +++ b/js/sdk/test/model/AnalyticRuleWalletTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticTransaction.spec.js b/js/sdk/test/model/AnalyticTransaction.spec.js index fccb50c..38a7166 100644 --- a/js/sdk/test/model/AnalyticTransaction.spec.js +++ b/js/sdk/test/model/AnalyticTransaction.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticTransferWalletTx.spec.js b/js/sdk/test/model/AnalyticTransferWalletTx.spec.js index 8629f1f..8ef5cb1 100644 --- a/js/sdk/test/model/AnalyticTransferWalletTx.spec.js +++ b/js/sdk/test/model/AnalyticTransferWalletTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -68,6 +68,12 @@ //expect(instance).to.be(); }); + it('should have the property memo (base name: "memo")', function() { + // uncomment below and update the code to test the property memo + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be(); + }); + it('should have the property recipientAddress (base name: "recipient_address")', function() { // uncomment below and update the code to test the property recipientAddress //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); @@ -86,12 +92,6 @@ //expect(instance).to.be(); }); - it('should have the property memo (base name: "memo")', function() { - // uncomment below and update the code to test the property memo - //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); - //expect(instance).to.be(); - }); - }); })); diff --git a/js/sdk/test/model/AnalyticWalletMetadata.spec.js b/js/sdk/test/model/AnalyticWalletMetadata.spec.js index 05a594d..68484ce 100644 --- a/js/sdk/test/model/AnalyticWalletMetadata.spec.js +++ b/js/sdk/test/model/AnalyticWalletMetadata.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticWalletTx.spec.js b/js/sdk/test/model/AnalyticWalletTx.spec.js index c542493..bb499f8 100644 --- a/js/sdk/test/model/AnalyticWalletTx.spec.js +++ b/js/sdk/test/model/AnalyticWalletTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js b/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js index 3a65b68..1c49170 100644 --- a/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js +++ b/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -56,20 +56,20 @@ //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription); }); - it('should have the property casset (base name: "casset")', function() { - // uncomment below and update the code to test the property casset + it('should have the property inputCv (base name: "input_cv")', function() { + // uncomment below and update the code to test the property inputCv //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); //expect(instance).to.be(); }); - it('should have the property namespace (base name: "namespace")', function() { - // uncomment below and update the code to test the property namespace + it('should have the property zkproof (base name: "zkproof")', function() { + // uncomment below and update the code to test the property zkproof //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); //expect(instance).to.be(); }); - it('should have the property zkproof (base name: "zkproof")', function() { - // uncomment below and update the code to test the property zkproof + it('should have the property rule (base name: "rule")', function() { + // uncomment below and update the code to test the property rule //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/AnalyticsIssueTx.spec.js b/js/sdk/test/model/AnalyticsIssueTx.spec.js index 957a4bc..5f8d812 100644 --- a/js/sdk/test/model/AnalyticsIssueTx.spec.js +++ b/js/sdk/test/model/AnalyticsIssueTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsMultiTransferTx.spec.js b/js/sdk/test/model/AnalyticsMultiTransferTx.spec.js index a95ac92..838d8e9 100644 --- a/js/sdk/test/model/AnalyticsMultiTransferTx.spec.js +++ b/js/sdk/test/model/AnalyticsMultiTransferTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsOutput.spec.js b/js/sdk/test/model/AnalyticsOutput.spec.js index 47d7d29..24d5c5e 100644 --- a/js/sdk/test/model/AnalyticsOutput.spec.js +++ b/js/sdk/test/model/AnalyticsOutput.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsOutputDescription.spec.js b/js/sdk/test/model/AnalyticsOutputDescription.spec.js index 8b7f3a1..5793c82 100644 --- a/js/sdk/test/model/AnalyticsOutputDescription.spec.js +++ b/js/sdk/test/model/AnalyticsOutputDescription.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -68,14 +68,14 @@ //expect(instance).to.be(); }); - it('should have the property zkproof (base name: "zkproof")', function() { - // uncomment below and update the code to test the property zkproof + it('should have the property epk (base name: "epk")', function() { + // uncomment below and update the code to test the property epk //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); //expect(instance).to.be(); }); - it('should have the property epk (base name: "epk")', function() { - // uncomment below and update the code to test the property epk + it('should have the property zkproof (base name: "zkproof")', function() { + // uncomment below and update the code to test the property zkproof //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js b/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js index c7119e8..f0ee090 100644 --- a/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js +++ b/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsRule.spec.js b/js/sdk/test/model/AnalyticsRule.spec.js index a151c49..db7602a 100644 --- a/js/sdk/test/model/AnalyticsRule.spec.js +++ b/js/sdk/test/model/AnalyticsRule.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -56,8 +56,14 @@ //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsRule); }); - it('should have the property namespace (base name: "namespace")', function() { - // uncomment below and update the code to test the property namespace + it('should have the property minId (base name: "min_id")', function() { + // uncomment below and update the code to test the property minId + //var instance = new QedItAssetTransfers.AnalyticsRule(); + //expect(instance).to.be(); + }); + + it('should have the property maxId (base name: "max_id")', function() { + // uncomment below and update the code to test the property maxId //var instance = new QedItAssetTransfers.AnalyticsRule(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/AnalyticsRuleDefinition.spec.js b/js/sdk/test/model/AnalyticsRuleDefinition.spec.js index 28dd69a..8280b87 100644 --- a/js/sdk/test/model/AnalyticsRuleDefinition.spec.js +++ b/js/sdk/test/model/AnalyticsRuleDefinition.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -62,20 +62,26 @@ //expect(instance).to.be(); }); + it('should have the property canIssueConfidentially (base name: "can_issue_confidentially")', function() { + // uncomment below and update the code to test the property canIssueConfidentially + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be(); + }); + it('should have the property isAdmin (base name: "is_admin")', function() { // uncomment below and update the code to test the property isAdmin //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); //expect(instance).to.be(); }); - it('should have the property namespace (base name: "namespace")', function() { - // uncomment below and update the code to test the property namespace + it('should have the property canIssueAssetIdFirst (base name: "can_issue_asset_id_first")', function() { + // uncomment below and update the code to test the property canIssueAssetIdFirst //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); //expect(instance).to.be(); }); - it('should have the property canIssueConfidentially (base name: "can_issue_confidentially")', function() { - // uncomment below and update the code to test the property canIssueConfidentially + it('should have the property canIssueAssetIdLast (base name: "can_issue_asset_id_last")', function() { + // uncomment below and update the code to test the property canIssueAssetIdLast //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/AnalyticsRuleTx.spec.js b/js/sdk/test/model/AnalyticsRuleTx.spec.js index b439340..561bc10 100644 --- a/js/sdk/test/model/AnalyticsRuleTx.spec.js +++ b/js/sdk/test/model/AnalyticsRuleTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js b/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js index dd13706..07792bf 100644 --- a/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js +++ b/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -62,20 +62,26 @@ //expect(instance).to.be(); }); + it('should have the property canIssueConfidentially (base name: "can_issue_confidentially")', function() { + // uncomment below and update the code to test the property canIssueConfidentially + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + it('should have the property isAdmin (base name: "is_admin")', function() { // uncomment below and update the code to test the property isAdmin //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); //expect(instance).to.be(); }); - it('should have the property namespace (base name: "namespace")', function() { - // uncomment below and update the code to test the property namespace + it('should have the property canIssueAssetIdFirst (base name: "can_issue_asset_id_first")', function() { + // uncomment below and update the code to test the property canIssueAssetIdFirst //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); //expect(instance).to.be(); }); - it('should have the property canIssueConfidentially (base name: "can_issue_confidentially")', function() { - // uncomment below and update the code to test the property canIssueConfidentially + it('should have the property canIssueAssetIdLast (base name: "can_issue_asset_id_last")', function() { + // uncomment below and update the code to test the property canIssueAssetIdLast //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/AnalyticsSpendDescription.spec.js b/js/sdk/test/model/AnalyticsSpendDescription.spec.js index 14f63f0..17d67c1 100644 --- a/js/sdk/test/model/AnalyticsSpendDescription.spec.js +++ b/js/sdk/test/model/AnalyticsSpendDescription.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsTransferTx.spec.js b/js/sdk/test/model/AnalyticsTransferTx.spec.js index e8da059..eccf0c5 100644 --- a/js/sdk/test/model/AnalyticsTransferTx.spec.js +++ b/js/sdk/test/model/AnalyticsTransferTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -56,6 +56,12 @@ //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsTransferTx); }); + it('should have the property assetConverterDescriptions (base name: "asset_converter_descriptions")', function() { + // uncomment below and update the code to test the property assetConverterDescriptions + //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); + //expect(instance).to.be(); + }); + it('should have the property spends (base name: "spends")', function() { // uncomment below and update the code to test the property spends //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); @@ -74,14 +80,14 @@ //expect(instance).to.be(); }); - it('should have the property spendAuthSig (base name: "spend_auth_sig")', function() { - // uncomment below and update the code to test the property spendAuthSig + it('should have the property bindingSig (base name: "binding_sig")', function() { + // uncomment below and update the code to test the property bindingSig //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); //expect(instance).to.be(); }); - it('should have the property bindingSig (base name: "binding_sig")', function() { - // uncomment below and update the code to test the property bindingSig + it('should have the property spendAuthSig (base name: "spend_auth_sig")', function() { + // uncomment below and update the code to test the property spendAuthSig //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/AnalyticsTxMetadata.spec.js b/js/sdk/test/model/AnalyticsTxMetadata.spec.js index aff2c41..687b8a0 100644 --- a/js/sdk/test/model/AnalyticsTxMetadata.spec.js +++ b/js/sdk/test/model/AnalyticsTxMetadata.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -68,12 +68,6 @@ //expect(instance).to.be(); }); - it('should have the property blockHeight (base name: "block_height")', function() { - // uncomment below and update the code to test the property blockHeight - //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); - //expect(instance).to.be(); - }); - it('should have the property blockHash (base name: "block_hash")', function() { // uncomment below and update the code to test the property blockHash //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); @@ -92,6 +86,12 @@ //expect(instance).to.be(); }); + it('should have the property blockHeight (base name: "block_height")', function() { + // uncomment below and update the code to test the property blockHeight + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + }); })); diff --git a/js/sdk/test/model/AsyncTaskCreatedResponse.spec.js b/js/sdk/test/model/AsyncTaskCreatedResponse.spec.js index e64b7ef..fdcc8c9 100644 --- a/js/sdk/test/model/AsyncTaskCreatedResponse.spec.js +++ b/js/sdk/test/model/AsyncTaskCreatedResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/BalanceForAsset.spec.js b/js/sdk/test/model/BalanceForAsset.spec.js index 02e8c40..833fcbe 100644 --- a/js/sdk/test/model/BalanceForAsset.spec.js +++ b/js/sdk/test/model/BalanceForAsset.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/CreateRuleRequest.spec.js b/js/sdk/test/model/CreateRuleRequest.spec.js index b3c4e84..91ffe50 100644 --- a/js/sdk/test/model/CreateRuleRequest.spec.js +++ b/js/sdk/test/model/CreateRuleRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/DeleteRuleRequest.spec.js b/js/sdk/test/model/DeleteRuleRequest.spec.js index 7e582b1..16a99a6 100644 --- a/js/sdk/test/model/DeleteRuleRequest.spec.js +++ b/js/sdk/test/model/DeleteRuleRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/DeleteWalletRequest.spec.js b/js/sdk/test/model/DeleteWalletRequest.spec.js index 6804f0b..af015ec 100644 --- a/js/sdk/test/model/DeleteWalletRequest.spec.js +++ b/js/sdk/test/model/DeleteWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/EmptyContent.spec.js b/js/sdk/test/model/EmptyContent.spec.js new file mode 100644 index 0000000..432197d --- /dev/null +++ b/js/sdk/test/model/EmptyContent.spec.js @@ -0,0 +1,61 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QeditAssetTransfers); + } +}(this, function(expect, QeditAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QeditAssetTransfers.EmptyContent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('EmptyContent', function() { + it('should create an instance of EmptyContent', function() { + // uncomment below and update the code to test EmptyContent + //var instance = new QeditAssetTransfers.EmptyContent(); + //expect(instance).to.be.a(QeditAssetTransfers.EmptyContent); + }); + + }); + +})); diff --git a/js/sdk/test/model/ErrorResponse.spec.js b/js/sdk/test/model/ErrorResponse.spec.js index 74714f8..7dc2e38 100644 --- a/js/sdk/test/model/ErrorResponse.spec.js +++ b/js/sdk/test/model/ErrorResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ExportAuditorAccessWalletRequest.spec.js b/js/sdk/test/model/ExportAuditorAccessWalletRequest.spec.js index 0412c23..0cd6692 100644 --- a/js/sdk/test/model/ExportAuditorAccessWalletRequest.spec.js +++ b/js/sdk/test/model/ExportAuditorAccessWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ExportAuditorAccessWalletResponse.spec.js b/js/sdk/test/model/ExportAuditorAccessWalletResponse.spec.js index d5f4c66..24b324c 100644 --- a/js/sdk/test/model/ExportAuditorAccessWalletResponse.spec.js +++ b/js/sdk/test/model/ExportAuditorAccessWalletResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ExportWalletRequest.spec.js b/js/sdk/test/model/ExportWalletRequest.spec.js index 23193ff..70514f3 100644 --- a/js/sdk/test/model/ExportWalletRequest.spec.js +++ b/js/sdk/test/model/ExportWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ExportWalletResponse.spec.js b/js/sdk/test/model/ExportWalletResponse.spec.js index d574500..ea80d8e 100644 --- a/js/sdk/test/model/ExportWalletResponse.spec.js +++ b/js/sdk/test/model/ExportWalletResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GenerateWalletRequest.spec.js b/js/sdk/test/model/GenerateWalletRequest.spec.js index 194b08a..d4b240e 100644 --- a/js/sdk/test/model/GenerateWalletRequest.spec.js +++ b/js/sdk/test/model/GenerateWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetAllWalletsResponse.spec.js b/js/sdk/test/model/GetAllWalletsResponse.spec.js index a7afc8e..d0fe3a3 100644 --- a/js/sdk/test/model/GetAllWalletsResponse.spec.js +++ b/js/sdk/test/model/GetAllWalletsResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetNetworkActivityRequest.spec.js b/js/sdk/test/model/GetNetworkActivityRequest.spec.js index fe65a2c..535f90e 100644 --- a/js/sdk/test/model/GetNetworkActivityRequest.spec.js +++ b/js/sdk/test/model/GetNetworkActivityRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -68,12 +68,6 @@ //expect(instance).to.be(); }); - it('should have the property txHashes (base name: "tx_hashes")', function() { - // uncomment below and update the code to test the property txHashes - //var instance = new QedItAssetTransfers.GetNetworkActivityRequest(); - //expect(instance).to.be(); - }); - }); })); diff --git a/js/sdk/test/model/GetNetworkActivityResponse.spec.js b/js/sdk/test/model/GetNetworkActivityResponse.spec.js index 8210dd7..a7cf0aa 100644 --- a/js/sdk/test/model/GetNetworkActivityResponse.spec.js +++ b/js/sdk/test/model/GetNetworkActivityResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetNewAddressRequest.spec.js b/js/sdk/test/model/GetNewAddressRequest.spec.js index c9989f9..f99d28a 100644 --- a/js/sdk/test/model/GetNewAddressRequest.spec.js +++ b/js/sdk/test/model/GetNewAddressRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetNewAddressResponse.spec.js b/js/sdk/test/model/GetNewAddressResponse.spec.js index 45dfbf0..35dce79 100644 --- a/js/sdk/test/model/GetNewAddressResponse.spec.js +++ b/js/sdk/test/model/GetNewAddressResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetNotificationsRequest.spec.js b/js/sdk/test/model/GetNotificationsRequest.spec.js new file mode 100644 index 0000000..1579467 --- /dev/null +++ b/js/sdk/test/model/GetNotificationsRequest.spec.js @@ -0,0 +1,97 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QeditAssetTransfers); + } +}(this, function(expect, QeditAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QeditAssetTransfers.GetNotificationsRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetNotificationsRequest', function() { + it('should create an instance of GetNotificationsRequest', function() { + // uncomment below and update the code to test GetNotificationsRequest + //var instance = new QeditAssetTransfers.GetNotificationsRequest(); + //expect(instance).to.be.a(QeditAssetTransfers.GetNotificationsRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QeditAssetTransfers.GetNotificationsRequest(); + //expect(instance).to.be(); + }); + + it('should have the property types (base name: "types")', function() { + // uncomment below and update the code to test the property types + //var instance = new QeditAssetTransfers.GetNotificationsRequest(); + //expect(instance).to.be(); + }); + + it('should have the property startingWithTime (base name: "starting_with_time")', function() { + // uncomment below and update the code to test the property startingWithTime + //var instance = new QeditAssetTransfers.GetNotificationsRequest(); + //expect(instance).to.be(); + }); + + it('should have the property afterId (base name: "after_id")', function() { + // uncomment below and update the code to test the property afterId + //var instance = new QeditAssetTransfers.GetNotificationsRequest(); + //expect(instance).to.be(); + }); + + it('should have the property order (base name: "order")', function() { + // uncomment below and update the code to test the property order + //var instance = new QeditAssetTransfers.GetNotificationsRequest(); + //expect(instance).to.be(); + }); + + it('should have the property maxResults (base name: "max_results")', function() { + // uncomment below and update the code to test the property maxResults + //var instance = new QeditAssetTransfers.GetNotificationsRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/GetNotificationsResponse.spec.js b/js/sdk/test/model/GetNotificationsResponse.spec.js new file mode 100644 index 0000000..f4715a3 --- /dev/null +++ b/js/sdk/test/model/GetNotificationsResponse.spec.js @@ -0,0 +1,67 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QeditAssetTransfers); + } +}(this, function(expect, QeditAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QeditAssetTransfers.GetNotificationsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetNotificationsResponse', function() { + it('should create an instance of GetNotificationsResponse', function() { + // uncomment below and update the code to test GetNotificationsResponse + //var instance = new QeditAssetTransfers.GetNotificationsResponse(); + //expect(instance).to.be.a(QeditAssetTransfers.GetNotificationsResponse); + }); + + it('should have the property notifications (base name: "notifications")', function() { + // uncomment below and update the code to test the property notifications + //var instance = new QeditAssetTransfers.GetNotificationsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/GetPublicKeyRequest.spec.js b/js/sdk/test/model/GetPublicKeyRequest.spec.js index 322589e..c703323 100644 --- a/js/sdk/test/model/GetPublicKeyRequest.spec.js +++ b/js/sdk/test/model/GetPublicKeyRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetPublicKeyResponse.spec.js b/js/sdk/test/model/GetPublicKeyResponse.spec.js index 527595e..944b0ac 100644 --- a/js/sdk/test/model/GetPublicKeyResponse.spec.js +++ b/js/sdk/test/model/GetPublicKeyResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetRulesResponse.spec.js b/js/sdk/test/model/GetRulesResponse.spec.js index fc86786..5d24c46 100644 --- a/js/sdk/test/model/GetRulesResponse.spec.js +++ b/js/sdk/test/model/GetRulesResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetTaskStatusRequest.spec.js b/js/sdk/test/model/GetTaskStatusRequest.spec.js index cae626c..992f00a 100644 --- a/js/sdk/test/model/GetTaskStatusRequest.spec.js +++ b/js/sdk/test/model/GetTaskStatusRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetTaskStatusResponse.spec.js b/js/sdk/test/model/GetTaskStatusResponse.spec.js index ee2a7d9..60a9fe0 100644 --- a/js/sdk/test/model/GetTaskStatusResponse.spec.js +++ b/js/sdk/test/model/GetTaskStatusResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetTasksRequest.spec.js b/js/sdk/test/model/GetTasksRequest.spec.js index da53e30..7258de0 100644 --- a/js/sdk/test/model/GetTasksRequest.spec.js +++ b/js/sdk/test/model/GetTasksRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetTasksResponse.spec.js b/js/sdk/test/model/GetTasksResponse.spec.js index a9d15fe..cad20a7 100644 --- a/js/sdk/test/model/GetTasksResponse.spec.js +++ b/js/sdk/test/model/GetTasksResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetWalletActivityRequest.spec.js b/js/sdk/test/model/GetWalletActivityRequest.spec.js index a1eebed..d7f9359 100644 --- a/js/sdk/test/model/GetWalletActivityRequest.spec.js +++ b/js/sdk/test/model/GetWalletActivityRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetWalletActivityResponse.spec.js b/js/sdk/test/model/GetWalletActivityResponse.spec.js index 6029fb4..abfd05f 100644 --- a/js/sdk/test/model/GetWalletActivityResponse.spec.js +++ b/js/sdk/test/model/GetWalletActivityResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetWalletBalanceRequest.spec.js b/js/sdk/test/model/GetWalletBalanceRequest.spec.js index a6612a0..09775f9 100644 --- a/js/sdk/test/model/GetWalletBalanceRequest.spec.js +++ b/js/sdk/test/model/GetWalletBalanceRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetWalletBalanceResponse.spec.js b/js/sdk/test/model/GetWalletBalanceResponse.spec.js index c2c8ebd..80389d0 100644 --- a/js/sdk/test/model/GetWalletBalanceResponse.spec.js +++ b/js/sdk/test/model/GetWalletBalanceResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/HealthcheckResponse.spec.js b/js/sdk/test/model/HealthcheckResponse.spec.js index e86fe24..30fd182 100644 --- a/js/sdk/test/model/HealthcheckResponse.spec.js +++ b/js/sdk/test/model/HealthcheckResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/HealthcheckResponseItem.spec.js b/js/sdk/test/model/HealthcheckResponseItem.spec.js index 0bcaf7f..46b9f55 100644 --- a/js/sdk/test/model/HealthcheckResponseItem.spec.js +++ b/js/sdk/test/model/HealthcheckResponseItem.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ImportAuditorAccessWalletRequest.spec.js b/js/sdk/test/model/ImportAuditorAccessWalletRequest.spec.js index 440def7..3da03c1 100644 --- a/js/sdk/test/model/ImportAuditorAccessWalletRequest.spec.js +++ b/js/sdk/test/model/ImportAuditorAccessWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ImportWalletRequest.spec.js b/js/sdk/test/model/ImportWalletRequest.spec.js index 644a44f..67a1511 100644 --- a/js/sdk/test/model/ImportWalletRequest.spec.js +++ b/js/sdk/test/model/ImportWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/IssueAssetRequest.spec.js b/js/sdk/test/model/IssueAssetRequest.spec.js index 3028159..a75fcd1 100644 --- a/js/sdk/test/model/IssueAssetRequest.spec.js +++ b/js/sdk/test/model/IssueAssetRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -74,14 +74,14 @@ //expect(instance).to.be(); }); - it('should have the property assetId (base name: "asset_id")', function() { - // uncomment below and update the code to test the property assetId + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount //var instance = new QedItAssetTransfers.IssueAssetRequest(); //expect(instance).to.be(); }); - it('should have the property amount (base name: "amount")', function() { - // uncomment below and update the code to test the property amount + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId //var instance = new QedItAssetTransfers.IssueAssetRequest(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/Notification.spec.js b/js/sdk/test/model/Notification.spec.js new file mode 100644 index 0000000..c802050 --- /dev/null +++ b/js/sdk/test/model/Notification.spec.js @@ -0,0 +1,97 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QeditAssetTransfers); + } +}(this, function(expect, QeditAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QeditAssetTransfers.Notification(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Notification', function() { + it('should create an instance of Notification', function() { + // uncomment below and update the code to test Notification + //var instance = new QeditAssetTransfers.Notification(); + //expect(instance).to.be.a(QeditAssetTransfers.Notification); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new QeditAssetTransfers.Notification(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new QeditAssetTransfers.Notification(); + //expect(instance).to.be(); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QeditAssetTransfers.Notification(); + //expect(instance).to.be(); + }); + + it('should have the property taskId (base name: "task_id")', function() { + // uncomment below and update the code to test the property taskId + //var instance = new QeditAssetTransfers.Notification(); + //expect(instance).to.be(); + }); + + it('should have the property notificationType (base name: "notification_type")', function() { + // uncomment below and update the code to test the property notificationType + //var instance = new QeditAssetTransfers.Notification(); + //expect(instance).to.be(); + }); + + it('should have the property content (base name: "content")', function() { + // uncomment below and update the code to test the property content + //var instance = new QeditAssetTransfers.Notification(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/NotificationType.spec.js b/js/sdk/test/model/NotificationType.spec.js new file mode 100644 index 0000000..9319728 --- /dev/null +++ b/js/sdk/test/model/NotificationType.spec.js @@ -0,0 +1,60 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QeditAssetTransfers); + } +}(this, function(expect, QeditAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NotificationType', function() { + it('should create an instance of NotificationType', function() { + // uncomment below and update the code to test NotificationType + //var instance = new QeditAssetTransfers.NotificationType(); + //expect(instance).to.be.a(QeditAssetTransfers.NotificationType); + }); + + }); + +})); diff --git a/js/sdk/test/model/OrderEnum.spec.js b/js/sdk/test/model/OrderEnum.spec.js new file mode 100644 index 0000000..b783502 --- /dev/null +++ b/js/sdk/test/model/OrderEnum.spec.js @@ -0,0 +1,60 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.1 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QeditAssetTransfers); + } +}(this, function(expect, QeditAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderEnum', function() { + it('should create an instance of OrderEnum', function() { + // uncomment below and update the code to test OrderEnum + //var instance = new QeditAssetTransfers.OrderEnum(); + //expect(instance).to.be.a(QeditAssetTransfers.OrderEnum); + }); + + }); + +})); diff --git a/js/sdk/test/model/Rule.spec.js b/js/sdk/test/model/Rule.spec.js index 05d822d..88161e7 100644 --- a/js/sdk/test/model/Rule.spec.js +++ b/js/sdk/test/model/Rule.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -62,20 +62,26 @@ //expect(instance).to.be(); }); - it('should have the property isAdmin (base name: "is_admin")', function() { - // uncomment below and update the code to test the property isAdmin + it('should have the property canIssueConfidentially (base name: "can_issue_confidentially")', function() { + // uncomment below and update the code to test the property canIssueConfidentially //var instance = new QedItAssetTransfers.Rule(); //expect(instance).to.be(); }); - it('should have the property namespace (base name: "namespace")', function() { - // uncomment below and update the code to test the property namespace + it('should have the property canIssueAssetIdFirst (base name: "can_issue_asset_id_first")', function() { + // uncomment below and update the code to test the property canIssueAssetIdFirst //var instance = new QedItAssetTransfers.Rule(); //expect(instance).to.be(); }); - it('should have the property canIssueConfidentially (base name: "can_issue_confidentially")', function() { - // uncomment below and update the code to test the property canIssueConfidentially + it('should have the property canIssueAssetIdLast (base name: "can_issue_asset_id_last")', function() { + // uncomment below and update the code to test the property canIssueAssetIdLast + //var instance = new QedItAssetTransfers.Rule(); + //expect(instance).to.be(); + }); + + it('should have the property isAdmin (base name: "is_admin")', function() { + // uncomment below and update the code to test the property isAdmin //var instance = new QedItAssetTransfers.Rule(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/TransferAssetRequest.spec.js b/js/sdk/test/model/TransferAssetRequest.spec.js index 53b5452..a5852a0 100644 --- a/js/sdk/test/model/TransferAssetRequest.spec.js +++ b/js/sdk/test/model/TransferAssetRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -74,26 +74,20 @@ //expect(instance).to.be(); }); - it('should have the property assetId (base name: "asset_id")', function() { - // uncomment below and update the code to test the property assetId - //var instance = new QedItAssetTransfers.TransferAssetRequest(); - //expect(instance).to.be(); - }); - it('should have the property amount (base name: "amount")', function() { // uncomment below and update the code to test the property amount //var instance = new QedItAssetTransfers.TransferAssetRequest(); //expect(instance).to.be(); }); - it('should have the property memo (base name: "memo")', function() { - // uncomment below and update the code to test the property memo + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId //var instance = new QedItAssetTransfers.TransferAssetRequest(); //expect(instance).to.be(); }); - it('should have the property requireConfirmationFrom (base name: "require_confirmation_from")', function() { - // uncomment below and update the code to test the property requireConfirmationFrom + it('should have the property memo (base name: "memo")', function() { + // uncomment below and update the code to test the property memo //var instance = new QedItAssetTransfers.TransferAssetRequest(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/UnlockWalletRequest.spec.js b/js/sdk/test/model/UnlockWalletRequest.spec.js index 86f4de0..5ddbc90 100644 --- a/js/sdk/test/model/UnlockWalletRequest.spec.js +++ b/js/sdk/test/model/UnlockWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.6.0 + * OpenAPI spec version: 1.5.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/spec/asset-swagger.yaml b/spec/asset-swagger.yaml index cfb989a..cac6a8c 100644 --- a/spec/asset-swagger.yaml +++ b/spec/asset-swagger.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - version: 1.6.0 + version: 1.6.1 title: QEDIT - Asset Transfers security: - ApiKeyAuth: [] @@ -824,6 +824,43 @@ paths: application/json: schema: $ref: '#/components/schemas/ErrorResponse' + /node/get_notifications: + post: + tags: + - Node + summary: Get notifications + description: Notifications are the Node's way to report about recent activity and status changes. This endpoint allows polling for these changes and fetching the updates. The notifications can be filtered in multiple ways. + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/GetNotificationsRequest' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/GetNotificationsResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' /health: post: @@ -969,6 +1006,88 @@ components: example: task_id: "5aaa4045-e949-4c44-a7ef-25fb55a1afa6" authorization: PrivacyIsAwesome + + GetNotificationsRequest: + type: object + description: The request body determines which filters to apply to the notifications. All filters are optional, while the maximal number of results defaults to 100 and the order defaults to descending. + properties: + wallet_id: + type: string + description: "Fetch notifications that relate to this wallet ID only" + types: + type: array + items: + $ref: '#/components/schemas/NotificationType' + starting_with_time: + type: string + format: date + description: Fetch notifications reported at this timestamp or later/earlier. Later notifications will be fetched if the order is ascending, and earlier ones if the order is descending. The timestamp is expected to be in RFC-3339 format. + after_id: + type: integer + description: Fetch notifications after this given ID (not including the notification with the given ID). This is meant to facilitate pagination. Later notifications will be fetched if ascending order is selected, and earlier ones if descending order is selected. Warning - do not assume anything about the implementation of after_id; the values of the ID are intended to be copy-pasted from retrieved notifications for pagination. + order: + $ref: '#/components/schemas/OrderEnum' + max_results: + type: integer + description: The maximal number of results to fetch + minimum: 1 + maximum: 1000 + default: 100 + + NotificationType: + type: string + enum: + - task_completed_successfully + - task_failed + description: The type of notification. This also determines the type of the content of the notification. + + OrderEnum: + type: string + enum: + - asc + - desc + default: desc + description: Order of results to fetch (either ascending or descending); ordering is chronological where the time is set to when the retrieved object was created + + GetNotificationsResponse: + type: object + properties: + notifications: + type: array + items: + $ref: '#/components/schemas/Notification' + + Notification: + type: object + description: A notification including some metadata and a content field whose type depends on the type of notification. + properties: + id: + type: integer + description: The unique identifier of the notification. Can be used for pagination purposes. + created_at: + type: string + format: date + description: Timestamp the notification was created at, in RFC-3339 format. + wallet_id: + type: string + description: The ID of the wallet the notification relates to. May be null in cases there is no such specific wallet. + task_id: + type: string + description: The ID of the task the notification relates to. May be empty in cases there is no such specific task. + notification_type: + $ref: '#/components/schemas/NotificationType' + content: + oneOf: + - $ref: '#/components/schemas/EmptyContent' + required: + - id + - created_at + - task_id + - notification_type + + EmptyContent: + type: object + GetWalletActivityRequest: type: object properties: @@ -1041,12 +1160,7 @@ components: description: List of results (statuses) to filter by; fetch in_progress tasks if omitted # default: [in_progress] order: - type: string - default: desc - enum: - - asc - - desc - description: Order of tasks to fetch (either ascending or descending); ordering is chronological where the time is set to when the task was created in this Node + $ref: '#/components/schemas/OrderEnum' required: - start_index - number_of_results @@ -1074,7 +1188,6 @@ components: $ref: '#/components/schemas/Result' state: $ref: '#/components/schemas/TaskState' - description: More granular current state of the Task; list of supported states is not guaranteed to be stable tx_hash: type: string description: The Blockchain-generated hash of the Transaction; populated after the Blockchain Node accepted the Transaction @@ -1085,7 +1198,6 @@ components: $ref: '#/components/schemas/TaskType' data: $ref: '#/components/schemas/TaskData' - description: Container for the Transaction data related to the task; different tasks might have various fields error: type: string description: In case of failure this field reports the reason for the failure @@ -1120,7 +1232,7 @@ components: - tx_submitted_state - failure_state - success_state - description: A fine-grained status of the node's inner state. This field is subject to changes and should not be relied upon during development + description: A fine-grained status of the node's inner state. This field is subject to changes and should not be relied upon during development. TaskType: type: string enum: @@ -1135,8 +1247,11 @@ components: description: Task type TaskData: type: object - description: an object that includes additional request details + description: An object that includes additional request details properties: + sender_public_key: + type: string + description: The public key of the sender of the confirmation request require_confirmation_from: type: string description: The public key for the confirmation request receiver @@ -1836,17 +1951,6 @@ components: zkproof: "000AAAAAAA=" namespace: "bank-a.loans.*" - AnalyticsRule: - type: object - description: The Rule used in the Issuance - properties: - namespace: - $ref: '#/components/schemas/Namespace' - required: - - namespace - example: - namespace: "bank-a.loans.*" - GetWalletActivityResponse: type: object properties: @@ -1962,7 +2066,7 @@ components: type: boolean description: Boolean signifying whether the endpoint is ready for calls example: - version: '1.5.0' + version: '1.7.0' blockchain_connector: error: 'Post http://localhost:8082/connector/get_block: dial tcp 127.0.0.1:8082:connect: connection refused' passing: false