@open-social-protocol/osp-api-index-types
Advanced tools
Comparing version 0.4.3 to 0.4.6
# @open-social-protocol/osp-api-index-types | ||
## 0.4.6 | ||
### Patch Changes | ||
- feat: update version | ||
## 0.4.5 | ||
### Patch Changes | ||
- update | ||
## 0.4.4 | ||
### Patch Changes | ||
- update version | ||
## 0.4.3 | ||
@@ -4,0 +22,0 @@ |
@@ -41,2 +41,3 @@ var __defProp = Object.defineProperty; | ||
QueryTypeEnum: () => QueryTypeEnum, | ||
QuotaBusinessTypeEnum: () => QuotaBusinessTypeEnum, | ||
ReactionKindEnum: () => ReactionKindEnum, | ||
@@ -104,2 +105,4 @@ ReactionRankingEnum: () => ReactionRankingEnum, | ||
CategoryEnum2["QUESTION"] = "QUESTION"; | ||
CategoryEnum2["WISH"] = "WISH"; | ||
CategoryEnum2["QUEST"] = "QUEST"; | ||
return CategoryEnum2; | ||
@@ -207,2 +210,3 @@ })(CategoryEnum || {}); | ||
TransactionStatusEnum2["FAILED"] = "FAILED"; | ||
TransactionStatusEnum2["CANCEL"] = "CANCEL"; | ||
return TransactionStatusEnum2; | ||
@@ -247,2 +251,12 @@ })(TransactionStatusEnum || {}); | ||
})(BindLinkTypeEnum || {}); | ||
var QuotaBusinessTypeEnum = /* @__PURE__ */ ((QuotaBusinessTypeEnum2) => { | ||
QuotaBusinessTypeEnum2["USER_AMOUNT"] = "USER_AMOUNT"; | ||
QuotaBusinessTypeEnum2["USER_TIMES"] = "USER_TIMES"; | ||
QuotaBusinessTypeEnum2["POLICY_AMOUNT"] = "POLICY_AMOUNT"; | ||
QuotaBusinessTypeEnum2["POLICY_TIMES"] = "POLICY_TIMES"; | ||
QuotaBusinessTypeEnum2["POLICY_ADDRESS_COUNT"] = "POLICY_ADDRESS_COUNT"; | ||
QuotaBusinessTypeEnum2["USER_AMOUNT_USD"] = "USER_AMOUNT_USD"; | ||
QuotaBusinessTypeEnum2["POLICY_AMOUNT_USD"] = "POLICY_AMOUNT_USD"; | ||
return QuotaBusinessTypeEnum2; | ||
})(QuotaBusinessTypeEnum || {}); | ||
var AppCategoryEnum = /* @__PURE__ */ ((AppCategoryEnum2) => { | ||
@@ -1544,2 +1558,19 @@ AppCategoryEnum2["PLUGIN"] = "PLUGIN"; | ||
...params | ||
}), | ||
/** | ||
* @description transaction list | ||
* | ||
* @tags transactions | ||
* @name GasTransactions | ||
* @summary gas/transactions | ||
* @request GET:/transactions/list | ||
* @secure | ||
*/ | ||
gasTransactions: (query, params = {}) => this.request({ | ||
path: `/transactions/list`, | ||
method: "GET", | ||
query, | ||
secure: true, | ||
format: "json", | ||
...params | ||
}) | ||
@@ -1613,2 +1644,18 @@ }; | ||
...params | ||
}), | ||
/** | ||
* @description get all chain config | ||
* | ||
* @tags Config | ||
* @name Networks | ||
* @summary /configs/networks | ||
* @request GET:/configs/networks | ||
* @secure | ||
*/ | ||
networks: (params = {}) => this.request({ | ||
path: `/configs/networks`, | ||
method: "GET", | ||
secure: true, | ||
format: "json", | ||
...params | ||
}) | ||
@@ -1831,8 +1878,8 @@ }; | ||
* @name GetContributions | ||
* @summary /contributions/{address} | ||
* @request GET:/contributions/{address} | ||
* @summary /contributions/{app_id}/{address} | ||
* @request GET:/contributions/{app_id}/{address} | ||
* @secure | ||
*/ | ||
getContributions: (address, params = {}) => this.request({ | ||
path: `/contributions/${address}`, | ||
getContributions: (appId, address, params = {}) => this.request({ | ||
path: `/contributions/${appId}/${address}`, | ||
method: "GET", | ||
@@ -1844,2 +1891,21 @@ secure: true, | ||
}; | ||
this.policy = { | ||
/** | ||
* @description get user quota balance | ||
* | ||
* @tags Quota | ||
* @name GetPolicyQuota | ||
* @summary /policy/{policy_id}/quotas | ||
* @request GET:/policy/{policy_id}/quotas | ||
* @secure | ||
*/ | ||
getPolicyQuota: (policyId, query, params = {}) => this.request({ | ||
path: `/policy/${policyId}/quotas`, | ||
method: "GET", | ||
query, | ||
secure: true, | ||
format: "json", | ||
...params | ||
}) | ||
}; | ||
this.apps = { | ||
@@ -1992,2 +2058,3 @@ /** | ||
QueryTypeEnum, | ||
QuotaBusinessTypeEnum, | ||
ReactionKindEnum, | ||
@@ -1994,0 +2061,0 @@ ReactionRankingEnum, |
{ | ||
"name": "@open-social-protocol/osp-api-index-types", | ||
"version": "0.4.3", | ||
"version": "0.4.6", | ||
"description": "open social protocol index server api", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172889
6033