@qlik/api 0.0.1 → 0.0.2

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 (126) hide show
  1. package/.github/CODEOWNERS +2 -0
  2. package/.github/workflows/release.yaml +35 -0
  3. package/README.md +1 -3
  4. package/api-keys.d.mts +13 -13
  5. package/api-keys.d.ts +13 -13
  6. package/api-keys.js +13 -13
  7. package/api-keys.mjs +8 -8
  8. package/apps.d.mts +104 -19
  9. package/apps.d.ts +104 -19
  10. package/apps.js +53 -44
  11. package/apps.mjs +20 -11
  12. package/audits.d.mts +8 -8
  13. package/audits.d.ts +8 -8
  14. package/audits.js +11 -11
  15. package/audits.mjs +6 -6
  16. package/auth-OU7OTB7Y.js +38 -0
  17. package/auth-RTFXVSSK.mjs +38 -0
  18. package/auth.js +3 -3
  19. package/auth.mjs +2 -2
  20. package/automations.d.mts +20 -20
  21. package/automations.d.ts +20 -20
  22. package/automations.js +25 -25
  23. package/automations.mjs +11 -11
  24. package/brands.js +15 -15
  25. package/brands.mjs +2 -2
  26. package/chunk-6JERR27K.js +17 -0
  27. package/chunk-7REWEWCX.mjs +21 -0
  28. package/chunk-E42WUFCK.mjs +57 -0
  29. package/chunk-H7SAZYEE.js +21 -0
  30. package/chunk-KMMWJZHM.mjs +25 -0
  31. package/chunk-M7F4JFOB.js +57 -0
  32. package/chunk-NALKLKZS.mjs +1342 -0
  33. package/chunk-QN23TPIE.js +25 -0
  34. package/chunk-RMKP2BDX.js +1342 -0
  35. package/chunk-W4J34XGA.mjs +17 -0
  36. package/collections.d.mts +1 -1
  37. package/collections.d.ts +1 -1
  38. package/collections.js +13 -13
  39. package/collections.mjs +2 -2
  40. package/csp-origins.js +9 -9
  41. package/csp-origins.mjs +2 -2
  42. package/data-assets.js +8 -8
  43. package/data-assets.mjs +2 -2
  44. package/data-connections.d.mts +2 -0
  45. package/data-connections.d.ts +2 -0
  46. package/data-connections.js +12 -12
  47. package/data-connections.mjs +2 -2
  48. package/data-credentials.d.mts +2 -0
  49. package/data-credentials.d.ts +2 -0
  50. package/data-credentials.js +7 -7
  51. package/data-credentials.mjs +2 -2
  52. package/data-files.d.mts +16 -16
  53. package/data-files.d.ts +16 -16
  54. package/data-files.js +18 -18
  55. package/data-files.mjs +8 -8
  56. package/enigma-session-HGXKZJVO.mjs +10200 -0
  57. package/enigma-session-VPPJMBEM.js +10200 -0
  58. package/esm-M5ZBFTVD.mjs +65 -0
  59. package/esm-RX7B2TUN.js +65 -0
  60. package/extensions.js +10 -10
  61. package/extensions.mjs +2 -2
  62. package/glossaries.js +27 -27
  63. package/glossaries.mjs +2 -2
  64. package/groups.d.mts +13 -13
  65. package/groups.d.ts +13 -13
  66. package/groups.js +14 -14
  67. package/groups.mjs +8 -8
  68. package/identity-providers.d.mts +7 -7
  69. package/identity-providers.d.ts +7 -7
  70. package/identity-providers.js +13 -13
  71. package/identity-providers.mjs +5 -5
  72. package/index.js +27 -23
  73. package/index.mjs +23 -19
  74. package/invoke-fetch-7PKPQ3FD.js +14 -0
  75. package/invoke-fetch-IMO4AMA3.mjs +14 -0
  76. package/items.d.mts +19 -16
  77. package/items.d.ts +19 -16
  78. package/items.js +14 -14
  79. package/items.mjs +8 -8
  80. package/licenses.d.mts +2 -0
  81. package/licenses.d.ts +2 -0
  82. package/licenses.js +12 -12
  83. package/licenses.mjs +2 -2
  84. package/package.json +6 -17
  85. package/qix-57WD2ZE6.mjs +573 -0
  86. package/qix-K22VHZRH.js +573 -0
  87. package/qix.d.mts +1066 -1017
  88. package/qix.d.ts +1066 -1017
  89. package/qix.js +3 -3
  90. package/qix.mjs +2 -2
  91. package/quotas.js +5 -5
  92. package/quotas.mjs +2 -2
  93. package/reload-tasks.d.mts +2 -0
  94. package/reload-tasks.d.ts +2 -0
  95. package/reload-tasks.js +8 -8
  96. package/reload-tasks.mjs +2 -2
  97. package/reloads.d.mts +4 -2
  98. package/reloads.d.ts +4 -2
  99. package/reloads.js +7 -7
  100. package/reloads.mjs +2 -2
  101. package/roles.js +5 -5
  102. package/roles.mjs +2 -2
  103. package/spaces.d.mts +9 -26
  104. package/spaces.d.ts +9 -26
  105. package/spaces.js +15 -15
  106. package/spaces.mjs +2 -2
  107. package/temp-contents.d.mts +1 -67
  108. package/temp-contents.d.ts +1 -67
  109. package/temp-contents.js +8 -29
  110. package/temp-contents.mjs +3 -24
  111. package/tenants.js +9 -9
  112. package/tenants.mjs +2 -2
  113. package/themes.js +10 -10
  114. package/themes.mjs +2 -2
  115. package/transports.js +9 -9
  116. package/transports.mjs +2 -2
  117. package/users.js +13 -13
  118. package/users.mjs +2 -2
  119. package/web-integrations.js +8 -8
  120. package/web-integrations.mjs +2 -2
  121. package/web-notifications.js +9 -9
  122. package/web-notifications.mjs +2 -2
  123. package/webhooks.d.mts +2 -2
  124. package/webhooks.d.ts +2 -2
  125. package/webhooks.js +13 -13
  126. package/webhooks.mjs +2 -2
