@qlik/api 1.28.0 → 1.30.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.
Files changed (73) hide show
  1. package/api-keys.d.ts +20 -0
  2. package/api-keys.js +2 -2
  3. package/apps.d.ts +123 -4
  4. package/apps.js +2 -2
  5. package/audits.d.ts +1 -1
  6. package/audits.js +2 -2
  7. package/auth.js +2 -2
  8. package/automations.d.ts +49 -37
  9. package/automations.js +2 -2
  10. package/brands.js +2 -2
  11. package/chunks/{5MRIMVKS.js → F5UDCCRD.js} +17 -20
  12. package/chunks/{QOOCP2TS.js → FKCZFVJL.js} +1 -1
  13. package/chunks/{NBW6PHZU.js → G6QUM5WQ.js} +27 -6
  14. package/chunks/{5XNSGPGZ.js → IQBP2PKS.js} +1 -1
  15. package/chunks/{2BRBIRM2.js → JIX6RMFP.js} +1 -1
  16. package/chunks/{4D5NADHK.js → OTTC4QSX.js} +1 -1
  17. package/chunks/{WQYEWU54.js → PTDXR7AY.js} +2 -2
  18. package/chunks/{KYCIMQ4L.js → QK4TMJ64.js} +1 -1
  19. package/chunks/{MGXEGSJC.js → QWQLGDMI.js} +2 -2
  20. package/chunks/{2B7YWDQC.js → TXC5XORK.js} +3 -3
  21. package/collections.d.ts +1 -1
  22. package/collections.js +2 -2
  23. package/csp-origins.js +2 -2
  24. package/data-assets.d.ts +1 -1
  25. package/data-assets.js +2 -2
  26. package/data-connections.d.ts +83 -1
  27. package/data-connections.js +2 -2
  28. package/data-credentials.d.ts +28 -0
  29. package/data-credentials.js +2 -2
  30. package/data-files.d.ts +90 -0
  31. package/data-files.js +2 -2
  32. package/extensions.js +2 -2
  33. package/glossaries.d.ts +34 -14
  34. package/glossaries.js +2 -2
  35. package/groups.d.ts +70 -0
  36. package/groups.js +2 -2
  37. package/identity-providers.js +2 -2
  38. package/index.d.ts +6 -2
  39. package/index.js +33 -4
  40. package/items.d.ts +1 -1
  41. package/items.js +2 -2
  42. package/licenses.d.ts +191 -0
  43. package/licenses.js +2 -2
  44. package/oauth-clients.d.ts +516 -0
  45. package/oauth-clients.js +112 -0
  46. package/package.json +5 -4
  47. package/qix.d.ts +19 -3
  48. package/qix.js +2 -2
  49. package/quotas.js +2 -2
  50. package/reload-tasks.d.ts +20 -0
  51. package/reload-tasks.js +2 -2
  52. package/reloads.d.ts +41 -10
  53. package/reloads.js +2 -2
  54. package/reports.d.ts +159 -17
  55. package/reports.js +2 -2
  56. package/roles.d.ts +42 -2
  57. package/roles.js +2 -2
  58. package/spaces.d.ts +225 -38
  59. package/spaces.js +47 -2
  60. package/temp-contents.js +2 -2
  61. package/tenants.d.ts +47 -1
  62. package/tenants.js +2 -2
  63. package/themes.js +2 -2
  64. package/transports.d.ts +9 -0
  65. package/transports.js +2 -2
  66. package/users.d.ts +88 -0
  67. package/users.js +2 -2
  68. package/web-integrations.d.ts +20 -0
  69. package/web-integrations.js +2 -2
  70. package/web-notifications.d.ts +19 -0
  71. package/web-notifications.js +2 -2
  72. package/webhooks.d.ts +3 -3
  73. package/webhooks.js +2 -2
package/licenses.d.ts CHANGED
@@ -1,6 +1,21 @@
1
1
  import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
