n8n-nodes-roapp 1.0.7

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 (190) hide show
  1. package/README.md +117 -0
  2. package/dist/credentials/RoappApi.credentials.d.ts +10 -0
  3. package/dist/credentials/RoappApi.credentials.js +37 -0
  4. package/dist/credentials/RoappApi.credentials.js.map +1 -0
  5. package/dist/nodes/Roapp/Roapp.node.d.ts +18 -0
  6. package/dist/nodes/Roapp/Roapp.node.js +237 -0
  7. package/dist/nodes/Roapp/Roapp.node.js.map +1 -0
  8. package/dist/nodes/Roapp/Roapp.node.json +18 -0
  9. package/dist/nodes/Roapp/resources/assets/create.d.ts +2 -0
  10. package/dist/nodes/Roapp/resources/assets/create.js +113 -0
  11. package/dist/nodes/Roapp/resources/assets/create.js.map +1 -0
  12. package/dist/nodes/Roapp/resources/assets/getAll.d.ts +2 -0
  13. package/dist/nodes/Roapp/resources/assets/getAll.js +62 -0
  14. package/dist/nodes/Roapp/resources/assets/getAll.js.map +1 -0
  15. package/dist/nodes/Roapp/resources/assets/index.d.ts +3 -0
  16. package/dist/nodes/Roapp/resources/assets/index.js +69 -0
  17. package/dist/nodes/Roapp/resources/assets/index.js.map +1 -0
  18. package/dist/nodes/Roapp/resources/bookings/create.d.ts +2 -0
  19. package/dist/nodes/Roapp/resources/bookings/create.js +70 -0
  20. package/dist/nodes/Roapp/resources/bookings/create.js.map +1 -0
  21. package/dist/nodes/Roapp/resources/bookings/createItem.d.ts +2 -0
  22. package/dist/nodes/Roapp/resources/bookings/createItem.js +86 -0
  23. package/dist/nodes/Roapp/resources/bookings/createItem.js.map +1 -0
  24. package/dist/nodes/Roapp/resources/bookings/deleteItem.d.ts +2 -0
  25. package/dist/nodes/Roapp/resources/bookings/deleteItem.js +32 -0
  26. package/dist/nodes/Roapp/resources/bookings/deleteItem.js.map +1 -0
  27. package/dist/nodes/Roapp/resources/bookings/getAll.d.ts +2 -0
  28. package/dist/nodes/Roapp/resources/bookings/getAll.js +201 -0
  29. package/dist/nodes/Roapp/resources/bookings/getAll.js.map +1 -0
  30. package/dist/nodes/Roapp/resources/bookings/index.d.ts +3 -0
  31. package/dist/nodes/Roapp/resources/bookings/index.js +122 -0
  32. package/dist/nodes/Roapp/resources/bookings/index.js.map +1 -0
  33. package/dist/nodes/Roapp/resources/bookings/update.d.ts +2 -0
  34. package/dist/nodes/Roapp/resources/bookings/update.js +50 -0
  35. package/dist/nodes/Roapp/resources/bookings/update.js.map +1 -0
  36. package/dist/nodes/Roapp/resources/bookings/updateItem.d.ts +2 -0
  37. package/dist/nodes/Roapp/resources/bookings/updateItem.js +95 -0
  38. package/dist/nodes/Roapp/resources/bookings/updateItem.js.map +1 -0
  39. package/dist/nodes/Roapp/resources/catalog/getAll.d.ts +2 -0
  40. package/dist/nodes/Roapp/resources/catalog/getAll.js +63 -0
  41. package/dist/nodes/Roapp/resources/catalog/getAll.js.map +1 -0
  42. package/dist/nodes/Roapp/resources/catalog/index.d.ts +3 -0
  43. package/dist/nodes/Roapp/resources/catalog/index.js +117 -0
  44. package/dist/nodes/Roapp/resources/catalog/index.js.map +1 -0
  45. package/dist/nodes/Roapp/resources/company/index.d.ts +3 -0
  46. package/dist/nodes/Roapp/resources/company/index.js +101 -0
  47. package/dist/nodes/Roapp/resources/company/index.js.map +1 -0
  48. package/dist/nodes/Roapp/resources/estimates/create.d.ts +2 -0
  49. package/dist/nodes/Roapp/resources/estimates/create.js +80 -0
  50. package/dist/nodes/Roapp/resources/estimates/create.js.map +1 -0
  51. package/dist/nodes/Roapp/resources/estimates/createComment.d.ts +2 -0
  52. package/dist/nodes/Roapp/resources/estimates/createComment.js +43 -0
  53. package/dist/nodes/Roapp/resources/estimates/createComment.js.map +1 -0
  54. package/dist/nodes/Roapp/resources/estimates/createItem.d.ts +2 -0
  55. package/dist/nodes/Roapp/resources/estimates/createItem.js +86 -0
  56. package/dist/nodes/Roapp/resources/estimates/createItem.js.map +1 -0
  57. package/dist/nodes/Roapp/resources/estimates/deleteItem.d.ts +2 -0
  58. package/dist/nodes/Roapp/resources/estimates/deleteItem.js +32 -0
  59. package/dist/nodes/Roapp/resources/estimates/deleteItem.js.map +1 -0
  60. package/dist/nodes/Roapp/resources/estimates/getAll.d.ts +2 -0
  61. package/dist/nodes/Roapp/resources/estimates/getAll.js +63 -0
  62. package/dist/nodes/Roapp/resources/estimates/getAll.js.map +1 -0
  63. package/dist/nodes/Roapp/resources/estimates/getPublicUrl.d.ts +2 -0
  64. package/dist/nodes/Roapp/resources/estimates/getPublicUrl.js +20 -0
  65. package/dist/nodes/Roapp/resources/estimates/getPublicUrl.js.map +1 -0
  66. package/dist/nodes/Roapp/resources/estimates/index.d.ts +3 -0
  67. package/dist/nodes/Roapp/resources/estimates/index.js +183 -0
  68. package/dist/nodes/Roapp/resources/estimates/index.js.map +1 -0
  69. package/dist/nodes/Roapp/resources/estimates/updateItem.d.ts +2 -0
  70. package/dist/nodes/Roapp/resources/estimates/updateItem.js +97 -0
  71. package/dist/nodes/Roapp/resources/estimates/updateItem.js.map +1 -0
  72. package/dist/nodes/Roapp/resources/estimates/updateStatus.d.ts +2 -0
  73. package/dist/nodes/Roapp/resources/estimates/updateStatus.js +38 -0
  74. package/dist/nodes/Roapp/resources/estimates/updateStatus.js.map +1 -0
  75. package/dist/nodes/Roapp/resources/invoices/create.d.ts +2 -0
  76. package/dist/nodes/Roapp/resources/invoices/create.js +401 -0
  77. package/dist/nodes/Roapp/resources/invoices/create.js.map +1 -0
  78. package/dist/nodes/Roapp/resources/invoices/createComment.d.ts +2 -0
  79. package/dist/nodes/Roapp/resources/invoices/createComment.js +43 -0
  80. package/dist/nodes/Roapp/resources/invoices/createComment.js.map +1 -0
  81. package/dist/nodes/Roapp/resources/invoices/createItem.d.ts +2 -0
  82. package/dist/nodes/Roapp/resources/invoices/createItem.js +90 -0
  83. package/dist/nodes/Roapp/resources/invoices/createItem.js.map +1 -0
  84. package/dist/nodes/Roapp/resources/invoices/deleteItem.d.ts +2 -0
  85. package/dist/nodes/Roapp/resources/invoices/deleteItem.js +32 -0
  86. package/dist/nodes/Roapp/resources/invoices/deleteItem.js.map +1 -0
  87. package/dist/nodes/Roapp/resources/invoices/getAll.d.ts +2 -0
  88. package/dist/nodes/Roapp/resources/invoices/getAll.js +99 -0
  89. package/dist/nodes/Roapp/resources/invoices/getAll.js.map +1 -0
  90. package/dist/nodes/Roapp/resources/invoices/index.d.ts +3 -0
  91. package/dist/nodes/Roapp/resources/invoices/index.js +147 -0
  92. package/dist/nodes/Roapp/resources/invoices/index.js.map +1 -0
  93. package/dist/nodes/Roapp/resources/invoices/update.d.ts +2 -0
  94. package/dist/nodes/Roapp/resources/invoices/update.js +79 -0
  95. package/dist/nodes/Roapp/resources/invoices/update.js.map +1 -0
  96. package/dist/nodes/Roapp/resources/invoices/updateItem.d.ts +2 -0
  97. package/dist/nodes/Roapp/resources/invoices/updateItem.js +98 -0
  98. package/dist/nodes/Roapp/resources/invoices/updateItem.js.map +1 -0
  99. package/dist/nodes/Roapp/resources/invoices/updateStatus.d.ts +2 -0
  100. package/dist/nodes/Roapp/resources/invoices/updateStatus.js +38 -0
  101. package/dist/nodes/Roapp/resources/invoices/updateStatus.js.map +1 -0
  102. package/dist/nodes/Roapp/resources/lead/create.d.ts +2 -0
  103. package/dist/nodes/Roapp/resources/lead/create.js +176 -0
  104. package/dist/nodes/Roapp/resources/lead/create.js.map +1 -0
  105. package/dist/nodes/Roapp/resources/lead/createComment.d.ts +2 -0
  106. package/dist/nodes/Roapp/resources/lead/createComment.js +40 -0
  107. package/dist/nodes/Roapp/resources/lead/createComment.js.map +1 -0
  108. package/dist/nodes/Roapp/resources/lead/getAll.d.ts +2 -0
  109. package/dist/nodes/Roapp/resources/lead/getAll.js +92 -0
  110. package/dist/nodes/Roapp/resources/lead/getAll.js.map +1 -0
  111. package/dist/nodes/Roapp/resources/lead/index.d.ts +3 -0
  112. package/dist/nodes/Roapp/resources/lead/index.js +82 -0
  113. package/dist/nodes/Roapp/resources/lead/index.js.map +1 -0
  114. package/dist/nodes/Roapp/resources/lead/updateStatus.d.ts +2 -0
  115. package/dist/nodes/Roapp/resources/lead/updateStatus.js +38 -0
  116. package/dist/nodes/Roapp/resources/lead/updateStatus.js.map +1 -0
  117. package/dist/nodes/Roapp/resources/marketing/index.d.ts +3 -0
  118. package/dist/nodes/Roapp/resources/marketing/index.js +46 -0
  119. package/dist/nodes/Roapp/resources/marketing/index.js.map +1 -0
  120. package/dist/nodes/Roapp/resources/orders/create.d.ts +2 -0
  121. package/dist/nodes/Roapp/resources/orders/create.js +80 -0
  122. package/dist/nodes/Roapp/resources/orders/create.js.map +1 -0
  123. package/dist/nodes/Roapp/resources/orders/createComment.d.ts +2 -0
  124. package/dist/nodes/Roapp/resources/orders/createComment.js +43 -0
  125. package/dist/nodes/Roapp/resources/orders/createComment.js.map +1 -0
  126. package/dist/nodes/Roapp/resources/orders/createItem.d.ts +2 -0
  127. package/dist/nodes/Roapp/resources/orders/createItem.js +86 -0
  128. package/dist/nodes/Roapp/resources/orders/createItem.js.map +1 -0
  129. package/dist/nodes/Roapp/resources/orders/deleteItem.d.ts +2 -0
  130. package/dist/nodes/Roapp/resources/orders/deleteItem.js +32 -0
  131. package/dist/nodes/Roapp/resources/orders/deleteItem.js.map +1 -0
  132. package/dist/nodes/Roapp/resources/orders/getAll.d.ts +2 -0
  133. package/dist/nodes/Roapp/resources/orders/getAll.js +63 -0
  134. package/dist/nodes/Roapp/resources/orders/getAll.js.map +1 -0
  135. package/dist/nodes/Roapp/resources/orders/getPublicUrl.d.ts +2 -0
  136. package/dist/nodes/Roapp/resources/orders/getPublicUrl.js +20 -0
  137. package/dist/nodes/Roapp/resources/orders/getPublicUrl.js.map +1 -0
  138. package/dist/nodes/Roapp/resources/orders/index.d.ts +3 -0
  139. package/dist/nodes/Roapp/resources/orders/index.js +183 -0
  140. package/dist/nodes/Roapp/resources/orders/index.js.map +1 -0
  141. package/dist/nodes/Roapp/resources/orders/updateItem.d.ts +2 -0
  142. package/dist/nodes/Roapp/resources/orders/updateItem.js +97 -0
  143. package/dist/nodes/Roapp/resources/orders/updateItem.js.map +1 -0
  144. package/dist/nodes/Roapp/resources/orders/updateStatus.d.ts +2 -0
  145. package/dist/nodes/Roapp/resources/orders/updateStatus.js +38 -0
  146. package/dist/nodes/Roapp/resources/orders/updateStatus.js.map +1 -0
  147. package/dist/nodes/Roapp/resources/organization/create.d.ts +2 -0
  148. package/dist/nodes/Roapp/resources/organization/create.js +55 -0
  149. package/dist/nodes/Roapp/resources/organization/create.js.map +1 -0
  150. package/dist/nodes/Roapp/resources/organization/getAll.d.ts +2 -0
  151. package/dist/nodes/Roapp/resources/organization/getAll.js +5 -0
  152. package/dist/nodes/Roapp/resources/organization/getAll.js.map +1 -0
  153. package/dist/nodes/Roapp/resources/organization/index.d.ts +3 -0
  154. package/dist/nodes/Roapp/resources/organization/index.js +84 -0
  155. package/dist/nodes/Roapp/resources/organization/index.js.map +1 -0
  156. package/dist/nodes/Roapp/resources/person/create.d.ts +2 -0
  157. package/dist/nodes/Roapp/resources/person/create.js +78 -0
  158. package/dist/nodes/Roapp/resources/person/create.js.map +1 -0
  159. package/dist/nodes/Roapp/resources/person/getAll.d.ts +2 -0
  160. package/dist/nodes/Roapp/resources/person/getAll.js +5 -0
  161. package/dist/nodes/Roapp/resources/person/getAll.js.map +1 -0
  162. package/dist/nodes/Roapp/resources/person/index.d.ts +3 -0
  163. package/dist/nodes/Roapp/resources/person/index.js +83 -0
  164. package/dist/nodes/Roapp/resources/person/index.js.map +1 -0
  165. package/dist/nodes/Roapp/resources/sale/getAll.d.ts +2 -0
  166. package/dist/nodes/Roapp/resources/sale/getAll.js +5 -0
  167. package/dist/nodes/Roapp/resources/sale/getAll.js.map +1 -0
  168. package/dist/nodes/Roapp/resources/sale/index.d.ts +3 -0
  169. package/dist/nodes/Roapp/resources/sale/index.js +46 -0
  170. package/dist/nodes/Roapp/resources/sale/index.js.map +1 -0
  171. package/dist/nodes/Roapp/resources/warehouse/getStock.d.ts +2 -0
  172. package/dist/nodes/Roapp/resources/warehouse/getStock.js +92 -0
  173. package/dist/nodes/Roapp/resources/warehouse/getStock.js.map +1 -0
  174. package/dist/nodes/Roapp/resources/warehouse/getWarehouses.d.ts +2 -0
  175. package/dist/nodes/Roapp/resources/warehouse/getWarehouses.js +43 -0
  176. package/dist/nodes/Roapp/resources/warehouse/getWarehouses.js.map +1 -0
  177. package/dist/nodes/Roapp/resources/warehouse/index.d.ts +3 -0
  178. package/dist/nodes/Roapp/resources/warehouse/index.js +47 -0
  179. package/dist/nodes/Roapp/resources/warehouse/index.js.map +1 -0
  180. package/dist/nodes/Roapp/roapp.svg +26 -0
  181. package/dist/nodes/Roapp/roapp_dark.svg +29 -0
  182. package/dist/nodes/Roapp/shared/methods.d.ts +27 -0
  183. package/dist/nodes/Roapp/shared/methods.js +576 -0
  184. package/dist/nodes/Roapp/shared/methods.js.map +1 -0
  185. package/dist/nodes/Roapp/shared/sharedFields.d.ts +2 -0
  186. package/dist/nodes/Roapp/shared/sharedFields.js +640 -0
  187. package/dist/nodes/Roapp/shared/sharedFields.js.map +1 -0
  188. package/dist/package.json +52 -0
  189. package/dist/tsconfig.tsbuildinfo +1 -0
  190. package/package.json +52 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createComment.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/orders/createComment.ts"],"names":[],"mappings":";;;AAEA,MAAM,8BAA8B,GAAG;IACtC,SAAS,EAAE,CAAC,eAAe,CAAC;IAC5B,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;KACD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;KACD;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,QAAQ;QACjB,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;QACD,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;YACnC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;SACrC;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const ordersCreateItemDescription: INodeProperties[];
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ordersCreateItemDescription = void 0;
4
+ const showOnlyForOrdersCreateItem = {
5
+ operation: ['createItem'],
6
+ resource: ['order'],
7
+ };
8
+ exports.ordersCreateItemDescription = [
9
+ {
10
+ displayName: 'Order ID',
11
+ name: 'order_id',
12
+ type: 'number',
13
+ default: 0,
14
+ required: true,
15
+ description: 'The ID of the order to add the item to',
16
+ displayOptions: {
17
+ show: showOnlyForOrdersCreateItem,
18
+ },
19
+ },
20
+ {
21
+ displayName: 'Entity ID',
22
+ name: 'entity_id',
23
+ type: 'number',
24
+ default: 0,
25
+ required: true,
26
+ description: 'The ID of the product or service',
27
+ displayOptions: {
28
+ show: showOnlyForOrdersCreateItem,
29
+ },
30
+ },
31
+ {
32
+ displayName: 'Quantity',
33
+ name: 'quantity',
34
+ type: 'number',
35
+ default: 1,
36
+ required: true,
37
+ description: 'The quantity of the item',
38
+ displayOptions: {
39
+ show: showOnlyForOrdersCreateItem,
40
+ },
41
+ },
42
+ {
43
+ displayName: 'Price',
44
+ name: 'price',
45
+ type: 'number',
46
+ default: 0,
47
+ description: 'The price per unit',
48
+ displayOptions: {
49
+ show: showOnlyForOrdersCreateItem,
50
+ },
51
+ },
52
+ {
53
+ displayName: 'Cost',
54
+ name: 'cost',
55
+ type: 'number',
56
+ default: 0,
57
+ description: 'The unit cost',
58
+ displayOptions: {
59
+ show: showOnlyForOrdersCreateItem,
60
+ },
61
+ },
62
+ {
63
+ displayName: 'Tax IDs',
64
+ name: 'tax_ids',
65
+ type: 'string',
66
+ default: [],
67
+ description: 'Array of Tax IDs. Specify one or more IDs using an <a href="https://n8n.io">expression</a>.',
68
+ displayOptions: {
69
+ show: showOnlyForOrdersCreateItem,
70
+ },
71
+ typeOptions: {
72
+ multipleValues: true,
73
+ },
74
+ },
75
+ {
76
+ displayName: 'Comment',
77
+ name: 'comment',
78
+ type: 'string',
79
+ default: '',
80
+ description: 'Additional comments about the item',
81
+ displayOptions: {
82
+ show: showOnlyForOrdersCreateItem,
83
+ },
84
+ },
85
+ ];
86
+ //# sourceMappingURL=createItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createItem.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/orders/createItem.ts"],"names":[],"mappings":";;;AAEA,MAAM,2BAA2B,GAAG;IACnC,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,2BAA2B,GAAsB;IAC7D;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,wCAAwC;QACrD,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;KACD;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,kCAAkC;QAC/C,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;KACD;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,0BAA0B;QACvC,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;KACD;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,oBAAoB;QACjC,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,eAAe;QAC5B,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;KACD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,6FAA6F;QAC1G,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;QACD,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;KACD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oCAAoC;QACjD,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const ordersDeleteItemDescription: INodeProperties[];
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ordersDeleteItemDescription = void 0;
4
+ const showOnlyForOrdersDeleteItem = {
5
+ operation: ['deleteItem'],
6
+ resource: ['order'],
7
+ };
8
+ exports.ordersDeleteItemDescription = [
9
+ {
10
+ displayName: 'Order ID',
11
+ name: 'order_id',
12
+ type: 'number',
13
+ default: 0,
14
+ required: true,
15
+ description: 'The ID of the order',
16
+ displayOptions: {
17
+ show: showOnlyForOrdersDeleteItem,
18
+ },
19
+ },
20
+ {
21
+ displayName: 'Item ID',
22
+ name: 'item_id',
23
+ type: 'number',
24
+ default: 0,
25
+ required: true,
26
+ description: 'The ID of the order item to delete',
27
+ displayOptions: {
28
+ show: showOnlyForOrdersDeleteItem,
29
+ },
30
+ },
31
+ ];
32
+ //# sourceMappingURL=deleteItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteItem.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/orders/deleteItem.ts"],"names":[],"mappings":";;;AAEA,MAAM,2BAA2B,GAAG;IACnC,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,2BAA2B,GAAsB;IAC7D;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,qBAAqB;QAClC,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;KACD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,oCAAoC;QACjD,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const ordersGetAllDescription: INodeProperties[];
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ordersGetAllDescription = void 0;
4
+ const showOnlyForOrdersGetMany = {
5
+ operation: ['getAll'],
6
+ resource: ['order'],
7
+ };
8
+ exports.ordersGetAllDescription = [
9
+ {
10
+ displayName: 'Status Names or IDs',
11
+ name: 'statuses',
12
+ type: 'multiOptions',
13
+ displayOptions: {
14
+ show: showOnlyForOrdersGetMany,
15
+ },
16
+ typeOptions: {
17
+ loadOptionsDependsOn: [
18
+ 'resource',
19
+ 'operation',
20
+ ],
21
+ loadOptionsMethod: 'getStatuses',
22
+ },
23
+ default: [],
24
+ description: 'Filter by order status. Choose from the list, or specify an ID using an <a href="https://n8n.io">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
25
+ },
26
+ {
27
+ displayName: 'Customer IDs',
28
+ name: 'client_ids',
29
+ type: 'string',
30
+ typeOptions: {
31
+ multipleValues: true,
32
+ },
33
+ displayOptions: {
34
+ show: showOnlyForOrdersGetMany,
35
+ },
36
+ default: [],
37
+ description: 'Add one or more Customer IDs',
38
+ },
39
+ {
40
+ displayName: 'Payment Method',
41
+ name: "payment_method",
42
+ type: "options",
43
+ displayOptions: {
44
+ show: showOnlyForOrdersGetMany,
45
+ },
46
+ default: 'cash',
47
+ options: [
48
+ {
49
+ name: "Cash",
50
+ value: "cash"
51
+ },
52
+ {
53
+ name: "Cashless",
54
+ value: "cashless"
55
+ },
56
+ {
57
+ name: "Credit_card",
58
+ value: "credit_card"
59
+ }
60
+ ]
61
+ },
62
+ ];
63
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/orders/getAll.ts"],"names":[],"mappings":";;;AAGA,MAAM,wBAAwB,GAAG;IAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACtB,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,cAAc;QACpB,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,WAAW,EAAE;YACZ,oBAAoB,EAAE;gBACpB,UAAU;gBACV,WAAW;aACX;YACF,iBAAiB,EAAE,aAAa;SAChC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gOAAgO;KAC7O;IACD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;QACD,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;KAC3C;IACD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE,MAAM;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;aACb;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;aACjB;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,aAAa;aACpB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const ordersGetPublicUrlDescription: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ordersGetPublicUrlDescription = void 0;
4
+ const showOnlyForOrdersGetPublicUrl = {
5
+ operation: ['getPublicUrl'],
6
+ resource: ['order'],
7
+ };
8
+ exports.ordersGetPublicUrlDescription = [
9
+ {
10
+ displayName: 'Order ID',
11
+ name: 'Id',
12
+ type: 'string',
13
+ default: '',
14
+ required: true,
15
+ displayOptions: {
16
+ show: showOnlyForOrdersGetPublicUrl,
17
+ },
18
+ },
19
+ ];
20
+ //# sourceMappingURL=getPublicUrl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPublicUrl.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/orders/getPublicUrl.ts"],"names":[],"mappings":";;;AAEA,MAAM,6BAA6B,GAAG;IACrC,SAAS,EAAE,CAAC,cAAc,CAAC;IAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,6BAA6B;SACnC;KACD;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare const ordersDescription: INodeProperties[];
3
+ export declare function executeOrderOperation(this: IExecuteFunctions, operation: string, index: number): Promise<INodeExecutionData[][]>;
@@ -0,0 +1,183 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ordersDescription = void 0;
4
+ exports.executeOrderOperation = executeOrderOperation;
5
+ const getAll_1 = require("./getAll");
6
+ const create_1 = require("./create");
7
+ const createItem_1 = require("./createItem");
8
+ const updateItem_1 = require("./updateItem");
9
+ const deleteItem_1 = require("./deleteItem");
10
+ const updateStatus_1 = require("./updateStatus");
11
+ const createComment_1 = require("./createComment");
12
+ const getPublicUrl_1 = require("./getPublicUrl");
13
+ const methods_1 = require("../../shared/methods");
14
+ const showOnlyForOrders = {
15
+ resource: ['order'],
16
+ };
17
+ exports.ordersDescription = [
18
+ {
19
+ displayName: 'Operation',
20
+ name: 'operation',
21
+ type: 'options',
22
+ noDataExpression: true,
23
+ displayOptions: {
24
+ show: showOnlyForOrders,
25
+ },
26
+ options: [
27
+ {
28
+ name: 'Add Item',
29
+ value: 'createItem',
30
+ action: 'Add order item',
31
+ description: 'Add an item to an order',
32
+ },
33
+ {
34
+ name: 'Create',
35
+ value: 'create',
36
+ action: 'Create order',
37
+ description: 'Create a new order',
38
+ },
39
+ {
40
+ name: 'Create Comment',
41
+ value: 'createComment',
42
+ action: 'Create order comment',
43
+ description: 'Add a comment to an order',
44
+ },
45
+ {
46
+ name: 'Delete',
47
+ value: 'delete',
48
+ action: 'Delete order',
49
+ description: 'Delete an order',
50
+ },
51
+ {
52
+ name: 'Delete Item',
53
+ value: 'deleteItem',
54
+ action: 'Delete order item',
55
+ description: 'Delete an order item',
56
+ },
57
+ {
58
+ name: 'Get',
59
+ value: 'get',
60
+ action: 'Get order',
61
+ description: 'Get the data of a single order',
62
+ },
63
+ {
64
+ name: 'Get Custom Fields',
65
+ value: 'getCustomFields',
66
+ action: 'Get order custom fields',
67
+ description: 'Get the custom fields of an order',
68
+ },
69
+ {
70
+ name: 'Get Items',
71
+ value: 'getItems',
72
+ action: 'Get order items',
73
+ description: 'Get items for an order',
74
+ },
75
+ {
76
+ name: 'Get Many',
77
+ value: 'getAll',
78
+ action: 'Get orders',
79
+ description: 'Get multiple orders',
80
+ },
81
+ {
82
+ name: 'Get Public URL',
83
+ value: 'getPublicUrl',
84
+ action: 'Get order public URL',
85
+ description: 'Get the public page URL of an order',
86
+ },
87
+ {
88
+ name: 'Get Statuses',
89
+ value: 'getStatuses',
90
+ action: 'Get order statuses',
91
+ description: 'Get the statuses of an order',
92
+ },
93
+ {
94
+ name: 'Get Types',
95
+ value: 'getTypes',
96
+ action: 'Get order types',
97
+ description: 'Get the types of an order',
98
+ },
99
+ {
100
+ name: 'Update',
101
+ value: 'update',
102
+ action: 'Update order',
103
+ description: 'Update an order',
104
+ },
105
+ {
106
+ name: 'Update Item',
107
+ value: 'updateItem',
108
+ action: 'Update order item',
109
+ description: 'Update an order item',
110
+ },
111
+ {
112
+ name: 'Update Status',
113
+ value: 'updateStatus',
114
+ action: 'Update order status',
115
+ description: 'Update the status of an order',
116
+ },
117
+ ],
118
+ default: 'getAll',
119
+ },
120
+ ...getAll_1.ordersGetAllDescription,
121
+ ...create_1.ordersCreateDescription,
122
+ ...createItem_1.ordersCreateItemDescription,
123
+ ...updateItem_1.ordersUpdateItemDescription,
124
+ ...deleteItem_1.ordersDeleteItemDescription,
125
+ ...updateStatus_1.ordersUpdateStatusDescription,
126
+ ...createComment_1.ordersCreateCommentDescription,
127
+ ...getPublicUrl_1.ordersGetPublicUrlDescription,
128
+ ];
129
+ async function executeOrderOperation(operation, index) {
130
+ if (operation === 'getAll') {
131
+ return await methods_1.handleGetAll.call(this, index, `${methods_1.BASE_URL}v2/orders`);
132
+ }
133
+ else if (operation === 'get') {
134
+ return await methods_1.handleGetOne.call(this, index, `${methods_1.BASE_URL}v2/orders/${this.getNodeParameter('Id', index)}`);
135
+ }
136
+ else if (operation === 'delete') {
137
+ return await this.helpers.httpRequestWithAuthentication.call(this, 'roappRoappApi', {
138
+ method: 'DELETE',
139
+ url: `${methods_1.BASE_URL}v2/orders/${this.getNodeParameter('Id', index)}`
140
+ });
141
+ }
142
+ else if (operation === 'getItems') {
143
+ return await methods_1.handleGetOne.call(this, index, `${methods_1.BASE_URL}v2/orders/${this.getNodeParameter('Id', index)}/items`);
144
+ }
145
+ else if (operation === 'create') {
146
+ return await methods_1.handleCreateUpdate.call(this, index, `${methods_1.BASE_URL}v2/orders`, 'POST');
147
+ }
148
+ else if (operation === 'update') {
149
+ return await methods_1.handleCreateUpdate.call(this, index, `${methods_1.BASE_URL}v2/orders/${this.getNodeParameter('order_id', index)}`, 'PATCH');
150
+ }
151
+ else if (operation === 'getStatuses') {
152
+ return await methods_1.handleGetOne.call(this, index, `${methods_1.BASE_URL}v2/orders/statuses`);
153
+ }
154
+ else if (operation === 'getTypes') {
155
+ return await methods_1.handleGetOne.call(this, index, `${methods_1.BASE_URL}v2/orders/types`);
156
+ }
157
+ else if (operation === 'getCustomFields') {
158
+ return await methods_1.handleGetOne.call(this, index, `${methods_1.BASE_URL}v2/orders/custom-fields`);
159
+ }
160
+ else if (operation === 'createItem') {
161
+ return await methods_1.handleCreateUpdate.call(this, index, `${methods_1.BASE_URL}v2/orders/${this.getNodeParameter('order_id', index)}/items`, 'POST');
162
+ }
163
+ else if (operation === 'updateItem') {
164
+ return await methods_1.handleCreateUpdate.call(this, index, `${methods_1.BASE_URL}v2/orders/${this.getNodeParameter('order_id', index)}/items/${this.getNodeParameter('item_id', index)}`, 'PATCH');
165
+ }
166
+ else if (operation === 'deleteItem') {
167
+ return await methods_1.handleCreateUpdate.call(this, index, `${methods_1.BASE_URL}v2/orders/${this.getNodeParameter('order_id', index)}/items/${this.getNodeParameter('item_id', index)}`, 'DELETE');
168
+ }
169
+ else if (operation === 'updateStatus') {
170
+ return await methods_1.handleCreateUpdate.call(this, index, `${methods_1.BASE_URL}v2/orders/${this.getNodeParameter('Id', index)}/status`, 'POST');
171
+ }
172
+ else if (operation === 'createComment') {
173
+ return await methods_1.handleCreateUpdate.call(this, index, `${methods_1.BASE_URL}v2/orders/${this.getNodeParameter('Id', index)}/comments`, 'POST');
174
+ }
175
+ else if (operation === 'getPublicUrl') {
176
+ return await methods_1.handleGetOne.call(this, index, `${methods_1.BASE_URL}v2/orders/${this.getNodeParameter('Id', index)}/public-url`);
177
+ }
178
+ return [[{ json: {},
179
+ pairedItem: {
180
+ item: index,
181
+ } }]];
182
+ }
183
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/orders/index.ts"],"names":[],"mappings":";;;AAgIA,sDA4CC;AA3KD,qCAAmD;AACnD,qCAAmD;AACnD,6CAA2D;AAC3D,6CAA2D;AAC3D,6CAA2D;AAC3D,iDAA+D;AAC/D,mDAAiE;AACjE,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KAAK,EAAE,GAAG,kBAAQ,aAAa,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAChI,CAAC;SAAM,IAAI,SAAS,KAAK,eAAe,EAAE,CAAC;QAC1C,OAAO,MAAM,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,kBAAQ,aAAa,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAClI,CAAC;SAAM,IAAI,SAAS,KAAK,cAAc,EAAE,CAAC;QACzC,OAAO,MAAM,sBAAY,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,kBAAQ,aAAa,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACtH,CAAC;IACD,OAAO,CAAC,CAAC,EAAC,IAAI,EAAC,EAAE;gBAChB,UAAU,EAAE;oBACX,IAAI,EAAE,KAAK;iBACX,EAAC,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const ordersUpdateItemDescription: INodeProperties[];
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ordersUpdateItemDescription = void 0;
4
+ const showOnlyForOrdersUpdateItem = {
5
+ operation: ['updateItem'],
6
+ resource: ['order'],
7
+ };
8
+ exports.ordersUpdateItemDescription = [
9
+ {
10
+ displayName: 'Order ID',
11
+ name: 'order_id',
12
+ type: 'number',
13
+ default: 0,
14
+ required: true,
15
+ description: 'The ID of the order',
16
+ displayOptions: {
17
+ show: showOnlyForOrdersUpdateItem,
18
+ },
19
+ },
20
+ {
21
+ displayName: 'Item ID',
22
+ name: 'item_id',
23
+ type: 'number',
24
+ default: 0,
25
+ required: true,
26
+ description: 'The ID of the order item to update',
27
+ displayOptions: {
28
+ show: showOnlyForOrdersUpdateItem,
29
+ },
30
+ },
31
+ {
32
+ displayName: 'Entity ID',
33
+ name: 'entity_id',
34
+ type: 'number',
35
+ default: 0,
36
+ required: true,
37
+ description: 'The ID of the product or service',
38
+ displayOptions: {
39
+ show: showOnlyForOrdersUpdateItem,
40
+ },
41
+ },
42
+ {
43
+ displayName: 'Quantity',
44
+ name: 'quantity',
45
+ type: 'number',
46
+ default: 1,
47
+ required: true,
48
+ description: 'The quantity of the item',
49
+ displayOptions: {
50
+ show: showOnlyForOrdersUpdateItem,
51
+ },
52
+ },
53
+ {
54
+ displayName: 'Price',
55
+ name: 'price',
56
+ type: 'number',
57
+ default: 0,
58
+ description: 'The price per unit',
59
+ displayOptions: {
60
+ show: showOnlyForOrdersUpdateItem,
61
+ },
62
+ },
63
+ {
64
+ displayName: 'Cost',
65
+ name: 'cost',
66
+ type: 'number',
67
+ default: 0,
68
+ description: 'The unit cost',
69
+ displayOptions: {
70
+ show: showOnlyForOrdersUpdateItem,
71
+ },
72
+ },
73
+ {
74
+ displayName: 'Tax IDs',
75
+ name: 'tax_ids',
76
+ type: 'string',
77
+ default: [],
78
+ description: 'Array of Tax IDs. Specify one or more IDs using an <a href="https://n8n.io">expression</a>.',
79
+ displayOptions: {
80
+ show: showOnlyForOrdersUpdateItem,
81
+ },
82
+ typeOptions: {
83
+ multipleValues: true,
84
+ },
85
+ },
86
+ {
87
+ displayName: 'Comment',
88
+ name: 'comment',
89
+ type: 'string',
90
+ default: '',
91
+ description: 'Additional comments about the item',
92
+ displayOptions: {
93
+ show: showOnlyForOrdersUpdateItem,
94
+ },
95
+ },
96
+ ];
97
+ //# sourceMappingURL=updateItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateItem.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/orders/updateItem.ts"],"names":[],"mappings":";;;AAEA,MAAM,2BAA2B,GAAG;IACnC,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB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;SACjC;KACD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,6FAA6F;QAC1G,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;QACD,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;KACD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oCAAoC;QACjD,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const ordersUpdateStatusDescription: INodeProperties[];
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ordersUpdateStatusDescription = void 0;
4
+ const showOnlyForOrdersUpdateStatus = {
5
+ operation: ['updateStatus'],
6
+ resource: ['order'],
7
+ };
8
+ exports.ordersUpdateStatusDescription = [
9
+ {
10
+ displayName: 'Order ID',
11
+ name: 'Id',
12
+ type: 'string',
13
+ default: '',
14
+ required: true,
15
+ displayOptions: {
16
+ show: showOnlyForOrdersUpdateStatus,
17
+ },
18
+ },
19
+ {
20
+ displayName: 'Status Name or ID',
21
+ name: 'status_id',
22
+ type: 'options',
23
+ displayOptions: {
24
+ show: showOnlyForOrdersUpdateStatus,
25
+ },
26
+ typeOptions: {
27
+ loadOptionsDependsOn: [
28
+ 'resource',
29
+ 'operation',
30
+ ],
31
+ loadOptionsMethod: 'getStatuses',
32
+ },
33
+ default: [],
34
+ description: 'Order status to set. Choose from the list, or specify an ID using an expression. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
35
+ required: true,
36
+ },
37
+ ];
38
+ //# sourceMappingURL=updateStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateStatus.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/orders/updateStatus.ts"],"names":[],"mappings":";;;AAEA,MAAM,6BAA6B,GAAG;IACrC,SAAS,EAAE,CAAC,cAAc,CAAC;IAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,6BAA6B;SACnC;KACD;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE,6BAA6B;SACnC;QACD,WAAW,EAAE;YACZ,oBAAoB,EAAE;gBACrB,UAAU;gBACV,WAAW;aACX;YACD,iBAAiB,EAAE,aAAa;SAChC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kMAAkM;QAC/M,QAAQ,EAAE,IAAI;KACd;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const organizationCreateDescription: INodeProperties[];
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.organizationCreateDescription = void 0;
4
+ const showOnlyForOrganizationCreate = {
5
+ operation: ['create', 'update'],
6
+ resource: ['organization'],
7
+ };
8
+ exports.organizationCreateDescription = [
9
+ {
10
+ displayName: 'Organization ID',
11
+ name: 'organization_id',
12
+ type: 'string',
13
+ default: '',
14
+ required: true,
15
+ displayOptions: {
16
+ show: {
17
+ operation: ['update'],
18
+ resource: ['organization'],
19
+ }
20
+ },
21
+ },
22
+ {
23
+ displayName: 'Name',
24
+ name: 'name',
25
+ type: 'string',
26
+ default: '',
27
+ required: true,
28
+ displayOptions: {
29
+ show: showOnlyForOrganizationCreate,
30
+ },
31
+ description: 'The name of the Company',
32
+ },
33
+ {
34
+ displayName: 'Custom Fields',
35
+ name: 'customFields',
36
+ placeholder: 'Add custom field',
37
+ type: 'resourceMapper',
38
+ noDataExpression: true,
39
+ displayOptions: {
40
+ show: showOnlyForOrganizationCreate,
41
+ },
42
+ default: { mappingMode: 'defineBelow', value: {} },
43
+ typeOptions: {
44
+ loadOptionsDependsOn: [
45
+ 'resource',
46
+ 'operation',
47
+ ],
48
+ resourceMapper: {
49
+ resourceMapperMethod: 'getCustomFields',
50
+ mode: 'add',
51
+ },
52
+ },
53
+ },
54
+ ];
55
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/organization/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,6BAA6B,GAAG;IACrC,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC/B,QAAQ,EAAE,CAAC,cAAc,CAAC;CAC1B,CAAC;AAEW,QAAA,6BAA6B,GAAsB;IAC/D;QACO,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,QAAQ,EAAE,CAAC,cAAc,CAAC;aAC7B;SACJ;KACJ;IACJ;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,6BAA6B;SACnC;QACD,WAAW,EAAE,yBAAyB;KACtC;IACE;QACI,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,gBAAgB;QACtB,gBAAgB,EAAE,IAAI;QAC5B,cAAc,EAAE;YACN,IAAI,EAAE,6BAA6B;SACtC;QACD,OAAO,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,EAAE;QAClD,WAAW,EAAE;YAClB,oBAAoB,EAAE;gBACrB,UAAU;gBACV,WAAW;aACX;YACQ,cAAc,EAAE;gBACxB,oBAAoB,EAAE,iBAAiB;gBACvC,IAAI,EAAE,KAAK;aACF;SACJ;KACJ;CACJ,CAAC"}