n8n-nodes-timizer 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +60 -0
- package/dist/credentials/TimizerApi.credentials.d.ts +9 -0
- package/dist/credentials/TimizerApi.credentials.js +46 -0
- package/dist/credentials/TimizerApi.credentials.js.map +1 -0
- package/dist/nodes/Timizer/Timizer.node.d.ts +5 -0
- package/dist/nodes/Timizer/Timizer.node.js +1040 -0
- package/dist/nodes/Timizer/Timizer.node.js.map +1 -0
- package/dist/nodes/Timizer/Timizer.node.json +13 -0
- package/dist/nodes/Timizer/timizer.svg +10 -0
- package/dist/nodes/TimizerTrigger/TimizerTrigger.node.d.ts +12 -0
- package/dist/nodes/TimizerTrigger/TimizerTrigger.node.js +174 -0
- package/dist/nodes/TimizerTrigger/TimizerTrigger.node.js.map +1 -0
- package/dist/nodes/TimizerTrigger/TimizerTrigger.node.json +13 -0
- package/package.json +59 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Timizer
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# n8n-nodes-timizer
|
|
2
|
+
|
|
3
|
+
This is an [n8n](https://n8n.io/) community node for [Timizer](https://timizer.io), a timesheet and activity report management platform.
|
|
4
|
+
|
|
5
|
+
It lets you interact with the Timizer API directly from your n8n workflows.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
In your n8n instance:
|
|
10
|
+
|
|
11
|
+
1. Go to **Settings > Community Nodes**
|
|
12
|
+
2. Click **Install a community node**
|
|
13
|
+
3. Enter `n8n-nodes-timizer`
|
|
14
|
+
4. Click **Install**
|
|
15
|
+
|
|
16
|
+
## Credentials
|
|
17
|
+
|
|
18
|
+
You need a Timizer API key and Team ID to authenticate. Configure them in n8n:
|
|
19
|
+
|
|
20
|
+
1. Go to **Credentials > New Credential**
|
|
21
|
+
2. Search for **Timizer API**
|
|
22
|
+
3. Enter your **API Key** and **Team ID**
|
|
23
|
+
|
|
24
|
+
## Nodes
|
|
25
|
+
|
|
26
|
+
### Timizer
|
|
27
|
+
|
|
28
|
+
Interact with Timizer resources. Supported resources and operations:
|
|
29
|
+
|
|
30
|
+
| Resource | Operations |
|
|
31
|
+
|---|---|
|
|
32
|
+
| Activity Report | Create, Delete, Get, Update |
|
|
33
|
+
| Client | Create, Delete, Get, Update |
|
|
34
|
+
| Client Contact | Create, Delete, Update |
|
|
35
|
+
| Contracted | Create, Delete, Get, Update |
|
|
36
|
+
| Contracted Contact | Create, Delete, Update |
|
|
37
|
+
| Mission | Create, Delete, Update |
|
|
38
|
+
| Tag | Create, Delete, Update |
|
|
39
|
+
| Team | Create, Delete, Update |
|
|
40
|
+
| Team Member | Delete, Update |
|
|
41
|
+
|
|
42
|
+
### Timizer Trigger
|
|
43
|
+
|
|
44
|
+
Starts a workflow when Timizer events occur via webhooks. Supported events:
|
|
45
|
+
|
|
46
|
+
- Activity Report: Created, Deleted, Refused, Shared, Signed, Updated
|
|
47
|
+
|
|
48
|
+
## Compatibility
|
|
49
|
+
|
|
50
|
+
Tested with n8n v1.x. Requires Node.js >= 18.
|
|
51
|
+
|
|
52
|
+
## Resources
|
|
53
|
+
|
|
54
|
+
- [Timizer website](https://timizer.io)
|
|
55
|
+
- [Timizer API documentation](https://api.timizer.io)
|
|
56
|
+
- [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
|
|
57
|
+
|
|
58
|
+
## License
|
|
59
|
+
|
|
60
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class TimizerApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
properties: INodeProperties[];
|
|
7
|
+
authenticate: IAuthenticateGeneric;
|
|
8
|
+
test: ICredentialTestRequest;
|
|
9
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimizerApi = void 0;
|
|
4
|
+
class TimizerApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'timizerApi';
|
|
7
|
+
this.displayName = 'Timizer API';
|
|
8
|
+
this.documentationUrl = 'https://api-doc.timizer.io/';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'API Key',
|
|
12
|
+
name: 'apiKey',
|
|
13
|
+
type: 'string',
|
|
14
|
+
typeOptions: { password: true },
|
|
15
|
+
default: '',
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'Your Timizer API key',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Team ID',
|
|
21
|
+
name: 'teamId',
|
|
22
|
+
type: 'string',
|
|
23
|
+
default: '',
|
|
24
|
+
required: true,
|
|
25
|
+
description: 'The ID of your Timizer team (required for admin endpoints and webhooks)',
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
this.authenticate = {
|
|
29
|
+
type: 'generic',
|
|
30
|
+
properties: {
|
|
31
|
+
headers: {
|
|
32
|
+
'timizer-api-key': '={{$credentials.apiKey}}',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
this.test = {
|
|
37
|
+
request: {
|
|
38
|
+
baseURL: 'https://api.timizer.io',
|
|
39
|
+
url: '=/app/admin-teams/{{$credentials.teamId}}/members',
|
|
40
|
+
method: 'GET',
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.TimizerApi = TimizerApi;
|
|
46
|
+
//# sourceMappingURL=TimizerApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimizerApi.credentials.js","sourceRoot":"","sources":["../../credentials/TimizerApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QACpB,gBAAW,GAAG,aAAa,CAAC;QAC5B,qBAAgB,GAAG,6BAA6B,CAAC;QAEjD,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,sBAAsB;aACnC;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,yEAAyE;aACtF;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,iBAAiB,EAAE,0BAA0B;iBAC7C;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,wBAAwB;gBACjC,GAAG,EAAE,mDAAmD;gBACxD,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAzCD,gCAyCC"}
|