@canva/n8n-nodes-canva 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/README.md +217 -0
  2. package/dist/credentials/CanvaOAuth2Api.credentials.d.ts +9 -0
  3. package/dist/credentials/CanvaOAuth2Api.credentials.js +55 -0
  4. package/dist/credentials/CanvaOAuth2Api.credentials.js.map +1 -0
  5. package/dist/nodes/Canva/Canva.node.d.ts +5 -0
  6. package/dist/nodes/Canva/Canva.node.js +717 -0
  7. package/dist/nodes/Canva/Canva.node.js.map +1 -0
  8. package/dist/nodes/Canva/Canva.node.json +19 -0
  9. package/dist/nodes/Canva/GenericFunctions.d.ts +2 -0
  10. package/dist/nodes/Canva/GenericFunctions.js +12 -0
  11. package/dist/nodes/Canva/GenericFunctions.js.map +1 -0
  12. package/dist/nodes/Canva/icons/canva.dark.svg +1 -0
  13. package/dist/nodes/Canva/icons/canva.svg +1 -0
  14. package/dist/nodes/Canva/resources/asset/delete.d.ts +2 -0
  15. package/dist/nodes/Canva/resources/asset/delete.js +16 -0
  16. package/dist/nodes/Canva/resources/asset/delete.js.map +1 -0
  17. package/dist/nodes/Canva/resources/asset/get.d.ts +2 -0
  18. package/dist/nodes/Canva/resources/asset/get.js +16 -0
  19. package/dist/nodes/Canva/resources/asset/get.js.map +1 -0
  20. package/dist/nodes/Canva/resources/asset/index.d.ts +3 -0
  21. package/dist/nodes/Canva/resources/asset/index.js +53 -0
  22. package/dist/nodes/Canva/resources/asset/index.js.map +1 -0
  23. package/dist/nodes/Canva/resources/asset/update.d.ts +2 -0
  24. package/dist/nodes/Canva/resources/asset/update.js +42 -0
  25. package/dist/nodes/Canva/resources/asset/update.js.map +1 -0
  26. package/dist/nodes/Canva/resources/asset/upload.d.ts +2 -0
  27. package/dist/nodes/Canva/resources/asset/upload.js +44 -0
  28. package/dist/nodes/Canva/resources/asset/upload.js.map +1 -0
  29. package/dist/nodes/Canva/resources/asset/uploadPreviewNotice.d.ts +2 -0
  30. package/dist/nodes/Canva/resources/asset/uploadPreviewNotice.js +13 -0
  31. package/dist/nodes/Canva/resources/asset/uploadPreviewNotice.js.map +1 -0
  32. package/dist/nodes/Canva/resources/autofill/create.d.ts +2 -0
  33. package/dist/nodes/Canva/resources/autofill/create.js +53 -0
  34. package/dist/nodes/Canva/resources/autofill/create.js.map +1 -0
  35. package/dist/nodes/Canva/resources/autofill/index.d.ts +3 -0
  36. package/dist/nodes/Canva/resources/autofill/index.js +29 -0
  37. package/dist/nodes/Canva/resources/autofill/index.js.map +1 -0
  38. package/dist/nodes/Canva/resources/autofill/premiumNotice.d.ts +2 -0
  39. package/dist/nodes/Canva/resources/autofill/premiumNotice.js +13 -0
  40. package/dist/nodes/Canva/resources/autofill/premiumNotice.js.map +1 -0
  41. package/dist/nodes/Canva/resources/brandTemplate/get.d.ts +2 -0
  42. package/dist/nodes/Canva/resources/brandTemplate/get.js +16 -0
  43. package/dist/nodes/Canva/resources/brandTemplate/get.js.map +1 -0
  44. package/dist/nodes/Canva/resources/brandTemplate/getAll.d.ts +2 -0
  45. package/dist/nodes/Canva/resources/brandTemplate/getAll.js +69 -0
  46. package/dist/nodes/Canva/resources/brandTemplate/getAll.js.map +1 -0
  47. package/dist/nodes/Canva/resources/brandTemplate/getDataset.d.ts +2 -0
  48. package/dist/nodes/Canva/resources/brandTemplate/getDataset.js +16 -0
  49. package/dist/nodes/Canva/resources/brandTemplate/getDataset.js.map +1 -0
  50. package/dist/nodes/Canva/resources/brandTemplate/index.d.ts +3 -0
  51. package/dist/nodes/Canva/resources/brandTemplate/index.js +55 -0
  52. package/dist/nodes/Canva/resources/brandTemplate/index.js.map +1 -0
  53. package/dist/nodes/Canva/resources/brandTemplate/premiumNotice.d.ts +2 -0
  54. package/dist/nodes/Canva/resources/brandTemplate/premiumNotice.js +13 -0
  55. package/dist/nodes/Canva/resources/brandTemplate/premiumNotice.js.map +1 -0
  56. package/dist/nodes/Canva/resources/brandTemplate/publish.d.ts +2 -0
  57. package/dist/nodes/Canva/resources/brandTemplate/publish.js +16 -0
  58. package/dist/nodes/Canva/resources/brandTemplate/publish.js.map +1 -0
  59. package/dist/nodes/Canva/resources/brandTemplate/publishPreviewNotice.d.ts +2 -0
  60. package/dist/nodes/Canva/resources/brandTemplate/publishPreviewNotice.js +13 -0
  61. package/dist/nodes/Canva/resources/brandTemplate/publishPreviewNotice.js.map +1 -0
  62. package/dist/nodes/Canva/resources/comment/createReply.d.ts +2 -0
  63. package/dist/nodes/Canva/resources/comment/createReply.js +37 -0
  64. package/dist/nodes/Canva/resources/comment/createReply.js.map +1 -0
  65. package/dist/nodes/Canva/resources/comment/createThread.d.ts +2 -0
  66. package/dist/nodes/Canva/resources/comment/createThread.js +45 -0
  67. package/dist/nodes/Canva/resources/comment/createThread.js.map +1 -0
  68. package/dist/nodes/Canva/resources/comment/getReply.d.ts +2 -0
  69. package/dist/nodes/Canva/resources/comment/getReply.js +36 -0
  70. package/dist/nodes/Canva/resources/comment/getReply.js.map +1 -0
  71. package/dist/nodes/Canva/resources/comment/getThread.d.ts +2 -0
  72. package/dist/nodes/Canva/resources/comment/getThread.js +26 -0
  73. package/dist/nodes/Canva/resources/comment/getThread.js.map +1 -0
  74. package/dist/nodes/Canva/resources/comment/index.d.ts +3 -0
  75. package/dist/nodes/Canva/resources/comment/index.js +61 -0
  76. package/dist/nodes/Canva/resources/comment/index.js.map +1 -0
  77. package/dist/nodes/Canva/resources/comment/listReplies.d.ts +2 -0
  78. package/dist/nodes/Canva/resources/comment/listReplies.js +45 -0
  79. package/dist/nodes/Canva/resources/comment/listReplies.js.map +1 -0
  80. package/dist/nodes/Canva/resources/comment/previewNotice.d.ts +2 -0
  81. package/dist/nodes/Canva/resources/comment/previewNotice.js +13 -0
  82. package/dist/nodes/Canva/resources/comment/previewNotice.js.map +1 -0
  83. package/dist/nodes/Canva/resources/design/create.d.ts +2 -0
  84. package/dist/nodes/Canva/resources/design/create.js +78 -0
  85. package/dist/nodes/Canva/resources/design/create.js.map +1 -0
  86. package/dist/nodes/Canva/resources/design/get.d.ts +2 -0
  87. package/dist/nodes/Canva/resources/design/get.js +16 -0
  88. package/dist/nodes/Canva/resources/design/get.js.map +1 -0
  89. package/dist/nodes/Canva/resources/design/getAll.d.ts +2 -0
  90. package/dist/nodes/Canva/resources/design/getAll.js +69 -0
  91. package/dist/nodes/Canva/resources/design/getAll.js.map +1 -0
  92. package/dist/nodes/Canva/resources/design/getDataset.d.ts +2 -0
  93. package/dist/nodes/Canva/resources/design/getDataset.js +16 -0
  94. package/dist/nodes/Canva/resources/design/getDataset.js.map +1 -0
  95. package/dist/nodes/Canva/resources/design/getDatasetPreviewNotice.d.ts +2 -0
  96. package/dist/nodes/Canva/resources/design/getDatasetPreviewNotice.js +13 -0
  97. package/dist/nodes/Canva/resources/design/getDatasetPreviewNotice.js.map +1 -0
  98. package/dist/nodes/Canva/resources/design/getExportFormats.d.ts +2 -0
  99. package/dist/nodes/Canva/resources/design/getExportFormats.js +16 -0
  100. package/dist/nodes/Canva/resources/design/getExportFormats.js.map +1 -0
  101. package/dist/nodes/Canva/resources/design/getPages.d.ts +2 -0
  102. package/dist/nodes/Canva/resources/design/getPages.js +34 -0
  103. package/dist/nodes/Canva/resources/design/getPages.js.map +1 -0
  104. package/dist/nodes/Canva/resources/design/getPagesPreviewNotice.d.ts +2 -0
  105. package/dist/nodes/Canva/resources/design/getPagesPreviewNotice.js +13 -0
  106. package/dist/nodes/Canva/resources/design/getPagesPreviewNotice.js.map +1 -0
  107. package/dist/nodes/Canva/resources/design/index.d.ts +3 -0
  108. package/dist/nodes/Canva/resources/design/index.js +71 -0
  109. package/dist/nodes/Canva/resources/design/index.js.map +1 -0
  110. package/dist/nodes/Canva/resources/designImport/createImport.d.ts +2 -0
  111. package/dist/nodes/Canva/resources/designImport/createImport.js +44 -0
  112. package/dist/nodes/Canva/resources/designImport/createImport.js.map +1 -0
  113. package/dist/nodes/Canva/resources/designImport/index.d.ts +3 -0
  114. package/dist/nodes/Canva/resources/designImport/index.js +27 -0
  115. package/dist/nodes/Canva/resources/designImport/index.js.map +1 -0
  116. package/dist/nodes/Canva/resources/export/export.d.ts +2 -0
  117. package/dist/nodes/Canva/resources/export/export.js +92 -0
  118. package/dist/nodes/Canva/resources/export/export.js.map +1 -0
  119. package/dist/nodes/Canva/resources/export/index.d.ts +3 -0
  120. package/dist/nodes/Canva/resources/export/index.js +27 -0
  121. package/dist/nodes/Canva/resources/export/index.js.map +1 -0
  122. package/dist/nodes/Canva/resources/folder/create.d.ts +2 -0
  123. package/dist/nodes/Canva/resources/folder/create.js +26 -0
  124. package/dist/nodes/Canva/resources/folder/create.js.map +1 -0
  125. package/dist/nodes/Canva/resources/folder/delete.d.ts +2 -0
  126. package/dist/nodes/Canva/resources/folder/delete.js +16 -0
  127. package/dist/nodes/Canva/resources/folder/delete.js.map +1 -0
  128. package/dist/nodes/Canva/resources/folder/get.d.ts +2 -0
  129. package/dist/nodes/Canva/resources/folder/get.js +16 -0
  130. package/dist/nodes/Canva/resources/folder/get.js.map +1 -0
  131. package/dist/nodes/Canva/resources/folder/index.d.ts +3 -0
  132. package/dist/nodes/Canva/resources/folder/index.js +67 -0
  133. package/dist/nodes/Canva/resources/folder/index.js.map +1 -0
  134. package/dist/nodes/Canva/resources/folder/listItems.d.ts +2 -0
  135. package/dist/nodes/Canva/resources/folder/listItems.js +73 -0
  136. package/dist/nodes/Canva/resources/folder/listItems.js.map +1 -0
  137. package/dist/nodes/Canva/resources/folder/moveItem.d.ts +2 -0
  138. package/dist/nodes/Canva/resources/folder/moveItem.js +26 -0
  139. package/dist/nodes/Canva/resources/folder/moveItem.js.map +1 -0
  140. package/dist/nodes/Canva/resources/folder/update.d.ts +2 -0
  141. package/dist/nodes/Canva/resources/folder/update.js +26 -0
  142. package/dist/nodes/Canva/resources/folder/update.js.map +1 -0
  143. package/dist/nodes/Canva/resources/merge/create.d.ts +2 -0
  144. package/dist/nodes/Canva/resources/merge/create.js +90 -0
  145. package/dist/nodes/Canva/resources/merge/create.js.map +1 -0
  146. package/dist/nodes/Canva/resources/merge/index.d.ts +3 -0
  147. package/dist/nodes/Canva/resources/merge/index.js +29 -0
  148. package/dist/nodes/Canva/resources/merge/index.js.map +1 -0
  149. package/dist/nodes/Canva/resources/merge/previewNotice.d.ts +2 -0
  150. package/dist/nodes/Canva/resources/merge/previewNotice.js +13 -0
  151. package/dist/nodes/Canva/resources/merge/previewNotice.js.map +1 -0
  152. package/dist/nodes/Canva/resources/resize/create.d.ts +2 -0
  153. package/dist/nodes/Canva/resources/resize/create.js +86 -0
  154. package/dist/nodes/Canva/resources/resize/create.js.map +1 -0
  155. package/dist/nodes/Canva/resources/resize/index.d.ts +3 -0
  156. package/dist/nodes/Canva/resources/resize/index.js +29 -0
  157. package/dist/nodes/Canva/resources/resize/index.js.map +1 -0
  158. package/dist/nodes/Canva/resources/resize/premiumNotice.d.ts +2 -0
  159. package/dist/nodes/Canva/resources/resize/premiumNotice.js +13 -0
  160. package/dist/nodes/Canva/resources/resize/premiumNotice.js.map +1 -0
  161. package/dist/nodes/Canva/resources/user/index.d.ts +3 -0
  162. package/dist/nodes/Canva/resources/user/index.js +35 -0
  163. package/dist/nodes/Canva/resources/user/index.js.map +1 -0
  164. package/dist/package.json +61 -0
  165. package/dist/tsconfig.tsbuildinfo +1 -0
  166. package/package.json +61 -0
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designGetAllDescription = void 0;
4
+ exports.designGetAllDescription = [
5
+ {
6
+ displayName: 'Return All',
7
+ name: 'returnAll',
8
+ type: 'boolean',
9
+ default: false,
10
+ displayOptions: { show: { resource: ['design'], operation: ['getAll'] } },
11
+ description: 'Whether to return all results or only up to a given limit',
12
+ },
13
+ {
14
+ displayName: 'Limit',
15
+ name: 'limit',
16
+ type: 'number',
17
+ typeOptions: { minValue: 1, maxValue: 100 },
18
+ default: 50,
19
+ displayOptions: {
20
+ show: { resource: ['design'], operation: ['getAll'], returnAll: [false] },
21
+ },
22
+ description: 'Max number of results to return',
23
+ },
24
+ {
25
+ displayName: 'Filters',
26
+ name: 'filters',
27
+ type: 'collection',
28
+ placeholder: 'Add Filter',
29
+ default: {},
30
+ displayOptions: { show: { resource: ['design'], operation: ['getAll'] } },
31
+ options: [
32
+ {
33
+ displayName: 'Ownership',
34
+ name: 'ownership',
35
+ type: 'options',
36
+ options: [
37
+ { name: 'Any', value: 'any', description: 'Owned by and shared with the user' },
38
+ { name: 'Owned', value: 'owned', description: 'Owned by the user' },
39
+ { name: 'Shared', value: 'shared', description: 'Shared with the user' },
40
+ ],
41
+ default: 'any',
42
+ description: 'Filter designs by ownership',
43
+ },
44
+ {
45
+ displayName: 'Search Query',
46
+ name: 'query',
47
+ type: 'string',
48
+ default: '',
49
+ description: 'Search term to filter designs by name',
50
+ placeholder: 'party invites',
51
+ },
52
+ {
53
+ displayName: 'Sort By',
54
+ name: 'sort_by',
55
+ type: 'options',
56
+ options: [
57
+ { name: 'Modified (Newest First)', value: 'modified_descending' },
58
+ { name: 'Modified (Oldest First)', value: 'modified_ascending' },
59
+ { name: 'Relevance', value: 'relevance' },
60
+ { name: 'Title (A–Z)', value: 'title_ascending' },
61
+ { name: 'Title (Z–A)', value: 'title_descending' },
62
+ ],
63
+ default: 'relevance',
64
+ description: 'Sort order for the results',
65
+ },
66
+ ],
67
+ },
68
+ ];
69
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/design/getAll.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,C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AW,EAAE,uCAAuC;gBACpD,WAAW,EAAE,eAAe;aAC5B;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,yBAAyB,EAAE,KAAK,EAAE,qBAAqB,EAAE;oBACjE,EAAE,IAAI,EAAE,yBAAyB,EAAE,KAAK,EAAE,oBAAoB,EAAE;oBAChE,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;oBACzC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBACjD,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE;iBAClD;gBACD,OAAO,EAAE,WAAW;gBACpB,WAAW,EAAE,4BAA4B;aACzC;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const designGetDatasetDescription: INodeProperties[];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designGetDatasetDescription = void 0;
4
+ exports.designGetDatasetDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['design'], operation: ['getDataset'] } },
12
+ description: 'The ID of the design to get the autofill dataset for',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ ];
16
+ //# sourceMappingURL=getDataset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDataset.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/design/getDataset.ts"],"names":[],"mappings":";;;AAEa,QAAA,2BAA2B,GAAsB;IAC7D;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE;QAC7E,WAAW,EAAE,sDAAsD;QACnE,WAAW,EAAE,aAAa;KAC1B;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const designGetDatasetPreviewNoticeDescription: INodeProperties[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designGetDatasetPreviewNoticeDescription = void 0;
4
+ exports.designGetDatasetPreviewNoticeDescription = [
5
+ {
6
+ displayName: '⚠️ Preview API: This operation may have unannounced breaking changes and cannot be used in public integrations submitted for Canva review.',
7
+ name: 'designGetDatasetPreviewNotice',
8
+ type: 'notice',
9
+ default: '',
10
+ displayOptions: { show: { resource: ['design'], operation: ['getDataset'] } },
11
+ },
12
+ ];
13
+ //# sourceMappingURL=getDatasetPreviewNotice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDatasetPreviewNotice.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/design/getDatasetPreviewNotice.ts"],"names":[],"mappings":";;;AAEa,QAAA,wCAAwC,GAAsB;IAC1E;QACC,WAAW,EACV,4IAA4I;QAC7I,IAAI,EAAE,+BAA+B;QACrC,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE;KAC7E;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const designGetExportFormatsDescription: INodeProperties[];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designGetExportFormatsDescription = void 0;
4
+ exports.designGetExportFormatsDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['design'], operation: ['getExportFormats'] } },
12
+ description: 'The ID of the design to get available export formats for',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ ];
16
+ //# sourceMappingURL=getExportFormats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getExportFormats.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/design/getExportFormats.ts"],"names":[],"mappings":";;;AAEa,QAAA,iCAAiC,GAAsB;IACnE;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,kBAAkB,CAAC,EAAE,EAAE;QACnF,WAAW,EAAE,0DAA0D;QACvE,WAAW,EAAE,aAAa;KAC1B;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const designGetPagesDescription: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designGetPagesDescription = void 0;
4
+ exports.designGetPagesDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['design'], operation: ['getPages'] } },
12
+ description: 'The ID of the design to get pages for',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ {
16
+ displayName: 'Offset',
17
+ name: 'offset',
18
+ type: 'number',
19
+ typeOptions: { minValue: 1, maxValue: 500 },
20
+ default: 1,
21
+ displayOptions: { show: { resource: ['design'], operation: ['getPages'] } },
22
+ description: 'Page index of the first page to return (1-based)',
23
+ },
24
+ {
25
+ displayName: 'Limit',
26
+ name: 'limit',
27
+ type: 'number',
28
+ typeOptions: { minValue: 1, maxValue: 200 },
29
+ default: 50,
30
+ displayOptions: { show: { resource: ['design'], operation: ['getPages'] } },
31
+ description: 'Max number of results to return',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=getPages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPages.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/design/getPages.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE;QAC3E,WAAW,EAAE,uCAAuC;QACpD,WAAW,EAAE,aAAa;KAC1B;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE;QAC3C,OAAO,EAAE,CAAC;QACV,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE;QAC3E,WAAW,EAAE,kDAAkD;KAC/D;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE;QAC3C,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE;QAC3E,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const designGetPagesPreviewNoticeDescription: INodeProperties[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designGetPagesPreviewNoticeDescription = void 0;
4
+ exports.designGetPagesPreviewNoticeDescription = [
5
+ {
6
+ displayName: '⚠️ Preview API: This operation may have unannounced breaking changes and cannot be used in public integrations submitted for Canva review.',
7
+ name: 'designGetPagesPreviewNotice',
8
+ type: 'notice',
9
+ default: '',
10
+ displayOptions: { show: { resource: ['design'], operation: ['getPages'] } },
11
+ },
12
+ ];
13
+ //# sourceMappingURL=getPagesPreviewNotice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPagesPreviewNotice.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/design/getPagesPreviewNotice.ts"],"names":[],"mappings":";;;AAEa,QAAA,sCAAsC,GAAsB;IACxE;QACC,WAAW,EACV,4IAA4I;QAC7I,IAAI,EAAE,6BAA6B;QACnC,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE;KAC3E;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const designOperations: INodeProperties[];
3
+ export declare const designDescription: INodeProperties[];
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designDescription = exports.designOperations = void 0;
4
+ const create_1 = require("./create");
5
+ const get_1 = require("./get");
6
+ const getDataset_1 = require("./getDataset");
7
+ const getDatasetPreviewNotice_1 = require("./getDatasetPreviewNotice");
8
+ const getAll_1 = require("./getAll");
9
+ const getExportFormats_1 = require("./getExportFormats");
10
+ const getPages_1 = require("./getPages");
11
+ const getPagesPreviewNotice_1 = require("./getPagesPreviewNotice");
12
+ exports.designOperations = [
13
+ {
14
+ displayName: 'Operation',
15
+ name: 'operation',
16
+ type: 'options',
17
+ noDataExpression: true,
18
+ displayOptions: { show: { resource: ['design'] } },
19
+ options: [
20
+ {
21
+ name: 'Create',
22
+ value: 'create',
23
+ description: 'Create a new design',
24
+ action: 'Create a design',
25
+ },
26
+ {
27
+ name: 'Get',
28
+ value: 'get',
29
+ description: 'Get metadata for a design',
30
+ action: 'Get a design',
31
+ },
32
+ {
33
+ name: 'Get Dataset (Preview)',
34
+ value: 'getDataset',
35
+ description: 'Get the autofill dataset for a design',
36
+ action: 'Get design dataset',
37
+ },
38
+ {
39
+ name: 'Get Export Formats',
40
+ value: 'getExportFormats',
41
+ description: 'Get the available export formats for a design',
42
+ action: 'Get design export formats',
43
+ },
44
+ {
45
+ name: 'Get Many',
46
+ value: 'getAll',
47
+ description: "Get many designs from the user's projects",
48
+ action: 'Get many designs',
49
+ },
50
+ {
51
+ name: 'Get Pages',
52
+ value: 'getPages',
53
+ description: 'Get metadata for pages in a design',
54
+ action: 'Get design pages',
55
+ },
56
+ ],
57
+ default: 'create',
58
+ },
59
+ ];
60
+ exports.designDescription = [
61
+ ...exports.designOperations,
62
+ ...create_1.designCreateDescription,
63
+ ...get_1.designGetDescription,
64
+ ...getDatasetPreviewNotice_1.designGetDatasetPreviewNoticeDescription,
65
+ ...getDataset_1.designGetDatasetDescription,
66
+ ...getExportFormats_1.designGetExportFormatsDescription,
67
+ ...getPagesPreviewNotice_1.designGetPagesPreviewNoticeDescription,
68
+ ...getPages_1.designGetPagesDescription,
69
+ ...getAll_1.designGetAllDescription,
70
+ ];
71
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/design/index.ts"],"names":[],"mappings":";;;AACA,qCAAmD;AACnD,+BAA6C;AAC7C,6CAA2D;AAC3D,uEAAqF;AACrF,qCAAmD;AACnD,yDAAuE;AACvE,yCAAuD;AACvD,mEAAiF;AAEpE,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QAClD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,2BAA2B;gBACxC,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,uBAAuB;gBAC7B,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,uCAAuC;gBACpD,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,oBAAoB;gBAC1B,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,+CAA+C;gBAC5D,MAAM,EAAE,2BAA2B;aACnC;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,2CAA2C;gBACxD,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,oCAAoC;gBACjD,MAAM,EAAE,kBAAkB;aAC1B;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,iBAAiB,GAAsB;IACnD,GAAG,wBAAgB;IACnB,GAAG,gCAAuB;IAC1B,GAAG,0BAAoB;IACvB,GAAG,kEAAwC;IAC3C,GAAG,wCAA2B;IAC9B,GAAG,oDAAiC;IACpC,GAAG,8DAAsC;IACzC,GAAG,oCAAyB;IAC5B,GAAG,gCAAuB;CAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const designImportCreateImportDescription: INodeProperties[];
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designImportCreateImportDescription = void 0;
4
+ exports.designImportCreateImportDescription = [
5
+ {
6
+ displayName: 'File URL',
7
+ name: 'url',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['designImport'], operation: ['createImport'] } },
12
+ description: 'Publicly accessible URL of the file to import into Canva',
13
+ placeholder: 'https://example.com/presentation.pptx',
14
+ },
15
+ {
16
+ displayName: 'Title',
17
+ name: 'title',
18
+ type: 'string',
19
+ default: '',
20
+ required: true,
21
+ displayOptions: { show: { resource: ['designImport'], operation: ['createImport'] } },
22
+ description: 'Title for the imported design (max 255 characters)',
23
+ placeholder: 'Q4 Presentation',
24
+ },
25
+ {
26
+ displayName: 'Poll Interval (Ms)',
27
+ name: 'pollInterval',
28
+ type: 'number',
29
+ typeOptions: { minValue: 500, maxValue: 30000 },
30
+ default: 3000,
31
+ displayOptions: { show: { resource: ['designImport'], operation: ['createImport'] } },
32
+ description: 'How often to check if the import job is complete (milliseconds)',
33
+ },
34
+ {
35
+ displayName: 'Max Wait Time (Seconds)',
36
+ name: 'maxWait',
37
+ type: 'number',
38
+ typeOptions: { minValue: 10, maxValue: 600 },
39
+ default: 120,
40
+ displayOptions: { show: { resource: ['designImport'], operation: ['createImport'] } },
41
+ description: 'Maximum time to wait for the import to complete before timing out',
42
+ },
43
+ ];
44
+ //# sourceMappingURL=createImport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createImport.js","sourceRoot":"","sources":["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E,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;QACrF,WAAW,EAAE,mEAAmE;KAChF;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const designImportOperations: INodeProperties[];
3
+ export declare const designImportDescription: INodeProperties[];
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designImportDescription = exports.designImportOperations = void 0;
4
+ const createImport_1 = require("./createImport");
5
+ exports.designImportOperations = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: { show: { resource: ['designImport'] } },
12
+ options: [
13
+ {
14
+ name: 'Import From URL',
15
+ value: 'createImport',
16
+ description: 'Import a design from another application into Canva using a public URL (waits for the job to complete)',
17
+ action: 'Import a design from URL',
18
+ },
19
+ ],
20
+ default: 'createImport',
21
+ },
22
+ ];
23
+ exports.designImportDescription = [
24
+ ...exports.designImportOperations,
25
+ ...createImport_1.designImportCreateImportDescription,
26
+ ];
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/designImport/index.ts"],"names":[],"mappings":";;;AACA,iDAAqE;AAExD,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;QACxD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,cAAc;gBACrB,WAAW,EACV,wGAAwG;gBACzG,MAAM,EAAE,0BAA0B;aAClC;SACD;QACD,OAAO,EAAE,cAAc;KACvB;CACD,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACzD,GAAG,8BAAsB;IACzB,GAAG,kDAAmC;CACtC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const exportExportDescription: INodeProperties[];
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.exportExportDescription = void 0;
4
+ exports.exportExportDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['export'], operation: ['export'] } },
12
+ description: 'The ID of the design to export',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ {
16
+ displayName: 'Format',
17
+ name: 'format',
18
+ type: 'options',
19
+ options: [
20
+ { name: 'CSV', value: 'csv' },
21
+ { name: 'GIF', value: 'gif' },
22
+ { name: 'HTML Bundle', value: 'html_bundle' },
23
+ { name: 'HTML Standalone', value: 'html_standalone' },
24
+ { name: 'JPG', value: 'jpg' },
25
+ { name: 'MP4', value: 'mp4' },
26
+ { name: 'PDF', value: 'pdf' },
27
+ { name: 'PNG', value: 'png' },
28
+ { name: 'PowerPoint (PPTX)', value: 'pptx' },
29
+ ],
30
+ default: 'pdf',
31
+ required: true,
32
+ displayOptions: { show: { resource: ['export'], operation: ['export'] } },
33
+ description: 'File format to export the design as',
34
+ },
35
+ {
36
+ displayName: 'Quality',
37
+ name: 'jpgQuality',
38
+ type: 'number',
39
+ typeOptions: { minValue: 1, maxValue: 100 },
40
+ default: 80,
41
+ required: true,
42
+ displayOptions: { show: { resource: ['export'], operation: ['export'], format: ['jpg'] } },
43
+ description: 'Compression quality of the exported JPG (1–100, higher is better quality)',
44
+ },
45
+ {
46
+ displayName: 'Quality',
47
+ name: 'mp4Quality',
48
+ type: 'options',
49
+ options: [
50
+ { name: 'Horizontal 1080p', value: 'horizontal_1080p' },
51
+ { name: 'Horizontal 480p', value: 'horizontal_480p' },
52
+ { name: 'Horizontal 4K', value: 'horizontal_4k' },
53
+ { name: 'Horizontal 720p', value: 'horizontal_720p' },
54
+ { name: 'Vertical 1080p', value: 'vertical_1080p' },
55
+ { name: 'Vertical 480p', value: 'vertical_480p' },
56
+ { name: 'Vertical 4K', value: 'vertical_4k' },
57
+ { name: 'Vertical 720p', value: 'vertical_720p' },
58
+ ],
59
+ default: 'horizontal_1080p',
60
+ required: true,
61
+ displayOptions: { show: { resource: ['export'], operation: ['export'], format: ['mp4'] } },
62
+ description: 'Orientation and resolution of the exported MP4',
63
+ },
64
+ {
65
+ displayName: 'Page Numbers',
66
+ name: 'pages',
67
+ type: 'string',
68
+ default: '',
69
+ displayOptions: { show: { resource: ['export'], operation: ['export'] } },
70
+ description: 'Comma-separated list of page numbers to export (e.g. "1,2,3"). Leave empty to export all pages.',
71
+ placeholder: '1,2,3',
72
+ },
73
+ {
74
+ displayName: 'Poll Interval (Ms)',
75
+ name: 'pollInterval',
76
+ type: 'number',
77
+ typeOptions: { minValue: 500, maxValue: 30000 },
78
+ default: 2000,
79
+ displayOptions: { show: { resource: ['export'], operation: ['export'] } },
80
+ description: 'How often to check if the export job is complete (milliseconds)',
81
+ },
82
+ {
83
+ displayName: 'Max Wait Time (Seconds)',
84
+ name: 'maxWait',
85
+ type: 'number',
86
+ typeOptions: { minValue: 10, maxValue: 300 },
87
+ default: 60,
88
+ displayOptions: { show: { resource: ['export'], operation: ['export'] } },
89
+ description: 'Maximum time to wait for the export to complete before timing out',
90
+ },
91
+ ];
92
+ //# sourceMappingURL=export.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/export/export.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ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,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QACzE,WAAW,EACV,iGAAiG;QAClG,WAAW,EAAE,OAAO;KACpB;IACD;QACC,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE;QAC/C,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QACzE,WAAW,EAAE,iEAAiE;KAC9E;IACD;QACC,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE;QAC5C,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QACzE,WAAW,EAAE,mEAAmE;KAChF;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const exportOperations: INodeProperties[];
3
+ export declare const exportDescription: INodeProperties[];
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.exportDescription = exports.exportOperations = void 0;
4
+ const export_1 = require("./export");
5
+ exports.exportOperations = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: { show: { resource: ['export'] } },
12
+ options: [
13
+ {
14
+ name: 'Export Design',
15
+ value: 'export',
16
+ description: 'Export a design to a file (waits for the job to complete)',
17
+ action: 'Export a design',
18
+ },
19
+ ],
20
+ default: 'export',
21
+ },
22
+ ];
23
+ exports.exportDescription = [
24
+ ...exports.exportOperations,
25
+ ...export_1.exportExportDescription,
26
+ ];
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/export/index.ts"],"names":[],"mappings":";;;AACA,qCAAmD;AAEtC,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QAClD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,2DAA2D;gBACxE,MAAM,EAAE,iBAAiB;aACzB;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,iBAAiB,GAAsB;IACnD,GAAG,wBAAgB;IACnB,GAAG,gCAAuB;CAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const folderCreateDescription: INodeProperties[];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.folderCreateDescription = void 0;
4
+ exports.folderCreateDescription = [
5
+ {
6
+ displayName: 'Name',
7
+ name: 'name',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['folder'], operation: ['create'] } },
12
+ description: 'Name of the new folder',
13
+ placeholder: 'My Folder',
14
+ },
15
+ {
16
+ displayName: 'Parent Folder ID',
17
+ name: 'parentFolderId',
18
+ type: 'string',
19
+ default: 'root',
20
+ required: true,
21
+ displayOptions: { show: { resource: ['folder'], operation: ['create'] } },
22
+ description: 'ID of the parent folder. Use "root" for the top-level projects, or "uploads" for the uploads folder.',
23
+ placeholder: 'root',
24
+ },
25
+ ];
26
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/folder/create.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QACzE,WAAW,EAAE,wBAAwB;QACrC,WAAW,EAAE,WAAW;KACxB;IACD;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QACzE,WAAW,EACV,sGAAsG;QACvG,WAAW,EAAE,MAAM;KACnB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const folderDeleteDescription: INodeProperties[];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.folderDeleteDescription = void 0;
4
+ exports.folderDeleteDescription = [
5
+ {
6
+ displayName: 'Folder ID',
7
+ name: 'folderId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['folder'], operation: ['delete'] } },
12
+ description: 'The ID of the folder to delete',
13
+ placeholder: 'FAF2lZtloor',
14
+ },
15
+ ];
16
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/folder/delete.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QACzE,WAAW,EAAE,gCAAgC;QAC7C,WAAW,EAAE,aAAa;KAC1B;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const folderGetDescription: INodeProperties[];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.folderGetDescription = void 0;
4
+ exports.folderGetDescription = [
5
+ {
6
+ displayName: 'Folder ID',
7
+ name: 'folderId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['folder'], operation: ['get'] } },
12
+ description: 'The ID of the folder to retrieve',
13
+ placeholder: 'FAF2lZtloor',
14
+ },
15
+ ];
16
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/folder/get.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAsB;IACtD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;QACtE,WAAW,EAAE,kCAAkC;QAC/C,WAAW,EAAE,aAAa;KAC1B;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const folderOperations: INodeProperties[];
3
+ export declare const folderDescription: INodeProperties[];