@qlik/api 0.0.16 → 0.1.1

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 (134) hide show
  1. package/README.md +1 -1
  2. package/api-keys.js +25 -25
  3. package/apps.d.ts +9 -1
  4. package/apps.js +97 -97
  5. package/audits.js +23 -23
  6. package/auth.js +14 -14
  7. package/automations.js +47 -47
  8. package/brands.js +35 -35
  9. package/chunks/4HB3TAEO.js +4 -4
  10. package/chunks/{HHOVS7QC.mjs → CHNBNLXY.js} +3 -3
  11. package/chunks/{3YV6X7S6.mjs → FFGE2RP7.js} +1 -1
  12. package/chunks/{HOCTJESP.mjs → JEGN7XQV.js} +3 -3
  13. package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
  14. package/chunks/OPRGGO4C.js +8 -8
  15. package/chunks/{O4EAKEIN.mjs → RHF624NQ.js} +1 -1
  16. package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
  17. package/chunks/{EHAANYDL.mjs → TT66UJZY.js} +3 -3
  18. package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
  19. package/chunks/{6AD3HYSF.mjs → XZQNE4HH.js} +1 -1
  20. package/collections.js +33 -33
  21. package/csp-origins.js +23 -23
  22. package/data-assets.js +21 -21
  23. package/data-connections.js +29 -29
  24. package/data-credentials.js +19 -19
  25. package/data-files.js +35 -35
  26. package/docs/authentication.md +5 -5
  27. package/docs/examples/fetch-spaces.md +1 -15
  28. package/docs/examples/show-sheet-list.md +1 -1
  29. package/docs/features.md +1 -1
  30. package/extensions.js +25 -25
  31. package/glossaries.js +59 -59
  32. package/groups.d.ts +0 -3
  33. package/groups.js +27 -27
  34. package/identity-providers.d.ts +144 -10
  35. package/identity-providers.js +27 -27
  36. package/index.js +53 -53
  37. package/items.js +27 -27
  38. package/licenses.js +29 -29
  39. package/package.json +36 -232
  40. package/qix.d.ts +1 -1
  41. package/qix.js +10 -10
  42. package/quotas.js +15 -15
  43. package/reload-tasks.js +21 -21
  44. package/reloads.js +19 -19
  45. package/roles.js +15 -15
  46. package/spaces.js +35 -35
  47. package/temp-contents.js +17 -17
  48. package/tenants.js +23 -23
  49. package/themes.js +25 -25
  50. package/transports.js +23 -23
  51. package/users.d.ts +1 -3
  52. package/users.js +31 -31
  53. package/web-integrations.js +21 -21
  54. package/web-notifications.js +23 -23
  55. package/webhooks.js +31 -31
  56. package/api-keys.d.mts +0 -336
  57. package/api-keys.mjs +0 -80
  58. package/apps.d.mts +0 -2431
  59. package/apps.mjs +0 -398
  60. package/audits.d.mts +0 -286
  61. package/audits.mjs +0 -64
  62. package/auth-types-nnUcWhuU.d.mts +0 -98
  63. package/auth.d.mts +0 -26
  64. package/auth.mjs +0 -14
  65. package/automations.d.mts +0 -682
  66. package/automations.mjs +0 -173
  67. package/brands.d.mts +0 -670
  68. package/brands.mjs +0 -123
  69. package/chunks/2YWCEGTS.js +0 -21
  70. package/chunks/34ZKUFEA.js +0 -41
  71. package/chunks/4WHZ4EIW.js +0 -57
  72. package/chunks/B4VPD3ZT.js +0 -574
  73. package/chunks/BM4OSDRZ.js +0 -17
  74. package/chunks/DCXUEDOW.mjs +0 -67
  75. package/chunks/MTAQE4WC.js +0 -10411
  76. package/chunks/PLOSYUG2.js +0 -25
  77. package/chunks/URIW2U5M.js +0 -17
  78. package/chunks/VSY5YIQY.mjs +0 -11
  79. package/chunks/WOYJLK4Y.js +0 -1623
  80. package/collections.d.mts +0 -581
  81. package/collections.mjs +0 -114
  82. package/csp-origins.d.mts +0 -273
  83. package/csp-origins.mjs +0 -69
  84. package/data-assets.d.mts +0 -205
  85. package/data-assets.mjs +0 -66
  86. package/data-connections.d.mts +0 -594
  87. package/data-connections.mjs +0 -103
  88. package/data-credentials.d.mts +0 -204
  89. package/data-credentials.mjs +0 -59
  90. package/data-files.d.mts +0 -562
  91. package/data-files.mjs +0 -123
  92. package/extensions.d.mts +0 -293
  93. package/extensions.mjs +0 -77
  94. package/global.types-5iFvFJvX.d.mts +0 -115
  95. package/glossaries.d.mts +0 -1173
  96. package/glossaries.mjs +0 -237
  97. package/groups.d.mts +0 -434
  98. package/groups.mjs +0 -88
  99. package/identity-providers.d.mts +0 -550
  100. package/identity-providers.mjs +0 -83
  101. package/index.d.mts +0 -142
  102. package/index.mjs +0 -716
  103. package/items.d.mts +0 -535
  104. package/items.mjs +0 -87
  105. package/licenses.d.mts +0 -459
  106. package/licenses.mjs +0 -92
  107. package/qix.d.mts +0 -11629
  108. package/qix.mjs +0 -10
  109. package/quotas.d.mts +0 -112
  110. package/quotas.mjs +0 -32
  111. package/reload-tasks.d.mts +0 -227
  112. package/reload-tasks.mjs +0 -62
  113. package/reloads.d.mts +0 -207
  114. package/reloads.mjs +0 -46
  115. package/roles.d.mts +0 -175
  116. package/roles.mjs +0 -31
  117. package/spaces.d.mts +0 -562
  118. package/spaces.mjs +0 -124
  119. package/temp-contents.d.mts +0 -167
  120. package/temp-contents.mjs +0 -41
  121. package/tenants.d.mts +0 -300
  122. package/tenants.mjs +0 -73
  123. package/themes.d.mts +0 -268
  124. package/themes.mjs +0 -77
  125. package/transports.d.mts +0 -319
  126. package/transports.mjs +0 -65
  127. package/users.d.mts +0 -631
  128. package/users.mjs +0 -104
  129. package/web-integrations.d.mts +0 -274
  130. package/web-integrations.mjs +0 -62
  131. package/web-notifications.d.mts +0 -250
  132. package/web-notifications.mjs +0 -69
  133. package/webhooks.d.mts +0 -445
  134. package/webhooks.mjs +0 -104
