@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 @@
1
+ {"version":3,"file":"getDataset.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/brandTemplate/getDataset.ts"],"names":[],"mappings":";;;AAEa,QAAA,kCAAkC,GAAsB;IACpE;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE;QACpF,WAAW,EAAE,8DAA8D;QAC3E,WAAW,EAAE,aAAa;KAC1B;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const brandTemplateOperations: INodeProperties[];
3
+ export declare const brandTemplateDescription: INodeProperties[];
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.brandTemplateDescription = exports.brandTemplateOperations = void 0;
4
+ const get_1 = require("./get");
5
+ const getAll_1 = require("./getAll");
6
+ const getDataset_1 = require("./getDataset");
7
+ const premiumNotice_1 = require("./premiumNotice");
8
+ const publish_1 = require("./publish");
9
+ const publishPreviewNotice_1 = require("./publishPreviewNotice");
10
+ exports.brandTemplateOperations = [
11
+ {
12
+ displayName: 'Operation',
13
+ name: 'operation',
14
+ type: 'options',
15
+ noDataExpression: true,
16
+ displayOptions: { show: { resource: ['brandTemplate'] } },
17
+ options: [
18
+ {
19
+ name: 'Get',
20
+ value: 'get',
21
+ description: 'Get the metadata for a brand template',
22
+ action: 'Get a brand template',
23
+ },
24
+ {
25
+ name: 'Get Dataset',
26
+ value: 'getDataset',
27
+ description: 'Get the autofill dataset for a brand template',
28
+ action: 'Get brand template dataset',
29
+ },
30
+ {
31
+ name: 'Get Many',
32
+ value: 'getAll',
33
+ description: "Get many of the user's brand templates",
34
+ action: 'Get many brand templates',
35
+ },
36
+ {
37
+ name: 'Publish (Preview)',
38
+ value: 'publish',
39
+ description: 'Publish a design as a brand template',
40
+ action: 'Publish a brand template',
41
+ },
42
+ ],
43
+ default: 'getAll',
44
+ },
45
+ ];
46
+ exports.brandTemplateDescription = [
47
+ ...exports.brandTemplateOperations,
48
+ ...premiumNotice_1.brandTemplatePremiumNoticeDescription,
49
+ ...get_1.brandTemplateGetDescription,
50
+ ...getDataset_1.brandTemplateGetDatasetDescription,
51
+ ...getAll_1.brandTemplateGetAllDescription,
52
+ ...publishPreviewNotice_1.brandTemplatePublishPreviewNoticeDescription,
53
+ ...publish_1.brandTemplatePublishDescription,
54
+ ];
55
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/brandTemplate/index.ts"],"names":[],"mappings":";;;AACA,+BAAoD;AACpD,qCAA0D;AAC1D,6CAAkE;AAClE,mDAAwE;AACxE,uCAA4D;AAC5D,iEAAsF;AAEzE,QAAA,uBAAuB,GAAsB;IACzD;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,eAAe,CAAC,EAAE,EAAE;QACzD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,uCAAuC;gBACpD,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,+CAA+C;gBAC5D,MAAM,EAAE,4BAA4B;aACpC;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,wCAAwC;gBACrD,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,sCAAsC;gBACnD,MAAM,EAAE,0BAA0B;aAClC;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,wBAAwB,GAAsB;IAC1D,GAAG,+BAAuB;IAC1B,GAAG,qDAAqC;IACxC,GAAG,iCAA2B;IAC9B,GAAG,+CAAkC;IACrC,GAAG,uCAA8B;IACjC,GAAG,mEAA4C;IAC/C,GAAG,yCAA+B;CAClC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const brandTemplatePremiumNoticeDescription: INodeProperties[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.brandTemplatePremiumNoticeDescription = void 0;
4
+ exports.brandTemplatePremiumNoticeDescription = [
5
+ {
6
+ displayName: '💎 Premium plan required: The Brand Template APIs require a Canva plan with premium features (such as Canva Pro).',
7
+ name: 'brandTemplatePremiumNotice',
8
+ type: 'notice',
9
+ default: '',
10
+ displayOptions: { show: { resource: ['brandTemplate'] } },
11
+ },
12
+ ];
13
+ //# sourceMappingURL=premiumNotice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premiumNotice.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/brandTemplate/premiumNotice.ts"],"names":[],"mappings":";;;AAEa,QAAA,qCAAqC,GAAsB;IACvE;QACC,WAAW,EACV,mHAAmH;QACpH,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,EAAE;KACzD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const brandTemplatePublishDescription: INodeProperties[];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.brandTemplatePublishDescription = void 0;
4
+ exports.brandTemplatePublishDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['brandTemplate'], operation: ['publish'] } },
12
+ description: 'The ID of the design to publish as a brand template. If this design is a draft of an existing brand template, that template will be updated.',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ ];
16
+ //# sourceMappingURL=publish.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/brandTemplate/publish.ts"],"names":[],"mappings":";;;AAEa,QAAA,+BAA+B,GAAsB;IACjE;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,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;QACjF,WAAW,EACV,8IAA8I;QAC/I,WAAW,EAAE,aAAa;KAC1B;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const brandTemplatePublishPreviewNoticeDescription: INodeProperties[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.brandTemplatePublishPreviewNoticeDescription = void 0;
4
+ exports.brandTemplatePublishPreviewNoticeDescription = [
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: 'brandTemplatePublishPreviewNotice',
8
+ type: 'notice',
9
+ default: '',
10
+ displayOptions: { show: { resource: ['brandTemplate'], operation: ['publish'] } },
11
+ },
12
+ ];
13
+ //# sourceMappingURL=publishPreviewNotice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publishPreviewNotice.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/brandTemplate/publishPreviewNotice.ts"],"names":[],"mappings":";;;AAEa,QAAA,4CAA4C,GAAsB;IAC9E;QACC,WAAW,EACV,4IAA4I;QAC7I,IAAI,EAAE,mCAAmC;QACzC,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;KACjF;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const commentCreateReplyDescription: INodeProperties[];
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commentCreateReplyDescription = void 0;
4
+ exports.commentCreateReplyDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['comment'], operation: ['createReply'] } },
12
+ description: 'The ID of the design containing the comment thread',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ {
16
+ displayName: 'Thread ID',
17
+ name: 'threadId',
18
+ type: 'string',
19
+ default: '',
20
+ required: true,
21
+ displayOptions: { show: { resource: ['comment'], operation: ['createReply'] } },
22
+ description: 'The ID of the comment thread to reply to',
23
+ placeholder: 'FeXxxxxx5N',
24
+ },
25
+ {
26
+ displayName: 'Message',
27
+ name: 'message',
28
+ type: 'string',
29
+ default: '',
30
+ required: true,
31
+ displayOptions: { show: { resource: ['comment'], operation: ['createReply'] } },
32
+ description: 'The text content of the reply',
33
+ placeholder: 'Done, updated the font!',
34
+ typeOptions: { rows: 3 },
35
+ },
36
+ ];
37
+ //# sourceMappingURL=createReply.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createReply.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/comment/createReply.ts"],"names":[],"mappings":";;;AAEa,QAAA,6BAA6B,GAAsB;IAC/D;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,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QAC/E,WAAW,EAAE,oDAAoD;QACjE,WAAW,EAAE,aAAa;KAC1B;IACD;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,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QAC/E,WAAW,EAAE,0CAA0C;QACvD,WAAW,EAAE,YAAY;KACzB;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QAC/E,WAAW,EAAE,+BAA+B;QAC5C,WAAW,EAAE,yBAAyB;QACtC,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;KACxB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const commentCreateThreadDescription: INodeProperties[];
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commentCreateThreadDescription = void 0;
4
+ exports.commentCreateThreadDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['comment'], operation: ['createThread'] } },
12
+ description: 'The ID of the design to create a comment thread on',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ {
16
+ displayName: 'Message',
17
+ name: 'message',
18
+ type: 'string',
19
+ default: '',
20
+ required: true,
21
+ displayOptions: { show: { resource: ['comment'], operation: ['createThread'] } },
22
+ description: 'The text content of the comment',
23
+ placeholder: 'Looks great! Can we adjust the font?',
24
+ typeOptions: { rows: 3 },
25
+ },
26
+ {
27
+ displayName: 'Additional Fields',
28
+ name: 'additionalFields',
29
+ type: 'collection',
30
+ placeholder: 'Add Field',
31
+ default: {},
32
+ displayOptions: { show: { resource: ['comment'], operation: ['createThread'] } },
33
+ options: [
34
+ {
35
+ displayName: 'Assignee User ID',
36
+ name: 'assignee_id',
37
+ type: 'string',
38
+ default: '',
39
+ description: 'The user ID to assign this comment thread to',
40
+ placeholder: 'Uabcd1234',
41
+ },
42
+ ],
43
+ },
44
+ ];
45
+ //# sourceMappingURL=createThread.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createThread.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/comment/createThread.ts"],"names":[],"mappings":";;;AAEa,QAAA,8BAA8B,GAAsB;IAChE;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,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;QAChF,WAAW,EAAE,oDAAoD;QACjE,WAAW,EAAE,aAAa;KAC1B;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;QAChF,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE,sCAAsC;QACnD,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;KACxB;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;QAChF,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,8CAA8C;gBAC3D,WAAW,EAAE,WAAW;aACxB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const commentGetReplyDescription: INodeProperties[];
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commentGetReplyDescription = void 0;
4
+ exports.commentGetReplyDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['comment'], operation: ['getReply'] } },
12
+ description: 'The ID of the design containing the comment thread',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ {
16
+ displayName: 'Thread ID',
17
+ name: 'threadId',
18
+ type: 'string',
19
+ default: '',
20
+ required: true,
21
+ displayOptions: { show: { resource: ['comment'], operation: ['getReply'] } },
22
+ description: 'The ID of the parent comment thread',
23
+ placeholder: 'FeXxxxxx5N',
24
+ },
25
+ {
26
+ displayName: 'Reply ID',
27
+ name: 'replyId',
28
+ type: 'string',
29
+ default: '',
30
+ required: true,
31
+ displayOptions: { show: { resource: ['comment'], operation: ['getReply'] } },
32
+ description: 'The ID of the reply to retrieve',
33
+ placeholder: 'FeXxxxxx6N',
34
+ },
35
+ ];
36
+ //# sourceMappingURL=getReply.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getReply.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/comment/getReply.ts"],"names":[],"mappings":";;;AAEa,QAAA,0BAA0B,GAAsB;IAC5D;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,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE;QAC5E,WAAW,EAAE,oDAAoD;QACjE,WAAW,EAAE,aAAa;KAC1B;IACD;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,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE;QAC5E,WAAW,EAAE,qCAAqC;QAClD,WAAW,EAAE,YAAY;KACzB;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE;QAC5E,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE,YAAY;KACzB;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const commentGetThreadDescription: INodeProperties[];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commentGetThreadDescription = void 0;
4
+ exports.commentGetThreadDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['comment'], operation: ['getThread'] } },
12
+ description: 'The ID of the design containing the comment thread',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ {
16
+ displayName: 'Thread ID',
17
+ name: 'threadId',
18
+ type: 'string',
19
+ default: '',
20
+ required: true,
21
+ displayOptions: { show: { resource: ['comment'], operation: ['getThread'] } },
22
+ description: 'The ID of the comment thread to retrieve',
23
+ placeholder: 'FeXxxxxx5N',
24
+ },
25
+ ];
26
+ //# sourceMappingURL=getThread.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThread.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/comment/getThread.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,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QAC7E,WAAW,EAAE,oDAAoD;QACjE,WAAW,EAAE,aAAa;KAC1B;IACD;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,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QAC7E,WAAW,EAAE,0CAA0C;QACvD,WAAW,EAAE,YAAY;KACzB;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const commentOperations: INodeProperties[];
3
+ export declare const commentDescription: INodeProperties[];
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commentDescription = exports.commentOperations = void 0;
4
+ const createReply_1 = require("./createReply");
5
+ const createThread_1 = require("./createThread");
6
+ const getReply_1 = require("./getReply");
7
+ const getThread_1 = require("./getThread");
8
+ const listReplies_1 = require("./listReplies");
9
+ const previewNotice_1 = require("./previewNotice");
10
+ exports.commentOperations = [
11
+ {
12
+ displayName: 'Operation',
13
+ name: 'operation',
14
+ type: 'options',
15
+ noDataExpression: true,
16
+ displayOptions: { show: { resource: ['comment'] } },
17
+ options: [
18
+ {
19
+ name: 'Create Reply (Preview)',
20
+ value: 'createReply',
21
+ description: 'Reply to a comment thread on a design',
22
+ action: 'Create a comment reply',
23
+ },
24
+ {
25
+ name: 'Create Thread (Preview)',
26
+ value: 'createThread',
27
+ description: 'Create a new comment thread on a design',
28
+ action: 'Create a comment thread',
29
+ },
30
+ {
31
+ name: 'Get Reply (Preview)',
32
+ value: 'getReply',
33
+ description: 'Get a specific reply from a comment thread',
34
+ action: 'Get a comment reply',
35
+ },
36
+ {
37
+ name: 'Get Thread (Preview)',
38
+ value: 'getThread',
39
+ description: 'Get metadata for a comment thread',
40
+ action: 'Get a comment thread',
41
+ },
42
+ {
43
+ name: 'List Replies (Preview)',
44
+ value: 'listReplies',
45
+ description: 'List all replies for a comment thread',
46
+ action: 'List comment replies',
47
+ },
48
+ ],
49
+ default: 'createThread',
50
+ },
51
+ ];
52
+ exports.commentDescription = [
53
+ ...exports.commentOperations,
54
+ ...previewNotice_1.commentPreviewNoticeDescription,
55
+ ...createReply_1.commentCreateReplyDescription,
56
+ ...createThread_1.commentCreateThreadDescription,
57
+ ...getReply_1.commentGetReplyDescription,
58
+ ...getThread_1.commentGetThreadDescription,
59
+ ...listReplies_1.commentListRepliesDescription,
60
+ ];
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/comment/index.ts"],"names":[],"mappings":";;;AACA,+CAA8D;AAC9D,iDAAgE;AAChE,yCAAwD;AACxD,2CAA0D;AAC1D,+CAA8D;AAC9D,mDAAkE;AAErD,QAAA,iBAAiB,GAAsB;IACnD;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,SAAS,CAAC,EAAE,EAAE;QACnD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,uCAAuC;gBACpD,MAAM,EAAE,wBAAwB;aAChC;YACD;gBACC,IAAI,EAAE,yBAAyB;gBAC/B,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,yCAAyC;gBACtD,MAAM,EAAE,yBAAyB;aACjC;YACD;gBACC,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,4CAA4C;gBACzD,MAAM,EAAE,qBAAqB;aAC7B;YACD;gBACC,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,mCAAmC;gBAChD,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,uCAAuC;gBACpD,MAAM,EAAE,sBAAsB;aAC9B;SACD;QACD,OAAO,EAAE,cAAc;KACvB;CACD,CAAC;AAEW,QAAA,kBAAkB,GAAsB;IACpD,GAAG,yBAAiB;IACpB,GAAG,+CAA+B;IAClC,GAAG,2CAA6B;IAChC,GAAG,6CAA8B;IACjC,GAAG,qCAA0B;IAC7B,GAAG,uCAA2B;IAC9B,GAAG,2CAA6B;CAChC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const commentListRepliesDescription: INodeProperties[];
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commentListRepliesDescription = void 0;
4
+ exports.commentListRepliesDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['comment'], operation: ['listReplies'] } },
12
+ description: 'The ID of the design containing the comment thread',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ {
16
+ displayName: 'Thread ID',
17
+ name: 'threadId',
18
+ type: 'string',
19
+ default: '',
20
+ required: true,
21
+ displayOptions: { show: { resource: ['comment'], operation: ['listReplies'] } },
22
+ description: 'The ID of the comment thread to list replies for',
23
+ placeholder: 'FeXxxxxx5N',
24
+ },
25
+ {
26
+ displayName: 'Return All',
27
+ name: 'returnAll',
28
+ type: 'boolean',
29
+ default: false,
30
+ displayOptions: { show: { resource: ['comment'], operation: ['listReplies'] } },
31
+ description: 'Whether to return all results or only up to a given limit',
32
+ },
33
+ {
34
+ displayName: 'Limit',
35
+ name: 'limit',
36
+ type: 'number',
37
+ typeOptions: { minValue: 1, maxValue: 100 },
38
+ default: 50,
39
+ displayOptions: {
40
+ show: { resource: ['comment'], operation: ['listReplies'], returnAll: [false] },
41
+ },
42
+ description: 'Max number of results to return',
43
+ },
44
+ ];
45
+ //# sourceMappingURL=listReplies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listReplies.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/comment/listReplies.ts"],"names":[],"mappings":";;;AAEa,QAAA,6BAA6B,GAAsB;IAC/D;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,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QAC/E,WAAW,EAAE,oDAAoD;QACjE,WAAW,EAAE,aAAa;KAC1B;IACD;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,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QAC/E,WAAW,EAAE,kDAAkD;QAC/D,WAAW,EAAE,YAAY;KACzB;IACD;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,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QAC/E,WAAW,EAAE,2DAA2D;KACxE;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;YACf,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE;SAC/E;QACD,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const commentPreviewNoticeDescription: INodeProperties[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commentPreviewNoticeDescription = void 0;
4
+ exports.commentPreviewNoticeDescription = [
5
+ {
6
+ displayName: '⚠️ Preview API: These operations may have unannounced breaking changes and cannot be used in public integrations submitted for Canva review.',
7
+ name: 'commentPreviewNotice',
8
+ type: 'notice',
9
+ default: '',
10
+ displayOptions: { show: { resource: ['comment'] } },
11
+ },
12
+ ];
13
+ //# sourceMappingURL=previewNotice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"previewNotice.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/comment/previewNotice.ts"],"names":[],"mappings":";;;AAEa,QAAA,+BAA+B,GAAsB;IACjE;QACC,WAAW,EACV,8IAA8I;QAC/I,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;KACnD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const designCreateDescription: INodeProperties[];
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designCreateDescription = void 0;
4
+ exports.designCreateDescription = [
5
+ {
6
+ displayName: 'Design Type',
7
+ name: 'designType',
8
+ type: 'options',
9
+ options: [
10
+ { name: 'Preset', value: 'preset', description: 'Use a predefined design type' },
11
+ { name: 'Custom Size', value: 'custom', description: 'Specify width and height in pixels' },
12
+ ],
13
+ default: 'preset',
14
+ required: true,
15
+ displayOptions: { show: { resource: ['design'], operation: ['create'] } },
16
+ description: 'How to define the design type',
17
+ },
18
+ {
19
+ displayName: 'Preset Type',
20
+ name: 'presetName',
21
+ type: 'options',
22
+ options: [
23
+ { name: 'Document', value: 'doc' },
24
+ { name: 'Email', value: 'email' },
25
+ { name: 'Presentation', value: 'presentation' },
26
+ { name: 'Whiteboard', value: 'whiteboard' },
27
+ ],
28
+ default: 'presentation',
29
+ required: true,
30
+ displayOptions: {
31
+ show: { resource: ['design'], operation: ['create'], designType: ['preset'] },
32
+ },
33
+ description: 'The preset design type to use',
34
+ },
35
+ {
36
+ displayName: 'Width (Px)',
37
+ name: 'width',
38
+ type: 'number',
39
+ typeOptions: { minValue: 40, maxValue: 8000 },
40
+ default: 800,
41
+ required: true,
42
+ displayOptions: {
43
+ show: { resource: ['design'], operation: ['create'], designType: ['custom'] },
44
+ },
45
+ description: 'Width of the custom design in pixels',
46
+ },
47
+ {
48
+ displayName: 'Height (Px)',
49
+ name: 'height',
50
+ type: 'number',
51
+ typeOptions: { minValue: 40, maxValue: 8000 },
52
+ default: 600,
53
+ required: true,
54
+ displayOptions: {
55
+ show: { resource: ['design'], operation: ['create'], designType: ['custom'] },
56
+ },
57
+ description: 'Height of the custom design in pixels',
58
+ },
59
+ {
60
+ displayName: 'Title',
61
+ name: 'title',
62
+ type: 'string',
63
+ default: '',
64
+ displayOptions: { show: { resource: ['design'], operation: ['create'] } },
65
+ description: 'Name of the new design (max 255 characters)',
66
+ placeholder: 'My Holiday Presentation',
67
+ },
68
+ {
69
+ displayName: 'Asset ID',
70
+ name: 'assetId',
71
+ type: 'string',
72
+ default: '',
73
+ displayOptions: { show: { resource: ['design'], operation: ['create'] } },
74
+ description: 'ID of an image asset to insert into the new design',
75
+ placeholder: 'Msd59349ff',
76
+ },
77
+ ];
78
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/design/create.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const designGetDescription: INodeProperties[];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designGetDescription = void 0;
4
+ exports.designGetDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['design'], operation: ['get'] } },
12
+ description: 'The ID of the design to retrieve',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ ];
16
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/design/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,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const designGetAllDescription: INodeProperties[];