@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/roles.d.mts DELETED
@@ -1,175 +0,0 @@
1
- import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
- import './auth-types-nnUcWhuU.mjs';
3
-
4
- /**
5
- * An error object describing the error.
6
- */
7
- type Error = {
8
- /** The error code. */
9
- code: string;
10
- /** A human-readable explanation specific to this occurrence of the problem. */
11
- detail?: string;
12
- /** Additional properties relating to the error. */
13
- meta?: unknown;
14
- /** References to the source of the error. */
15
- source?: {
16
- /** The URI query parameter that caused the error. */
17
- parameter?: string;
18
- /** A JSON Pointer to the property that caused the error. */
19
- pointer?: string;
20
- };
21
- /** Summary of the problem. */
22
- title: string;
23
- };
24
- /**
25
- * The error response object describing the error from the handling of an HTTP request.
26
- */
27
- type Errors = {
28
- /** An array of errors related to the operation. */
29
- errors?: Error[];
30
- /** A unique identifier for tracing the error. */
31
- traceId?: string;
32
- };
33
- /**
34
- * Contains pagination links
35
- */
36
- type Links = {
37
- /** Link to the next page of items */
38
- next?: {
39
- href: string;
40
- };
41
- /** Link to the previous page of items */
42
- prev?: {
43
- href: string;
44
- };
45
- /** Link to the current page of items */
46
- self: {
47
- href: string;
48
- };
49
- };
50
- type ListRolesResult = {
51
- /** An array of roles. */
52
- data: Role[];
53
- /** Contains pagination links */
54
- links: Links;
55
- /** Indicates the total number of matching documents. Will only be returned if the query parameter "totalResults" is true. */
56
- totalResults?: number;
57
- };
58
- type Role = {
59
- /** Selection of scopes added to this Role */
60
- assignedScopes?: string[];
61
- /** Indicate if role can be deleted */
62
- readonly canDelete?: boolean;
63
- /** Indicate if role can be edited by tenant (Shown as Profile in MC) */
64
- readonly canEdit?: boolean;
65
- /** The timestamp for when the role was created. */
66
- createdAt: string;
67
- /** Id of user that created role */
68
- readonly createdBy?: string;
69
- /** Descriptive text for the role. */
70
- description: string;
71
- /** Indicate whether this role will trigger promotion of a user from a basic to a full user on tenants with a capacity-based subscription. Does not apply to tenants with a user-based subscription. */
72
- readonly fullUser?: boolean;
73
- /** The unique identifier for the role. */
74
- readonly id: string;
75
- /** The timestamp for when the role was last updated. */
76
- lastUpdatedAt: string;
77
- /** The level of access associated to the role. */
78
- level?: "admin" | "user";
79
- /** Contains links for the role. */
80
- links: {
81
- self: {
82
- /** Link to the role. */
83
- href: string;
84
- };
85
- };
86
- /** The name of the role. */
87
- name: string;
88
- /** An array of permissions associated with the role. */
89
- permissions?: string[];
90
- /** The tenant unique identifier associated with the given Role. */
91
- tenantId: string;
92
- /** The type of role. */
93
- type: "default";
94
- /** Id of user that last updated`` role */
95
- readonly updatedBy?: string;
96
- };
97
- /**
98
- * Returns a list of roles using cursor-based pagination.
99
- *
100
- * @param query an object with query parameters
101
- * @throws GetRolesHttpError
102
- */
103
- declare const getRoles: (query: {
104
- /** The advanced filtering to use for the query. Refer to [RFC 7644](https://datatracker.ietf.org/doc/rfc7644/) for the syntax. All conditional statements within this query parameter are case insensitive. */
105
- filter?: string;
106
- /** The number of roles to retrieve. */
107
- limit?: number;
108
- /** The next page cursor. */
109
- next?: string;
110
- /** The previous page cursor. */
111
- prev?: string;
112
- /** Optional resource field name to sort on, eg. name. Can be prefixed with +/- to determine order, defaults to (+) ascending. */
113
- sort?: string;
114
- /** Determines wether to return a count of the total records matched in the query. Defaults to false. */
115
- totalResults?: boolean;
116
- }, options?: ApiCallOptions) => Promise<GetRolesHttpResponse>;
117
- type GetRolesHttpResponse = {
118
- data: ListRolesResult;
119
- headers: Headers;
120
- status: number;
121
- prev?: (options?: ApiCallOptions) => Promise<GetRolesHttpResponse>;
122
- next?: (options?: ApiCallOptions) => Promise<GetRolesHttpResponse>;
123
- };
124
- type GetRolesHttpError = {
125
- data: Errors;
126
- headers: Headers;
127
- status: number;
128
- };
129
- /**
130
- * Returns the requested role.
131
- *
132
- * @param id The role's unique identifier
133
- * @throws GetRoleHttpError
134
- */
135
- declare const getRole: (id: string, options?: ApiCallOptions) => Promise<GetRoleHttpResponse>;
136
- type GetRoleHttpResponse = {
137
- data: Role;
138
- headers: Headers;
139
- status: number;
140
- };
141
- type GetRoleHttpError = {
142
- data: Errors;
143
- headers: Headers;
144
- status: number;
145
- };
146
- /**
147
- * Clears the cache for roles api requests.
148
- */
149
- declare function clearCache(): void;
150
- interface RolesAPI {
151
- /**
152
- * Returns a list of roles using cursor-based pagination.
153
- *
154
- * @param query an object with query parameters
155
- * @throws GetRolesHttpError
156
- */
157
- getRoles: typeof getRoles;
158
- /**
159
- * Returns the requested role.
160
- *
161
- * @param id The role's unique identifier
162
- * @throws GetRoleHttpError
163
- */
164
- getRole: typeof getRole;
165
- /**
166
- * Clears the cache for roles api requests.
167
- */
168
- clearCache: typeof clearCache;
169
- }
170
- /**
171
- * Functions for the roles api
172
- */
173
- declare const rolesExport: RolesAPI;
174
-
175
- export { type Error, type Errors, type GetRoleHttpError, type GetRoleHttpResponse, type GetRolesHttpError, type GetRolesHttpResponse, type Links, type ListRolesResult, type Role, type RolesAPI, clearCache, rolesExport as default, getRole, getRoles };
package/roles.mjs DELETED
@@ -1,31 +0,0 @@
1
- import {
2
- clearApiCache,
3
- invokeFetch
4
- } from "./chunks/3YV6X7S6.mjs";
5
- import "./chunks/EHAANYDL.mjs";
6
- import "./chunks/VSY5YIQY.mjs";
7
-
8
- // src/public/rest/roles.ts
9
- var getRoles = async (query, options) => invokeFetch("roles", {
10
- method: "get",
11
- pathTemplate: "/api/v1/roles",
12
- query,
13
- options
14
- });
15
- var getRole = async (id, options) => invokeFetch("roles", {
16
- method: "get",
17
- pathTemplate: "/api/v1/roles/{id}",
18
- pathVariables: { id },
19
- options
20
- });
21
- function clearCache() {
22
- return clearApiCache("roles");
23
- }
24
- var rolesExport = { getRoles, getRole, clearCache };
25
- var roles_default = rolesExport;
26
- export {
27
- clearCache,
28
- roles_default as default,
29
- getRole,
30
- getRoles
31
- };