package/index.mjs DELETED
@@ -1,716 +0,0 @@
1
- import {
2
- auth_default
3
- } from "./chunks/6AD3HYSF.mjs";
4
- import {
5
- qix_default
6
- } from "./chunks/O4EAKEIN.mjs";
7
- import {
8
- clearApiCache,
9
- invokeFetch
10
- } from "./chunks/3YV6X7S6.mjs";
11
- import "./chunks/EHAANYDL.mjs";
12
- import "./chunks/VSY5YIQY.mjs";
13
-
14
- // src/public/public-runtime-api-generator/public-runtime-api-generator.ts
15
- var methodAbbreviations = {
16
- G: "GET",
17
- P: "POST",
18
- U: "PUT",
19
- A: "PATCH",
20
- D: "DELETE",
21
- O: "OPTIONS",
22
- H: "HEAD",
23
- C: "CONNECT",
24
- T: "TRACE"
25
- };
26
- function methodCharToMethodName(method) {
27
- try {
28
- return methodAbbreviations[method];
29
- } catch {
30
- throw new Error(`Unknown short hand method:${method}`);
31
- }
32
- }
33
- var contentTypeAbbreviations = {
34
- "": "",
35
- J: "application/json",
36
- M: "multipart/form-data",
37
- O: "application/octet-stream",
38
- T: "text/plain"
39
- };
40
- function contentTypeCharToContentType(typeChar) {
41
- try {
42
- return contentTypeAbbreviations[typeChar];
43
- } catch {
44
- throw new Error(`Unknown short hand content-type: ${typeChar}`);
45
- }
46
- }
47
- var ignoredProps = /* @__PURE__ */ new Set(["$$typeof", "then", "__esmodule"]);
48
- function createLazyApi(api2, initFunc) {
49
- const lazyApi = {
50
- initiated: false,
51
- init: () => {
52
- if (!lazyApi.initiated) {
53
- initFunc();
54
- lazyApi.initiated = true;
55
- }
56
- },
57
- ownKeys(target) {
58
- if (!lazyApi.initiated) {
59
- lazyApi.init();
60
- }
61
- return Object.keys(target);
62
- },
63
- has(target, key) {
64
- if (ignoredProps.has(key)) {
65
- return false;
66
- }
67
- if (!lazyApi.initiated) {
68
- lazyApi.init();
69
- }
70
- return !!target[key];
71
- },
72
- get(target, key) {
73
- if (!ignoredProps.has(key) && !lazyApi.initiated) {
74
- lazyApi.init();
75
- }
76
- return target[key];
77
- }
78
- };
79
- return new Proxy(api2, lazyApi);
80
- }
81
- var runtimeApiCache = {};
82
- function apiDefToApi(namespace, def) {
83
- if (namespace in runtimeApiCache) {
84
- return runtimeApiCache[namespace];
85
- }
86
- const api2 = {
87
- clearCache: () => clearApiCache(namespace)
88
- };
89
- const initFunc = () => {
90
- traverse(namespace, "", def, api2);
91
- };
92
- const lazyApi = createLazyApi(api2, initFunc);
93
- runtimeApiCache[namespace] = lazyApi;
94
- return lazyApi;
95
- }
96
- function traverse(namespace, parentPath, node, resultingApi) {
97
- Object.entries(node).forEach(([key, value]) => {
98
- const pathTemplate = key ? `${parentPath}/${key}` : parentPath;
99
- if (Array.isArray(value)) {
100
- value.forEach((operationString) => {
101
- const argNames = [...pathTemplate.matchAll(/\{([\w\-_]+)\}/g)].map((match) => match[1]);
102
- const [operationNames, options, useInstead] = operationString.split(":");
103
- const method = methodCharToMethodName(options[0]);
104
- const [operationName, ...oldOperationNames] = operationNames.split(",");
105
- const hasQuery = options.indexOf("Q") >= 0;
106
- const bodyIndex = options.indexOf("B");
107
- const hasBody = bodyIndex >= 0;
108
- let contentType = "";
109
- if (bodyIndex >= 0) {
110
- if (options.length > bodyIndex) {
111
- contentType = contentTypeCharToContentType(options[bodyIndex + 1]);
112
- }
113
- }
114
- const apiFunction = createClassicApiFn(
115
- namespace,
116
- operationName,
117
- pathTemplate,
118
- method,
119
- argNames,
120
- hasQuery,
121
- hasBody,
122
- contentType,
123
- useInstead
124
- );
125
- resultingApi[operationName] = apiFunction;
126
- oldOperationNames.forEach((oldOperationName) => {
127
- resultingApi[oldOperationName] = resultingApi[operationName];
128
- });
129
- });
130
- } else {
131
- traverse(namespace, pathTemplate, value, resultingApi);
132
- }
133
- });
134
- }
135
- function createClassicApiFn(namespace, operationName, pathTemplate, method, argNames, hasQuery, hasBody, contentType, useInstead) {
136
- return (...args) => {
137
- const pathVariables = {};
138
- argNames.forEach((argName, index) => {
139
- pathVariables[argName] = args[index];
140
- });
141
- let argPos = argNames.length;
142
- let query;
143
- let body;
144
- if (hasQuery) {
145
- query = args[argPos];
146
- argPos++;
147
- }
148
- if (hasBody) {
149
- body = args[argPos];
150
- argPos++;
151
- }
152
- const options = args.length > argPos ? args[argPos] : void 0;
153
- if (useInstead) {
154
- console.warn(`${namespace}.${operationName} is deprecated, use ${useInstead} instead`);
155
- }
156
- return invokeFetch(namespace, {
157
- method,
158
- pathTemplate,
159
- pathVariables,
160
- query,
161
- body,
162
- ...contentType ? { contentType } : {},
163
- options
164
- });
165
- };
166
- }
167
-
168
- // src/public/index.ts
169
- var apiKeys = apiDefToApi("api-keys", {
170
- api: {
171
- v1: {
172
- "api-keys": {
173
- "": ["getApiKeys:GQ:", "createApiKey:PBJ:"],
174
- configs: { "{tenantId}": ["getApiKeysConfig:G:", "patchApiKeysConfig:ABJ:"] },
175
- "{id}": ["deleteApiKey:D:", "getApiKey:G:", "patchApiKey:ABJ:"]
176
- }
177
- }
178
- }
179
- });
180
- var apps = apiDefToApi("apps", {
181
- api: {
182
- v1: {
183
- apps: {
184
- "": ["createApp:PBJ:"],
185
- evaluations: {
186
- "{baseid}": {
187
- actions: {
188
- compare: {
189
- "{comparisonid}": {
190
- "": ["getAppEvaluationComparison:GQ:"],
191
- actions: { download: ["getAppEvaluationComparisonXml:G:"] }
192
- }
193
- }
194
- }
195
- },
196
- "{id}": { "": ["getAppEvaluation:GQ:"], actions: { download: ["getAppEvaluationXml:G:"] } }
197
- },
198
- import: ["importApp:PQBO:"],
199
- privileges: ["getAppsPrivileges:G:"],
200
- "{appId}": {
201
- "": ["deleteApp:D:", "getAppInfo:G:", "updateAppInfo:UBJ:"],
202
- copy: ["copyApp:PBJ:"],
203
- data: { lineage: ["getAppDataLineage:G:"], metadata: ["getAppDataMetadata:G:"] },
204
- export: ["exportApp:PQ:"],
205
- "insight-analyses": {
206
- "": ["getAppInsightAnalyses:G:"],
207
- actions: { recommend: ["getAppInsightAnalysisRecommendations:PBJ:"] },
208
- model: ["getAppInsightAnalysisModel:G:"]
209
- },
210
- media: {
211
- files: { "{path}": ["deleteAppMedia:D:", "getAppMedia:G:", "uploadAppMedia:UBO:"] },
212
- list: { "{path}": ["getAppMediaList:GQ:"] },
213
- thumbnail: ["getAppThumbnail:G:"]
214
- },
215
- objects: { "{objectId}": { actions: { "change-owner": ["updateAppObjectOwner:PBJ:"] } } },
216
- owner: ["updateAppOwner:UBJ:"],
217
- publish: ["publishApp:PBJ:", "republishApp:UBJ:"],
218
- reloads: {
219
- logs: { "": ["getAppReloadLogs:G:"], "{reloadId}": ["getAppReloadLog:G:"] },
220
- metadata: { "{reloadId}": ["getAppReloadMetadata:GQ:"] }
221
- },
222
- "report-filters": {
223
- "": ["getAppReportFilters:GQ:", "createAppReportFilter:PBJ:"],
224
- actions: { count: ["countAppReportFilters:GQ:"] },
225
- "{id}": ["deleteAppReportFilter:D:", "getAppReportFilter:G:"]
226
- },
227
- scripts: {
228
- "": ["getAppScriptHistory:GQ:", "updateAppScript:PBJ:"],
229
- "{version}": ["deleteAppScript:D:", "getAppScript:G:", "patchAppScript:ABJ:"]
230
- },
231
- space: ["removeAppFromSpace:D:", "moveAppToSpace:UBJ:"]
232
- },
233
- "{guid}": { evaluations: ["getAppEvaluations:GQ:", "queueAppEvaluation:P:"] }
234
- }
235
- }
236
- }
237
- });
238
- var audits = apiDefToApi("audits", {
239
- api: {
240
- v1: {
241
- audits: {
242
- "": ["getAudits:GQ:"],
243
- archive: ["getArchivedAudits:GQ:"],
244
- settings: ["getAuditsSettings:G:"],
245
- sources: ["getAuditSources:G:"],
246
- types: ["getAuditTypes:G:"],
247
- "{id}": ["getAudit:G:"]
248
- }
249
- }
250
- }
251
- });
252
- var auth = auth_default;
253
- var automations = apiDefToApi("automations", {
254
- api: {
255
- v1: {
256
- automations: {
257
- "": ["getAutomations:GQ:", "createAutomation:PBJ:"],
258
- settings: ["getAutomationsSettings:G:", "updateAutomationsSettings:UBJ:"],
259
- usage: ["getAutomationsUsageMetrics:GQ:"],
260
- "{id}": {
261
- "": ["deleteAutomation:D:", "getAutomation:G:", "updateAutomation:UBJ:"],
262
- actions: {
263
- copy: ["copyAutomation:PBJ:"],
264
- disable: ["disableAutomation:P:"],
265
- enable: ["enableAutomation:P:"],
266
- move: ["moveAutomation:PBJ:"]
267
- },
268
- runs: {
269
- "": ["getAutomationRuns:GQ:", "queueAutomationRun:PBJ:"],
270
- "{runId}": {
271
- "": ["getAutomationRun:G:"],
272
- actions: {
273
- export: ["getAutomationRunDetails:P:"],
274
- retry: ["retryAutomationRun:P:"],
275
- stop: ["stopAutomationRun:P:"]
276
- }
277
- }
278
- }
279
- }
280
- }
281
- }
282
- }
283
- });
284
- var brands = apiDefToApi("brands", {
285
- api: {
286
- v1: {
287
- brands: {
288
- "": ["getBrands:GQ:", "createBrand:PBM:"],
289
- active: ["getActiveBrand:G:"],
290
- "{brand-id}": {
291
- "": ["deleteBrand:D:", "getBrand:G:", "patchBrand:ABJ:"],
292
- actions: { activate: ["activateBrand:PB:"], deactivate: ["deactivateBrand:PB:"] },
293
- files: {
294
- "{brand-file-id}": [
295
- "deleteBrandFile:D:",
296
- "getBrandFile:G:",
297
- "createBrandFile:PBM:",
298
- "updateBrandFile:UBM:"
299
- ]
300
- }
301
- }
302
- }
303
- }
304
- }
305
- });
306
- var collections = apiDefToApi("collections", {
307
- api: {
308
- v1: {
309
- collections: {
310
- "": ["getCollections:GQ:", "createCollection:PBJ:"],
311
- favorites: ["getFavoritesCollection:G:"],
312
- "{collectionId}": {
313
- "": ["deleteCollection:D:", "getCollection:G:", "patchCollection:ABJ:", "updateCollection:UBJ:"],
314
- items: {
315
- "": ["getCollectionItems:GQ:", "addCollectionItem:PBJ:"],
316
- "{itemId}": ["deleteCollectionItem:D:", "getCollectionItem:G:"]
317
- }
318
- }
319
- }
320
- }
321
- }
322
- });
323
- var cspOrigins = apiDefToApi("csp-origins", {
324
- api: {
325
- v1: {
326
- "csp-origins": {
327
- "": ["getCSPEntries:GQ:", "createCSPEntry:PBJ:"],
328
- actions: { "generate-header": ["getCSPHeader:G:"] },
329
- "{id}": ["deleteCSPEntry:D:", "getCSPEntry:G:", "updateCSPEntry:UBJ:"]
330
- }
331
- }
332
- }
333
- });
334
- var dataAssets = apiDefToApi("data-assets", {
335
- api: {
336
- v1: {
337
- "data-assets": {
338
- "": ["deleteDataAssets:DBJ:", "createDataAsset:PBJ:"],
339
- "{data-asset-id}": ["getDataAsset:GQ:", "patchDataAsset:ABJ:", "updateDataAsset:UBJ:"]
340
- }
341
- }
342
- }
343
- });
344
- var dataConnections = apiDefToApi("data-connections", {
345
- api: {
346
- v1: {
347
- "data-connections": {
348
- "": ["getDataConnections:GQ:", "createDataConnection:PBJ:"],
349
- actions: {
350
- delete: ["deleteDataConnections:PBJ:"],
351
- duplicate: ["duplicateDataAConnection:PBJ:"],
352
- update: ["updateDataConnections:PBJ:"]
353
- },
354
- "{qID}": [
355
- "deleteDataConnection:DQ:",
356
- "getDataConnection:GQ:",
357
- "patchDataConnection:AQBJ:",
358
- "updateDataConnection:UQBJ:"
359
- ]
360
- }
361
- }
362
- }
363
- });
364
- var dataCredentials = apiDefToApi("data-credentials", {
365
- api: {
366
- v1: {
367
- "data-credentials": {
368
- "{qID}": [
369
- "deleteDataCredential:DQ:",
370
- "getDataCredential:GQ:",
371
- "patchDataCredential:AQBJ:",
372
- "updateDataCredential:UQBJ:"
373
- ]
374
- }
375
- }
376
- }
377
- });
378
- var dataFiles = apiDefToApi("data-files", {
379
- api: {
380
- v1: {
381
- "data-files": {
382
- "": ["getDataFiles:GQ:", "uploadDataFile:PBM:"],
383
- actions: { "change-space": ["moveDataFiles:PBJ:"], delete: ["deleteDataFiles:PBJ:"] },
384
- connections: { "": ["getDataFilesConnections:GQ:"], "{id}": ["getDataFileConnection:G:"] },
385
- quotas: ["getDataFilesQuotas:G:"],
386
- "{id}": {
387
- "": ["deleteDataFile:D:", "getDataFile:G:", "reuploadDataFile:UBM:"],
388
- actions: { "change-owner": ["changeDataFileOwner:PBJ:"], "change-space": ["moveDataFile:PBJ:"] }
389
- }
390
- }
391
- }
392
- }
393
- });
394
- var extensions = apiDefToApi("extensions", {
395
- api: {
396
- v1: {
397
- extensions: {
398
- "": ["getExtensions:G:", "uploadExtension:PBM:"],
399
- "{id}": {
400
- "": ["deleteExtension:D:", "getExtension:G:", "patchExtension:ABM:"],
401
- file: { "": ["downloadExtension:G:"], "{filepath}": ["downloadFileFromExtension:G:"] }
402
- }
403
- }
404
- }
405
- }
406
- });
407
- var glossaries = apiDefToApi("glossaries", {
408
- api: {
409
- v1: {
410
- glossaries: {
411
- "": ["getGlossaries:GQ:", "createGlossary:PBJ:"],
412
- actions: { import: ["importGlossary:PQBJ:"] },
413
- "{id}": {
414
- "": ["deleteGlossary:D:", "getGlossary:G:", "patchGlossary:ABJ:", "updateGlossary:UBJ:"],
415
- actions: { export: ["exportGlossary:G:"] },
416
- categories: {
417
- "": ["getGlossaryCategories:GQ:", "createGlossaryCategory:PBJ:"],
418
- "{categoryId}": [
419
- "deleteGlossaryCategory:D:",
420
- "getGlossaryCategory:G:",
421
- "patchGlossaryCategory:ABJ:",
422
- "updateGlossaryCategory:UBJ:"
423
- ]
424
- },
425
- terms: {
426
- "": ["getGlossaryTerms:GQ:", "createGlossaryTerm:PBJ:"],
427
- "{termId}": {
428
- "": ["deleteGlossaryTerm:D:", "getGlossaryTerm:G:", "patchGlossaryTerm:ABJ:", "updateGlossaryTerm:UBJ:"],
429
- actions: { "change-status": ["changeGlossaryTermStatus:PQ:"] },
430
- links: ["getGlossaryTermLinks:GQ:", "createGlossaryTermLink:PBJ:"],
431
- revisions: ["getGlossaryTermRevisions:GQ:"]
432
- }
433
- }
434
- }
435
- }
436
- }
437
- }
438
- });
439
- var groups = apiDefToApi("groups", {
440
- api: {
441
- v1: {
442
- groups: {
443
- "": ["getGroups:GQ:", "createGroup:PBJ:"],
444
- actions: { filter: ["filterGroups:PQBJ:"] },
445
- settings: ["getGroupsSettings:G:", "patchGroupsSettings:ABJ:"],
446
- "{groupId}": ["deleteGroup:D:", "getGroup:G:", "patchGroup:ABJ:"]
447
- }
448
- }
449
- }
450
- });
451
- var identityProviders = apiDefToApi("identity-providers", {
452
- api: {
453
- v1: {
454
- "identity-providers": {
455
- "": ["getIdps:GQ:", "createIdp:PBJ:"],
456
- ".well-known": { "metadata.json": ["getIdpWellKnownMetaData:G:"] },
457
- me: { meta: ["getMyIdpMeta:G:"] },
458
- status: ["getIdpStatuses:G:"],
459
- "{id}": ["deleteIdp:D:", "getIdp:G:", "patchIdp:ABJ:"]
460
- }
461
- }
462
- }
463
- });
464
- var items = apiDefToApi("items", {
465
- api: {
466
- v1: {
467
- items: {
468
- "": ["getItems:GQ:"],
469
- settings: ["getItemsSettings:G:", "patchItemsSettings:ABJ:"],
470
- "{itemId}": {
471
- "": ["deleteItem:D:", "getItem:G:", "updateItem:UBJ:"],
472
- collections: ["getItemCollections:GQ:"],
473
- publisheditems: ["getPublishedItems:GQ:"]
474
- }
475
- }
476
- }
477
- }
478
- });
479
- var licenses = apiDefToApi("licenses", {
480
- api: {
481
- v1: {
482
- licenses: {
483
- assignments: {
484
- "": ["getLicenseAssignments:GQ:"],
485
- actions: {
486
- add: ["addLicenseAssignments:PBJ:"],
487
- delete: ["deleteLicenseAssignments:PBJ:"],
488
- update: ["updateLicenseAssignments:PBJ:"]
489
- }
490
- },
491
- consumption: ["getLicenseConsumption:GQ:"],
492
- overview: ["getLicenseOverview:G:"],
493
- settings: ["getLicenseSettings:G:", "updateLicenseSettings:UBJ:"],
494
- status: ["getLicenseStatus:G:"]
495
- }
496
- }
497
- }
498
- });
499
- var qix = qix_default;
500
- var quotas = apiDefToApi("quotas", {
501
- api: { v1: { quotas: { "": ["getQuotas:GQ:"], "{id}": ["getQuota:GQ:"] } } }
502
- });
503
- var reloadTasks = apiDefToApi("reload-tasks", {
504
- api: {
505
- v1: {
506
- "reload-tasks": {
507
- "": ["getReloadTasks:GQ:", "createReloadTask:PBJ:"],
508
- "{taskId}": ["deleteReloadTask:D:", "getReloadTask:G:", "updateReloadTask:UBJ:"]
509
- }
510
- }
511
- }
512
- });
513
- var reloads = apiDefToApi("reloads", {
514
- api: {
515
- v1: {
516
- reloads: {
517
- "": ["getReloads:GQ:", "queueReload:PBJ:"],
518
- "{reloadId}": { "": ["getReload:G:"], actions: { cancel: ["cancelReload:P:"] } }
519
- }
520
- }
521
- }
522
- });
523
- var roles = apiDefToApi("roles", {
524
- api: { v1: { roles: { "": ["getRoles:GQ:"], "{id}": ["getRole:G:"] } } }
525
- });
526
- var spaces = apiDefToApi("spaces", {
527
- api: {
528
- v1: {
529
- spaces: {
530
- "": ["getSpaces:GQ:", "createSpace:PBJ:"],
531
- types: ["getSpaceTypes:G:"],
532
- "{spaceId}": {
533
- "": ["deleteSpace:D:", "getSpace:G:", "patchSpace:ABJ:", "updateSpace:UBJ:"],
534
- assignments: {
535
- "": ["getSpaceAssignments:GQ:", "createSpaceAssignment:PBJ:"],
536
- "{assignmentId}": ["deleteSpaceAssignment:D:", "getSpaceAssignment:G:", "updateSpaceAssignment:UBJ:"]
537
- }
538
- }
539
- }
540
- }
541
- }
542
- });
543
- var tempContents = apiDefToApi("temp-contents", {
544
- api: {
545
- v1: {
546
- "temp-contents": {
547
- "": ["uploadTempFile:PQBO:"],
548
- "{id}": { "": ["downloadTempFile:GQ:"], details: ["getTempFileDetails:G:"] }
549
- }
550
- }
551
- }
552
- });
553
- var tenants = apiDefToApi("tenants", {
554
- api: {
555
- v1: {
556
- tenants: {
557
- "": ["createTenant:PBJ:"],
558
- me: ["getMyTenant:G:"],
559
- "{tenantId}": {
560
- "": ["getTenant:G:", "patchTenant:ABJ:"],
561
- actions: { deactivate: ["deactivateTenant:PBJ:"], reactivate: ["reactivateTenant:PBJ:"] }
562
- }
563
- }
564
- }
565
- }
566
- });
567
- var themes = apiDefToApi("themes", {
568
- api: {
569
- v1: {
570
- themes: {
571
- "": ["getThemes:G:", "uploadTheme:PBM:"],
572
- "{id}": {
573
- "": ["deleteTheme:D:", "getTheme:G:", "patchTheme:ABM:"],
574
- file: { "": ["downloadTheme:G:"], "{filepath}": ["downloadFileFromTheme:G:"] }
575
- }
576
- }
577
- }
578
- }
579
- });
580
- var transports = apiDefToApi("transports", {
581
- api: {
582
- v1: {
583
- transports: {
584
- "email-config": {
585
- "": ["deleteEmailConfig:D:", "getEmailConfig:G:", "patchEmailConfig:ABJ:"],
586
- actions: {
587
- "send-test-email": ["sendTestEmail:PBJ:"],
588
- validate: ["validateEmailConfig:P:"],
589
- "verify-connection": ["verifyEmailConfigConnection:P:"]
590
- }
591
- }
592
- }
593
- }
594
- }
595
- });
596
- var users = apiDefToApi("users", {
597
- api: {
598
- v1: {
599
- users: {
600
- "": ["getUsers:GQ:", "createUser:PBJ:"],
601
- actions: { count: ["countUsers:GQ:"], filter: ["filterUsers:PQBJ:"], invite: ["inviteUsers:PBJ:"] },
602
- me: ["getMyUser:G:"],
603
- metadata: ["getUsersMetadata:G:"],
604
- "{userId}": ["deleteUser:D:", "getUser:GQ:", "patchUser:ABJ:"]
605
- }
606
- }
607
- }
608
- });
609
- var webIntegrations = apiDefToApi("web-integrations", {
610
- api: {
611
- v1: {
612
- "web-integrations": {
613
- "": ["getWebIntegrations:GQ:", "createWebIntegration:PBJ:"],
614
- "{id}": ["deleteWebIntegration:D:", "getWebIntegration:G:", "patchWebIntegration:ABJ:"]
615
- }
616
- }
617
- }
618
- });
619
- var webNotifications = apiDefToApi("web-notifications", {
620
- api: {
621
- v1: {
622
- "web-notifications": {
623
- "": ["getNotifications:GQ:"],
624
- all: ["deleteNotifications:D:", "patchNotifications:ABJ:"],
625
- "{notificationId}": ["deleteNotification:D:", "getNotification:G:", "patchNotification:ABJ:"]
626
- }
627
- }
628
- }
629
- });
630
- var webhooks = apiDefToApi("webhooks", {
631
- api: {
632
- v1: {
633
- webhooks: {
634
- "": ["getWebhooks:GQ:", "createWebhook:PBJ:"],
635
- "event-types": ["getWebhookEventTypes:G:"],
636
- "{id}": {
637
- "": ["deleteWebhook:D:", "getWebhook:G:", "patchWebhook:ABJ:", "updateWebhook:UBJ:"],
638
- deliveries: {
639
- "": ["getWebhookDeliveries:GQ:"],
640
- "{deliveryId}": { "": ["getWebhookDelivery:G:"], actions: { resend: ["resendWebhookDelivery:P:"] } }
641
- }
642
- }
643
- }
644
- }
645
- }
646
- });
647
- var api = {
648
- apiKeys,
649
- apps,
650
- audits,
651
- auth,
652
- automations,
653
- brands,
654
- collections,
655
- cspOrigins,
656
- dataAssets,
657
- dataConnections,
658
- dataCredentials,
659
- dataFiles,
660
- extensions,
661
- glossaries,
662
- groups,
663
- identityProviders,
664
- items,
665
- licenses,
666
- qix,
667
- quotas,
668
- reloadTasks,
669
- reloads,
670
- roles,
671
- spaces,
672
- tempContents,
673
- tenants,
674
- themes,
675
- transports,
676
- users,
677
- webIntegrations,
678
- webNotifications,
679
- webhooks
680
- };
681
- var public_default = api;
682
- export {
683
- apiKeys,
684
- apps,
685
- audits,
686
- auth,
687
- automations,
688
- brands,
689
- collections,
690
- cspOrigins,
691
- dataAssets,
692
- dataConnections,
693
- dataCredentials,
694
- dataFiles,
695
- public_default as default,
696
- extensions,
697
- glossaries,
698
- groups,
699
- identityProviders,
700
- items,
701
- licenses,
702
- qix,
703
- quotas,
704
- reloadTasks,
705
- reloads,
706
- roles,
707
- spaces,
708
- tempContents,
709
- tenants,
710
- themes,
711
- transports,
712
- users,
713
- webIntegrations,
714
- webNotifications,
715
- webhooks
716
- };