+ /**
5
+ * @example
6
+ * {
7
+ * add: [
8
+ * {
9
+ * subject: "qlik\kalle",
10
+ * type: "professional"
11
+ * },
12
+ * {
13
+ * subject: "qlik\nalle",
14
+ * type: "analyzer"
15
+ * }
16
+ * ]
17
+ * }
18
+ */
4
19
  type AssignmentsActionsAddRequest = {
5
20
  add: {
6
21
  /** User name */
@@ -14,6 +29,25 @@ type AssignmentsActionsAddRequest = {
14
29
  userId?: string;
15
30
  }[];
16
31
  };
32
+ /**
33
+ * @example
34
+ * {
35
+ * data: [
36
+ * {
37
+ * status: 201,
38
+ * subject: "qlik\kalle",
39
+ * type: "professional"
40
+ * },
41
+ * {
42
+ * code: "LICENSES-011",
43
+ * status: 403,
44
+ * subject: "qlik\nalle",
45
+ * title: "No available allotment error, No available allotment.",
46
+ * type: "analyzer"
47
+ * }
48
+ * ]
49
+ * }
50
+ */
17
51
  type AssignmentsActionsAddResponse = {
18
52
  data: {
19
53
  /** Error code */
@@ -28,6 +62,17 @@ type AssignmentsActionsAddResponse = {
28
62
  type?: string;
29
63
  }[];
30
64
  };
65
+ /**
66
+ * @example
67
+ * {
68
+ * delete: [
69
+ * {
70
+ * subject: "qlik\malik",
71
+ * type: "analyzer"
72
+ * }
73
+ * ]
74
+ * }
75
+ */
31
76
  type AssignmentsActionsDeleteRequest = {
32
77
  delete: {
33
78
  /** User subject */
@@ -36,6 +81,25 @@ type AssignmentsActionsDeleteRequest = {
36
81
  type: string;
37
82
  }[];
38
83
  };
84
+ /**
85
+ * @example
86
+ * {
87
+ * data: [
88
+ * {
89
+ * status: 200,
90
+ * subject: "qlik\malik",
91
+ * type: "professional"
92
+ * },
93
+ * {
94
+ * code: "LICENSES-016",
95
+ * status: 404,
96
+ * subject: "qlik\no",
97
+ * title: "Assignment not found.",
98
+ * type: "analyzer"
99
+ * }
100
+ * ]
101
+ * }
102
+ */
39
103
  type AssignmentsActionsDeleteResponse = {
40
104
  data: {
41
105
  /** Error code */
@@ -50,6 +114,18 @@ type AssignmentsActionsDeleteResponse = {
50
114
  type?: string;
51
115
  }[];
52
116
  };
117
+ /**
118
+ * @example
119
+ * {
120
+ * update: [
121
+ * {
122
+ * sourceType: "analyzer",
123
+ * subject: "qlik\malik",
124
+ * type: "professional"
125
+ * }
126
+ * ]
127
+ * }
128
+ */
53
129
  type AssignmentsActionsUpdateRequest = {
54
130
  update: {
55
131
  /** The current user subject, in case that should be patched. */
@@ -62,6 +138,26 @@ type AssignmentsActionsUpdateRequest = {
62
138
  type?: string;
63
139
  }[];
64
140
  };
141
+ /**
142
+ * @example
143
+ * {
144
+ * data: [
145
+ * {
146
+ * sourceType: "analyzer",
147
+ * status: 200,
148
+ * subject: "qlik\malik",
149
+ * type: "professional"
150
+ * },
151
+ * {
152
+ * code: "LICENSES-016",
153
+ * sourceType: "analyzer",
154
+ * status: 404,
155
+ * subject: "qlik/sara",
156
+ * title: "Assignment not found."
157
+ * }
158
+ * ]
159
+ * }
160
+ */
65
161
  type AssignmentsActionsUpdateResponse = {
66
162
  data: {
67
163
  /** Error code */
@@ -80,6 +176,31 @@ type AssignmentsActionsUpdateResponse = {
80
176
  type?: string;
81
177
  }[];
82
178
  };
179
+ /**
180
+ * @example
181
+ * {
182
+ * data: [
183
+ * {
184
+ * created: "2020-12-03T09:24:48.114Z",
185
+ * excess: false,
186
+ * subject: "qlik\kalle",
187
+ * type: "analyzer"
188
+ * },
189
+ * {
190
+ * created: "2020-12-03T09:24:48.114Z",
191
+ * subject: "qlik\nalle"
192
+ * }
193
+ * ],
194
+ * links: {
195
+ * next: {
196
+ * href: "http://license/v1/licenses/assignments?limit=4&page=bmV4dDpGZ0FBQUFkZmFXUUFYOHBUcTlpM1U4UU1YWHZrQUE%3D"
197
+ * },
198
+ * prev: {
199
+ * href: "http://license/v1/licenses/assignments?limit=4&page=cHJldjpGZ0FBQUFkZmFXUUFYOHBUcTlpM1U4UU1YWHZ0QUE%3D"
200
+ * }
201
+ * }
202
+ * }
203
+ */
83
204
  type AssignmentsResponse = {
84
205
  data: {
85
206
  /** Assignment created date. */
@@ -124,6 +245,19 @@ type ConsumptionEventsResponse = {
124
245
  prev?: Href;
125
246
  };
126
247
  };
248
+ /**
249
+ * @example
250
+ * {
251
+ * error: "util.Error",
252
+ * errors: [
253
+ * {
254
+ * code: "LICENSES-123",
255
+ * title: "error title"
256
+ * }
257
+ * ],
258
+ * message: "error message"
259
+ * }
260
+ */
127
261
  type ErrorResponse = {
128
262
  /** @deprecated
129
263
  * Error type */
@@ -144,6 +278,43 @@ type Href = {
144
278
  /** link */
145
279
  href?: string;
146
280
  };
281
+ /**
282
+ * @example
283
+ * {
284
+ * allotments: [
285
+ * {
286
+ * name: "analyzer_time",
287
+ * overage: 100,
288
+ * units: 300,
289
+ * unitsUsed: 242,
290
+ * usageClass: "time"
291
+ * },
292
+ * {
293
+ * name: "professional",
294
+ * units: 200,
295
+ * unitsUsed: 15,
296
+ * usageClass: "assigned"
297
+ * }
298
+ * ],
299
+ * licenseKey: "hejhbGciOiJSUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6IktFWTEifQ.eyJqdGkiOiIxZjZkZTc0Zi04MDcyLTRjMTQtYjc1OS02ZjlkYmJmYWM5MjAiLCJsaWNlbnNlIjoiOTk5OTAwMDAwMDAwMTIzNCJ9.fwa6l6gY1MR_Ja2OMnV65V68fbzQYW5OAKUFnLfG9oZjNAbjhdDkZvS2S2zHaBnSrSva1ARh5iq_S0KTBOKKcJJDTb7jRVURyaAvbCuBDk_0ITrUudHaT9U_Mc9EKkfT8mR6vthhZxVzEhyYPFS7gDw7M6bav2ntpDsoJFPgous",
300
+ * licenseNumber: "9999000000001204",
301
+ * origin: "Internal",
302
+ * parameters: [
303
+ * {
304
+ * name: "qlikAlerting",
305
+ * valid: "./.",
306
+ * values: {
307
+ * "saas_alerting": "FULL"
308
+ * }
309
+ * }
310
+ * ],
311
+ * product: "Qlik Sense Enterprise SaaS",
312
+ * secondaryNumber: "12345",
313
+ * status: "Ok",
314
+ * trial: false,
315
+ * valid: "2018-01-01/2018-12-31"
316
+ * }
317
+ */
147
318
  type LicenseOverview = {
148
319
  allotments: {
149
320
  name: "professional" | "analyzer" | "analyzer_time";
@@ -153,6 +324,8 @@ type LicenseOverview = {
153
324
  unitsUsed: number;
154
325
  usageClass: string;
155
326
  }[];
327
+ /** the capability bank id */
328
+ capabilityBankId?: string;
156
329
  /** An ISO 8601 timestamp for when the license was last changed. */
157
330
  changeTime?: string;
158
331
  /** An ISO 8601 timestamp for when the latest time the license has been known to be valid, a missing value indicates the indefinite future. */
@@ -191,6 +364,17 @@ type LicenseOverview = {
191
364
  /** Period that the license is currently set to be active. Represented as an ISO 8601 time interval with start and end. */
192
365
  valid: string;
193
366
  };
367
+ /**
368
+ * @example
369
+ * {
370
+ * origin: "Internal",
371
+ * product: "Qlik Sense Business",
372
+ * status: "Ok",
373
+ * trial: false,
374
+ * type: "Signed",
375
+ * valid: "2018-01-01/2018-12-31"
376
+ * }
377
+ */
194
378
  type LicenseStatus = {
195
379
  /** Origin of license key. */
196
380
  origin: "Internal" | "External";
@@ -205,6 +389,13 @@ type LicenseStatus = {
205
389
  /** Period that the license is currently set to be active. Represented as an ISO 8601 time interval with start and end. */
206
390
  valid: string;
207
391
  };
392
+ /**
393
+ * @example
394
+ * {
395
+ * autoAssignAnalyzer: true,
396
+ * autoAssignProfessional: false
397
+ * }
398
+ */
208
399
  type SettingsBody = {
209
400
  /** If analyzer users are available, they will be automatically assigned. Otherwise, analyzer capacity will be assigned, if available. */
210
401
  autoAssignAnalyzer?: boolean;
package/licenses.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/PTDXR7AY.js";
5
+ import "./chunks/TXC5XORK.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/licenses.ts