Skip to content

Commit 373a47e

Browse files
Change ids of GetPaymentsQueryParams to strings (#46)
1 parent ecb0ed3 commit 373a47e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

dist/api_types.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -6600,25 +6600,25 @@ export type GetPaymentsQueryParams = {
66006600
* The ID of the user to query payment information about. You can get the user ID by having the user
66016601
* OAuth2 to the Figma REST API.
66026602
*/
6603-
user_id?: number
6603+
user_id?: string
66046604
/**
66056605
* The ID of the Community file to query a user's payment information on. You can get the Community
66066606
* file ID from the file's Community page (look for the number after "file/" in the URL). Provide
66076607
* exactly one of "community_file_id", "plugin_id", or "widget_id".
66086608
*/
6609-
community_file_id?: number
6609+
community_file_id?: string
66106610
/**
66116611
* The ID of the plugin to query a user's payment information on. You can get the plugin ID from the
66126612
* plugin's manifest, or from the plugin's Community page (look for the number after "plugin/" in
66136613
* the URL). Provide exactly one of "community_file_id", "plugin_id", or "widget_id".
66146614
*/
6615-
plugin_id?: number
6615+
plugin_id?: string
66166616
/**
66176617
* The ID of the widget to query a user's payment information on. You can get the widget ID from the
66186618
* widget's manifest, or from the widget's Community page (look for the number after "widget/" in
66196619
* the URL). Provide exactly one of "community_file_id", "plugin_id", or "widget_id".
66206620
*/
6621-
widget_id?: number
6621+
widget_id?: string
66226622
}
66236623

66246624
/**

openapi/openapi.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.1.0
22
info:
33
title: Figma API
4-
version: 0.27.0
4+
version: 0.28.0
55
description: |-
66
This is the OpenAPI specification for the [Figma REST API](https://www.figma.com/developers/api).
77
@@ -1668,15 +1668,15 @@ paths:
16681668
description: The ID of the user to query payment information about. You can get
16691669
the user ID by having the user OAuth2 to the Figma REST API.
16701670
schema:
1671-
type: number
1671+
type: string
16721672
- name: community_file_id
16731673
in: query
16741674
description: The ID of the Community file to query a user's payment information
16751675
on. You can get the Community file ID from the file's Community page
16761676
(look for the number after "file/" in the URL). Provide exactly one
16771677
of "community_file_id", "plugin_id", or "widget_id".
16781678
schema:
1679-
type: number
1679+
type: string
16801680
- name: plugin_id
16811681
in: query
16821682
description: The ID of the plugin to query a user's payment information on. You
@@ -1685,7 +1685,7 @@ paths:
16851685
URL). Provide exactly one of "community_file_id", "plugin_id", or
16861686
"widget_id".
16871687
schema:
1688-
type: number
1688+
type: string
16891689
- name: widget_id
16901690
in: query
16911691
description: The ID of the widget to query a user's payment information on. You
@@ -1694,7 +1694,7 @@ paths:
16941694
URL). Provide exactly one of "community_file_id", "plugin_id", or
16951695
"widget_id".
16961696
schema:
1697-
type: number
1697+
type: string
16981698
responses:
16991699
"200":
17001700
$ref: "#/components/responses/GetPaymentsResponse"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@figma/rest-api-spec",
3-
"version": "0.27.0",
3+
"version": "0.28.0",
44
"description": "Typings for the Figma REST API",
55
"main": "dist/api_types.ts",
66
"repository": {

0 commit comments

Comments
 (0)