diff --git a/.prettierrc b/.prettierrc index f0eb61e..0a72520 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,5 +2,5 @@ "trailingComma": "es5", "tabWidth": 2, "semi": true, - "singleQuote": false + "singleQuote": true } diff --git a/specification/chats/GetChatRooms/params/filters/withoutDirectTransfers/withoutDirectTransfers.yaml b/specification/chats/GetChatRooms/params/filters/withoutDirectTransfers/withoutDirectTransfers.yaml index dff18b3..5f6938e 100644 --- a/specification/chats/GetChatRooms/params/filters/withoutDirectTransfers/withoutDirectTransfers.yaml +++ b/specification/chats/GetChatRooms/params/filters/withoutDirectTransfers/withoutDirectTransfers.yaml @@ -1,7 +1,8 @@ name: withoutDirectTransfers in: query -description: When set to `true`, excludes type `0` transactions (direct token transfers) from results. Default is `false`. +description: When set to `1`, excludes type `0` transactions (direct token transfers) from results. Default is `0`. schema: - type: boolean - default: false + type: integer + enum: [0, 1] + default: 0 required: false diff --git a/specification/chats/GetChatTransactions/GetChatTransactionsParams.yaml b/specification/chats/GetChatTransactions/GetChatTransactionsParams.yaml index b5be07c..fbad6e9 100644 --- a/specification/chats/GetChatTransactions/GetChatTransactionsParams.yaml +++ b/specification/chats/GetChatTransactions/GetChatTransactionsParams.yaml @@ -48,3 +48,10 @@ # limit - $ref: './params/limit.yaml' + +############################### +## Endpoint specific filters ## +############################### + +# withoutDirectTransfers +- $ref: './params/filters/withoutDirectTransfers/withoutDirectTransfers.yaml' diff --git a/specification/chats/GetChatTransactions/params/filters/withoutDirectTransfers/withoutDirectTransfers.yaml b/specification/chats/GetChatTransactions/params/filters/withoutDirectTransfers/withoutDirectTransfers.yaml new file mode 100644 index 0000000..8ac4a4c --- /dev/null +++ b/specification/chats/GetChatTransactions/params/filters/withoutDirectTransfers/withoutDirectTransfers.yaml @@ -0,0 +1,8 @@ +name: withoutDirectTransfers +in: query +description: When set to `0` (zero), includes type `0` transactions (direct token transfers) to results. Default is `1`. +schema: + type: integer + enum: [0, 1] + default: 1 +required: false