@drivelock/n8n-nodes-drivelock 0.2.2 → 0.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drivelock/n8n-nodes-drivelock",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Control the DriveLock API with n8n.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.drivelock.com",
@@ -1,2 +0,0 @@
1
- import type { INodeProperties } from 'n8n-workflow';
2
- export declare const binariesOperations: INodeProperties[];
@@ -1,160 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.binariesOperations = void 0;
7
- const FilterOperations_1 = require("./FilterOperations");
8
- const AcBinaries_json_1 = __importDefault(require("../helper/fields/AcBinaries.json"));
9
- exports.binariesOperations = [
10
- {
11
- displayName: 'Operation',
12
- name: 'operation',
13
- type: 'options',
14
- noDataExpression: true,
15
- displayOptions: {
16
- show: {
17
- resource: ['binaries'],
18
- },
19
- },
20
- options: [
21
- {
22
- name: 'Get Many',
23
- value: 'getAll',
24
- description: 'Get Many Binaries',
25
- action: 'Get many acbinaries',
26
- },
27
- ],
28
- default: 'getAll',
29
- },
30
- {
31
- displayName: 'Return All',
32
- name: 'returnAll',
33
- type: 'boolean',
34
- displayOptions: {
35
- show: {
36
- resource: ['binaries'],
37
- operation: ['getAll'],
38
- },
39
- },
40
- default: true,
41
- description: 'Whether to return all results or only up to a given limit',
42
- },
43
- {
44
- displayName: 'Get Full Object Return',
45
- name: 'getFullObject',
46
- type: 'boolean',
47
- displayOptions: {
48
- show: {
49
- resource: ['binaries'],
50
- operation: ['getAll'],
51
- },
52
- },
53
- default: true,
54
- description: 'Whether to return all results or only up to a given limit',
55
- },
56
- {
57
- displayName: 'Limit',
58
- name: 'limit',
59
- type: 'number',
60
- displayOptions: {
61
- show: {
62
- resource: ['binaries'],
63
- operation: ['getAll'],
64
- returnAll: [false],
65
- },
66
- },
67
- typeOptions: {
68
- minValue: 1,
69
- maxValue: 250,
70
- },
71
- default: 50,
72
- description: 'Max number of results to return',
73
- },
74
- {
75
- displayName: 'Properties to Include',
76
- name: 'properties',
77
- type: 'multiOptions',
78
- default: [],
79
- displayOptions: {
80
- show: {
81
- resource: ['binaries'],
82
- operation: ['getAll'],
83
- getFullObject: [false],
84
- },
85
- },
86
- description: 'Whether to include specific properties in the returned results. Choose from a list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
87
- options: AcBinaries_json_1.default.map((f) => ({ name: f.name, value: f.id })),
88
- },
89
- {
90
- displayName: 'Extention-Properties to Include',
91
- name: 'extentionproperties',
92
- type: 'multiOptions',
93
- default: [],
94
- displayOptions: {
95
- show: {
96
- resource: ['binaries'],
97
- operation: ['getAll'],
98
- getFullObject: [false],
99
- },
100
- },
101
- description: 'Whether to include specific properties in the returned results. Choose from a list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
102
- typeOptions: {
103
- loadOptionsMethod: 'getSchemaExtentions',
104
- },
105
- },
106
- ...(0, FilterOperations_1.makeFilterProperties)(['binaries'], ['getAll'], { always: true }),
107
- {
108
- displayName: 'Options',
109
- name: 'additionalFields',
110
- type: 'collection',
111
- placeholder: 'Add option',
112
- default: {},
113
- displayOptions: {
114
- show: {
115
- resource: ['binaries'],
116
- operation: ['getAll'],
117
- },
118
- },
119
- options: [
120
- {
121
- displayName: 'Sort Order',
122
- name: 'direction',
123
- type: 'options',
124
- options: [
125
- {
126
- name: 'Ascending',
127
- value: 'ASCENDING',
128
- },
129
- {
130
- name: 'Descending',
131
- value: 'DESCENDING',
132
- },
133
- ],
134
- default: 'DESCENDING',
135
- description: 'Defines the direction in which search results are ordered. Default value is Descending.',
136
- },
137
- {
138
- displayName: 'Field Names or IDs',
139
- name: 'properties',
140
- type: 'multiOptions',
141
- typeOptions: {
142
- loadOptionsMethod: 'getBinaryProps',
143
- },
144
- default: [],
145
- description: 'Whether to include specific Contact properties in the returned results. Choose from a list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
146
- },
147
- {
148
- displayName: 'Sort By',
149
- name: 'sortBy',
150
- type: 'options',
151
- description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
152
- typeOptions: {
153
- loadOptionsMethod: 'getBinaryProps',
154
- },
155
- default: '',
156
- },
157
- ],
158
- },
159
- ];
160
- //# sourceMappingURL=BinariesOperations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BinariesOperations.js","sourceRoot":"","sources":["../../../../nodes/Drivelock/operations/BinariesOperations.ts"],"names":[],"mappings":";;;;;;AACA,yDAA0D;AAC1D,uFAAgE;AAEnD,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;aACtB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,qBAAqB;aAC7B;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IAID;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SAC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