@@ -1314,9 +1314,7 @@ const pd = createBackendClient({
13141314});
13151315
13161316// Retrieve the "New Issue (Instant)" component for the Gitlab app
1317- const { data: component } = await pd .getComponent ({
1318- key: " gitlab-new-issue" ,
1319- });
1317+ const { data: component } = await pd .getComponent ({ key: " gitlab-new-issue" });
13201318
13211319// Parse and return the data you need
13221320```
@@ -1452,9 +1450,7 @@ const pd: BackendClient = createBackendClient(clientOpts);
14521450// Retrieve the configuration options for the "projectId" prop of the "List
14531451// Commits" component for the Gitlab app.
14541452const requestOpts: ConfigureComponentOpts = {
1455- componentId: {
1456- key: " gitlab-list-commits" ,
1457- },
1453+ id: " gitlab-list-commits" ,
14581454 configuredProps: {
14591455 gitlab: {
14601456 authProvisionId: " apn_kVh9AoD" ,
@@ -1493,9 +1489,7 @@ const pd = createBackendClient({
14931489// Retrieve the configuration options for the "projectId" prop of the "List
14941490// Commits" component for the Gitlab app.
14951491const { options } = await pd .configureComponent ({
1496- componentId: {
1497- key: " gitlab-list-commits" ,
1498- },
1492+ id: " gitlab-list-commits" ,
14991493 configuredProps: {
15001494 gitlab: {
15011495 authProvisionId: " apn_kVh9AoD" ,
@@ -1668,9 +1662,7 @@ const pd: BackendClient = createBackendClient(clientOpts);
16681662// Retrieve the configuration options for the "Add Single Row" component for
16691663// the Google Sheets app. Note that the `sheetId` prop is a dynamic prop.
16701664const requestOpts: ReloadComponentPropsOpts = {
1671- componentId: {
1672- key: " google_sheets-add-single-row" ,
1673- },
1665+ id: " google_sheets-add-single-row" ,
16741666 configuredProps: {
16751667 googleSheets: {
16761668 authProvisionId: " apn_V1hMoE7" ,
@@ -1707,9 +1699,7 @@ const pd = createBackendClient({
17071699// Retrieve the configuration options for the "Add Single Row" component for
17081700// the Google Sheets app. Note that the `sheetId` prop is a dynamic prop.
17091701const { dynamicProps } = await pd .reloadComponentProps ({
1710- componentId: {
1711- key: " google_sheets-add-single-row" ,
1712- },
1702+ id: " google_sheets-add-single-row" ,
17131703 configuredProps: {
17141704 googleSheets: {
17151705 authProvisionId: " apn_V1hMoE7" ,
@@ -1883,9 +1873,7 @@ const pd: BackendClient = createBackendClient(clientOpts);
18831873
18841874// Run the "List Commits" action for the Gitlab app
18851875const requestOpts: RunActionOpts = {
1886- actionId: {
1887- key: " gitlab-list-commits" ,
1888- },
1876+ id: " gitlab-list-commits" ,
18891877 configuredProps: {
18901878 gitlab: {
18911879 authProvisionId: " apn_kVh9AoD" ,
@@ -1928,9 +1916,7 @@ const {
19281916 os, // The observations produced by the action
19291917 ret, // The value returned by the action
19301918} = await pd .runAction ({
1931- actionId: {
1932- key: " gitlab-list-commits" ,
1933- },
1919+ id: " gitlab-list-commits" ,
19341920 configuredProps: {
19351921 gitlab: {
19361922 authProvisionId: " apn_kVh9AoD" ,
@@ -2092,9 +2078,7 @@ const pd: BackendClient = createBackendClient(clientOpts);
20922078
20932079// Deploy the "New Issue (Instant)" trigger for the Gitlab app
20942080const requestOpts: DeployTriggerOpts = {
2095- triggerId: {
2096- key: " gitlab-new-issue" ,
2097- },
2081+ id: " gitlab-new-issue" ,
20982082 configuredProps: {
20992083 gitlab: {
21002084 authProvisionId: " apn_kVh9AoD" ,
@@ -2133,9 +2117,7 @@ const pd = createBackendClient({
21332117
21342118// Deploy the "New Issue (Instant)" trigger for the Gitlab app
21352119const { data: deployedTrigger } = await pd .deployTrigger ({
2136- triggerId: {
2137- key: " gitlab-new-issue" ,
2138- },
2120+ id: " gitlab-new-issue" ,
21392121 configuredProps: {
21402122 gitlab: {
21412123 authProvisionId: " apn_kVh9AoD" ,
0 commit comments