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.
- package/README.md +117 -0
- package/dist/credentials/RoappApi.credentials.d.ts +10 -0
- package/dist/credentials/RoappApi.credentials.js +37 -0
- package/dist/credentials/RoappApi.credentials.js.map +1 -0
- package/dist/nodes/Roapp/Roapp.node.d.ts +18 -0
- package/dist/nodes/Roapp/Roapp.node.js +237 -0
- package/dist/nodes/Roapp/Roapp.node.js.map +1 -0
- package/dist/nodes/Roapp/Roapp.node.json +18 -0
- package/dist/nodes/Roapp/resources/assets/create.d.ts +2 -0
- package/dist/nodes/Roapp/resources/assets/create.js +113 -0
- package/dist/nodes/Roapp/resources/assets/create.js.map +1 -0
- package/dist/nodes/Roapp/resources/assets/getAll.d.ts +2 -0
- package/dist/nodes/Roapp/resources/assets/getAll.js +62 -0
- package/dist/nodes/Roapp/resources/assets/getAll.js.map +1 -0
- package/dist/nodes/Roapp/resources/assets/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/assets/index.js +69 -0
- package/dist/nodes/Roapp/resources/assets/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/bookings/create.d.ts +2 -0
- package/dist/nodes/Roapp/resources/bookings/create.js +70 -0
- package/dist/nodes/Roapp/resources/bookings/create.js.map +1 -0
- package/dist/nodes/Roapp/resources/bookings/createItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/bookings/createItem.js +86 -0
- package/dist/nodes/Roapp/resources/bookings/createItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/bookings/deleteItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/bookings/deleteItem.js +32 -0
- package/dist/nodes/Roapp/resources/bookings/deleteItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/bookings/getAll.d.ts +2 -0
- package/dist/nodes/Roapp/resources/bookings/getAll.js +201 -0
- package/dist/nodes/Roapp/resources/bookings/getAll.js.map +1 -0
- package/dist/nodes/Roapp/resources/bookings/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/bookings/index.js +122 -0
- package/dist/nodes/Roapp/resources/bookings/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/bookings/update.d.ts +2 -0
- package/dist/nodes/Roapp/resources/bookings/update.js +50 -0
- package/dist/nodes/Roapp/resources/bookings/update.js.map +1 -0
- package/dist/nodes/Roapp/resources/bookings/updateItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/bookings/updateItem.js +95 -0
- package/dist/nodes/Roapp/resources/bookings/updateItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/catalog/getAll.d.ts +2 -0
- package/dist/nodes/Roapp/resources/catalog/getAll.js +63 -0
- package/dist/nodes/Roapp/resources/catalog/getAll.js.map +1 -0
- package/dist/nodes/Roapp/resources/catalog/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/catalog/index.js +117 -0
- package/dist/nodes/Roapp/resources/catalog/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/company/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/company/index.js +101 -0
- package/dist/nodes/Roapp/resources/company/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/estimates/create.d.ts +2 -0
- package/dist/nodes/Roapp/resources/estimates/create.js +80 -0
- package/dist/nodes/Roapp/resources/estimates/create.js.map +1 -0
- package/dist/nodes/Roapp/resources/estimates/createComment.d.ts +2 -0
- package/dist/nodes/Roapp/resources/estimates/createComment.js +43 -0
- package/dist/nodes/Roapp/resources/estimates/createComment.js.map +1 -0
- package/dist/nodes/Roapp/resources/estimates/createItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/estimates/createItem.js +86 -0
- package/dist/nodes/Roapp/resources/estimates/createItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/estimates/deleteItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/estimates/deleteItem.js +32 -0
- package/dist/nodes/Roapp/resources/estimates/deleteItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/estimates/getAll.d.ts +2 -0
- package/dist/nodes/Roapp/resources/estimates/getAll.js +63 -0
- package/dist/nodes/Roapp/resources/estimates/getAll.js.map +1 -0
- package/dist/nodes/Roapp/resources/estimates/getPublicUrl.d.ts +2 -0
- package/dist/nodes/Roapp/resources/estimates/getPublicUrl.js +20 -0
- package/dist/nodes/Roapp/resources/estimates/getPublicUrl.js.map +1 -0
- package/dist/nodes/Roapp/resources/estimates/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/estimates/index.js +183 -0
- package/dist/nodes/Roapp/resources/estimates/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/estimates/updateItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/estimates/updateItem.js +97 -0
- package/dist/nodes/Roapp/resources/estimates/updateItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/estimates/updateStatus.d.ts +2 -0
- package/dist/nodes/Roapp/resources/estimates/updateStatus.js +38 -0
- package/dist/nodes/Roapp/resources/estimates/updateStatus.js.map +1 -0
- package/dist/nodes/Roapp/resources/invoices/create.d.ts +2 -0
- package/dist/nodes/Roapp/resources/invoices/create.js +401 -0
- package/dist/nodes/Roapp/resources/invoices/create.js.map +1 -0
- package/dist/nodes/Roapp/resources/invoices/createComment.d.ts +2 -0
- package/dist/nodes/Roapp/resources/invoices/createComment.js +43 -0
- package/dist/nodes/Roapp/resources/invoices/createComment.js.map +1 -0
- package/dist/nodes/Roapp/resources/invoices/createItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/invoices/createItem.js +90 -0
- package/dist/nodes/Roapp/resources/invoices/createItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/invoices/deleteItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/invoices/deleteItem.js +32 -0
- package/dist/nodes/Roapp/resources/invoices/deleteItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/invoices/getAll.d.ts +2 -0
- package/dist/nodes/Roapp/resources/invoices/getAll.js +99 -0
- package/dist/nodes/Roapp/resources/invoices/getAll.js.map +1 -0
- package/dist/nodes/Roapp/resources/invoices/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/invoices/index.js +147 -0
- package/dist/nodes/Roapp/resources/invoices/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/invoices/update.d.ts +2 -0
- package/dist/nodes/Roapp/resources/invoices/update.js +79 -0
- package/dist/nodes/Roapp/resources/invoices/update.js.map +1 -0
- package/dist/nodes/Roapp/resources/invoices/updateItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/invoices/updateItem.js +98 -0
- package/dist/nodes/Roapp/resources/invoices/updateItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/invoices/updateStatus.d.ts +2 -0
- package/dist/nodes/Roapp/resources/invoices/updateStatus.js +38 -0
- package/dist/nodes/Roapp/resources/invoices/updateStatus.js.map +1 -0
- package/dist/nodes/Roapp/resources/lead/create.d.ts +2 -0
- package/dist/nodes/Roapp/resources/lead/create.js +176 -0
- package/dist/nodes/Roapp/resources/lead/create.js.map +1 -0
- package/dist/nodes/Roapp/resources/lead/createComment.d.ts +2 -0
- package/dist/nodes/Roapp/resources/lead/createComment.js +40 -0
- package/dist/nodes/Roapp/resources/lead/createComment.js.map +1 -0
- package/dist/nodes/Roapp/resources/lead/getAll.d.ts +2 -0
- package/dist/nodes/Roapp/resources/lead/getAll.js +92 -0
- package/dist/nodes/Roapp/resources/lead/getAll.js.map +1 -0
- package/dist/nodes/Roapp/resources/lead/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/lead/index.js +82 -0
- package/dist/nodes/Roapp/resources/lead/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/lead/updateStatus.d.ts +2 -0
- package/dist/nodes/Roapp/resources/lead/updateStatus.js +38 -0
- package/dist/nodes/Roapp/resources/lead/updateStatus.js.map +1 -0
- package/dist/nodes/Roapp/resources/marketing/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/marketing/index.js +46 -0
- package/dist/nodes/Roapp/resources/marketing/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/orders/create.d.ts +2 -0
- package/dist/nodes/Roapp/resources/orders/create.js +80 -0
- package/dist/nodes/Roapp/resources/orders/create.js.map +1 -0
- package/dist/nodes/Roapp/resources/orders/createComment.d.ts +2 -0
- package/dist/nodes/Roapp/resources/orders/createComment.js +43 -0
- package/dist/nodes/Roapp/resources/orders/createComment.js.map +1 -0
- package/dist/nodes/Roapp/resources/orders/createItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/orders/createItem.js +86 -0
- package/dist/nodes/Roapp/resources/orders/createItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/orders/deleteItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/orders/deleteItem.js +32 -0
- package/dist/nodes/Roapp/resources/orders/deleteItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/orders/getAll.d.ts +2 -0
- package/dist/nodes/Roapp/resources/orders/getAll.js +63 -0
- package/dist/nodes/Roapp/resources/orders/getAll.js.map +1 -0
- package/dist/nodes/Roapp/resources/orders/getPublicUrl.d.ts +2 -0
- package/dist/nodes/Roapp/resources/orders/getPublicUrl.js +20 -0
- package/dist/nodes/Roapp/resources/orders/getPublicUrl.js.map +1 -0
- package/dist/nodes/Roapp/resources/orders/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/orders/index.js +183 -0
- package/dist/nodes/Roapp/resources/orders/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/orders/updateItem.d.ts +2 -0
- package/dist/nodes/Roapp/resources/orders/updateItem.js +97 -0
- package/dist/nodes/Roapp/resources/orders/updateItem.js.map +1 -0
- package/dist/nodes/Roapp/resources/orders/updateStatus.d.ts +2 -0
- package/dist/nodes/Roapp/resources/orders/updateStatus.js +38 -0
- package/dist/nodes/Roapp/resources/orders/updateStatus.js.map +1 -0
- package/dist/nodes/Roapp/resources/organization/create.d.ts +2 -0
- package/dist/nodes/Roapp/resources/organization/create.js +55 -0
- package/dist/nodes/Roapp/resources/organization/create.js.map +1 -0
- package/dist/nodes/Roapp/resources/organization/getAll.d.ts +2 -0
- package/dist/nodes/Roapp/resources/organization/getAll.js +5 -0
- package/dist/nodes/Roapp/resources/organization/getAll.js.map +1 -0
- package/dist/nodes/Roapp/resources/organization/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/organization/index.js +84 -0
- package/dist/nodes/Roapp/resources/organization/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/person/create.d.ts +2 -0
- package/dist/nodes/Roapp/resources/person/create.js +78 -0
- package/dist/nodes/Roapp/resources/person/create.js.map +1 -0
- package/dist/nodes/Roapp/resources/person/getAll.d.ts +2 -0
- package/dist/nodes/Roapp/resources/person/getAll.js +5 -0
- package/dist/nodes/Roapp/resources/person/getAll.js.map +1 -0
- package/dist/nodes/Roapp/resources/person/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/person/index.js +83 -0
- package/dist/nodes/Roapp/resources/person/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/sale/getAll.d.ts +2 -0
- package/dist/nodes/Roapp/resources/sale/getAll.js +5 -0
- package/dist/nodes/Roapp/resources/sale/getAll.js.map +1 -0
- package/dist/nodes/Roapp/resources/sale/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/sale/index.js +46 -0
- package/dist/nodes/Roapp/resources/sale/index.js.map +1 -0
- package/dist/nodes/Roapp/resources/warehouse/getStock.d.ts +2 -0
- package/dist/nodes/Roapp/resources/warehouse/getStock.js +92 -0
- package/dist/nodes/Roapp/resources/warehouse/getStock.js.map +1 -0
- package/dist/nodes/Roapp/resources/warehouse/getWarehouses.d.ts +2 -0
- package/dist/nodes/Roapp/resources/warehouse/getWarehouses.js +43 -0
- package/dist/nodes/Roapp/resources/warehouse/getWarehouses.js.map +1 -0
- package/dist/nodes/Roapp/resources/warehouse/index.d.ts +3 -0
- package/dist/nodes/Roapp/resources/warehouse/index.js +47 -0
- package/dist/nodes/Roapp/resources/warehouse/index.js.map +1 -0
- package/dist/nodes/Roapp/roapp.svg +26 -0
- package/dist/nodes/Roapp/roapp_dark.svg +29 -0
- package/dist/nodes/Roapp/shared/methods.d.ts +27 -0
- package/dist/nodes/Roapp/shared/methods.js +576 -0
- package/dist/nodes/Roapp/shared/methods.js.map +1 -0
- package/dist/nodes/Roapp/shared/sharedFields.d.ts +2 -0
- package/dist/nodes/Roapp/shared/sharedFields.js +640 -0
- package/dist/nodes/Roapp/shared/sharedFields.js.map +1 -0
- package/dist/package.json +52 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +52 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.estimatesCreateItemDescription = void 0;
|
|
4
|
+
const showOnlyForEstimatesCreateItem = {
|
|
5
|
+
operation: ['createItem'],
|
|
6
|
+
resource: ['estimate'],
|
|
7
|
+
};
|
|
8
|
+
exports.estimatesCreateItemDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Estimate ID',
|
|
11
|
+
name: 'estimate_id',
|
|
12
|
+
type: 'number',
|
|
13
|
+
default: 0,
|
|
14
|
+
required: true,
|
|
15
|
+
description: 'The ID of the estimate to add the item to',
|
|
16
|
+
displayOptions: {
|
|
17
|
+
show: showOnlyForEstimatesCreateItem,
|
|
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: showOnlyForEstimatesCreateItem,
|
|
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: showOnlyForEstimatesCreateItem,
|
|
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: showOnlyForEstimatesCreateItem,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Cost',
|
|
54
|
+
name: 'cost',
|
|
55
|
+
type: 'number',
|
|
56
|
+
default: 0,
|
|
57
|
+
description: 'The unit cost',
|
|
58
|
+
displayOptions: {
|
|
59
|
+
show: showOnlyForEstimatesCreateItem,
|
|
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 expression.',
|
|
68
|
+
displayOptions: {
|
|
69
|
+
show: showOnlyForEstimatesCreateItem,
|
|
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: showOnlyForEstimatesCreateItem,
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
];
|
|
86
|
+
//# sourceMappingURL=createItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createItem.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/estimates/createItem.ts"],"names":[],"mappings":";;;AAEA,MAAM,8BAA8B,GAAG;IACtC,SAAS,EAAE,CAAC,YAAY,CAA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W,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,8BAA8B;SACpC;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.estimatesDeleteItemDescription = void 0;
|
|
4
|
+
const showOnlyForEstimatesDeleteItem = {
|
|
5
|
+
operation: ['deleteItem'],
|
|
6
|
+
resource: ['estimate'],
|
|
7
|
+
};
|
|
8
|
+
exports.estimatesDeleteItemDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Estimate ID',
|
|
11
|
+
name: 'estimate_id',
|
|
12
|
+
type: 'number',
|
|
13
|
+
default: 0,
|
|
14
|
+
required: true,
|
|
15
|
+
description: 'The ID of the estimate',
|
|
16
|
+
displayOptions: {
|
|
17
|
+
show: showOnlyForEstimatesDeleteItem,
|
|
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 estimate item to delete',
|
|
27
|
+
displayOptions: {
|
|
28
|
+
show: showOnlyForEstimatesDeleteItem,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
//# sourceMappingURL=deleteItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteItem.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/estimates/deleteItem.ts"],"names":[],"mappings":";;;AAEA,MAAM,8BAA8B,GAAG;IACtC,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEW,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,wBAAwB;QACrC,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;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,uCAAuC;QACpD,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.estimatesGetAllDescription = void 0;
|
|
4
|
+
const showOnlyForEstimatesGetMany = {
|
|
5
|
+
operation: ['getAll'],
|
|
6
|
+
resource: ['estimate'],
|
|
7
|
+
};
|
|
8
|
+
exports.estimatesGetAllDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Status Names or IDs',
|
|
11
|
+
name: 'statuses',
|
|
12
|
+
type: 'multiOptions',
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForEstimatesGetMany,
|
|
15
|
+
},
|
|
16
|
+
typeOptions: {
|
|
17
|
+
loadOptionsDependsOn: [
|
|
18
|
+
'resource',
|
|
19
|
+
'operation',
|
|
20
|
+
],
|
|
21
|
+
loadOptionsMethod: 'getStatuses',
|
|
22
|
+
},
|
|
23
|
+
default: [],
|
|
24
|
+
description: 'Filter by estimate 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: showOnlyForEstimatesGetMany,
|
|
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: showOnlyForEstimatesGetMany,
|
|
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/estimates/getAll.ts"],"names":[],"mappings":";;;AAEA,MAAM,2BAA2B,GAAG;IAChC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,UAAU,CAAC;CACzB,CAAC;AAEW,QAAA,0BAA0B,GAAsB;IAC5D;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,cAAc;QACpB,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;QACD,WAAW,EAAE;YACZ,oBAAoB,EAAE;gBACpB,UAAU;gBACV,WAAW;aACX;YACF,iBAAiB,EAAE,aAAa;SAChC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mOAAmO;KAChP;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,2BAA2B;SACjC;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,2BAA2B;SACjC;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,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.estimatesGetPublicUrlDescription = void 0;
|
|
4
|
+
const showOnlyForEstimatesGetPublicUrl = {
|
|
5
|
+
operation: ['getPublicUrl'],
|
|
6
|
+
resource: ['estimate'],
|
|
7
|
+
};
|
|
8
|
+
exports.estimatesGetPublicUrlDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Estimate ID',
|
|
11
|
+
name: 'Id',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForEstimatesGetPublicUrl,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=getPublicUrl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPublicUrl.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/estimates/getPublicUrl.ts"],"names":[],"mappings":";;;AAEA,MAAM,gCAAgC,GAAG;IACxC,SAAS,EAAE,CAAC,cAAc,CAAC;IAC3B,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEW,QAAA,gCAAgC,GAAsB;IAClE;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,gCAAgC;SACtC;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
|
2
|
+
export declare const estimatesDescription: INodeProperties[];
|
|
3
|
+
export declare function executeEstimateOperation(this: IExecuteFunctions, operation: string, index: number): Promise<INodeExecutionData[][]>;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.estimatesDescription = void 0;
|
|
4
|
+
exports.executeEstimateOperation = executeEstimateOperation;
|
|
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 showOnlyForEstimates = {
|
|
15
|
+
resource: ['estimate'],
|
|
16
|
+
};
|
|
17
|
+
exports.estimatesDescription = [
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Operation',
|
|
20
|
+
name: 'operation',
|
|
21
|
+
type: 'options',
|
|
22
|
+
noDataExpression: true,
|
|
23
|
+
displayOptions: {
|
|
24
|
+
show: showOnlyForEstimates,
|
|
25
|
+
},
|
|
26
|
+
options: [
|
|
27
|
+
{
|
|
28
|
+
name: 'Add Item',
|
|
29
|
+
value: 'createItem',
|
|
30
|
+
action: 'Add estimate item',
|
|
31
|
+
description: 'Add an item to an estimate',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Create',
|
|
35
|
+
value: 'create',
|
|
36
|
+
action: 'Create estimate',
|
|
37
|
+
description: 'Create a new estimate',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Create Comment',
|
|
41
|
+
value: 'createComment',
|
|
42
|
+
action: 'Create estimate comment',
|
|
43
|
+
description: 'Add a comment to an estimate',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Delete',
|
|
47
|
+
value: 'delete',
|
|
48
|
+
action: 'Delete estimate',
|
|
49
|
+
description: 'Delete an estimate',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'Delete Item',
|
|
53
|
+
value: 'deleteItem',
|
|
54
|
+
action: 'Delete estimate item',
|
|
55
|
+
description: 'Delete an estimate item',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'Get',
|
|
59
|
+
value: 'get',
|
|
60
|
+
action: 'Get estimate',
|
|
61
|
+
description: 'Get the data of a single estimate',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Get Custom Fields',
|
|
65
|
+
value: 'getCustomFields',
|
|
66
|
+
action: 'Get estimate custom fields',
|
|
67
|
+
description: 'Get the custom fields of an estimate',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'Get Items',
|
|
71
|
+
value: 'getItems',
|
|
72
|
+
action: 'Get estimate items',
|
|
73
|
+
description: 'Get items for an estimate',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Get Many',
|
|
77
|
+
value: 'getAll',
|
|
78
|
+
action: 'Get estimates',
|
|
79
|
+
description: 'Get multiple estimates',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'Get Public URL',
|
|
83
|
+
value: 'getPublicUrl',
|
|
84
|
+
action: 'Get estimate public URL',
|
|
85
|
+
description: 'Get the public page URL of an estimate',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'Get Statuses',
|
|
89
|
+
value: 'getStatuses',
|
|
90
|
+
action: 'Get estimate statuses',
|
|
91
|
+
description: 'Get the statuses of an estimate',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'Get Types',
|
|
95
|
+
value: 'getTypes',
|
|
96
|
+
action: 'Get estimate types',
|
|
97
|
+
description: 'Get the types of an estimate',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'Update',
|
|
101
|
+
value: 'update',
|
|
102
|
+
action: 'Update estimate',
|
|
103
|
+
description: 'Update an estimate',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'Update Item',
|
|
107
|
+
value: 'updateItem',
|
|
108
|
+
action: 'Update estimate item',
|
|
109
|
+
description: 'Update an estimate item',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Update Status',
|
|
113
|
+
value: 'updateStatus',
|
|
114
|
+
action: 'Update the status of an estimate',
|
|
115
|
+
description: 'Update the status of an estimate',
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
default: 'getAll',
|
|
119
|
+
},
|
|
120
|
+
...getAll_1.estimatesGetAllDescription,
|
|
121
|
+
...create_1.estimatesCreateDescription,
|
|
122
|
+
...createItem_1.estimatesCreateItemDescription,
|
|
123
|
+
...updateItem_1.estimatesUpdateItemDescription,
|
|
124
|
+
...deleteItem_1.estimatesDeleteItemDescription,
|
|
125
|
+
...updateStatus_1.estimatesUpdateStatusDescription,
|
|
126
|
+
...createComment_1.estimatesCreateCommentDescription,
|
|
127
|
+
...getPublicUrl_1.estimatesGetPublicUrlDescription,
|
|
128
|
+
];
|
|
129
|
+
async function executeEstimateOperation(operation, index) {
|
|
130
|
+
if (operation === 'getAll') {
|
|
131
|
+
return await methods_1.handleGetAll.call(this, index, `${methods_1.BASE_URL}v2/estimates`);
|
|
132
|
+
}
|
|
133
|
+
else if (operation === 'get') {
|
|
134
|
+
return await methods_1.handleGetOne.call(this, index, `${methods_1.BASE_URL}v2/estimates/${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/estimates/${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/estimates/${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/estimates`, 'POST');
|
|
147
|
+
}
|
|
148
|
+
else if (operation === 'update') {
|
|
149
|
+
return await methods_1.handleCreateUpdate.call(this, index, `${methods_1.BASE_URL}v2/estimates/${this.getNodeParameter('estimate_id', index)}`, 'PATCH');
|
|
150
|
+
}
|
|
151
|
+
else if (operation === 'getStatuses') {
|
|
152
|
+
return await methods_1.handleGetOne.call(this, index, `${methods_1.BASE_URL}v2/estimates/statuses`);
|
|
153
|
+
}
|
|
154
|
+
else if (operation === 'getTypes') {
|
|
155
|
+
return await methods_1.handleGetOne.call(this, index, `${methods_1.BASE_URL}v2/estimates/types`);
|
|
156
|
+
}
|
|
157
|
+
else if (operation === 'getCustomFields') {
|
|
158
|
+
return await methods_1.handleGetOne.call(this, index, `${methods_1.BASE_URL}v2/estimates/custom-fields`);
|
|
159
|
+
}
|
|
160
|
+
else if (operation === 'createItem') {
|
|
161
|
+
return await methods_1.handleCreateUpdate.call(this, index, `${methods_1.BASE_URL}v2/estimates/${this.getNodeParameter('estimate_id', index)}/items`, 'POST');
|
|
162
|
+
}
|
|
163
|
+
else if (operation === 'updateItem') {
|
|
164
|
+
return await methods_1.handleCreateUpdate.call(this, index, `${methods_1.BASE_URL}v2/estimates/${this.getNodeParameter('estimate_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/estimates/${this.getNodeParameter('estimate_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/estimates/${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/estimates/${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/estimates/${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/estimates/index.ts"],"names":[],"mappings":";;;AAgIA,4DA4CC;AA3KD,qCAAsD;AAC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AAC;IACxL,CAAC;SAAM,IAAI,SAAS,KAAK,cAAc,EAAE,CAAC;QACzC,OAAO,MAAM,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,kBAAQ,gBAAgB,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACnI,CAAC;SAAM,IAAI,SAAS,KAAK,eAAe,EAAE,CAAC;QAC1C,OAAO,MAAM,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,kBAAQ,gBAAgB,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACrI,CAAC;SAAM,IAAI,SAAS,KAAK,cAAc,EAAE,CAAC;QACzC,OAAO,MAAM,sBAAY,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,kBAAQ,gBAAgB,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACzH,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,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.estimatesUpdateItemDescription = void 0;
|
|
4
|
+
const showOnlyForEstimatesUpdateItem = {
|
|
5
|
+
operation: ['updateItem'],
|
|
6
|
+
resource: ['estimate'],
|
|
7
|
+
};
|
|
8
|
+
exports.estimatesUpdateItemDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Estimate ID',
|
|
11
|
+
name: 'estimate_id',
|
|
12
|
+
type: 'number',
|
|
13
|
+
default: 0,
|
|
14
|
+
required: true,
|
|
15
|
+
description: 'The ID of the estimate',
|
|
16
|
+
displayOptions: {
|
|
17
|
+
show: showOnlyForEstimatesUpdateItem,
|
|
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 estimate item to update',
|
|
27
|
+
displayOptions: {
|
|
28
|
+
show: showOnlyForEstimatesUpdateItem,
|
|
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: showOnlyForEstimatesUpdateItem,
|
|
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: showOnlyForEstimatesUpdateItem,
|
|
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: showOnlyForEstimatesUpdateItem,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
displayName: 'Cost',
|
|
65
|
+
name: 'cost',
|
|
66
|
+
type: 'number',
|
|
67
|
+
default: 0,
|
|
68
|
+
description: 'The unit cost',
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: showOnlyForEstimatesUpdateItem,
|
|
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 expression.',
|
|
79
|
+
displayOptions: {
|
|
80
|
+
show: showOnlyForEstimatesUpdateItem,
|
|
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: showOnlyForEstimatesUpdateItem,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
];
|
|
97
|
+
//# sourceMappingURL=updateItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateItem.js","sourceRoot":"","sources":["../../../../../nodes/Roapp/resources/estimates/updateItem.ts"],"names":[],"mappings":";;;AAEA,MAAM,8BAA8B,GAAG;IACtC,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEW,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,wBAAwB;QACrC,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;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,uCAAuC;QACpD,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8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
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.estimatesUpdateStatusDescription = void 0;
|
|
4
|
+
const showOnlyForEstimatesUpdateStatus = {
|
|
5
|
+
operation: ['updateStatus'],
|
|
6
|
+
resource: ['estimate'],
|
|
7
|
+
};
|
|
8
|
+
exports.estimatesUpdateStatusDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Estimate ID',
|
|
11
|
+
name: 'Id',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForEstimatesUpdateStatus,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Status Name or ID',
|
|
21
|
+
name: 'status_id',
|
|
22
|
+
type: 'options',
|
|
23
|
+
displayOptions: {
|
|
24
|
+
show: showOnlyForEstimatesUpdateStatus,
|
|
25
|
+
},
|
|
26
|
+
typeOptions: {
|
|
27
|
+
loadOptionsDependsOn: [
|
|
28
|
+
'resource',
|
|
29
|
+
'operation',
|
|
30
|
+
],
|
|
31
|
+
loadOptionsMethod: 'getStatuses',
|
|
32
|
+
},
|
|
33
|
+
default: [],
|
|
34
|
+
description: 'Estimate 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/estimates/updateStatus.ts"],"names":[],"mappings":";;;AAEA,MAAM,gCAAgC,GAAG;IACxC,SAAS,EAAE,CAAC,cAAc,CAAC;IAC3B,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEW,QAAA,gCAAgC,GAAsB;IAClE;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,gCAAgC;SACtC;KACD;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE,gCAAgC;SACtC;QACD,WAAW,EAAE;YACZ,oBAAoB,EAAE;gBACrB,UAAU;gBACV,WAAW;aACX;YACD,iBAAiB,EAAE,aAAa;SAChC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qMAAqM;QAClN,QAAQ,EAAE,IAAI;KACd;CACD,CAAC"}
|