Skip to content

Commit 3ebdc53

Browse files
committed
fix: updated schema
1 parent 317a31f commit 3ebdc53

File tree

2 files changed

+116
-1
lines changed

2 files changed

+116
-1
lines changed

lib/index.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,21 @@ export interface AddOn {
550550
name?: string
551551
[k: string]: any
552552
}
553+
/**
554+
* billing entity associated with this add-on
555+
*/
556+
billing_entity?: {
557+
/**
558+
* unique identifier of the billing entity
559+
*/
560+
id?: string
561+
name?: string
562+
/**
563+
* type of Object of the billing entity, new types allowed at any time
564+
*/
565+
type?: 'app' | 'team'
566+
[k: string]: any
567+
}
553568
/**
554569
* billing application associated with this add-on
555570
*/

schema.json

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,37 @@
812812
"$ref": "#/definitions/add-on-attachment"
813813
},
814814
"title": "Info by App"
815+
},
816+
{
817+
"description": "Resolve an add-on attachment from a name, optionally passing an app name. If there are matches it returns at least one add-on attachment (exact match) or many.",
818+
"href": "/actions/addon-attachments/resolve",
819+
"method": "POST",
820+
"rel": "resolve",
821+
"schema": {
822+
"properties": {
823+
"addon_attachment": {
824+
"$ref": "#/definitions/add-on-attachment/definitions/name"
825+
},
826+
"app": {
827+
"$ref": "#/definitions/app/definitions/name"
828+
},
829+
"addon_service": {
830+
"$ref": "#/definitions/add-on-service/definitions/name"
831+
}
832+
},
833+
"required": [
834+
"addon_attachment"
835+
]
836+
},
837+
"targetSchema": {
838+
"items": {
839+
"$ref": "#/definitions/add-on-attachment"
840+
},
841+
"type": [
842+
"array"
843+
]
844+
},
845+
"title": "Resolution"
815846
}
816847
],
817848
"properties": {
@@ -1629,7 +1660,7 @@
16291660
]
16301661
},
16311662
"confirm": {
1632-
"description": "name of owning app for confirmation",
1663+
"description": "name of billing entity for confirmation",
16331664
"example": "example",
16341665
"type": [
16351666
"string"
@@ -1886,6 +1917,37 @@
18861917
]
18871918
},
18881919
"title": "List By Team"
1920+
},
1921+
{
1922+
"description": "Resolve an add-on from a name, optionally passing an app name. If there are matches it returns at least one add-on (exact match) or many.",
1923+
"href": "/actions/addons/resolve",
1924+
"method": "POST",
1925+
"rel": "resolve",
1926+
"schema": {
1927+
"properties": {
1928+
"addon": {
1929+
"$ref": "#/definitions/add-on/definitions/name"
1930+
},
1931+
"app": {
1932+
"$ref": "#/definitions/app/definitions/name"
1933+
},
1934+
"addon_service": {
1935+
"$ref": "#/definitions/add-on-service/definitions/name"
1936+
}
1937+
},
1938+
"required": [
1939+
"addon"
1940+
]
1941+
},
1942+
"targetSchema": {
1943+
"items": {
1944+
"$ref": "#/definitions/add-on"
1945+
},
1946+
"type": [
1947+
"array"
1948+
]
1949+
},
1950+
"title": "Resolution"
18891951
}
18901952
],
18911953
"properties": {
@@ -1907,6 +1969,44 @@
19071969
"object"
19081970
]
19091971
},
1972+
"billing_entity": {
1973+
"description": "billing entity associated with this add-on",
1974+
"type": [
1975+
"object"
1976+
],
1977+
"properties": {
1978+
"id": {
1979+
"description": "unique identifier of the billing entity",
1980+
"example": "01234567-89ab-cdef-0123-456789abcdef",
1981+
"format": "uuid",
1982+
"readOnly": true,
1983+
"type": [
1984+
"string"
1985+
]
1986+
},
1987+
"name": {
1988+
"desrciption": "name of the billing entity",
1989+
"example": "acme_corp",
1990+
"readOnly": true,
1991+
"type": [
1992+
"string"
1993+
]
1994+
},
1995+
"type": {
1996+
"description": "type of Object of the billing entity, new types allowed at any time",
1997+
"enum": [
1998+
"app",
1999+
"team"
2000+
],
2001+
"example": "team",
2002+
"readOnly": true,
2003+
"type": [
2004+
"string"
2005+
]
2006+
}
2007+
},
2008+
"strictProperties": true
2009+
},
19102010
"app": {
19112011
"description": "billing application associated with this add-on",
19122012
"type": [

0 commit comments

Comments
 (0)