package/automations.js CHANGED
@@ -1,131 +1,131 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
5
+ require('./chunk-H7SAZYEE.js');
6
6
 
7
7
  // src/public/rest/automations.ts
8
- var getAutomations = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
8
+ var getAutomations = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
9
9
  method: "get",
10
10
  pathTemplate: "/api/v1/automations",
11
11
  query,
12
12
  options
13
13
  });
14
- var createAutomation = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
14
+ var createAutomation = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
15
15
  method: "post",
16
16
  pathTemplate: "/api/v1/automations",
17
17
  body,
18
18
  options
19
19
  });
20
- var getAutomationSettings = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
20
+ var getAutomationsSettings = async (options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
21
21
  method: "get",
22
22
  pathTemplate: "/api/v1/automations/settings",
23
23
  options
24
24
  });
25
- var updateAutomationSettings = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
25
+ var updateAutomationsSettings = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
26
26
  method: "put",
27
27
  pathTemplate: "/api/v1/automations/settings",
28
28
  body,
29
29
  options
30
30
  });
31
- var getAutomationUsageMetrics = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
31
+ var getAutomationsUsageMetrics = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
32
32
  method: "get",
33
33
  pathTemplate: "/api/v1/automations/usage",
34
34
  query,
35
35
  options
36
36
  });
37
- var deleteAutomation = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
37
+ var deleteAutomation = async (id, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
38
38
  method: "delete",
39
39
  pathTemplate: "/api/v1/automations/{id}",
40
40
  pathVariables: { id },
41
41
  options
42
42
  });
43
- var getAutomation = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
43
+ var getAutomation = async (id, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
44
44
  method: "get",
45
45
  pathTemplate: "/api/v1/automations/{id}",
46
46
  pathVariables: { id },
47
47
  options
48
48
  });
49
- var updateAutomation = async (id, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
49
+ var updateAutomation = async (id, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
50
50
  method: "put",
51
51
  pathTemplate: "/api/v1/automations/{id}",
52
52
  pathVariables: { id },
53
53
  body,
54
54
  options
55
55
  });
