@osaas/client-services 0.7.0 → 0.9.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/lib/generated/apache-couchdb.d.ts +1 -1
- package/lib/generated/apache-couchdb.js +1 -1
- package/lib/generated/clickhouse-clickhouse.d.ts +345 -0
- package/lib/generated/clickhouse-clickhouse.d.ts.map +1 -0
- package/lib/generated/clickhouse-clickhouse.js +80 -0
- package/lib/generated/clickhouse-clickhouse.js.map +1 -0
- package/lib/generated/lms-community-slimserver.d.ts +355 -0
- package/lib/generated/lms-community-slimserver.d.ts.map +1 -0
- package/lib/generated/lms-community-slimserver.js +82 -0
- package/lib/generated/lms-community-slimserver.js.map +1 -0
- package/lib/generated/matomo-org-matomo.d.ts +360 -0
- package/lib/generated/matomo-org-matomo.d.ts.map +1 -0
- package/lib/generated/matomo-org-matomo.js +83 -0
- package/lib/generated/matomo-org-matomo.js.map +1 -0
- package/lib/generated/umami-software-umami.d.ts +335 -0
- package/lib/generated/umami-software-umami.d.ts.map +1 -0
- package/lib/generated/umami-software-umami.js +78 -0
- package/lib/generated/umami-software-umami.js.map +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +17 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
'/': {
|
|
7
|
+
/** Say hello */
|
|
8
|
+
get: {
|
|
9
|
+
responses: {
|
|
10
|
+
/** The magical words! */
|
|
11
|
+
200: {
|
|
12
|
+
schema: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
'/matomoinstance': {
|
|
18
|
+
/** List all running matomo instances */
|
|
19
|
+
get: {
|
|
20
|
+
responses: {
|
|
21
|
+
/** Default Response */
|
|
22
|
+
200: {
|
|
23
|
+
schema: {
|
|
24
|
+
/** @description Name of the matomo instance */
|
|
25
|
+
name: string;
|
|
26
|
+
/** @description URL to instance API */
|
|
27
|
+
url: string;
|
|
28
|
+
resources: {
|
|
29
|
+
license: {
|
|
30
|
+
/** @description URL to license information */
|
|
31
|
+
url: string;
|
|
32
|
+
};
|
|
33
|
+
apiDocs?: {
|
|
34
|
+
/** @description URL to instance API documentation */
|
|
35
|
+
url: string;
|
|
36
|
+
};
|
|
37
|
+
app?: {
|
|
38
|
+
/** @description URL to instance application (GUI) */
|
|
39
|
+
url: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
DatabaseHost?: string;
|
|
43
|
+
DatabaseAdapter?: string;
|
|
44
|
+
DatabaseTablesPrefix?: string;
|
|
45
|
+
DatabaseUsername?: string;
|
|
46
|
+
DatabasePassword?: string;
|
|
47
|
+
DatabaseDbName?: string;
|
|
48
|
+
}[];
|
|
49
|
+
};
|
|
50
|
+
/** Default Response */
|
|
51
|
+
500: {
|
|
52
|
+
schema: {
|
|
53
|
+
/** @description Reason why something failed */
|
|
54
|
+
reason: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/** Launch a new matomo instance */
|
|
60
|
+
post: {
|
|
61
|
+
parameters: {
|
|
62
|
+
body: {
|
|
63
|
+
body?: {
|
|
64
|
+
/** @description Name of the matomo instance */
|
|
65
|
+
name: string;
|
|
66
|
+
DatabaseHost?: string;
|
|
67
|
+
DatabaseAdapter?: string;
|
|
68
|
+
DatabaseTablesPrefix?: string;
|
|
69
|
+
DatabaseUsername?: string;
|
|
70
|
+
DatabasePassword?: string;
|
|
71
|
+
DatabaseDbName?: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
responses: {
|
|
76
|
+
/** Default Response */
|
|
77
|
+
200: {
|
|
78
|
+
schema: {
|
|
79
|
+
/** @description Name of the matomo instance */
|
|
80
|
+
name: string;
|
|
81
|
+
/** @description URL to instance API */
|
|
82
|
+
url: string;
|
|
83
|
+
resources: {
|
|
84
|
+
license: {
|
|
85
|
+
/** @description URL to license information */
|
|
86
|
+
url: string;
|
|
87
|
+
};
|
|
88
|
+
apiDocs?: {
|
|
89
|
+
/** @description URL to instance API documentation */
|
|
90
|
+
url: string;
|
|
91
|
+
};
|
|
92
|
+
app?: {
|
|
93
|
+
/** @description URL to instance application (GUI) */
|
|
94
|
+
url: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
DatabaseHost?: string;
|
|
98
|
+
DatabaseAdapter?: string;
|
|
99
|
+
DatabaseTablesPrefix?: string;
|
|
100
|
+
DatabaseUsername?: string;
|
|
101
|
+
DatabasePassword?: string;
|
|
102
|
+
DatabaseDbName?: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
/** Default Response */
|
|
106
|
+
403: {
|
|
107
|
+
schema: {
|
|
108
|
+
/** @description Reason why something failed */
|
|
109
|
+
reason: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
/** Default Response */
|
|
113
|
+
409: {
|
|
114
|
+
schema: {
|
|
115
|
+
/** @description Reason why something failed */
|
|
116
|
+
reason: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
/** Default Response */
|
|
120
|
+
500: {
|
|
121
|
+
schema: {
|
|
122
|
+
/** @description Reason why something failed */
|
|
123
|
+
reason: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
'/matomoinstance/{id}': {
|
|
130
|
+
/** Obtain status and resource URLs for an matomo instance */
|
|
131
|
+
get: {
|
|
132
|
+
parameters: {
|
|
133
|
+
path: {
|
|
134
|
+
/** Name of the matomo instance */
|
|
135
|
+
id: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
responses: {
|
|
139
|
+
/** Default Response */
|
|
140
|
+
200: {
|
|
141
|
+
schema: {
|
|
142
|
+
/** @description Name of the matomo instance */
|
|
143
|
+
name: string;
|
|
144
|
+
/** @description URL to instance API */
|
|
145
|
+
url: string;
|
|
146
|
+
resources: {
|
|
147
|
+
license: {
|
|
148
|
+
/** @description URL to license information */
|
|
149
|
+
url: string;
|
|
150
|
+
};
|
|
151
|
+
apiDocs?: {
|
|
152
|
+
/** @description URL to instance API documentation */
|
|
153
|
+
url: string;
|
|
154
|
+
};
|
|
155
|
+
app?: {
|
|
156
|
+
/** @description URL to instance application (GUI) */
|
|
157
|
+
url: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
DatabaseHost?: string;
|
|
161
|
+
DatabaseAdapter?: string;
|
|
162
|
+
DatabaseTablesPrefix?: string;
|
|
163
|
+
DatabaseUsername?: string;
|
|
164
|
+
DatabasePassword?: string;
|
|
165
|
+
DatabaseDbName?: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
/** Default Response */
|
|
169
|
+
404: {
|
|
170
|
+
schema: {
|
|
171
|
+
/** @description Reason why something failed */
|
|
172
|
+
reason: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
/** Default Response */
|
|
176
|
+
500: {
|
|
177
|
+
schema: {
|
|
178
|
+
/** @description Reason why something failed */
|
|
179
|
+
reason: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
/** Stop and remove an matomo instance */
|
|
185
|
+
delete: {
|
|
186
|
+
parameters: {
|
|
187
|
+
path: {
|
|
188
|
+
/** Name of the matomo instance */
|
|
189
|
+
id: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
responses: {
|
|
193
|
+
/** Default Response */
|
|
194
|
+
204: {
|
|
195
|
+
schema: string;
|
|
196
|
+
};
|
|
197
|
+
/** Default Response */
|
|
198
|
+
500: {
|
|
199
|
+
schema: {
|
|
200
|
+
/** @description Reason why something failed */
|
|
201
|
+
reason: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
'/health/{id}': {
|
|
208
|
+
/** Return status of matomo instance */
|
|
209
|
+
get: {
|
|
210
|
+
parameters: {
|
|
211
|
+
path: {
|
|
212
|
+
/** Name of the matomo instance */
|
|
213
|
+
id: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
responses: {
|
|
217
|
+
/** Default Response */
|
|
218
|
+
200: {
|
|
219
|
+
schema: {
|
|
220
|
+
/** @enum {string} */
|
|
221
|
+
status: 'starting' | 'running' | 'stopped' | 'failed' | 'unknown';
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
/** Default Response */
|
|
225
|
+
500: {
|
|
226
|
+
schema: {
|
|
227
|
+
/** @description Reason why something failed */
|
|
228
|
+
reason: string;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
'/logs/{id}': {
|
|
235
|
+
/** Return the latest logs from the matomo instance */
|
|
236
|
+
get: {
|
|
237
|
+
parameters: {
|
|
238
|
+
query: {
|
|
239
|
+
timestamps?: boolean;
|
|
240
|
+
sinceSeconds?: number;
|
|
241
|
+
};
|
|
242
|
+
path: {
|
|
243
|
+
/** Name of the matomo instance */
|
|
244
|
+
id: string;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
responses: {
|
|
248
|
+
/** Default Response */
|
|
249
|
+
200: {
|
|
250
|
+
schema: string;
|
|
251
|
+
};
|
|
252
|
+
/** Default Response */
|
|
253
|
+
500: {
|
|
254
|
+
schema: {
|
|
255
|
+
/** @description Reason why something failed */
|
|
256
|
+
reason: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
'/ports/{id}': {
|
|
263
|
+
/** Return the exposed extra ports for matomo instance */
|
|
264
|
+
get: {
|
|
265
|
+
parameters: {
|
|
266
|
+
path: {
|
|
267
|
+
/** Name of the matomo instance */
|
|
268
|
+
id: string;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
responses: {
|
|
272
|
+
/** Default Response */
|
|
273
|
+
200: {
|
|
274
|
+
schema: {
|
|
275
|
+
externalIp: string;
|
|
276
|
+
externalPort: number;
|
|
277
|
+
internalPort: number;
|
|
278
|
+
}[];
|
|
279
|
+
};
|
|
280
|
+
/** Default Response */
|
|
281
|
+
500: {
|
|
282
|
+
schema: {
|
|
283
|
+
/** @description Reason why something failed */
|
|
284
|
+
reason: string;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
export interface definitions {
|
|
292
|
+
}
|
|
293
|
+
export interface operations {
|
|
294
|
+
}
|
|
295
|
+
export interface external {
|
|
296
|
+
}
|
|
297
|
+
export type MatomoOrgMatomo = paths['/matomoinstance/{id}']['get']['responses']['200']['schema'];
|
|
298
|
+
export type MatomoOrgMatomoConfig = paths['/matomoinstance']['post']['parameters']['body']['body'];
|
|
299
|
+
import { Context } from '@osaas/client-core';
|
|
300
|
+
/**
|
|
301
|
+
* @namespace matomo-org-matomo
|
|
302
|
+
* @description Unleash the power of analytics with Matomo. Own your data with this feature-rich open-source alternative to Google Analytics. Easy installation, real-time stats, and privacy-driven, used by millions!
|
|
303
|
+
* @author Eyevinn Technology AB <osc@eyevinn.se>
|
|
304
|
+
* @copyright 2025 Eyevinn Technology AB
|
|
305
|
+
*
|
|
306
|
+
*/
|
|
307
|
+
/**
|
|
308
|
+
* @typedef {Object} MatomoOrgMatomoConfig
|
|
309
|
+
* @property {string} name - Name of matomo
|
|
310
|
+
* @property {string} [DatabaseHost] - DatabaseHost
|
|
311
|
+
* @property {string} [DatabaseAdapter] - DatabaseAdapter
|
|
312
|
+
* @property {string} [DatabaseTablesPrefix] - DatabaseTablesPrefix
|
|
313
|
+
* @property {string} [DatabaseUsername] - DatabaseUsername
|
|
314
|
+
* @property {string} [DatabasePassword] - DatabasePassword
|
|
315
|
+
* @property {string} [DatabaseDbName] - DatabaseDbName
|
|
316
|
+
|
|
317
|
+
*
|
|
318
|
+
*/
|
|
319
|
+
/**
|
|
320
|
+
* @typedef {Object} MatomoOrgMatomo
|
|
321
|
+
* @property {string} name - Name of the Matomo instance
|
|
322
|
+
* @property {string} url - URL of the Matomo instance
|
|
323
|
+
*
|
|
324
|
+
*/
|
|
325
|
+
/**
|
|
326
|
+
* Create a new Matomo instance
|
|
327
|
+
*
|
|
328
|
+
* @memberOf matomo-org-matomo
|
|
329
|
+
* @async
|
|
330
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
331
|
+
* @param {MatomoOrgMatomoConfig} body - Service instance configuration
|
|
332
|
+
* @returns {MatomoOrgMatomo} - Service instance
|
|
333
|
+
* @example
|
|
334
|
+
* import { Context, createMatomoOrgMatomoInstance } from '@osaas/client-services';
|
|
335
|
+
*
|
|
336
|
+
* const ctx = new Context();
|
|
337
|
+
* const instance = await createMatomoOrgMatomoInstance(ctx, { name: 'myinstance' });
|
|
338
|
+
* console.log(instance.url);
|
|
339
|
+
*/
|
|
340
|
+
export declare function createMatomoOrgMatomoInstance(ctx: Context, body: MatomoOrgMatomoConfig): Promise<MatomoOrgMatomo>;
|
|
341
|
+
/**
|
|
342
|
+
* Remove a Matomo instance
|
|
343
|
+
*
|
|
344
|
+
* @memberOf matomo-org-matomo
|
|
345
|
+
* @async
|
|
346
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
347
|
+
* @param {string} name - Name of the matomo to be removed
|
|
348
|
+
*/
|
|
349
|
+
export declare function removeMatomoOrgMatomoInstance(ctx: Context, name: string): Promise<void>;
|
|
350
|
+
/**
|
|
351
|
+
* Get a Matomo instance
|
|
352
|
+
*
|
|
353
|
+
* @memberOf matomo-org-matomo
|
|
354
|
+
* @async
|
|
355
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
356
|
+
* @param {string} name - Name of the matomo to be retrieved
|
|
357
|
+
* @returns {MatomoOrgMatomo} - Service instance
|
|
358
|
+
*/
|
|
359
|
+
export declare function getMatomoOrgMatomoInstance(ctx: Context, name: string): Promise<MatomoOrgMatomo>;
|
|
360
|
+
//# sourceMappingURL=matomo-org-matomo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matomo-org-matomo.d.ts","sourceRoot":"","sources":["../../src/generated/matomo-org-matomo.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE;QACH,gBAAgB;QAChB,GAAG,EAAE;YACH,SAAS,EAAE;gBACT,yBAAyB;gBACzB,GAAG,EAAE;oBACH,MAAM,EAAE,MAAM,CAAC;iBAChB,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAAC;IACF,iBAAiB,EAAE;QACjB,wCAAwC;QACxC,GAAG,EAAE;YACH,SAAS,EAAE;gBACT,uBAAuB;gBACvB,GAAG,EAAE;oBACH,MAAM,EAAE;wBACN,+CAA+C;wBAC/C,IAAI,EAAE,MAAM,CAAC;wBACb,uCAAuC;wBACvC,GAAG,EAAE,MAAM,CAAC;wBACZ,SAAS,EAAE;4BACT,OAAO,EAAE;gCACP,8CAA8C;gCAC9C,GAAG,EAAE,MAAM,CAAC;6BACb,CAAC;4BACF,OAAO,CAAC,EAAE;gCACR,qDAAqD;gCACrD,GAAG,EAAE,MAAM,CAAC;6BACb,CAAC;4BACF,GAAG,CAAC,EAAE;gCACJ,qDAAqD;gCACrD,GAAG,EAAE,MAAM,CAAC;6BACb,CAAC;yBACH,CAAC;wBACF,YAAY,CAAC,EAAE,MAAM,CAAC;wBACtB,eAAe,CAAC,EAAE,MAAM,CAAC;wBACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;wBAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;wBAC1B,gBAAgB,CAAC,EAAE,MAAM,C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AAW,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAC/B,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AACjE,OAAO,EACL,OAAO,EAKR,MAAM,oBAAoB,CAAC;AAC5B;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,6BAA6B,CACjD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,eAAe,CAAC,CAY1B;AAED;;;;;;;GAOG;AACH,wBAAsB,6BAA6B,CACjD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAKf;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAC9C,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,CAK1B"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by openapi-typescript.
|
|
4
|
+
* Do not make direct changes to the file.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getMatomoOrgMatomoInstance = exports.removeMatomoOrgMatomoInstance = exports.createMatomoOrgMatomoInstance = void 0;
|
|
8
|
+
const client_core_1 = require("@osaas/client-core");
|
|
9
|
+
/**
|
|
10
|
+
* @namespace matomo-org-matomo
|
|
11
|
+
* @description Unleash the power of analytics with Matomo. Own your data with this feature-rich open-source alternative to Google Analytics. Easy installation, real-time stats, and privacy-driven, used by millions!
|
|
12
|
+
* @author Eyevinn Technology AB <osc@eyevinn.se>
|
|
13
|
+
* @copyright 2025 Eyevinn Technology AB
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @typedef {Object} MatomoOrgMatomoConfig
|
|
18
|
+
* @property {string} name - Name of matomo
|
|
19
|
+
* @property {string} [DatabaseHost] - DatabaseHost
|
|
20
|
+
* @property {string} [DatabaseAdapter] - DatabaseAdapter
|
|
21
|
+
* @property {string} [DatabaseTablesPrefix] - DatabaseTablesPrefix
|
|
22
|
+
* @property {string} [DatabaseUsername] - DatabaseUsername
|
|
23
|
+
* @property {string} [DatabasePassword] - DatabasePassword
|
|
24
|
+
* @property {string} [DatabaseDbName] - DatabaseDbName
|
|
25
|
+
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* @typedef {Object} MatomoOrgMatomo
|
|
30
|
+
* @property {string} name - Name of the Matomo instance
|
|
31
|
+
* @property {string} url - URL of the Matomo instance
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
/**
|
|
35
|
+
* Create a new Matomo instance
|
|
36
|
+
*
|
|
37
|
+
* @memberOf matomo-org-matomo
|
|
38
|
+
* @async
|
|
39
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
40
|
+
* @param {MatomoOrgMatomoConfig} body - Service instance configuration
|
|
41
|
+
* @returns {MatomoOrgMatomo} - Service instance
|
|
42
|
+
* @example
|
|
43
|
+
* import { Context, createMatomoOrgMatomoInstance } from '@osaas/client-services';
|
|
44
|
+
*
|
|
45
|
+
* const ctx = new Context();
|
|
46
|
+
* const instance = await createMatomoOrgMatomoInstance(ctx, { name: 'myinstance' });
|
|
47
|
+
* console.log(instance.url);
|
|
48
|
+
*/
|
|
49
|
+
async function createMatomoOrgMatomoInstance(ctx, body) {
|
|
50
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('matomo-org-matomo');
|
|
51
|
+
const instance = await (0, client_core_1.createInstance)(ctx, 'matomo-org-matomo', serviceAccessToken, body);
|
|
52
|
+
await (0, client_core_1.waitForInstanceReady)('matomo-org-matomo', instance.name, ctx);
|
|
53
|
+
return instance;
|
|
54
|
+
}
|
|
55
|
+
exports.createMatomoOrgMatomoInstance = createMatomoOrgMatomoInstance;
|
|
56
|
+
/**
|
|
57
|
+
* Remove a Matomo instance
|
|
58
|
+
*
|
|
59
|
+
* @memberOf matomo-org-matomo
|
|
60
|
+
* @async
|
|
61
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
62
|
+
* @param {string} name - Name of the matomo to be removed
|
|
63
|
+
*/
|
|
64
|
+
async function removeMatomoOrgMatomoInstance(ctx, name) {
|
|
65
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('matomo-org-matomo');
|
|
66
|
+
await (0, client_core_1.removeInstance)(ctx, 'matomo-org-matomo', name, serviceAccessToken);
|
|
67
|
+
}
|
|
68
|
+
exports.removeMatomoOrgMatomoInstance = removeMatomoOrgMatomoInstance;
|
|
69
|
+
/**
|
|
70
|
+
* Get a Matomo instance
|
|
71
|
+
*
|
|
72
|
+
* @memberOf matomo-org-matomo
|
|
73
|
+
* @async
|
|
74
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
75
|
+
* @param {string} name - Name of the matomo to be retrieved
|
|
76
|
+
* @returns {MatomoOrgMatomo} - Service instance
|
|
77
|
+
*/
|
|
78
|
+
async function getMatomoOrgMatomoInstance(ctx, name) {
|
|
79
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('matomo-org-matomo');
|
|
80
|
+
return await (0, client_core_1.getInstance)(ctx, 'matomo-org-matomo', name, serviceAccessToken);
|
|
81
|
+
}
|
|
82
|
+
exports.getMatomoOrgMatomoInstance = getMatomoOrgMatomoInstance;
|
|
83
|
+
//# sourceMappingURL=matomo-org-matomo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matomo-org-matomo.js","sourceRoot":"","sources":["../../src/generated/matomo-org-matomo.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA4SH,oDAM4B;AAC5B;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;GAcG;AACI,KAAK,UAAU,6BAA6B,CACjD,GAAY,EACZ,IAA2B;IAE3B,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,mBAAmB,CACpB,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,IAAA,4BAAc,EACnC,GAAG,EACH,mBAAmB,EACnB,kBAAkB,EAClB,IAAI,CACL,CAAC;IACF,MAAM,IAAA,kCAAoB,EAAC,mBAAmB,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACpE,OAAO,QAAQ,CAAC;AAClB,CAAC;AAfD,sEAeC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,6BAA6B,CACjD,GAAY,EACZ,IAAY;IAEZ,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,mBAAmB,CACpB,CAAC;IACF,MAAM,IAAA,4BAAc,EAAC,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC;AAC3E,CAAC;AARD,sEAQC;AAED;;;;;;;;GAQG;AACI,KAAK,UAAU,0BAA0B,CAC9C,GAAY,EACZ,IAAY;IAEZ,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,mBAAmB,CACpB,CAAC;IACF,OAAO,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC;AAC/E,CAAC;AARD,gEAQC"}
|