Skip to content

Commit

Permalink
feat: Add integration_support_levels filter param (#14)
Browse files Browse the repository at this point in the history
* Run npm update

* Refactor filter logic

* Update @seamapi/types

* Add support for integration_support_levels param

* ci: Generate code

* Add test

---------

Co-authored-by: Seam Bot <devops@getseam.com>
  • Loading branch information
razor-x and seambot authored Dec 21, 2023
1 parent 4ba51ae commit 381de9f
Show file tree
Hide file tree
Showing 11 changed files with 736 additions and 782 deletions.
970 changes: 308 additions & 662 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"devDependencies": {
"@seamapi/logger": "^1.9.2",
"@seamapi/types": "^1.32.0",
"@seamapi/types": "^1.68.0",
"@tsconfig/next": "^2.0.0",
"@types/get-pixels": "^3.3.2",
"@types/lodash": "^4.14.202",
Expand Down
187 changes: 187 additions & 0 deletions public/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@
"inquire"
]
},
"integration_support_level": {
"type": "string",
"enum": [
"stable",
"beta",
"planned",
"unsupported",
"inquire"
]
},
"is_connect_webview_supported": {
"type": "boolean"
},
Expand All @@ -158,6 +168,7 @@
"manufacturer_id",
"display_name",
"integration",
"integration_support_level",
"is_connect_webview_supported",
"requires_seam_support_to_add_account"
]
Expand Down Expand Up @@ -560,6 +571,16 @@
"inquire"
]
},
"integration_support_level": {
"type": "string",
"enum": [
"stable",
"beta",
"planned",
"unsupported",
"inquire"
]
},
"is_connect_webview_supported": {
"type": "boolean"
},
Expand All @@ -571,6 +592,7 @@
"manufacturer_id",
"display_name",
"integration",
"integration_support_level",
"is_connect_webview_supported",
"requires_seam_support_to_add_account"
]
Expand Down Expand Up @@ -977,6 +999,16 @@
"inquire"
]
},
"integration_support_level": {
"type": "string",
"enum": [
"stable",
"beta",
"planned",
"unsupported",
"inquire"
]
},
"is_connect_webview_supported": {
"type": "boolean"
},
Expand All @@ -988,6 +1020,7 @@
"manufacturer_id",
"display_name",
"integration",
"integration_support_level",
"is_connect_webview_supported",
"requires_seam_support_to_add_account"
]
Expand Down Expand Up @@ -1371,6 +1404,17 @@
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
},
{
"name": "integration_support_levels",
"in": "query",
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
}
},
{
"name": "text_search",
"in": "query",
Expand Down Expand Up @@ -1455,6 +1499,16 @@
"inquire"
]
},
"integration_support_level": {
"type": "string",
"enum": [
"stable",
"beta",
"planned",
"unsupported",
"inquire"
]
},
"is_connect_webview_supported": {
"type": "boolean"
},
Expand All @@ -1466,6 +1520,7 @@
"manufacturer_id",
"display_name",
"integration",
"integration_support_level",
"is_connect_webview_supported",
"requires_seam_support_to_add_account"
]
Expand Down Expand Up @@ -1849,6 +1904,17 @@
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
},
{
"name": "integration_support_levels",
"in": "query",
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
}
},
{
"name": "text_search",
"in": "query",
Expand Down Expand Up @@ -1932,6 +1998,16 @@
"inquire"
]
},
"integration_support_level": {
"type": "string",
"enum": [
"stable",
"beta",
"planned",
"unsupported",
"inquire"
]
},
"is_connect_webview_supported": {
"type": "boolean"
},
Expand All @@ -1943,6 +2019,7 @@
"manufacturer_id",
"display_name",
"integration",
"integration_support_level",
"is_connect_webview_supported",
"requires_seam_support_to_add_account"
]
Expand Down Expand Up @@ -2326,6 +2403,17 @@
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
},
{
"name": "integration_support_levels",
"in": "query",
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
}
},
{
"name": "text_search",
"in": "query",
Expand Down Expand Up @@ -2397,6 +2485,16 @@
"inquire"
]
},
"integration_support_level": {
"type": "string",
"enum": [
"stable",
"beta",
"planned",
"unsupported",
"inquire"
]
},
"is_connect_webview_supported": { "type": "boolean" },
"requires_seam_support_to_add_account": {
"type": "boolean"
Expand All @@ -2407,6 +2505,7 @@
"manufacturer_id",
"display_name",
"integration",
"integration_support_level",
"is_connect_webview_supported",
"requires_seam_support_to_add_account",
"device_model_count"
Expand Down Expand Up @@ -2473,6 +2572,16 @@
"inquire"
]
},
"integration_support_level": {
"type": "string",
"enum": [
"stable",
"beta",
"planned",
"unsupported",
"inquire"
]
},
"is_connect_webview_supported": { "type": "boolean" },
"requires_seam_support_to_add_account": {
"type": "boolean"
Expand All @@ -2483,6 +2592,7 @@
"manufacturer_id",
"display_name",
"integration",
"integration_support_level",
"is_connect_webview_supported",
"requires_seam_support_to_add_account",
"device_model_count"
Expand Down Expand Up @@ -2548,6 +2658,16 @@
"inquire"
]
},
"integration_support_level": {
"type": "string",
"enum": [
"stable",
"beta",
"planned",
"unsupported",
"inquire"
]
},
"is_connect_webview_supported": { "type": "boolean" },
"requires_seam_support_to_add_account": {
"type": "boolean"
Expand All @@ -2558,6 +2678,7 @@
"manufacturer_id",
"display_name",
"integration",
"integration_support_level",
"is_connect_webview_supported",
"requires_seam_support_to_add_account",
"device_model_count"
Expand Down Expand Up @@ -2627,6 +2748,16 @@
"inquire"
]
},
"integration_support_level": {
"type": "string",
"enum": [
"stable",
"beta",
"planned",
"unsupported",
"inquire"
]
},
"is_connect_webview_supported": { "type": "boolean" },
"requires_seam_support_to_add_account": {
"type": "boolean"
Expand All @@ -2637,6 +2768,7 @@
"manufacturer_id",
"display_name",
"integration",
"integration_support_level",
"is_connect_webview_supported",
"requires_seam_support_to_add_account",
"device_model_count"
Expand All @@ -2663,6 +2795,17 @@
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
},
{
"name": "integration_support_levels",
"in": "query",
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
}
},
{
"name": "liqe_query",
"in": "query",
Expand Down Expand Up @@ -2713,6 +2856,16 @@
"inquire"
]
},
"integration_support_level": {
"type": "string",
"enum": [
"stable",
"beta",
"planned",
"unsupported",
"inquire"
]
},
"is_connect_webview_supported": { "type": "boolean" },
"requires_seam_support_to_add_account": {
"type": "boolean"
Expand All @@ -2723,6 +2876,7 @@
"manufacturer_id",
"display_name",
"integration",
"integration_support_level",
"is_connect_webview_supported",
"requires_seam_support_to_add_account",
"device_model_count"
Expand All @@ -2749,6 +2903,17 @@
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
},
{
"name": "integration_support_levels",
"in": "query",
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
}
},
{
"name": "liqe_query",
"in": "query",
Expand Down Expand Up @@ -2798,6 +2963,16 @@
"inquire"
]
},
"integration_support_level": {
"type": "string",
"enum": [
"stable",
"beta",
"planned",
"unsupported",
"inquire"
]
},
"is_connect_webview_supported": { "type": "boolean" },
"requires_seam_support_to_add_account": {
"type": "boolean"
Expand All @@ -2808,6 +2983,7 @@
"manufacturer_id",
"display_name",
"integration",
"integration_support_level",
"is_connect_webview_supported",
"requires_seam_support_to_add_account",
"device_model_count"
Expand All @@ -2834,6 +3010,17 @@
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
},
{
"name": "integration_support_levels",
"in": "query",
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": ["stable", "beta", "planned", "unsupported", "inquire"]
}
}
},
{
"name": "liqe_query",
"in": "query",
Expand Down
1 change: 1 addition & 0 deletions src/lib/database/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const seedDatabase = (db: Database) => {
height: logo.height,
},
integration: "stable",
integration_support_level: "stable",
is_connect_webview_supported: true,
requires_seam_support_to_add_account: false,
})
Expand Down
Loading

0 comments on commit 381de9f

Please sign in to comment.