56
- var copyAutomation = async (id, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
56
+ var copyAutomation = async (id, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
57
57
  method: "post",
58
58
  pathTemplate: "/api/v1/automations/{id}/actions/copy",
59
59
  pathVariables: { id },
60
60
  body,
61
61
  options
62
62
  });
63
- var disableAutomation = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
63
+ var disableAutomation = async (id, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
64
64
  method: "post",
65
65
  pathTemplate: "/api/v1/automations/{id}/actions/disable",
66
66
  pathVariables: { id },
67
67
  options
68
68
  });
69
- var enableAutomation = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
69
+ var enableAutomation = async (id, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
70
70
  method: "post",
71
71
  pathTemplate: "/api/v1/automations/{id}/actions/enable",
72
72
  pathVariables: { id },
73
73
  options
74
74
  });
75
- var moveAutomation = async (id, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
75
+ var moveAutomation = async (id, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
76
76
  method: "post",
77
77
  pathTemplate: "/api/v1/automations/{id}/actions/move",
78
78
  pathVariables: { id },
79
79
  body,
80
80
  options
81
81
  });
82
- var getAutomationRuns = async (id, query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
82
+ var getAutomationRuns = async (id, query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
83
83
  method: "get",
84
84
  pathTemplate: "/api/v1/automations/{id}/runs",
85
85
  pathVariables: { id },
86
86
  query,
87
87
  options
88
88
  });
89
- var queueAutomationRun = async (id, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
89
+ var queueAutomationRun = async (id, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
90
90
  method: "post",
91
91
  pathTemplate: "/api/v1/automations/{id}/runs",
92
92
  pathVariables: { id },
93
93
  body,
94
94
  options
95
95
  });
96
- var getAutomationRun = async (id, runId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
96
+ var getAutomationRun = async (id, runId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
97
97
  method: "get",
98
98
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}",
99
99
  pathVariables: { id, runId },
100
100
  options
101
101
  });
102
- var getAutomationRunDetails = async (id, runId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
102
+ var getAutomationRunDetails = async (id, runId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
103
103
  method: "post",
104
104
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/export",
105
105
  pathVariables: { id, runId },
106
106
  options
107
107
  });
108
- var retryAutomationRun = async (id, runId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
108
+ var retryAutomationRun = async (id, runId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
109
109
  method: "post",
110
110
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/retry",
111
111
  pathVariables: { id, runId },
112
112
  options
113
113
  });
114
- var stopAutomationRun = async (id, runId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "automations", {
114
+ var stopAutomationRun = async (id, runId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
115
115
  method: "post",
116
116
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/stop",
117
117
  pathVariables: { id, runId },
118
118
  options
119
119
  });
120
120
  function clearCache() {
121
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "automations");
121
+ return _chunk6JERR27Kjs.clearApiCache.call(void 0, "automations");
122
122
  }
