@pipedream/snipe_it 0.0.1 → 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/actions/create-hardware/create-hardware.mjs +228 -0
- package/actions/create-user/create-user.mjs +211 -0
- package/actions/get-hardware/get-hardware.mjs +27 -0
- package/actions/get-license/get-license.mjs +32 -0
- package/actions/get-user-assets/get-user-assets.mjs +32 -0
- package/actions/update-hardware/update-hardware.mjs +284 -0
- package/common/utils.mjs +44 -0
- package/package.json +4 -1
- package/snipe_it.app.mjs +566 -5
- package/LICENSE +0 -41
package/snipe_it.app.mjs
CHANGED
|
@@ -1,11 +1,572 @@
|
|
|
1
|
+
import { axios } from "@pipedream/platform";
|
|
2
|
+
|
|
1
3
|
export default {
|
|
2
4
|
type: "app",
|
|
3
5
|
app: "snipe_it",
|
|
4
|
-
propDefinitions: {
|
|
6
|
+
propDefinitions: {
|
|
7
|
+
modelId: {
|
|
8
|
+
type: "integer",
|
|
9
|
+
label: "Model",
|
|
10
|
+
description: "Select the model for this asset",
|
|
11
|
+
async options({ page }) {
|
|
12
|
+
const { rows } = await this.listModels({
|
|
13
|
+
params: {
|
|
14
|
+
limit: 50,
|
|
15
|
+
offset: page * 50,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
return rows?.map(({
|
|
19
|
+
id: value, name: label,
|
|
20
|
+
}) => ({
|
|
21
|
+
label,
|
|
22
|
+
value,
|
|
23
|
+
})) || [];
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
statusId: {
|
|
27
|
+
type: "integer",
|
|
28
|
+
label: "Status",
|
|
29
|
+
description: "Select the status label for this asset",
|
|
30
|
+
async options({ page }) {
|
|
31
|
+
const { rows } = await this.listStatusLabels({
|
|
32
|
+
params: {
|
|
33
|
+
limit: 50,
|
|
34
|
+
offset: page * 50,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
return rows?.map(({
|
|
38
|
+
id: value, name: label,
|
|
39
|
+
}) => ({
|
|
40
|
+
label,
|
|
41
|
+
value,
|
|
42
|
+
})) || [];
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
assetTag: {
|
|
46
|
+
type: "string",
|
|
47
|
+
label: "Asset Tag",
|
|
48
|
+
description: "The asset tag for the asset",
|
|
49
|
+
optional: true,
|
|
50
|
+
},
|
|
51
|
+
name: {
|
|
52
|
+
type: "string",
|
|
53
|
+
label: "Asset Name",
|
|
54
|
+
description: "The name of the asset",
|
|
55
|
+
optional: true,
|
|
56
|
+
},
|
|
57
|
+
image: {
|
|
58
|
+
type: "string",
|
|
59
|
+
label: "Image",
|
|
60
|
+
description: "Base64 encoded image. Eg. `data:@[mime];base64,[base64encodeddata]`.",
|
|
61
|
+
optional: true,
|
|
62
|
+
},
|
|
63
|
+
serial: {
|
|
64
|
+
type: "string",
|
|
65
|
+
label: "Serial Number",
|
|
66
|
+
description: "The serial number of the asset",
|
|
67
|
+
optional: true,
|
|
68
|
+
},
|
|
69
|
+
purchaseDate: {
|
|
70
|
+
type: "string",
|
|
71
|
+
label: "Purchase Date",
|
|
72
|
+
description: "The purchase date of the asset (YYYY-MM-DD format)",
|
|
73
|
+
optional: true,
|
|
74
|
+
},
|
|
75
|
+
purchaseCost: {
|
|
76
|
+
type: "string",
|
|
77
|
+
label: "Purchase Cost",
|
|
78
|
+
description: "The purchase cost of the asset",
|
|
79
|
+
optional: true,
|
|
80
|
+
},
|
|
81
|
+
orderNumber: {
|
|
82
|
+
type: "string",
|
|
83
|
+
label: "Order Number",
|
|
84
|
+
description: "The order number of the asset",
|
|
85
|
+
optional: true,
|
|
86
|
+
},
|
|
87
|
+
notes: {
|
|
88
|
+
type: "string",
|
|
89
|
+
label: "Notes",
|
|
90
|
+
description: "Notes about the asset",
|
|
91
|
+
optional: true,
|
|
92
|
+
},
|
|
93
|
+
archived: {
|
|
94
|
+
type: "boolean",
|
|
95
|
+
label: "Archived",
|
|
96
|
+
description: "Whether the asset is archived",
|
|
97
|
+
optional: true,
|
|
98
|
+
},
|
|
99
|
+
warrantyMonths: {
|
|
100
|
+
type: "integer",
|
|
101
|
+
label: "Warranty Months",
|
|
102
|
+
description: "The warranty period in months",
|
|
103
|
+
optional: true,
|
|
104
|
+
},
|
|
105
|
+
depreciate: {
|
|
106
|
+
type: "boolean",
|
|
107
|
+
label: "Depreciate",
|
|
108
|
+
description: "Whether the asset is depreciated",
|
|
109
|
+
optional: true,
|
|
110
|
+
},
|
|
111
|
+
supplierId: {
|
|
112
|
+
type: "integer",
|
|
113
|
+
label: "Supplier",
|
|
114
|
+
description: "Select the supplier for this asset",
|
|
115
|
+
optional: true,
|
|
116
|
+
async options({ page }) {
|
|
117
|
+
const { rows } = await this.listSuppliers({
|
|
118
|
+
params: {
|
|
119
|
+
limit: 50,
|
|
120
|
+
offset: page * 50,
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
return rows?.map(({
|
|
124
|
+
id: value, name: label,
|
|
125
|
+
}) => ({
|
|
126
|
+
label,
|
|
127
|
+
value,
|
|
128
|
+
})) || [];
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
requestable: {
|
|
132
|
+
type: "boolean",
|
|
133
|
+
label: "Requestable",
|
|
134
|
+
description: "Whether this asset can be requested by users",
|
|
135
|
+
optional: true,
|
|
136
|
+
},
|
|
137
|
+
lastAuditDate: {
|
|
138
|
+
type: "string",
|
|
139
|
+
label: "Last Audit Date",
|
|
140
|
+
description: "The date of the last audit for this asset (YYYY-MM-DD format)",
|
|
141
|
+
optional: true,
|
|
142
|
+
},
|
|
143
|
+
locationId: {
|
|
144
|
+
type: "integer",
|
|
145
|
+
label: "Location",
|
|
146
|
+
description: "Select the location where this asset is located",
|
|
147
|
+
optional: true,
|
|
148
|
+
async options({ page }) {
|
|
149
|
+
const { rows } = await this.listLocations({
|
|
150
|
+
params: {
|
|
151
|
+
limit: 50,
|
|
152
|
+
offset: page * 50,
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
return rows?.map(({
|
|
156
|
+
id: value, name: label,
|
|
157
|
+
}) => ({
|
|
158
|
+
label,
|
|
159
|
+
value,
|
|
160
|
+
})) || [];
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
byod: {
|
|
164
|
+
type: "boolean",
|
|
165
|
+
label: "BYOD",
|
|
166
|
+
description: "Whether this asset is a BYOD device.",
|
|
167
|
+
optional: true,
|
|
168
|
+
},
|
|
169
|
+
customFields: {
|
|
170
|
+
type: "object",
|
|
171
|
+
label: "Custom Fields",
|
|
172
|
+
description: "Custom fields for the asset",
|
|
173
|
+
optional: true,
|
|
174
|
+
},
|
|
175
|
+
hardwareId: {
|
|
176
|
+
type: "integer",
|
|
177
|
+
label: "Hardware Asset",
|
|
178
|
+
description: "Select the hardware asset to retrieve details for",
|
|
179
|
+
async options({ page }) {
|
|
180
|
+
const { rows } = await this.listHardware({
|
|
181
|
+
params: {
|
|
182
|
+
limit: 50,
|
|
183
|
+
offset: page * 50,
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
return rows?.map(({
|
|
187
|
+
id: value, name, asset_tag: assetTag,
|
|
188
|
+
}) => ({
|
|
189
|
+
label: name
|
|
190
|
+
? `${name} (${assetTag || `ID: ${value}`})`
|
|
191
|
+
: assetTag || `Asset ID: ${value}`,
|
|
192
|
+
value,
|
|
193
|
+
})) || [];
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
userId: {
|
|
197
|
+
type: "integer",
|
|
198
|
+
label: "User",
|
|
199
|
+
description: "Select the user to retrieve assigned assets for",
|
|
200
|
+
async options({ page }) {
|
|
201
|
+
const { rows } = await this.listUsers({
|
|
202
|
+
params: {
|
|
203
|
+
limit: 50,
|
|
204
|
+
offset: page * 50,
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
return rows?.map(({
|
|
208
|
+
id: value, name, username, email,
|
|
209
|
+
}) => ({
|
|
210
|
+
label: name
|
|
211
|
+
? `${name} (${email || username})`
|
|
212
|
+
: email || username || `User ID: ${value}`,
|
|
213
|
+
value,
|
|
214
|
+
})) || [];
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
firstName: {
|
|
218
|
+
type: "string",
|
|
219
|
+
label: "First Name",
|
|
220
|
+
description: "The first name of the user",
|
|
221
|
+
},
|
|
222
|
+
lastName: {
|
|
223
|
+
type: "string",
|
|
224
|
+
label: "Last Name",
|
|
225
|
+
description: "The last name of the user",
|
|
226
|
+
optional: true,
|
|
227
|
+
},
|
|
228
|
+
username: {
|
|
229
|
+
type: "string",
|
|
230
|
+
label: "Username",
|
|
231
|
+
description: "The username for the user (required for login)",
|
|
232
|
+
},
|
|
233
|
+
password: {
|
|
234
|
+
type: "string",
|
|
235
|
+
label: "Password",
|
|
236
|
+
description: "The password for the user account",
|
|
237
|
+
secret: true,
|
|
238
|
+
},
|
|
239
|
+
passwordConfirmation: {
|
|
240
|
+
type: "string",
|
|
241
|
+
label: "Password Confirmation",
|
|
242
|
+
description: "The password confirmation for the user account",
|
|
243
|
+
secret: true,
|
|
244
|
+
},
|
|
245
|
+
email: {
|
|
246
|
+
type: "string",
|
|
247
|
+
label: "Email",
|
|
248
|
+
description: "The email address of the user",
|
|
249
|
+
optional: true,
|
|
250
|
+
},
|
|
251
|
+
activated: {
|
|
252
|
+
type: "boolean",
|
|
253
|
+
label: "Activated",
|
|
254
|
+
description: "Whether the user account is activated",
|
|
255
|
+
optional: true,
|
|
256
|
+
},
|
|
257
|
+
phone: {
|
|
258
|
+
type: "string",
|
|
259
|
+
label: "Phone",
|
|
260
|
+
description: "The phone number of the user",
|
|
261
|
+
optional: true,
|
|
262
|
+
},
|
|
263
|
+
jobtitle: {
|
|
264
|
+
type: "string",
|
|
265
|
+
label: "Job Title",
|
|
266
|
+
description: "The job title of the user",
|
|
267
|
+
optional: true,
|
|
268
|
+
},
|
|
269
|
+
managerId: {
|
|
270
|
+
type: "integer",
|
|
271
|
+
label: "Manager",
|
|
272
|
+
description: "Select the manager for this user",
|
|
273
|
+
optional: true,
|
|
274
|
+
async options({ page }) {
|
|
275
|
+
const { rows } = await this.listUsers({
|
|
276
|
+
params: {
|
|
277
|
+
limit: 50,
|
|
278
|
+
offset: page * 50,
|
|
279
|
+
},
|
|
280
|
+
});
|
|
281
|
+
return rows?.map(({
|
|
282
|
+
id: value, name, username, email,
|
|
283
|
+
}) => ({
|
|
284
|
+
label: name
|
|
285
|
+
? `${name} (${email || username})`
|
|
286
|
+
: email || username || `User ID: ${value}`,
|
|
287
|
+
value,
|
|
288
|
+
})) || [];
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
employeeNum: {
|
|
292
|
+
type: "string",
|
|
293
|
+
label: "Employee Number",
|
|
294
|
+
description: "The employee number of the user",
|
|
295
|
+
optional: true,
|
|
296
|
+
},
|
|
297
|
+
companyId: {
|
|
298
|
+
type: "integer",
|
|
299
|
+
label: "Company",
|
|
300
|
+
description: "Select the company for this user",
|
|
301
|
+
optional: true,
|
|
302
|
+
async options({ page }) {
|
|
303
|
+
const { rows } = await this.listCompanies({
|
|
304
|
+
params: {
|
|
305
|
+
limit: 50,
|
|
306
|
+
offset: page * 50,
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
return rows?.map(({
|
|
310
|
+
id: value, name: label,
|
|
311
|
+
}) => ({
|
|
312
|
+
label,
|
|
313
|
+
value,
|
|
314
|
+
})) || [];
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
twoFactorEnrolled: {
|
|
318
|
+
type: "boolean",
|
|
319
|
+
label: "Two Factor Enrolled",
|
|
320
|
+
description: "Whether the user is enrolled in two-factor authentication",
|
|
321
|
+
optional: true,
|
|
322
|
+
},
|
|
323
|
+
twoFactorOptIn: {
|
|
324
|
+
type: "boolean",
|
|
325
|
+
label: "Two Factor Opt In",
|
|
326
|
+
description: "Whether the user has opted in to two-factor authentication",
|
|
327
|
+
optional: true,
|
|
328
|
+
},
|
|
329
|
+
departmentId: {
|
|
330
|
+
type: "integer",
|
|
331
|
+
label: "Department",
|
|
332
|
+
description: "Select the department for this user",
|
|
333
|
+
optional: true,
|
|
334
|
+
async options({ page }) {
|
|
335
|
+
const { rows } = await this.listDepartments({
|
|
336
|
+
params: {
|
|
337
|
+
limit: 50,
|
|
338
|
+
offset: page * 50,
|
|
339
|
+
},
|
|
340
|
+
});
|
|
341
|
+
return rows?.map(({
|
|
342
|
+
id: value, name: label,
|
|
343
|
+
}) => ({
|
|
344
|
+
label,
|
|
345
|
+
value,
|
|
346
|
+
})) || [];
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
remote: {
|
|
350
|
+
type: "boolean",
|
|
351
|
+
label: "Remote",
|
|
352
|
+
description: "Whether or not the user is a remote worker",
|
|
353
|
+
optional: true,
|
|
354
|
+
},
|
|
355
|
+
groupIds: {
|
|
356
|
+
type: "string[]",
|
|
357
|
+
label: "Groups",
|
|
358
|
+
description: "Select the groups for this user",
|
|
359
|
+
optional: true,
|
|
360
|
+
async options({ page }) {
|
|
361
|
+
const { rows } = await this.listGroups({
|
|
362
|
+
params: {
|
|
363
|
+
limit: 50,
|
|
364
|
+
offset: page * 50,
|
|
365
|
+
},
|
|
366
|
+
});
|
|
367
|
+
return rows?.map(({
|
|
368
|
+
id: value, name: label,
|
|
369
|
+
}) => ({
|
|
370
|
+
label,
|
|
371
|
+
value,
|
|
372
|
+
})) || [];
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
autoAssignLicenses: {
|
|
376
|
+
type: "boolean",
|
|
377
|
+
label: "Auto Assign Licenses",
|
|
378
|
+
description: "Whether to automatically assign licenses to the user",
|
|
379
|
+
optional: true,
|
|
380
|
+
},
|
|
381
|
+
vip: {
|
|
382
|
+
type: "boolean",
|
|
383
|
+
label: "VIP",
|
|
384
|
+
description: "Whether this user is a VIP",
|
|
385
|
+
optional: true,
|
|
386
|
+
},
|
|
387
|
+
startDate: {
|
|
388
|
+
type: "string",
|
|
389
|
+
label: "Start Date",
|
|
390
|
+
description: "The user's start date (YYYY-MM-DD format)",
|
|
391
|
+
optional: true,
|
|
392
|
+
},
|
|
393
|
+
endDate: {
|
|
394
|
+
type: "string",
|
|
395
|
+
label: "End Date",
|
|
396
|
+
description: "The user's end date (YYYY-MM-DD format)",
|
|
397
|
+
optional: true,
|
|
398
|
+
},
|
|
399
|
+
licenseId: {
|
|
400
|
+
type: "integer",
|
|
401
|
+
label: "License",
|
|
402
|
+
description: "Select the license to retrieve details for",
|
|
403
|
+
async options({ page }) {
|
|
404
|
+
const { rows } = await this.listLicenses({
|
|
405
|
+
params: {
|
|
406
|
+
limit: 50,
|
|
407
|
+
offset: page * 50,
|
|
408
|
+
},
|
|
409
|
+
});
|
|
410
|
+
return rows?.map(({
|
|
411
|
+
id: value, name, product_key: productKey, manufacturer,
|
|
412
|
+
}) => ({
|
|
413
|
+
label: name
|
|
414
|
+
? `${name} ${productKey
|
|
415
|
+
? `(${productKey})`
|
|
416
|
+
: ""} - ${manufacturer?.name || "No manufacturer"}`
|
|
417
|
+
: productKey || `License ID: ${value}`,
|
|
418
|
+
value,
|
|
419
|
+
})) || [];
|
|
420
|
+
},
|
|
421
|
+
},
|
|
422
|
+
lastCheckout: {
|
|
423
|
+
type: "string",
|
|
424
|
+
label: "Last Checkout",
|
|
425
|
+
description: "The last checkout date of the asset (YYYY-MM-DD format)",
|
|
426
|
+
optional: true,
|
|
427
|
+
},
|
|
428
|
+
},
|
|
5
429
|
methods: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
430
|
+
getUrl(path) {
|
|
431
|
+
return `${this.$auth.api_url}/api/v1${path}`;
|
|
432
|
+
},
|
|
433
|
+
getHeaders() {
|
|
434
|
+
return {
|
|
435
|
+
"Authorization": `Bearer ${this.$auth.api_key}`,
|
|
436
|
+
"Accept": "application/json",
|
|
437
|
+
"Content-Type": "application/json",
|
|
438
|
+
};
|
|
439
|
+
},
|
|
440
|
+
async makeRequest({
|
|
441
|
+
$ = this, path, ...args
|
|
442
|
+
} = {}) {
|
|
443
|
+
const response = await axios($, {
|
|
444
|
+
url: this.getUrl(path),
|
|
445
|
+
headers: this.getHeaders(),
|
|
446
|
+
...args,
|
|
447
|
+
});
|
|
448
|
+
|
|
449
|
+
if (response.status === "error") {
|
|
450
|
+
throw JSON.stringify(response, null, 2);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
return response;
|
|
454
|
+
},
|
|
455
|
+
post(args = {}) {
|
|
456
|
+
return this.makeRequest({
|
|
457
|
+
...args,
|
|
458
|
+
method: "POST",
|
|
459
|
+
});
|
|
460
|
+
},
|
|
461
|
+
patch(args = {}) {
|
|
462
|
+
return this.makeRequest({
|
|
463
|
+
...args,
|
|
464
|
+
method: "PATCH",
|
|
465
|
+
});
|
|
466
|
+
},
|
|
467
|
+
createHardware(args = {}) {
|
|
468
|
+
return this.post({
|
|
469
|
+
path: "/hardware",
|
|
470
|
+
...args,
|
|
471
|
+
});
|
|
472
|
+
},
|
|
473
|
+
getHardware({
|
|
474
|
+
hardwareId, ...args
|
|
475
|
+
} = {}) {
|
|
476
|
+
return this.makeRequest({
|
|
477
|
+
path: `/hardware/${hardwareId}`,
|
|
478
|
+
...args,
|
|
479
|
+
});
|
|
480
|
+
},
|
|
481
|
+
updateHardware({
|
|
482
|
+
hardwareId, ...args
|
|
483
|
+
} = {}) {
|
|
484
|
+
return this.patch({
|
|
485
|
+
path: `/hardware/${hardwareId}`,
|
|
486
|
+
...args,
|
|
487
|
+
});
|
|
488
|
+
},
|
|
489
|
+
listHardware(args = {}) {
|
|
490
|
+
return this.makeRequest({
|
|
491
|
+
path: "/hardware",
|
|
492
|
+
...args,
|
|
493
|
+
});
|
|
494
|
+
},
|
|
495
|
+
listModels(args = {}) {
|
|
496
|
+
return this.makeRequest({
|
|
497
|
+
path: "/models",
|
|
498
|
+
...args,
|
|
499
|
+
});
|
|
500
|
+
},
|
|
501
|
+
listStatusLabels(args = {}) {
|
|
502
|
+
return this.makeRequest({
|
|
503
|
+
path: "/statuslabels",
|
|
504
|
+
...args,
|
|
505
|
+
});
|
|
506
|
+
},
|
|
507
|
+
listSuppliers(args = {}) {
|
|
508
|
+
return this.makeRequest({
|
|
509
|
+
path: "/suppliers",
|
|
510
|
+
...args,
|
|
511
|
+
});
|
|
512
|
+
},
|
|
513
|
+
listLocations(args = {}) {
|
|
514
|
+
return this.makeRequest({
|
|
515
|
+
path: "/locations",
|
|
516
|
+
...args,
|
|
517
|
+
});
|
|
518
|
+
},
|
|
519
|
+
listUsers(args = {}) {
|
|
520
|
+
return this.makeRequest({
|
|
521
|
+
path: "/users",
|
|
522
|
+
...args,
|
|
523
|
+
});
|
|
524
|
+
},
|
|
525
|
+
getUserAssets({
|
|
526
|
+
userId, ...args
|
|
527
|
+
} = {}) {
|
|
528
|
+
return this.makeRequest({
|
|
529
|
+
path: `/users/${userId}/assets`,
|
|
530
|
+
...args,
|
|
531
|
+
});
|
|
532
|
+
},
|
|
533
|
+
createUser(args = {}) {
|
|
534
|
+
return this.post({
|
|
535
|
+
path: "/users",
|
|
536
|
+
...args,
|
|
537
|
+
});
|
|
538
|
+
},
|
|
539
|
+
listDepartments(args = {}) {
|
|
540
|
+
return this.makeRequest({
|
|
541
|
+
path: "/departments",
|
|
542
|
+
...args,
|
|
543
|
+
});
|
|
544
|
+
},
|
|
545
|
+
listCompanies(args = {}) {
|
|
546
|
+
return this.makeRequest({
|
|
547
|
+
path: "/companies",
|
|
548
|
+
...args,
|
|
549
|
+
});
|
|
550
|
+
},
|
|
551
|
+
listGroups(args = {}) {
|
|
552
|
+
return this.makeRequest({
|
|
553
|
+
path: "/groups",
|
|
554
|
+
...args,
|
|
555
|
+
});
|
|
556
|
+
},
|
|
557
|
+
listLicenses(args = {}) {
|
|
558
|
+
return this.makeRequest({
|
|
559
|
+
path: "/licenses",
|
|
560
|
+
...args,
|
|
561
|
+
});
|
|
562
|
+
},
|
|
563
|
+
getLicense({
|
|
564
|
+
licenseId, ...args
|
|
565
|
+
} = {}) {
|
|
566
|
+
return this.makeRequest({
|
|
567
|
+
path: `/licenses/${licenseId}`,
|
|
568
|
+
...args,
|
|
569
|
+
});
|
|
9
570
|
},
|
|
10
571
|
},
|
|
11
|
-
};
|
|
572
|
+
};
|
package/LICENSE
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
Pipedream Source Available License Version 1.0
|
|
2
|
-
|
|
3
|
-
This Pipedream Source Available License Agreement Version 1.0 (this “Agreement”) sets forth the terms on which Pipedream, Inc., a Delaware corporation (“Pipedream”) makes available certain software (the “Software”). By installing, downloading, accessing, using or distributing the Software, you agree to the terms of this Agreement. If you do not agree to such terms, you must not use the Software. If you are receiving the Software on behalf of a legal entity, you represent and warrant that you have the actual authority to agree to the terms and conditions of this Agreement on behalf of such entity. “Licensee” means you, an individual, or the entity on whose behalf you are receiving the Software.
|
|
4
|
-
|
|
5
|
-
LICENSE GRANT AND CONDITIONS.
|
|
6
|
-
|
|
7
|
-
1.1 License. Subject to the terms and conditions of this Agreement, Pipedream hereby grants to Licensee a non-exclusive, royalty-free, worldwide, non-transferable, non-sublicenseable license during the term of this Agreement to use, prepare modifications and derivative works, distribute (including without limitation in source code or object code form) and reproduce copies of the Software (the “License”). Licensee is not granted the right to, and Licensee shall not, exercise the License for an Excluded Purpose. For purposes of this Agreement, “Excluded Purpose” means any commercial use of the software including, but not limited to, making available any software-as-a-service, platform-as-a-service, infrastructure-as-a-service or other online service that competes with the Software or any other Pipedream products or services.
|
|
8
|
-
|
|
9
|
-
1.2 Conditions. In consideration of the License, Licensee’s distribution of the Software is subject to the following conditions:
|
|
10
|
-
|
|
11
|
-
a. Licensee must cause any Software modified by Licensee to carry prominent notices stating that Licensee modified the Software.
|
|
12
|
-
|
|
13
|
-
b. On each Software copy, Licensee shall reproduce and not remove or alter all Pipedream or third party copyright or other proprietary notices contained in the Software, and Licensee must provide this with each copy: “This software is made available by Pipedream, Inc., under the terms of the Pipedream Source Available License, Version 1.0 located at https://github.com/PipedreamHQ/pipedream/blob/master/LICENSE. By installing, downloading, accessing, using or distributing the Software, you agree to the terms of such License Agreement.”
|
|
14
|
-
|
|
15
|
-
1.3 Modifications. Licensee may add its own copyright notices to modifications made by Licensee and may provide additional or different license terms and conditions for use, reproduction, or distribution of Licensee’s modifications. While redistributing the Software or modifications thereof, Licensee may choose to offer, for a fee or free of charge, support, warranty, indemnity, or other obligations. Licensee, and not Pipedream, will be responsible for any such obligations.
|
|
16
|
-
|
|
17
|
-
1.4 No Sublicensing. The License does not include the right to sublicense the Software; provided, however, that any recipient to which Licensee provides the Software may exercise the License so long as such recipient agrees to the terms and conditions of this Agreement.
|
|
18
|
-
|
|
19
|
-
TERM AND TERMINATION.
|
|
20
|
-
|
|
21
|
-
This Agreement will continue unless and until earlier terminated as set forth herein. If Licensee breaches any of its conditions or obligations under this Agreement, this Agreement will terminate automatically and the License will terminate automatically and permanently.
|
|
22
|
-
|
|
23
|
-
INTELLECTUAL PROPERTY.
|
|
24
|
-
|
|
25
|
-
As between the parties, Pipedream retains all right, title, and interest in the Software, and all intellectual property rights therein. Pipedream hereby reserves all rights not expressly granted to Licensee in this Agreement. Pipedream reserves all rights in its trademarks and service marks, and no licenses thereto are granted by this Agreement.
|
|
26
|
-
|
|
27
|
-
DISCLAIMER.
|
|
28
|
-
|
|
29
|
-
PIPEDREAM HEREBY DISCLAIMS ANY AND ALL WARRANTIES AND CONDITIONS, EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE SOFTWARE.
|
|
30
|
-
|
|
31
|
-
LIMITATION OF LIABILITY.
|
|
32
|
-
|
|
33
|
-
PIPEDREAM WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO, LOST PROFITS OR ANY CONSEQUENTIAL, SPECIAL, INCIDENTAL, INDIRECT, OR DIRECT DAMAGES, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ARISING OUT OF THIS AGREEMENT. THE FOREGOING SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW.
|
|
34
|
-
|
|
35
|
-
GENERAL.
|
|
36
|
-
|
|
37
|
-
6.1 Governing Law. This Agreement will be governed by and interpreted in accordance with the laws of the state of California, without reference to its conflict of laws principles. If Licensee is located outside of the United States, any dispute, controversy or claim arising out of or relating to this Agreement will be referred to and finally determined by arbitration in accordance with the JAMS International Arbitration Rules. The tribunal will consist of one arbitrator. Judgment upon the award rendered by the arbitrator may be entered in any court having jurisdiction thereof. All disputes including arbitrations shall take place in Santa Clara County, California. The language to be used in any such proceedings shall be English.
|
|
38
|
-
|
|
39
|
-
6.2. Assignment. Licensee is not authorized to assign its rights under this Agreement to any third party. Pipedream may freely assign its rights under this Agreement to any third party.
|
|
40
|
-
|
|
41
|
-
6.3. Other. This Agreement is the entire agreement between the parties regarding the subject matter hereof. No amendment or modification of this Agreement will be valid or binding upon the parties unless made in writing and signed by the duly authorized representatives of both parties. In the event that any provision, including without limitation any condition, of this Agreement is held to be unenforceable, this Agreement and all licenses and rights granted hereunder will immediately terminate. Waiver by Pipedream of a breach of any provision of this Agreement or the failure by Pipedream to exercise any right hereunder will not be construed as a waiver of any subsequent breach of that right or as a waiver of any other right.
|