@justbrunasso/n8n-nodes-glpi 1.0.34 → 1.0.35

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 (64) hide show
  1. package/dist/nodes/GlpiApi/GlpiApi.node.js +57 -69
  2. package/dist/nodes/GlpiApi/GlpiApi.node.js.map +1 -1
  3. package/dist/nodes/GlpiApi/glpi.dark.svg +1 -1
  4. package/dist/nodes/GlpiApi/glpi.svg +1 -1
  5. package/dist/nodes/GlpiApi/resources/administration/create.d.ts +2 -0
  6. package/dist/nodes/GlpiApi/resources/administration/create.js +20 -0
  7. package/dist/nodes/GlpiApi/resources/administration/create.js.map +1 -0
  8. package/dist/nodes/GlpiApi/resources/administration/get.d.ts +2 -0
  9. package/dist/nodes/GlpiApi/resources/administration/get.js +20 -0
  10. package/dist/nodes/GlpiApi/resources/administration/get.js.map +1 -0
  11. package/dist/nodes/GlpiApi/resources/administration/group.d.ts +2 -0
  12. package/dist/nodes/GlpiApi/resources/administration/group.js +32 -0
  13. package/dist/nodes/GlpiApi/resources/administration/group.js.map +1 -0
  14. package/dist/nodes/GlpiApi/resources/administration/index.d.ts +2 -0
  15. package/dist/nodes/GlpiApi/resources/administration/index.js +85 -0
  16. package/dist/nodes/GlpiApi/resources/administration/index.js.map +1 -0
  17. package/dist/nodes/GlpiApi/resources/administration/profile.d.ts +2 -0
  18. package/dist/nodes/GlpiApi/resources/administration/profile.js +32 -0
  19. package/dist/nodes/GlpiApi/resources/administration/profile.js.map +1 -0
  20. package/dist/nodes/GlpiApi/resources/administration/update.d.ts +2 -0
  21. package/dist/nodes/GlpiApi/resources/administration/update.js +31 -0
  22. package/dist/nodes/GlpiApi/resources/administration/update.js.map +1 -0
  23. package/dist/nodes/GlpiApi/resources/administrationManagement/create.d.ts +2 -0
  24. package/dist/nodes/GlpiApi/resources/administrationManagement/create.js +20 -0
  25. package/dist/nodes/GlpiApi/resources/administrationManagement/create.js.map +1 -0
  26. package/dist/nodes/GlpiApi/resources/administrationManagement/get.d.ts +2 -0
  27. package/dist/nodes/GlpiApi/resources/administrationManagement/get.js +20 -0
  28. package/dist/nodes/GlpiApi/resources/administrationManagement/get.js.map +1 -0
  29. package/dist/nodes/GlpiApi/resources/administrationManagement/index.d.ts +2 -0
  30. package/dist/nodes/GlpiApi/resources/administrationManagement/index.js +71 -0
  31. package/dist/nodes/GlpiApi/resources/administrationManagement/index.js.map +1 -0
  32. package/dist/nodes/GlpiApi/resources/administrationManagement/update.d.ts +2 -0
  33. package/dist/nodes/GlpiApi/resources/administrationManagement/update.js +31 -0
  34. package/dist/nodes/GlpiApi/resources/administrationManagement/update.js.map +1 -0
  35. package/dist/nodes/GlpiApi/resources/assetManagement/create.d.ts +2 -0
  36. package/dist/nodes/GlpiApi/resources/assetManagement/create.js +20 -0
  37. package/dist/nodes/GlpiApi/resources/assetManagement/create.js.map +1 -0
  38. package/dist/nodes/GlpiApi/resources/assetManagement/get.d.ts +2 -0
  39. package/dist/nodes/GlpiApi/resources/assetManagement/get.js +20 -0
  40. package/dist/nodes/GlpiApi/resources/assetManagement/get.js.map +1 -0
  41. package/dist/nodes/GlpiApi/resources/assetManagement/index.d.ts +2 -0
  42. package/dist/nodes/GlpiApi/resources/assetManagement/index.js +75 -0
  43. package/dist/nodes/GlpiApi/resources/assetManagement/index.js.map +1 -0
  44. package/dist/nodes/GlpiApi/resources/assetManagement/update.d.ts +2 -0
  45. package/dist/nodes/GlpiApi/resources/assetManagement/update.js +31 -0
  46. package/dist/nodes/GlpiApi/resources/assetManagement/update.js.map +1 -0
  47. package/dist/nodes/GlpiApi/resources/itilObjects/comment.d.ts +2 -0
  48. package/dist/nodes/GlpiApi/resources/itilObjects/comment.js +45 -0
  49. package/dist/nodes/GlpiApi/resources/itilObjects/comment.js.map +1 -0
  50. package/dist/nodes/GlpiApi/resources/itilObjects/create.d.ts +2 -0
  51. package/dist/nodes/GlpiApi/resources/itilObjects/create.js +20 -0
  52. package/dist/nodes/GlpiApi/resources/itilObjects/create.js.map +1 -0
  53. package/dist/nodes/GlpiApi/resources/itilObjects/get.d.ts +2 -0
  54. package/dist/nodes/GlpiApi/resources/itilObjects/get.js +20 -0
  55. package/dist/nodes/GlpiApi/resources/itilObjects/get.js.map +1 -0
  56. package/dist/nodes/GlpiApi/resources/itilObjects/index.d.ts +2 -0
  57. package/dist/nodes/GlpiApi/resources/itilObjects/index.js +69 -0
  58. package/dist/nodes/GlpiApi/resources/itilObjects/index.js.map +1 -0
  59. package/dist/nodes/GlpiApi/resources/itilObjects/update.d.ts +2 -0
  60. package/dist/nodes/GlpiApi/resources/itilObjects/update.js +31 -0
  61. package/dist/nodes/GlpiApi/resources/itilObjects/update.js.map +1 -0
  62. package/dist/package.json +1 -1
  63. package/dist/tsconfig.tsbuildinfo +1 -1
  64. package/package.json +1 -1
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.administrationManagementDescription = void 0;
4
+ const get_1 = require("./get");
5
+ const create_1 = require("./create");
6
+ const update_1 = require("./update");
7
+ const showOnlyForAdministrationManagement = {
8
+ resource: ['administrationManagement'],
9
+ };
10
+ exports.administrationManagementDescription = [
11
+ {
12
+ displayName: 'Operation',
13
+ name: 'operation',
14
+ type: 'options',
15
+ noDataExpression: true,
16
+ displayOptions: {
17
+ show: showOnlyForAdministrationManagement,
18
+ },
19
+ options: [
20
+ {
21
+ name: 'Get an Administration Item',
22
+ value: 'get',
23
+ action: 'Get an administration item',
24
+ description: 'Get the data of a single administration item',
25
+ },
26
+ {
27
+ name: 'Create an Administration Item',
28
+ value: 'create',
29
+ action: 'Create a new administration item',
30
+ description: 'Create a new administration item',
31
+ },
32
+ {
33
+ name: 'Update an Administration Item',
34
+ value: 'update',
35
+ action: 'Update an administration item',
36
+ description: 'Update an existing administration item',
37
+ },
38
+ ],
39
+ default: 'get',
40
+ },
41
+ {
42
+ displayName: 'Item Type',
43
+ name: 'itemtype',
44
+ type: 'options',
45
+ displayOptions: {
46
+ show: showOnlyForAdministrationManagement,
47
+ },
48
+ options: [
49
+ { name: 'License', value: 'SoftwareLicense' },
50
+ { name: 'Budget', value: 'Budget' },
51
+ { name: 'Supplier', value: 'Supplier' },
52
+ { name: 'Contact', value: 'Contact' },
53
+ { name: 'Contract', value: 'Contract' },
54
+ { name: 'Document', value: 'Document' },
55
+ { name: 'Line', value: 'Line' },
56
+ { name: 'Certificate', value: 'Certificate' },
57
+ { name: 'Data Center', value: 'DataCenter' },
58
+ { name: 'Cluster', value: 'Cluster' },
59
+ { name: 'Domain', value: 'Domain' },
60
+ { name: 'Appliance', value: 'Appliance' },
61
+ { name: 'Database', value: 'Database' },
62
+ ],
63
+ default: 'SoftwareLicense',
64
+ required: true,
65
+ description: 'Type of administration item',
66
+ },
67
+ ...get_1.administrationManagementGetDescription,
68
+ ...create_1.administrationManagementCreateDescription,
69
+ ...update_1.administrationManagementUpdateDescription,
70
+ ];
71
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/administrationManagement/index.ts"],"names":[],"mappings":";;;AACA,+BAA+D;AAC/D,qCAAqE;AACrE,qCAAqE;AAErE,MAAM,mCAAmC,GAAG;IAC3C,QAAQ,EAAE,CAAC,0BAA0B,CAAC;CACtC,CAAC;AAEW,QAAA,mCAAmC,GAAsB;IACrE;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,mCAAmC;SACzC;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,4BAA4B;gBAClC,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,4BAA4B;gBACpC,WAAW,EAAE,8CAA8C;aAC3D;YACD;gBACC,IAAI,EAAE,+BAA+B;gBACrC,KAAK,EAAE,QAAQ;gBACf,MAAM,EA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,4CAAsC;IACzC,GAAG,kDAAyC;IAC5C,GAAG,kDAAyC;CAC5C,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const administrationManagementUpdateDescription: INodeProperties[];
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.administrationManagementUpdateDescription = void 0;
4
+ const showOnlyForAdministrationManagementUpdate = {
5
+ operation: ['update'],
6
+ resource: ['administrationManagement'],
7
+ };
8
+ exports.administrationManagementUpdateDescription = [
9
+ {
10
+ displayName: 'Item ID',
11
+ name: 'itemId',
12
+ type: 'number',
13
+ displayOptions: {
14
+ show: showOnlyForAdministrationManagementUpdate,
15
+ },
16
+ default: 0,
17
+ required: true,
18
+ description: 'ID of the administration item to update',
19
+ },
20
+ {
21
+ displayName: 'Payload (JSON)',
22
+ name: 'payload',
23
+ type: 'json',
24
+ default: '{}',
25
+ displayOptions: {
26
+ show: showOnlyForAdministrationManagementUpdate,
27
+ },
28
+ description: 'JSON payload to update the administration item',
29
+ },
30
+ ];
31
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/administrationManagement/update.ts"],"names":[],"mappings":";;;AAEA,MAAM,yCAAyC,GAAG;IACjD,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,0BAA0B,CAAC;CACtC,CAAC;AAEW,QAAA,yCAAyC,GAAsB;IAC3E;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,yCAAyC;SAC/C;QACD,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,yCAAyC;KACtD;IACD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE,yCAAyC;SAC/C;QACD,WAAW,EAAE,gDAAgD;KAC7D;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const assetManagementCreateDescription: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assetManagementCreateDescription = void 0;
4
+ const showOnlyForAssetManagementCreate = {
5
+ operation: ['create'],
6
+ resource: ['assetManagement'],
7
+ };
8
+ exports.assetManagementCreateDescription = [
9
+ {
10
+ displayName: 'Payload (JSON)',
11
+ name: 'payload',
12
+ type: 'json',
13
+ default: '{}',
14
+ displayOptions: {
15
+ show: showOnlyForAssetManagementCreate,
16
+ },
17
+ description: 'JSON payload to create the asset',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/assetManagement/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,gCAAgC,GAAG;IACxC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,iBAAiB,CAAC;CAC7B,CAAC;AAEW,QAAA,gCAAgC,GAAsB;IAClE;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE,gCAAgC;SACtC;QACD,WAAW,EAAE,kCAAkC;KAC/C;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const assetManagementGetDescription: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assetManagementGetDescription = void 0;
4
+ const showOnlyForAssetManagementGet = {
5
+ operation: ['get'],
6
+ resource: ['assetManagement'],
7
+ };
8
+ exports.assetManagementGetDescription = [
9
+ {
10
+ displayName: 'Item ID',
11
+ name: 'itemId',
12
+ type: 'number',
13
+ displayOptions: {
14
+ show: showOnlyForAssetManagementGet,
15
+ },
16
+ default: 0,
17
+ description: 'ID of the asset to retrieve. Leave empty to get all assets of the selected type',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/assetManagement/get.ts"],"names":[],"mappings":";;;AAEA,MAAM,6BAA6B,GAAG;IACrC,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,iBAAiB,CAAC;CAC7B,CAAC;AAEW,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,6BAA6B;SACnC;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,iFAAiF;KAC9F;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const assetManagementDescription: INodeProperties[];
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assetManagementDescription = void 0;
4
+ const get_1 = require("./get");
5
+ const create_1 = require("./create");
6
+ const update_1 = require("./update");
7
+ const showOnlyForAssetManagement = {
8
+ resource: ['assetManagement'],
9
+ };
10
+ exports.assetManagementDescription = [
11
+ {
12
+ displayName: 'Operation',
13
+ name: 'operation',
14
+ type: 'options',
15
+ noDataExpression: true,
16
+ displayOptions: {
17
+ show: showOnlyForAssetManagement,
18
+ },
19
+ options: [
20
+ {
21
+ name: 'Get an Asset',
22
+ value: 'get',
23
+ action: 'Get an asset',
24
+ description: 'Get the data of a single asset',
25
+ },
26
+ {
27
+ name: 'Create an Asset',
28
+ value: 'create',
29
+ action: 'Create a new asset',
30
+ description: 'Create a new asset',
31
+ },
32
+ {
33
+ name: 'Update an Asset',
34
+ value: 'update',
35
+ action: 'Update an asset',
36
+ description: 'Update an existing asset',
37
+ },
38
+ ],
39
+ default: 'get',
40
+ },
41
+ {
42
+ displayName: 'Item Type',
43
+ name: 'itemtype',
44
+ type: 'options',
45
+ displayOptions: {
46
+ show: showOnlyForAssetManagement,
47
+ },
48
+ options: [
49
+ { name: 'Computer', value: 'Computer' },
50
+ { name: 'Monitor', value: 'Monitor' },
51
+ { name: 'Software', value: 'Software' },
52
+ { name: 'Network Equipment', value: 'NetworkEquipment' },
53
+ { name: 'Peripheral', value: 'Peripheral' },
54
+ { name: 'Printer', value: 'Printer' },
55
+ { name: 'Cartridge', value: 'Cartridge' },
56
+ { name: 'Consumable', value: 'Consumable' },
57
+ { name: 'Phone', value: 'Phone' },
58
+ { name: 'Rack', value: 'Rack' },
59
+ { name: 'Enclosure', value: 'Enclosure' },
60
+ { name: 'PDU', value: 'PDU' },
61
+ { name: 'Passive Device', value: 'PassiveDCEquipment' },
62
+ { name: 'Unmanaged Device', value: 'Unmanaged' },
63
+ { name: 'Cable', value: 'Cable' },
64
+ { name: 'SIM Card', value: 'SIMCard' },
65
+ { name: 'Camera', value: 'DeviceCamera' },
66
+ ],
67
+ default: 'Computer',
68
+ required: true,
69
+ description: 'Type of asset',
70
+ },
71
+ ...get_1.assetManagementGetDescription,
72
+ ...create_1.assetManagementCreateDescription,
73
+ ...update_1.assetManagementUpdateDescription,
74
+ ];
75
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/assetManagement/index.ts"],"names":[],"mappings":";;;AACA,+BAAsD;AACtD,qCAA4D;AAC5D,qCAA4D;AAE5D,MAAM,0BAA0B,GAAG;IAClC,QAAQ,EAAE,CAAC,i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E;YAC3C,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;YACjC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YAC/B,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;YACzC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;YAC7B,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,oBAAoB,EAAE;YACvD,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,WAAW,EAAE;YAChD,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;YACjC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE;YACtC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE;SACzC;QACD,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,eAAe;KAC5B;IACD,GAAG,mCAA6B;IAChC,GAAG,yCAAgC;IACnC,GAAG,yCAAgC;CACnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const assetManagementUpdateDescription: INodeProperties[];
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assetManagementUpdateDescription = void 0;
4
+ const showOnlyForAssetManagementUpdate = {
5
+ operation: ['update'],
6
+ resource: ['assetManagement'],
7
+ };
8
+ exports.assetManagementUpdateDescription = [
9
+ {
10
+ displayName: 'Item ID',
11
+ name: 'itemId',
12
+ type: 'number',
13
+ displayOptions: {
14
+ show: showOnlyForAssetManagementUpdate,
15
+ },
16
+ default: 0,
17
+ required: true,
18
+ description: 'ID of the asset to update',
19
+ },
20
+ {
21
+ displayName: 'Payload (JSON)',
22
+ name: 'payload',
23
+ type: 'json',
24
+ default: '{}',
25
+ displayOptions: {
26
+ show: showOnlyForAssetManagementUpdate,
27
+ },
28
+ description: 'JSON payload to update the asset',
29
+ },
30
+ ];
31
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/assetManagement/update.ts"],"names":[],"mappings":";;;AAEA,MAAM,gCAAgC,GAAG;IACxC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,iBAAiB,CAAC;CAC7B,CAAC;AAEW,QAAA,gCAAgC,GAAsB;IAClE;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,gCAAgC;SACtC;QACD,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,2BAA2B;KACxC;IACD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE,gCAAgC;SACtC;QACD,WAAW,EAAE,kCAAkC;KAC/C;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const itilObjectsCommentDescription: INodeProperties[];
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.itilObjectsCommentDescription = void 0;
4
+ const showOnlyForItilObjectsComment = {
5
+ operation: ['comment'],
6
+ resource: ['itilObjects'],
7
+ };
8
+ exports.itilObjectsCommentDescription = [
9
+ {
10
+ displayName: 'Item ID',
11
+ name: 'itemId',
12
+ type: 'number',
13
+ displayOptions: {
14
+ show: showOnlyForItilObjectsComment,
15
+ },
16
+ default: 0,
17
+ required: true,
18
+ description: 'ID of the ITIL object to comment on',
19
+ },
20
+ {
21
+ displayName: 'Comment',
22
+ name: 'comment',
23
+ type: 'string',
24
+ typeOptions: {
25
+ rows: 4,
26
+ },
27
+ displayOptions: {
28
+ show: showOnlyForItilObjectsComment,
29
+ },
30
+ default: '',
31
+ required: true,
32
+ description: 'Content of the comment',
33
+ },
34
+ {
35
+ displayName: 'Private Comment',
36
+ name: 'isPrivate',
37
+ type: 'boolean',
38
+ default: false,
39
+ displayOptions: {
40
+ show: showOnlyForItilObjectsComment,
41
+ },
42
+ description: 'Whether the comment should be private',
43
+ },
44
+ ];
45
+ //# sourceMappingURL=comment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/itilObjects/comment.ts"],"names":[],"mappings":";;;AAEA,MAAM,6BAA6B,GAAG;IACrC,SAAS,EAAE,CAAC,SAAS,CAAC;IACtB,QAAQ,EAAE,CAAC,aAAa,CAAC;CACzB,CAAC;AAEW,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,6BAA6B;SACnC;QACD,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,qCAAqC;KAClD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,cAAc,EAAE;YACf,IAAI,EAAE,6BAA6B;SACnC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,wBAAwB;KACrC;IACD;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE,6BAA6B;SACnC;QACD,WAAW,EAAE,uCAAuC;KACpD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const itilObjectsCreateDescription: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.itilObjectsCreateDescription = void 0;
4
+ const showOnlyForItilObjectsCreate = {
5
+ operation: ['create'],
6
+ resource: ['itilObjects'],
7
+ };
8
+ exports.itilObjectsCreateDescription = [
9
+ {
10
+ displayName: 'Payload (JSON)',
11
+ name: 'payload',
12
+ type: 'json',
13
+ default: '{}',
14
+ displayOptions: {
15
+ show: showOnlyForItilObjectsCreate,
16
+ },
17
+ description: 'JSON payload to create the ITIL object',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/itilObjects/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,4BAA4B,GAAG;IACpC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,aAAa,CAAC;CACzB,CAAC;AAEW,QAAA,4BAA4B,GAAsB;IAC9D;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE,4BAA4B;SAClC;QACD,WAAW,EAAE,wCAAwC;KACrD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const itilObjectsGetDescription: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.itilObjectsGetDescription = void 0;
4
+ const showOnlyForItilObjectsGet = {
5
+ operation: ['get'],
6
+ resource: ['itilObjects'],
7
+ };
8
+ exports.itilObjectsGetDescription = [
9
+ {
10
+ displayName: 'Item ID',
11
+ name: 'itemId',
12
+ type: 'number',
13
+ displayOptions: {
14
+ show: showOnlyForItilObjectsGet,
15
+ },
16
+ default: 0,
17
+ description: 'ID of the ITIL object to retrieve. Leave empty to get all objects of the selected type',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/itilObjects/get.ts"],"names":[],"mappings":";;;AAEA,MAAM,yBAAyB,GAAG;IACjC,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,aAAa,CAAC;CACzB,CAAC;AAEW,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,yBAAyB;SAC/B;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,wFAAwF;KACrG;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const itilObjectsDescription: INodeProperties[];
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.itilObjectsDescription = void 0;
4
+ const get_1 = require("./get");
5
+ const create_1 = require("./create");
6
+ const update_1 = require("./update");
7
+ const comment_1 = require("./comment");
8
+ const showOnlyForItilObjects = {
9
+ resource: ['itilObjects'],
10
+ };
11
+ exports.itilObjectsDescription = [
12
+ {
13
+ displayName: 'Operation',
14
+ name: 'operation',
15
+ type: 'options',
16
+ noDataExpression: true,
17
+ displayOptions: {
18
+ show: showOnlyForItilObjects,
19
+ },
20
+ options: [
21
+ {
22
+ name: 'Get an ITIL Object',
23
+ value: 'get',
24
+ action: 'Get an ITIL object',
25
+ description: 'Get the data of a single ITIL object',
26
+ },
27
+ {
28
+ name: 'Create an ITIL Object',
29
+ value: 'create',
30
+ action: 'Create a new ITIL object',
31
+ description: 'Create a new ITIL object',
32
+ },
33
+ {
34
+ name: 'Update an ITIL Object',
35
+ value: 'update',
36
+ action: 'Update an ITIL object',
37
+ description: 'Update an existing ITIL object',
38
+ },
39
+ {
40
+ name: 'Comment on an ITIL Object',
41
+ value: 'comment',
42
+ action: 'Add a comment to an ITIL object',
43
+ description: 'Add a comment to an ITIL object',
44
+ },
45
+ ],
46
+ default: 'get',
47
+ },
48
+ {
49
+ displayName: 'Item Type',
50
+ name: 'itemtype',
51
+ type: 'options',
52
+ displayOptions: {
53
+ show: showOnlyForItilObjects,
54
+ },
55
+ options: [
56
+ { name: 'Ticket', value: 'Ticket' },
57
+ { name: 'Change', value: 'Change' },
58
+ { name: 'Problem', value: 'Problem' },
59
+ ],
60
+ default: 'Ticket',
61
+ required: true,
62
+ description: 'Type of ITIL object',
63
+ },
64
+ ...get_1.itilObjectsGetDescription,
65
+ ...create_1.itilObjectsCreateDescription,
66
+ ...update_1.itilObjectsUpdateDescription,
67
+ ...comment_1.itilObjectsCommentDescription,
68
+ ];
69
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/itilObjects/index.ts"],"names":[],"mappings":";;;AACA,+BAAkD;AAClD,qCAAwD;AACxD,qCAAwD;AACxD,uCAA0D;AAE1D,MAAM,sBAAsB,GAAG;IAC9B,QAAQ,EAAE,CAAC,aAAa,CAAC;CACzB,CAAC;AAEW,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,oBAAoB;gBAC1B,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,sCAAsC;aACnD;YACD;gBACC,IAAI,EAAE,uBAAuB;gBAC7B,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,0BAA0B;gBAClC,WAAW,EAAE,0BAA0B;aACvC;YACD;gBACC,IAAI,EAAE,uBAAuB;gBAC7B,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,uBAAuB;gBAC/B,WAAW,EAAE,gCAAgC;aAC7C;YACD;gBACC,IAAI,EAAE,2BAA2B;gBACjC,KAAK,EAAE,SAAS;gBAChB,MAAM,EAAE,iCAAiC;gBACzC,WAAW,EAAE,iCAAiC;aAC9C;SACD;QACD,OAAO,EAAE,KAAK;KACd;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;YACnC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;YACnC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;SACrC;QACD,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,qBAAqB;KAClC;IACD,GAAG,+BAAyB;IAC5B,GAAG,qCAA4B;IAC/B,GAAG,qCAA4B;IAC/B,GAAG,uCAA6B;CAChC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const itilObjectsUpdateDescription: INodeProperties[];
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.itilObjectsUpdateDescription = void 0;
4
+ const showOnlyForItilObjectsUpdate = {
5
+ operation: ['update'],
6
+ resource: ['itilObjects'],
7
+ };
8
+ exports.itilObjectsUpdateDescription = [
9
+ {
10
+ displayName: 'Item ID',
11
+ name: 'itemId',
12
+ type: 'number',
13
+ displayOptions: {
14
+ show: showOnlyForItilObjectsUpdate,
15
+ },
16
+ default: 0,
17
+ required: true,
18
+ description: 'ID of the ITIL object to update',
19
+ },
20
+ {
21
+ displayName: 'Payload (JSON)',
22
+ name: 'payload',
23
+ type: 'json',
24
+ default: '{}',
25
+ displayOptions: {
26
+ show: showOnlyForItilObjectsUpdate,
27
+ },
28
+ description: 'JSON payload to update the ITIL object',
29
+ },
30
+ ];
31
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/itilObjects/update.ts"],"names":[],"mappings":";;;AAEA,MAAM,4BAA4B,GAAG;IACpC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,aAAa,CAAC;CACzB,CAAC;AAEW,QAAA,4BAA4B,GAAsB;IAC9D;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,4BAA4B;SAClC;QACD,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE,4BAA4B;SAClC;QACD,WAAW,EAAE,wCAAwC;KACrD;CACD,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justbrunasso/n8n-nodes-glpi",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "n8n community node for GLPI API with automatic session management",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/PhyBruno/n8n-nodes-glpi",