123
123
  var automationsExport = {
124
124
  getAutomations,
125
125
  createAutomation,
126
- getAutomationSettings,
127
- updateAutomationSettings,
128
- getAutomationUsageMetrics,
126
+ getAutomationsSettings,
127
+ updateAutomationsSettings,
128
+ getAutomationsUsageMetrics,
129
129
  deleteAutomation,
130
130
  getAutomation,
131
131
  updateAutomation,
@@ -163,4 +163,4 @@ var automations_default = automationsExport;
163
163
 
164
164
 
165
165
 
166
- exports.clearCache = clearCache; exports.copyAutomation = copyAutomation; exports.createAutomation = createAutomation; exports.default = automations_default; exports.deleteAutomation = deleteAutomation; exports.disableAutomation = disableAutomation; exports.enableAutomation = enableAutomation; exports.getAutomation = getAutomation; exports.getAutomationRun = getAutomationRun; exports.getAutomationRunDetails = getAutomationRunDetails; exports.getAutomationRuns = getAutomationRuns; exports.getAutomationSettings = getAutomationSettings; exports.getAutomationUsageMetrics = getAutomationUsageMetrics; exports.getAutomations = getAutomations; exports.moveAutomation = moveAutomation; exports.queueAutomationRun = queueAutomationRun; exports.retryAutomationRun = retryAutomationRun; exports.stopAutomationRun = stopAutomationRun; exports.updateAutomation = updateAutomation; exports.updateAutomationSettings = updateAutomationSettings;
166
+ exports.clearCache = clearCache; exports.copyAutomation = copyAutomation; exports.createAutomation = createAutomation; exports.default = automations_default; exports.deleteAutomation = deleteAutomation; exports.disableAutomation = disableAutomation; exports.enableAutomation = enableAutomation; exports.getAutomation = getAutomation; exports.getAutomationRun = getAutomationRun; exports.getAutomationRunDetails = getAutomationRunDetails; exports.getAutomationRuns = getAutomationRuns; exports.getAutomations = getAutomations; exports.getAutomationsSettings = getAutomationsSettings; exports.getAutomationsUsageMetrics = getAutomationsUsageMetrics; exports.moveAutomation = moveAutomation; exports.queueAutomationRun = queueAutomationRun; exports.retryAutomationRun = retryAutomationRun; exports.stopAutomationRun = stopAutomationRun; exports.updateAutomation = updateAutomation; exports.updateAutomationsSettings = updateAutomationsSettings;
package/automations.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-W4J34XGA.mjs";
5
+ import "./chunk-7REWEWCX.mjs";
6
6
 
7
7
  // src/public/rest/automations.ts
8
8
  var getAutomations = async (query, options) => invokeFetch("automations", {
@@ -17,18 +17,18 @@ var createAutomation = async (body, options) => invokeFetch("automations", {
17
17
  body,
18
18
  options
19
19
  });
20
- var getAutomationSettings = async (options) => invokeFetch("automations", {
20
+ var getAutomationsSettings = async (options) => invokeFetch("automations", {
21
21
  method: "get",
22
22
  pathTemplate: "/api/v1/automations/settings",
23
23
  options
24
24
  });
25
- var updateAutomationSettings = async (body, options) => invokeFetch("automations", {
25
+ var updateAutomationsSettings = async (body, options) => invokeFetch("automations", {
26
26
  method: "put",
27
27
  pathTemplate: "/api/v1/automations/settings",
28
28
  body,
29
29
  options
30
30
  });
31
- var getAutomationUsageMetrics = async (query, options) => invokeFetch("automations", {
31
+ var getAutomationsUsageMetrics = async (query, options) => invokeFetch("automations", {
32
32
  method: "get",
33
33
  pathTemplate: "/api/v1/automations/usage",
34
34
  query,
@@ -123,9 +123,9 @@ function clearCache() {
123
123
  var automationsExport = {
124
124
  getAutomations,
125
125
  createAutomation,
126
- getAutomationSettings,
127
- updateAutomationSettings,
128
- getAutomationUsageMetrics,
126
+ getAutomationsSettings,
127
+ updateAutomationsSettings,
128
+ getAutomationsUsageMetrics,
129
129
  deleteAutomation,
130
130
  getAutomation,
131
131
  updateAutomation,
@@ -154,13 +154,13 @@ export {
154
154
  getAutomationRun,
155
155
  getAutomationRunDetails,
156
156
  getAutomationRuns,
157
- getAutomationSettings,
158
- getAutomationUsageMetrics,
159
157
  getAutomations,
158
+ getAutomationsSettings,
159
+ getAutomationsUsageMetrics,
160
160
  moveAutomation,
161
161
  queueAutomationRun,
162
162
  retryAutomationRun,
163
163
  stopAutomationRun,
164
164
  updateAutomation,
165
- updateAutomationSettings
165
+ updateAutomationsSettings
166
166
  };
package/brands.js CHANGED
@@ -1,80 +1,80 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
5
+ require('./chunk-H7SAZYEE.js');
6
6
 
7
7
  // src/public/rest/brands.ts
8
- var getBrands = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
8
+ var getBrands = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
9
9
  method: "get",
10
10
  pathTemplate: "/api/v1/brands",
11
11
  query,
12
12
  options
13
13
  });
14
- var createBrand = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
14
+ var createBrand = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
15
15
  method: "post",
16
16
  pathTemplate: "/api/v1/brands",
17
17
  body,
18
18
  options
19
19
  });
20
- var getActiveBrand = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
20
+ var getActiveBrand = async (options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
21
21
  method: "get",
22
22
  pathTemplate: "/api/v1/brands/active",
23
23
  options
24
24
  });
25
- var deleteBrand = async (brandId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
25
+ var deleteBrand = async (brandId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
26
26
  method: "delete",
27
27
  pathTemplate: "/api/v1/brands/{brand-id}",
28
28
  pathVariables: { "brand-id": brandId },
29
29
  options
30
30
  });
31
- var getBrand = async (brandId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
31
+ var getBrand = async (brandId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
32
32
  method: "get",
33
33
  pathTemplate: "/api/v1/brands/{brand-id}",
34
34
  pathVariables: { "brand-id": brandId },
35
35
  options
36
36
  });
37
- var patchBrand = async (brandId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
37
+ var patchBrand = async (brandId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
38
38
  method: "patch",
39
39
  pathTemplate: "/api/v1/brands/{brand-id}",
40
40
  pathVariables: { "brand-id": brandId },
41
41
  body,
42
42
  options
43
43
  });
44
- var activateBrand = async (brandId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
44
+ var activateBrand = async (brandId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
45
45
  method: "post",
46
46
  pathTemplate: "/api/v1/brands/{brand-id}/actions/activate",
47
47
  pathVariables: { "brand-id": brandId },
48
48
  body,
49
49
  options
50
50
  });
51
- var deactivateBrand = async (brandId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
51
+ var deactivateBrand = async (brandId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
52
52
  method: "post",
53
53
  pathTemplate: "/api/v1/brands/{brand-id}/actions/deactivate",
54
54
  pathVariables: { "brand-id": brandId },
55
55
  body,
56
56
  options
57
57
  });
58
- var deleteBrandFile = async (brandId, brandFileId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
58
+ var deleteBrandFile = async (brandId, brandFileId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
59
59
  method: "delete",
60
60
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
61
61
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
62
62
  options
63
63
  });
64
- var getBrandFile = async (brandId, brandFileId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
64
+ var getBrandFile = async (brandId, brandFileId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
65
65
  method: "get",
66
66
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
67
67
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
68
68
  options
69
69
  });
70
- var createBrandFile = async (brandId, brandFileId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
70
+ var createBrandFile = async (brandId, brandFileId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
71
71
  method: "post",
72
72
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
73
73
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
74
74
  body,
75
75
  options
76
76
  });
77
- var updateBrandFile = async (brandId, brandFileId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "brands", {
77
+ var updateBrandFile = async (brandId, brandFileId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
78
78
  method: "put",
79
79
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
80
80
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
@@ -82,7 +82,7 @@ var updateBrandFile = async (brandId, brandFileId, body, options) => _chunkOULT3
82
82
  options
83
83
  });
84
84
  function clearCache() {
85
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "brands");
85
+ return _chunk6JERR27Kjs.clearApiCache.call(void 0, "brands");
86
86
  }
87
87
  var brandsExport = {
88
88
  getBrands,
package/brands.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-W4J34XGA.mjs";
5
+ import "./chunk-7REWEWCX.mjs";
6
6
 
7
7
  // src/public/rest/brands.ts
8
8
  var getBrands = async (query, options) => invokeFetch("brands", {
@@ -0,0 +1,17 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+ var _chunkH7SAZYEEjs = require('./chunk-H7SAZYEE.js');
4
+
5
+ // src/public/invoke-fetch.ts
6
+ async function invokeFetch(api, props) {
7
+ const hostConfig = _optionalChain([props, 'access', _ => _.options, 'optionalAccess', _2 => _2.hostConfig]);
8
+ return (await _chunkH7SAZYEEjs.getInvokeFetchRuntimeModule.call(void 0, hostConfig)).invokeFetch(api, props);
9
+ }
10
+ function clearApiCache(api) {
11
+ void _chunkH7SAZYEEjs.getInvokeFetchRuntimeModule.call(void 0, ).then((runtimeModule) => runtimeModule.clearApiCache(api));
12
+ }
13
+
14
+
15
+
16
+
17
+ exports.invokeFetch = invokeFetch; exports.clearApiCache = clearApiCache;
@@ -0,0 +1,21 @@
1
+ // src/public/public-runtime-modules.ts
2
+ function getAuthRuntimeModule(hostConfig) {
3
+ const isNode = !!globalThis.process?.argv;
4
+ return isNode ? import("./auth-RTFXVSSK.mjs") : import("./esm-M5ZBFTVD.mjs").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
5
+ }
6
+ async function getQixRuntimeModule(hostConfig) {
7
+ await getAuthRuntimeModule(hostConfig);
8
+ const isNode = !!globalThis.process?.argv;
9
+ return isNode ? import("./qix-57WD2ZE6.mjs") : import("./esm-M5ZBFTVD.mjs").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
10
+ }
11
+ async function getInvokeFetchRuntimeModule(hostConfig) {
12
+ await getAuthRuntimeModule(hostConfig);
13
+ const isNode = !!globalThis.process?.argv;
14
+ return isNode ? import("./invoke-fetch-IMO4AMA3.mjs") : import("./esm-M5ZBFTVD.mjs").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
15
+ }
16
+
17
+ export {
18
+ getAuthRuntimeModule,
19
+ getQixRuntimeModule,
20
+ getInvokeFetchRuntimeModule
21
+ };
@@ -0,0 +1,57 @@
1
+ import {
2
+ getQixRuntimeModule
3
+ } from "./chunk-7REWEWCX.mjs";
4
+
5
+ // src/public/qix.ts
6
+ function openAppSession(appSessionProps) {
7
+ const appSessionPromise = getQixRuntimeModule(appSessionProps.hostConfig).then(
8
+ (impl) => impl.openAppSession(appSessionProps)
9
+ );
10
+ const appSessionProxy = {
11
+ /**
12
+ * Returns a promise of the Qix Doc object with a set of client-side Api extensions.
13
+ * Note that while the AppSession object is returned immediately this promise might take a while
14
+ * to resolve for bigger apps.
15
+ */
16
+ async getDoc() {
17
+ return (await appSessionPromise).getDoc();
18
+ },
19
+ /**
20
+ * @experimental
21
+ * Add an event-listener for this app-session.
22
+ */
23
+ onWebSocketEvent(listener) {
24
+ const returnedFnPromise = appSessionPromise.then((appSession) => appSession.onWebSocketEvent(listener));
25
+ return () => {
26
+ void returnedFnPromise.then((fn) => fn());
27
+ };
28
+ },
29
+ /**
30
+ * @experimental
31
+ * Resume a suspended session. This will resume exactly
32
+ * once if the session is currently suspended, otherwise
33
+ * nothing will be done.
34
+ */
35
+ async resume() {
36
+ return (await appSessionPromise).resume();
37
+ },
38
+ /**
39
+ * When the app session is no longer in use it must be closed using this function.
40
+ * If the same underlying enigma websocket is used somewhere else in the browser
41
+ * this is basically a no op, but if this is the last/only usage
42
+ * of the underlying enigma websocket that websocket will be closed.
43
+ */
44
+ async close() {
45
+ return (await appSessionPromise).close();
46
+ }
47
+ };
48
+ return appSessionProxy;
49
+ }
50
+ var qix_default = {
51
+ openAppSession
52
+ };
53
+
54
+ export {
55
+ openAppSession,
56
+ qix_default
57
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/public/public-runtime-modules.ts
2
+ function getAuthRuntimeModule(hostConfig) {
3
+ const isNode = !!_optionalChain([globalThis, 'access', _ => _.process, 'optionalAccess', _2 => _2.argv]);
4
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./auth-OU7OTB7Y.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-RX7B2TUN.js"))).then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
5
+ }
6
+ async function getQixRuntimeModule(hostConfig) {
7
+ await getAuthRuntimeModule(hostConfig);
8
+ const isNode = !!_optionalChain([globalThis, 'access', _3 => _3.process, 'optionalAccess', _4 => _4.argv]);
9
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./qix-K22VHZRH.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-RX7B2TUN.js"))).then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
10
+ }
11
+ async function getInvokeFetchRuntimeModule(hostConfig) {
12
+ await getAuthRuntimeModule(hostConfig);
13
+ const isNode = !!_optionalChain([globalThis, 'access', _5 => _5.process, 'optionalAccess', _6 => _6.argv]);
14
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./invoke-fetch-7PKPQ3FD.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-RX7B2TUN.js"))).then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
15
+ }
16
+
17
+
18
+
19
+
20
+
21
+ exports.getAuthRuntimeModule = getAuthRuntimeModule; exports.getQixRuntimeModule = getQixRuntimeModule; exports.getInvokeFetchRuntimeModule = getInvokeFetchRuntimeModule;
@@ -0,0 +1,25 @@
1
+ import {
2
+ getAuthRuntimeModule
3
+ } from "./chunk-7REWEWCX.mjs";
4
+
5
+ // src/public/auth.ts
6
+ function registerAuthModule(name, authModule) {
7
+ void getAuthRuntimeModule().then((impl) => impl.registerAuthModule(name, authModule));
8
+ }
9
+ function logout() {
10
+ void getAuthRuntimeModule().then((impl) => impl.logout());
11
+ }
12
+ function setDefaultHostConfig(hostConfig) {
13
+ void getAuthRuntimeModule(hostConfig).then((impl) => impl.setDefaultHostConfig(hostConfig));
14
+ }
15
+ var auth_default = {
16
+ registerAuthModule,
17
+ setDefaultHostConfig
18
+ };
19
+
20
+ export {
21
+ registerAuthModule,
22
+ logout,
23
+ setDefaultHostConfig,
24
+ auth_default
25
+ };
@@ -0,0 +1,57 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkH7SAZYEEjs = require('./chunk-H7SAZYEE.js');
4
+
5
+ // src/public/qix.ts
6
+ function openAppSession(appSessionProps) {
7
+ const appSessionPromise = _chunkH7SAZYEEjs.getQixRuntimeModule.call(void 0, appSessionProps.hostConfig).then(
8
+ (impl) => impl.openAppSession(appSessionProps)
9
+ );
10
+ const appSessionProxy = {
11
+ /**
12
+ * Returns a promise of the Qix Doc object with a set of client-side Api extensions.
13
+ * Note that while the AppSession object is returned immediately this promise might take a while
14
+ * to resolve for bigger apps.
15
+ */
16
+ async getDoc() {
17
+ return (await appSessionPromise).getDoc();
18
+ },
19
+ /**
20
+ * @experimental
21
+ * Add an event-listener for this app-session.
22
+ */
23
+ onWebSocketEvent(listener) {
24
+ const returnedFnPromise = appSessionPromise.then((appSession) => appSession.onWebSocketEvent(listener));
25
+ return () => {
26
+ void returnedFnPromise.then((fn) => fn());
27
+ };
28
+ },
29
+ /**
30
+ * @experimental
31
+ * Resume a suspended session. This will resume exactly
32
+ * once if the session is currently suspended, otherwise
33
+ * nothing will be done.
34
+ */
35
+ async resume() {
36
+ return (await appSessionPromise).resume();
37
+ },
38
+ /**
39
+ * When the app session is no longer in use it must be closed using this function.
40
+ * If the same underlying enigma websocket is used somewhere else in the browser
41
+ * this is basically a no op, but if this is the last/only usage
42
+ * of the underlying enigma websocket that websocket will be closed.
43
+ */
44
+ async close() {
45
+ return (await appSessionPromise).close();
46
+ }
47
+ };
48
+ return appSessionProxy;
49
+ }
50
+ var qix_default = {
51
+ openAppSession
52
+ };
53
+
54
+
55
+
56
+
57
+ exports.openAppSession = openAppSession; exports.qix_default = qix_default;