@outseta/n8n-nodes-outseta 0.0.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.
@@ -0,0 +1,85 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, {
32
+ get: all[name],
33
+ enumerable: true,
34
+ configurable: true,
35
+ set: __exportSetter.bind(all, name)
36
+ });
37
+ };
38
+
39
+ // src/credentials/OutsetaApi.credentials.ts
40
+ var exports_OutsetaApi_credentials = {};
41
+ __export(exports_OutsetaApi_credentials, {
42
+ OutsetaApi: () => OutsetaApi
43
+ });
44
+ module.exports = __toCommonJS(exports_OutsetaApi_credentials);
45
+
46
+ class OutsetaApi {
47
+ name = "outsetaApi";
48
+ displayName = "Outseta API";
49
+ documentationUrl = "https://documenter.getpostman.com/view/3613332/outseta-rest-api-v1/7TNfr6p";
50
+ properties = [
51
+ {
52
+ displayName: "Subdomain",
53
+ name: "subdomain",
54
+ type: "string",
55
+ default: "",
56
+ placeholder: "mycompany",
57
+ description: 'Your Outseta subdomain (e.g. "mycompany" from mycompany.outseta.com)',
58
+ required: true
59
+ },
60
+ {
61
+ displayName: "API Key",
62
+ name: "apiKey",
63
+ type: "string",
64
+ typeOptions: { password: true },
65
+ default: "",
66
+ required: true
67
+ },
68
+ {
69
+ displayName: "API Secret",
70
+ name: "apiSecret",
71
+ type: "string",
72
+ typeOptions: { password: true },
73
+ default: "",
74
+ required: true
75
+ }
76
+ ];
77
+ authenticate = {
78
+ type: "generic",
79
+ properties: {
80
+ headers: {
81
+ Authorization: "=Outseta {{$credentials.apiKey}}:{{$credentials.apiSecret}}"
82
+ }
83
+ }
84
+ };
85
+ }