@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,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.folderDescription = exports.folderOperations = void 0;
4
+ const create_1 = require("./create");
5
+ const delete_1 = require("./delete");
6
+ const get_1 = require("./get");
7
+ const listItems_1 = require("./listItems");
8
+ const moveItem_1 = require("./moveItem");
9
+ const update_1 = require("./update");
10
+ exports.folderOperations = [
11
+ {
12
+ displayName: 'Operation',
13
+ name: 'operation',
14
+ type: 'options',
15
+ noDataExpression: true,
16
+ displayOptions: { show: { resource: ['folder'] } },
17
+ options: [
18
+ {
19
+ name: 'Create',
20
+ value: 'create',
21
+ description: 'Create a new folder',
22
+ action: 'Create a folder',
23
+ },
24
+ {
25
+ name: 'Delete',
26
+ value: 'delete',
27
+ description: 'Delete a folder',
28
+ action: 'Delete a folder',
29
+ },
30
+ {
31
+ name: 'Get',
32
+ value: 'get',
33
+ description: 'Get details of a folder',
34
+ action: 'Get a folder',
35
+ },
36
+ {
37
+ name: 'List Items',
38
+ value: 'listItems',
39
+ description: 'List items in a folder',
40
+ action: 'List folder items',
41
+ },
42
+ {
43
+ name: 'Move Item',
44
+ value: 'moveItem',
45
+ description: 'Move an item to a different folder',
46
+ action: 'Move a folder item',
47
+ },
48
+ {
49
+ name: 'Update',
50
+ value: 'update',
51
+ description: "Update a folder's metadata",
52
+ action: 'Update a folder',
53
+ },
54
+ ],
55
+ default: 'listItems',
56
+ },
57
+ ];
58
+ exports.folderDescription = [
59
+ ...exports.folderOperations,
60
+ ...create_1.folderCreateDescription,
61
+ ...delete_1.folderDeleteDescription,
62
+ ...get_1.folderGetDescription,
63
+ ...listItems_1.folderListItemsDescription,
64
+ ...moveItem_1.folderMoveItemDescription,
65
+ ...update_1.folderUpdateDescription,
66
+ ];
67
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/folder/index.ts"],"names":[],"mappings":";;;AACA,qCAAmD;AACnD,qCAAmD;AACnD,+BAA6C;AAC7C,2CAAyD;AACzD,yCAAuD;AACvD,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,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,wBAAwB;gBACrC,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,oCAAoC;gBACjD,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,4BAA4B;gBACzC,MAAM,EAAE,iBAAiB;aACzB;SACD;QACD,OAAO,EAAE,WAAW;KACpB;CACD,CAAC;AAEW,QAAA,iBAAiB,GAAsB;IACnD,GAAG,wBAAgB;IACnB,GAAG,gCAAuB;IAC1B,GAAG,gCAAuB;IAC1B,GAAG,0BAAoB;IACvB,GAAG,sCAA0B;IAC7B,GAAG,oCAAyB;IAC5B,GAAG,gCAAuB;CAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const folderListItemsDescription: INodeProperties[];
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.folderListItemsDescription = void 0;
4
+ exports.folderListItemsDescription = [
5
+ {
6
+ displayName: 'Folder ID',
7
+ name: 'folderId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['folder'], operation: ['listItems'] } },
12
+ description: 'The ID of the folder to list items from',
13
+ placeholder: 'FAF2lZtloor',
14
+ },
15
+ {
16
+ displayName: 'Return All',
17
+ name: 'returnAll',
18
+ type: 'boolean',
19
+ default: false,
20
+ displayOptions: { show: { resource: ['folder'], operation: ['listItems'] } },
21
+ description: 'Whether to return all results or only up to a given limit',
22
+ },
23
+ {
24
+ displayName: 'Limit',
25
+ name: 'limit',
26
+ type: 'number',
27
+ typeOptions: { minValue: 1, maxValue: 100 },
28
+ default: 50,
29
+ displayOptions: {
30
+ show: { resource: ['folder'], operation: ['listItems'], returnAll: [false] },
31
+ },
32
+ description: 'Max number of results to return',
33
+ },
34
+ {
35
+ displayName: 'Filters',
36
+ name: 'filters',
37
+ type: 'collection',
38
+ placeholder: 'Add Filter',
39
+ default: {},
40
+ displayOptions: { show: { resource: ['folder'], operation: ['listItems'] } },
41
+ options: [
42
+ {
43
+ displayName: 'Item Types',
44
+ name: 'item_types',
45
+ type: 'multiOptions',
46
+ options: [
47
+ { name: 'Brand Template', value: 'brand_template' },
48
+ { name: 'Design', value: 'design' },
49
+ { name: 'Folder', value: 'folder' },
50
+ { name: 'Image', value: 'image' },
51
+ ],
52
+ default: [],
53
+ description: 'Filter results by item type',
54
+ },
55
+ {
56
+ displayName: 'Sort By',
57
+ name: 'sort_by',
58
+ type: 'options',
59
+ options: [
60
+ { name: 'Created (Newest First)', value: 'created_descending' },
61
+ { name: 'Created (Oldest First)', value: 'created_ascending' },
62
+ { name: 'Modified (Newest First)', value: 'modified_descending' },
63
+ { name: 'Modified (Oldest First)', value: 'modified_ascending' },
64
+ { name: 'Title (A–Z)', value: 'title_ascending' },
65
+ { name: 'Title (Z–A)', value: 'title_descending' },
66
+ ],
67
+ default: 'title_ascending',
68
+ description: 'Sort order for the items',
69
+ },
70
+ ],
71
+ },
72
+ ];
73
+ //# sourceMappingURL=listItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listItems.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/folder/listItems.ts"],"names":[],"mappings":";;;AAEa,QAAA,0BAA0B,GAAsB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EAAE,YAAY;gBAClB,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;oBACnD,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;iBACjC;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,6BAA6B;aAC1C;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,oBAAoB,EAAE;oBAC/D,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,mBAAmB,EAAE;oBAC9D,EAAE,IAAI,EAAE,yBAAyB,EAAE,KAAK,EAAE,qBAAqB,EAAE;oBACjE,EAAE,IAAI,EAAE,yBAAyB,EAAE,KAAK,EAAE,oBAAoB,EAAE;oBAChE,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBACjD,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE;iBAClD;gBACD,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,0BAA0B;aACvC;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const folderMoveItemDescription: INodeProperties[];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.folderMoveItemDescription = void 0;
4
+ exports.folderMoveItemDescription = [
5
+ {
6
+ displayName: 'Item ID',
7
+ name: 'itemId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['folder'], operation: ['moveItem'] } },
12
+ description: 'The ID of the item (design, folder, or asset) to move',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ {
16
+ displayName: 'To Folder ID',
17
+ name: 'toFolderId',
18
+ type: 'string',
19
+ default: '',
20
+ required: true,
21
+ displayOptions: { show: { resource: ['folder'], operation: ['moveItem'] } },
22
+ description: 'The ID of the destination folder. Use "root" for the top-level projects folder.',
23
+ placeholder: 'FAF2lZtloor',
24
+ },
25
+ ];
26
+ //# sourceMappingURL=moveItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveItem.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/folder/moveItem.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,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,uDAAuD;QACpE,WAAW,EAAE,aAAa;KAC1B;IACD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,YAAY;QAClB,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,iFAAiF;QAC9F,WAAW,EAAE,aAAa;KAC1B;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const folderUpdateDescription: INodeProperties[];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.folderUpdateDescription = void 0;
4
+ exports.folderUpdateDescription = [
5
+ {
6
+ displayName: 'Folder ID',
7
+ name: 'folderId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['folder'], operation: ['update'] } },
12
+ description: 'The ID of the folder to update',
13
+ placeholder: 'FAF2lZtloor',
14
+ },
15
+ {
16
+ displayName: 'Name',
17
+ name: 'name',
18
+ type: 'string',
19
+ default: '',
20
+ required: true,
21
+ displayOptions: { show: { resource: ['folder'], operation: ['update'] } },
22
+ description: 'New name for the folder (max 255 characters)',
23
+ placeholder: 'My Renamed Folder',
24
+ },
25
+ ];
26
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/folder/update.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;IACD;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,8CAA8C;QAC3D,WAAW,EAAE,mBAAmB;KAChC;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const mergeCreateDescription: INodeProperties[];
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mergeCreateDescription = void 0;
4
+ exports.mergeCreateDescription = [
5
+ {
6
+ displayName: 'Merge Type',
7
+ name: 'mergeType',
8
+ type: 'options',
9
+ options: [
10
+ {
11
+ name: 'Create New Design',
12
+ value: 'create_new_design',
13
+ description: 'Create a new design by inserting pages from other designs',
14
+ },
15
+ {
16
+ name: 'Modify Existing Design',
17
+ value: 'modify_existing_design',
18
+ description: 'Modify an existing design by inserting, moving, or deleting pages',
19
+ },
20
+ ],
21
+ default: 'create_new_design',
22
+ required: true,
23
+ displayOptions: { show: { resource: ['merge'], operation: ['create'] } },
24
+ description: 'The type of merge job to create',
25
+ },
26
+ {
27
+ displayName: 'Title',
28
+ name: 'title',
29
+ type: 'string',
30
+ default: '',
31
+ required: true,
32
+ displayOptions: {
33
+ show: { resource: ['merge'], operation: ['create'], mergeType: ['create_new_design'] },
34
+ },
35
+ description: 'Title for the new merged design (max 255 characters)',
36
+ placeholder: 'My Merged Design',
37
+ },
38
+ {
39
+ displayName: 'Design ID',
40
+ name: 'designId',
41
+ type: 'string',
42
+ default: '',
43
+ required: true,
44
+ displayOptions: {
45
+ show: { resource: ['merge'], operation: ['create'], mergeType: ['modify_existing_design'] },
46
+ },
47
+ description: 'The ID of the existing design to modify',
48
+ placeholder: 'DAFVztcvd9z',
49
+ },
50
+ {
51
+ displayName: 'Operations',
52
+ name: 'operations',
53
+ type: 'json',
54
+ default: '[]',
55
+ required: true,
56
+ displayOptions: { show: { resource: ['merge'], operation: ['create'] } },
57
+ description: 'Array of page operations to apply. Supported types: <code>insert_pages</code>, <code>move_pages</code>, <code>delete_pages</code>. Example insert: <code>[{"type":"insert_pages","source":{"type":"design","design_id":"DAFVztcvd9z"}}]</code>',
58
+ typeOptions: { rows: 6 },
59
+ },
60
+ {
61
+ displayName: 'Optional Title',
62
+ name: 'optionalTitle',
63
+ type: 'string',
64
+ default: '',
65
+ displayOptions: {
66
+ show: { resource: ['merge'], operation: ['create'], mergeType: ['modify_existing_design'] },
67
+ },
68
+ description: 'Optional new title for the modified design (max 255 characters)',
69
+ placeholder: 'Updated Design Title',
70
+ },
71
+ {
72
+ displayName: 'Poll Interval (Ms)',
73
+ name: 'pollInterval',
74
+ type: 'number',
75
+ typeOptions: { minValue: 500, maxValue: 30000 },
76
+ default: 3000,
77
+ displayOptions: { show: { resource: ['merge'], operation: ['create'] } },
78
+ description: 'How often to check if the merge job is complete (milliseconds)',
79
+ },
80
+ {
81
+ displayName: 'Max Wait Time (Seconds)',
82
+ name: 'maxWait',
83
+ type: 'number',
84
+ typeOptions: { minValue: 10, maxValue: 300 },
85
+ default: 60,
86
+ displayOptions: { show: { resource: ['merge'], operation: ['create'] } },
87
+ description: 'Maximum time to wait for the merge to complete before timing out',
88
+ },
89
+ ];
90
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/merge/create.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,2DAA2D;aACxE;YACD;gBACC,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE,wBAAwB;gBAC/B,WAAW,EAAE,mEAAmE;aAChF;SACD;QACD,OAAO,EAAE,mBAAmB;QAC5B,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QACxE,WAAW,E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CAAC,EAAE,SAAS,EAAE,CAAC,wBAAwB,CAAC,EAAE;SAC3F;QACD,WAAW,EAAE,iEAAiE;QAC9E,WAAW,EAAE,sBAAsB;KACnC;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,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QACxE,WAAW,EAAE,gEAAgE;KAC7E;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,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QACxE,WAAW,EAAE,kEAAkE;KAC/E;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const mergeOperations: INodeProperties[];
3
+ export declare const mergeDescription: INodeProperties[];
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mergeDescription = exports.mergeOperations = void 0;
4
+ const create_1 = require("./create");
5
+ const previewNotice_1 = require("./previewNotice");
6
+ exports.mergeOperations = [
7
+ {
8
+ displayName: 'Operation',
9
+ name: 'operation',
10
+ type: 'options',
11
+ noDataExpression: true,
12
+ displayOptions: { show: { resource: ['merge'] } },
13
+ options: [
14
+ {
15
+ name: 'Create Merge Job (Preview)',
16
+ value: 'create',
17
+ description: 'Merge design pages by applying page operations to create or modify a design (waits for the job to complete)',
18
+ action: 'Create a design merge job',
19
+ },
20
+ ],
21
+ default: 'create',
22
+ },
23
+ ];
24
+ exports.mergeDescription = [
25
+ ...exports.mergeOperations,
26
+ ...previewNotice_1.mergePreviewNoticeDescription,
27
+ ...create_1.mergeCreateDescription,
28
+ ];
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/merge/index.ts"],"names":[],"mappings":";;;AACA,qCAAkD;AAClD,mDAAgE;AAEnD,QAAA,eAAe,GAAsB;IACjD;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,OAAO,CAAC,EAAE,EAAE;QACjD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,4BAA4B;gBAClC,KAAK,EAAE,QAAQ;gBACf,WAAW,EACV,6GAA6G;gBAC9G,MAAM,EAAE,2BAA2B;aACnC;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,gBAAgB,GAAsB;IAClD,GAAG,uBAAe;IAClB,GAAG,6CAA6B;IAChC,GAAG,+BAAsB;CACzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const mergePreviewNoticeDescription: INodeProperties[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mergePreviewNoticeDescription = void 0;
4
+ exports.mergePreviewNoticeDescription = [
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: 'mergePreviewNotice',
8
+ type: 'notice',
9
+ default: '',
10
+ displayOptions: { show: { resource: ['merge'] } },
11
+ },
12
+ ];
13
+ //# sourceMappingURL=previewNotice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"previewNotice.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/merge/previewNotice.ts"],"names":[],"mappings":";;;AAEa,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EACV,8IAA8I;QAC/I,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE;KACjD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const resizeCreateDescription: INodeProperties[];
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resizeCreateDescription = void 0;
4
+ exports.resizeCreateDescription = [
5
+ {
6
+ displayName: 'Design ID',
7
+ name: 'designId',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: { show: { resource: ['resize'], operation: ['create'] } },
12
+ description: 'The ID of the design to resize',
13
+ placeholder: 'DAFVztcvd9z',
14
+ },
15
+ {
16
+ displayName: 'Design Type',
17
+ name: 'designType',
18
+ type: 'options',
19
+ options: [
20
+ { name: 'Preset', value: 'preset', description: 'Use a predefined design type' },
21
+ { name: 'Custom Size', value: 'custom', description: 'Specify width and height in pixels' },
22
+ ],
23
+ default: 'preset',
24
+ required: true,
25
+ displayOptions: { show: { resource: ['resize'], operation: ['create'] } },
26
+ description: 'How to define the target design type for the resized copy',
27
+ },
28
+ {
29
+ displayName: 'Preset Type',
30
+ name: 'presetName',
31
+ type: 'options',
32
+ options: [
33
+ { name: 'Presentation', value: 'presentation' },
34
+ { name: 'Whiteboard', value: 'whiteboard' },
35
+ ],
36
+ default: 'presentation',
37
+ required: true,
38
+ displayOptions: {
39
+ show: { resource: ['resize'], operation: ['create'], designType: ['preset'] },
40
+ },
41
+ description: 'The preset design type to resize to',
42
+ },
43
+ {
44
+ displayName: 'Width (Px)',
45
+ name: 'width',
46
+ type: 'number',
47
+ typeOptions: { minValue: 40, maxValue: 8000 },
48
+ default: 800,
49
+ required: true,
50
+ displayOptions: {
51
+ show: { resource: ['resize'], operation: ['create'], designType: ['custom'] },
52
+ },
53
+ description: 'Width of the resized design in pixels',
54
+ },
55
+ {
56
+ displayName: 'Height (Px)',
57
+ name: 'height',
58
+ type: 'number',
59
+ typeOptions: { minValue: 40, maxValue: 8000 },
60
+ default: 600,
61
+ required: true,
62
+ displayOptions: {
63
+ show: { resource: ['resize'], operation: ['create'], designType: ['custom'] },
64
+ },
65
+ description: 'Height of the resized design in pixels',
66
+ },
67
+ {
68
+ displayName: 'Poll Interval (Ms)',
69
+ name: 'pollInterval',
70
+ type: 'number',
71
+ typeOptions: { minValue: 500, maxValue: 30000 },
72
+ default: 2000,
73
+ displayOptions: { show: { resource: ['resize'], operation: ['create'] } },
74
+ description: 'How often to check if the resize job is complete (milliseconds)',
75
+ },
76
+ {
77
+ displayName: 'Max Wait Time (Seconds)',
78
+ name: 'maxWait',
79
+ type: 'number',
80
+ typeOptions: { minValue: 10, maxValue: 300 },
81
+ default: 60,
82
+ displayOptions: { show: { resource: ['resize'], operation: ['create'] } },
83
+ description: 'Maximum time to wait for the resize to complete before timing out',
84
+ },
85
+ ];
86
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/resize/create.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,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QACzE,WAAW,EAAE,mEAAmE;KAChF;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const resizeOperations: INodeProperties[];
3
+ export declare const resizeDescription: INodeProperties[];
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resizeDescription = exports.resizeOperations = void 0;
4
+ const create_1 = require("./create");
5
+ const premiumNotice_1 = require("./premiumNotice");
6
+ exports.resizeOperations = [
7
+ {
8
+ displayName: 'Operation',
9
+ name: 'operation',
10
+ type: 'options',
11
+ noDataExpression: true,
12
+ displayOptions: { show: { resource: ['resize'] } },
13
+ options: [
14
+ {
15
+ name: 'Create Resize Job',
16
+ value: 'create',
17
+ description: 'Create a resized copy of a design in new dimensions or format (waits for the job to complete)',
18
+ action: 'Create a design resize job',
19
+ },
20
+ ],
21
+ default: 'create',
22
+ },
23
+ ];
24
+ exports.resizeDescription = [
25
+ ...exports.resizeOperations,
26
+ ...premiumNotice_1.resizePremiumNoticeDescription,
27
+ ...create_1.resizeCreateDescription,
28
+ ];
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/resize/index.ts"],"names":[],"mappings":";;;AACA,qCAAmD;AACnD,mDAAiE;AAEpD,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,mBAAmB;gBACzB,KAAK,EAAE,QAAQ;gBACf,WAAW,EACV,+FAA+F;gBAChG,MAAM,EAAE,4BAA4B;aACpC;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,iBAAiB,GAAsB;IACnD,GAAG,wBAAgB;IACnB,GAAG,8CAA8B;IACjC,GAAG,gCAAuB;CAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const resizePremiumNoticeDescription: INodeProperties[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resizePremiumNoticeDescription = void 0;
4
+ exports.resizePremiumNoticeDescription = [
5
+ {
6
+ displayName: '💎 Canva Pro required: The Resize API requires a Canva plan with premium features (such as Canva Pro). Users on the Canva Free plan have access to a limited trial.',
7
+ name: 'resizePremiumNotice',
8
+ type: 'notice',
9
+ default: '',
10
+ displayOptions: { show: { resource: ['resize'] } },
11
+ },
12
+ ];
13
+ //# sourceMappingURL=premiumNotice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premiumNotice.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/resize/premiumNotice.ts"],"names":[],"mappings":";;;AAEa,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EACV,qKAAqK;QACtK,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;KAClD;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const userOperations: INodeProperties[];
3
+ export declare const userDescription: INodeProperties[];
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userDescription = exports.userOperations = void 0;
4
+ exports.userOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: { show: { resource: ['user'] } },
11
+ options: [
12
+ {
13
+ name: 'Get Capabilities',
14
+ value: 'getCapabilities',
15
+ description: 'Get the API capabilities for the current user account',
16
+ action: 'Get user capabilities',
17
+ },
18
+ {
19
+ name: 'Get Me',
20
+ value: 'getMe',
21
+ description: 'Get the User ID and Team ID of the authenticated user',
22
+ action: 'Get current user',
23
+ },
24
+ {
25
+ name: 'Get Profile',
26
+ value: 'getProfile',
27
+ description: 'Get the display name of the authenticated user',
28
+ action: 'Get user profile',
29
+ },
30
+ ],
31
+ default: 'getMe',
32
+ },
33
+ ];
34
+ exports.userDescription = [...exports.userOperations];
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Canva/resources/user/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAsB;IAChD;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,MAAM,CAAC,EAAE,EAAE;QAChD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,uDAAuD;gBACpE,MAAM,EAAE,uBAAuB;aAC/B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,uDAAuD;gBACpE,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,gDAAgD;gBAC7D,MAAM,EAAE,kBAAkB;aAC1B;SACD;QACD,OAAO,EAAE,OAAO;KAChB;CACD,CAAC;AAEW,QAAA,eAAe,GAAsB,CAAC,GAAG,sBAAc,CAAC,CAAC"}