File tree Expand file tree Collapse file tree 7 files changed +38
-38
lines changed Expand file tree Collapse file tree 7 files changed +38
-38
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export default {
44 key : "webflow_v2-list-sites" ,
55 name : "List Sites" ,
66 description : "List sites. [See the docs here](https://developers.webflow.com/#list-sites)" ,
7- version : "0.1 .{{ts}}" ,
7+ version : "0.0 .{{ts}}" ,
88 type : "action" ,
99 props : {
1010 app,
Original file line number Diff line number Diff line change 1- import webflow from "../../webflow .app.mjs" ;
1+ import app from "../../webflow_v2 .app.mjs" ;
22
33export default {
4- key : "webflow -get-collection-item" ,
4+ key : "webflow_v2 -get-collection-item" ,
55 name : "Get Collection Item" ,
66 description : "Get a Collection Item. [See the docs here](https://developers.webflow.com/#get-single-item)" ,
7- version : "0.1.7 " ,
7+ version : "0.0.{{ts}} " ,
88 type : "action" ,
99 props : {
10- webflow ,
10+ app ,
1111 siteId : {
1212 propDefinition : [
13- webflow ,
13+ app ,
1414 "sites" ,
1515 ] ,
1616 } ,
1717 collectionId : {
1818 propDefinition : [
19- webflow ,
19+ app ,
2020 "collections" ,
2121 ( c ) => ( {
2222 siteId : c . siteId ,
@@ -25,7 +25,7 @@ export default {
2525 } ,
2626 itemId : {
2727 propDefinition : [
28- webflow ,
28+ app ,
2929 "items" ,
3030 ( c ) => ( {
3131 collectionId : c . collectionId ,
@@ -34,7 +34,7 @@ export default {
3434 } ,
3535 } ,
3636 async run ( { $ } ) {
37- const webflow = this . webflow . _createApiClient ( ) ;
37+ const webflow = this . app . _createApiClient ( ) ;
3838
3939 const response = await webflow . item ( {
4040 collectionId : this . collectionId ,
Original file line number Diff line number Diff line change 1- import webflow from "../../webflow .app.mjs" ;
1+ import app from "../../webflow_v2 .app.mjs" ;
22
33export default {
4- key : "webflow -get-collection" ,
4+ key : "webflow_v2 -get-collection" ,
55 name : "Get Collection" ,
66 description : "Get a collection. [See the docs here](https://developers.webflow.com/#get-collection-with-full-schema)" ,
7- version : "0.0.5 " ,
7+ version : "0.0.{{ts}} " ,
88 type : "action" ,
99 props : {
10- webflow ,
10+ app ,
1111 siteId : {
1212 propDefinition : [
13- webflow ,
13+ app ,
1414 "sites" ,
1515 ] ,
1616 } ,
1717 collectionId : {
1818 propDefinition : [
19- webflow ,
19+ app ,
2020 "collections" ,
2121 ( c ) => ( {
2222 siteId : c . siteId ,
@@ -25,7 +25,7 @@ export default {
2525 } ,
2626 } ,
2727 async run ( { $ } ) {
28- const response = await this . webflow . getCollection ( this . collectionId ) ;
28+ const response = await this . app . getCollection ( this . collectionId ) ;
2929
3030 $ . export ( "$summary" , "Successfully retrieved collection" ) ;
3131
Original file line number Diff line number Diff line change 1- import webflow from "../../webflow .app.mjs" ;
1+ import app from "../../webflow_v2 .app.mjs" ;
22
33export default {
4- key : "webflow -get-site" ,
4+ key : "webflow_v2 -get-site" ,
55 name : "Get Site" ,
66 description : "Get a site. [See the docs here](https://developers.webflow.com/#get-specific-site)" ,
7- version : "0.0.4 " ,
7+ version : "0.0.{{ts}} " ,
88 type : "action" ,
99 props : {
10- webflow ,
10+ app ,
1111 siteId : {
1212 propDefinition : [
13- webflow ,
13+ app ,
1414 "sites" ,
1515 ] ,
1616 } ,
1717 } ,
1818 async run ( { $ } ) {
19- const response = await this . webflow . getSite ( this . siteId ) ;
19+ const response = await this . app . getSite ( this . siteId ) ;
2020
2121 $ . export ( "$summary" , "Successfully retrieved site" ) ;
2222
Original file line number Diff line number Diff line change 1- import webflow from "../../webflow .app.mjs" ;
1+ import app from "../../webflow_v2 .app.mjs" ;
22
33export default {
4- key : "webflow -list-collection-items" ,
4+ key : "webflow_v2 -list-collection-items" ,
55 name : "List Collection Items" ,
66 description : "List Items of a collection. [See the docs here](https://developers.webflow.com/#get-all-items-for-a-collection)" ,
7- version : "0.0.5 " ,
7+ version : "0.0.{{ts}} " ,
88 type : "action" ,
99 props : {
10- webflow ,
10+ app ,
1111 siteId : {
1212 propDefinition : [
13- webflow ,
13+ app ,
1414 "sites" ,
1515 ] ,
1616 } ,
1717 collectionId : {
1818 propDefinition : [
19- webflow ,
19+ app ,
2020 "collections" ,
2121 ( c ) => ( {
2222 siteId : c . siteId ,
@@ -25,9 +25,9 @@ export default {
2525 } ,
2626 } ,
2727 async run ( { $ } ) {
28- const response = await this . webflow . getItems ( 0 , this . collectionId ) ;
28+ const response = await this . app . getItems ( 0 , this . collectionId ) ;
2929
30- $ . export ( "$summary" , "Successfully retrieved collections items" ) ;
30+ $ . export ( "$summary" , "Successfully retrieved collection's items" ) ;
3131
3232 return response ;
3333 } ,
Original file line number Diff line number Diff line change 1- import webflow from "../../webflow .app.mjs" ;
1+ import app from "../../webflow_v2 .app.mjs" ;
22
33export default {
4- key : "webflow -list-collections" ,
4+ key : "webflow_v2 -list-collections" ,
55 name : "List Collections" ,
66 description : "List collections. [See the docs here](https://developers.webflow.com/#list-collections)" ,
7- version : "0.0.4 " ,
7+ version : "0.0.{{ts}} " ,
88 type : "action" ,
99 props : {
10- webflow ,
10+ app ,
1111 siteId : {
1212 propDefinition : [
13- webflow ,
13+ app ,
1414 "sites" ,
1515 ] ,
1616 } ,
1717 } ,
1818 async run ( { $ } ) {
19- const response = await this . webflow . getCollections ( this . siteId ) ;
19+ const response = await this . app . getCollections ( this . siteId ) ;
2020
2121 $ . export ( "$summary" , "Successfully retrieved collections" ) ;
2222
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ export default {
201201 async getCollection ( collectionId ) {
202202 const webflow = this . _createApiClient ( ) ;
203203
204- return await webflow . collection ( {
204+ return await webflow . collections . get ( {
205205 collectionId,
206206 } ) ;
207207 } ,
@@ -233,7 +233,7 @@ export default {
233233
234234 if ( ! collectionId ) return [ ] ;
235235
236- const response = await webflow . items ( {
236+ const response = await webflow . collections . items . listItems ( {
237237 collectionId,
238238 } , {
239239 limit : constants . LIMIT ,
You can’t perform that action at this time.
0 commit comments