@metabase/client 0.0.0-stage → 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.
- package/CHANGELOG.md +28 -0
- package/LICENSE +661 -0
- package/README.md +490 -2
- package/dist/api-key-DJeN1-7G.d.ts +46 -0
- package/dist/auth/credential.d.ts +2 -0
- package/dist/auth/credential.js +61 -0
- package/dist/auth/oauth-login.d.ts +2 -0
- package/dist/auth/oauth-login.js +2 -0
- package/dist/auth/oauth-session.d.ts +2 -0
- package/dist/auth/oauth-session.js +31 -0
- package/dist/card-BxBzr5Uj.d.ts +1392 -0
- package/dist/card-DN0sLkCG.d.ts +33 -0
- package/dist/client-DdXLlH1B.d.ts +3380 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +99 -0
- package/dist/collection-DGnTvD6R.d.ts +294 -0
- package/dist/collection-fFahL-ub.d.ts +53 -0
- package/dist/content-translation-zfUkE_OG.d.ts +8 -0
- package/dist/credential-6aOEGqMH.d.ts +30 -0
- package/dist/cron-DThzerR6.d.ts +9 -0
- package/dist/csv-upload--K35QedP.d.ts +8 -0
- package/dist/dashboard-CM7RmNeE.d.ts +38 -0
- package/dist/dashboard-DtLXVgtf.d.ts +978 -0
- package/dist/data-action-CkXVrOUH.d.ts +97 -0
- package/dist/data-app-CqP5_fpB.d.ts +76 -0
- package/dist/database-B0JNZjDN.d.ts +27 -0
- package/dist/database-BxqDmfcj.d.ts +997 -0
- package/dist/dataset-BBNGPVec.d.ts +4144 -0
- package/dist/dataset-BUirJ1rO.d.ts +23 -0
- package/dist/dependency-CzpXmeu7.d.ts +299 -0
- package/dist/dependency-arB8Cr2H.d.ts +879 -0
- package/dist/document-tLd6pYWe.d.ts +115 -0
- package/dist/domain/api-key.d.ts +2 -0
- package/dist/domain/api-key.js +31 -0
- package/dist/domain/card.d.ts +2 -0
- package/dist/domain/card.js +140 -0
- package/dist/domain/collection.d.ts +2 -0
- package/dist/domain/collection.js +137 -0
- package/dist/domain/content-translation.d.ts +2 -0
- package/dist/domain/content-translation.js +5 -0
- package/dist/domain/cron.d.ts +2 -0
- package/dist/domain/cron.js +5 -0
- package/dist/domain/dashboard.d.ts +2 -0
- package/dist/domain/dashboard.js +211 -0
- package/dist/domain/data-action.d.ts +2 -0
- package/dist/domain/data-action.js +91 -0
- package/dist/domain/data-app.d.ts +2 -0
- package/dist/domain/data-app.js +52 -0
- package/dist/domain/database.d.ts +2 -0
- package/dist/domain/database.js +56 -0
- package/dist/domain/dataset.d.ts +2 -0
- package/dist/domain/dataset.js +56 -0
- package/dist/domain/dependency.d.ts +2 -0
- package/dist/domain/dependency.js +168 -0
- package/dist/domain/document.d.ts +2 -0
- package/dist/domain/document.js +94 -0
- package/dist/domain/eid-translation.d.ts +2 -0
- package/dist/domain/eid-translation.js +36 -0
- package/dist/domain/embedding.d.ts +2 -0
- package/dist/domain/embedding.js +9 -0
- package/dist/domain/erd.d.ts +2 -0
- package/dist/domain/erd.js +45 -0
- package/dist/domain/field.d.ts +2 -0
- package/dist/domain/field.js +274 -0
- package/dist/domain/git-sync.d.ts +2 -0
- package/dist/domain/git-sync.js +147 -0
- package/dist/domain/glossary.d.ts +2 -0
- package/dist/domain/glossary.js +30 -0
- package/dist/domain/library.d.ts +2 -0
- package/dist/domain/library.js +89 -0
- package/dist/domain/measure.d.ts +2 -0
- package/dist/domain/measure.js +43 -0
- package/dist/domain/metric.d.ts +2 -0
- package/dist/domain/metric.js +139 -0
- package/dist/domain/moderation-review.d.ts +2 -0
- package/dist/domain/moderation-review.js +31 -0
- package/dist/domain/notification.d.ts +2 -0
- package/dist/domain/notification.js +143 -0
- package/dist/domain/parameter.d.ts +2 -0
- package/dist/domain/parameter.js +109 -0
- package/dist/domain/permission.d.ts +2 -0
- package/dist/domain/permission.js +36 -0
- package/dist/domain/pulse.d.ts +2 -0
- package/dist/domain/pulse.js +140 -0
- package/dist/domain/query.d.ts +2 -0
- package/dist/domain/query.js +13 -0
- package/dist/domain/replacement.d.ts +2 -0
- package/dist/domain/replacement.js +93 -0
- package/dist/domain/revision.d.ts +2 -0
- package/dist/domain/revision.js +90 -0
- package/dist/domain/search.d.ts +2 -0
- package/dist/domain/search.js +63 -0
- package/dist/domain/segment.d.ts +2 -0
- package/dist/domain/segment.js +46 -0
- package/dist/domain/session-properties.d.ts +2 -0
- package/dist/domain/session-properties.js +14 -0
- package/dist/domain/setting.d.ts +2 -0
- package/dist/domain/setting.js +22 -0
- package/dist/domain/setup.d.ts +2 -0
- package/dist/domain/setup.js +21 -0
- package/dist/domain/snippet.d.ts +2 -0
- package/dist/domain/snippet.js +38 -0
- package/dist/domain/table.d.ts +2 -0
- package/dist/domain/table.js +187 -0
- package/dist/domain/text.d.ts +5 -0
- package/dist/domain/text.js +6 -0
- package/dist/domain/timeline.d.ts +2 -0
- package/dist/domain/timeline.js +97 -0
- package/dist/domain/transform-dag-run.d.ts +2 -0
- package/dist/domain/transform-dag-run.js +19 -0
- package/dist/domain/transform-inspector.d.ts +2 -0
- package/dist/domain/transform-inspector.js +142 -0
- package/dist/domain/transform-job.d.ts +2 -0
- package/dist/domain/transform-job.js +115 -0
- package/dist/domain/transform-python.d.ts +2 -0
- package/dist/domain/transform-python.js +51 -0
- package/dist/domain/transform-tag.d.ts +2 -0
- package/dist/domain/transform-tag.js +17 -0
- package/dist/domain/transform-test.d.ts +2 -0
- package/dist/domain/transform-test.js +176 -0
- package/dist/domain/transform.d.ts +2 -0
- package/dist/domain/transform.js +304 -0
- package/dist/domain/upload.d.ts +2 -0
- package/dist/domain/upload.js +13 -0
- package/dist/domain/user.d.ts +2 -0
- package/dist/domain/user.js +16 -0
- package/dist/eid-translation-CH6NPWd-.d.ts +143 -0
- package/dist/embedding-oU3gqfgX.d.ts +10 -0
- package/dist/erd-BdeFEeSy.d.ts +842 -0
- package/dist/erd-CbV7xvAc.d.ts +51 -0
- package/dist/errors-DdMlaXqq.js +330 -0
- package/dist/errors.d.ts +2 -0
- package/dist/errors.js +189 -0
- package/dist/features-SMSfJhB6.d.ts +295 -0
- package/dist/field-D1Pfk-0S.d.ts +50 -0
- package/dist/field-p9Rme2zB.d.ts +2549 -0
- package/dist/git-sync-BTf1aYHr.d.ts +205 -0
- package/dist/git-sync-C99SVdJ9.d.ts +258 -0
- package/dist/glossary-CHK3elPj.d.ts +35 -0
- package/dist/glossary-DFvnz-E5.d.ts +15 -0
- package/dist/http/errors.d.ts +2 -0
- package/dist/http/errors.js +2 -0
- package/dist/http/oauth.d.ts +2 -0
- package/dist/http/oauth.js +201 -0
- package/dist/http/retry.d.ts +19 -0
- package/dist/http/retry.js +33 -0
- package/dist/http/transport.d.ts +2 -0
- package/dist/http/transport.js +2 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +64 -0
- package/dist/input-gate-registry-Dai7SfXb.js +14 -0
- package/dist/input-gates-DwKoTJVQ.d.ts +28 -0
- package/dist/json-BksZpXDC.d.ts +19 -0
- package/dist/json-pointer.d.ts +5 -0
- package/dist/json-pointer.js +10 -0
- package/dist/json.d.ts +2 -0
- package/dist/json.js +44 -0
- package/dist/known-range-DTOBgTEC.d.ts +7 -0
- package/dist/library-B9pEq7qP.d.ts +230 -0
- package/dist/list-BT_bBm9Z.d.ts +7 -0
- package/dist/list.d.ts +2 -0
- package/dist/list.js +1 -0
- package/dist/measure-CgH14YQZ.d.ts +44 -0
- package/dist/measure-lPz8qnwz.d.ts +108 -0
- package/dist/metric-DcYloqOQ.d.ts +2655 -0
- package/dist/moderation-review-B4RUTZ6_.d.ts +56 -0
- package/dist/network-error-5g4U1iul.js +62 -0
- package/dist/notification-Cp5GJErS.d.ts +22 -0
- package/dist/notification-D1MThyKE.d.ts +443 -0
- package/dist/oauth-C4ordeoJ.d.ts +59 -0
- package/dist/oauth-login-CJsT_3EE.d.ts +19 -0
- package/dist/oauth-login-D734Jvbq.js +179 -0
- package/dist/oauth-session-BlIlcd8Q.d.ts +6 -0
- package/dist/paginate-COuL0Gzl.d.ts +24 -0
- package/dist/paginate.d.ts +2 -0
- package/dist/paginate.js +49 -0
- package/dist/parameter-ak-J-IOj.d.ts +190 -0
- package/dist/permission-BnCQw5Kp.d.ts +149 -0
- package/dist/poll-CIwnee7h.d.ts +15 -0
- package/dist/poll.d.ts +2 -0
- package/dist/poll.js +47 -0
- package/dist/predicates.d.ts +10 -0
- package/dist/predicates.js +18 -0
- package/dist/pulse-0LG3K6qO.d.ts +598 -0
- package/dist/pulse-BzKmz3Yn.d.ts +18 -0
- package/dist/query-Xsin530u.d.ts +23 -0
- package/dist/refusal-B9aeHMc9.js +130 -0
- package/dist/replacement-BGyggp-G.d.ts +2467 -0
- package/dist/replacement-CVebCuNp.d.ts +128 -0
- package/dist/requirement-check-glU7wqhQ.d.ts +17 -0
- package/dist/requirements-Dx_ZVzl7.d.ts +227 -0
- package/dist/resources/api-key.d.ts +11 -0
- package/dist/resources/api-key.js +35 -0
- package/dist/resources/card.d.ts +2 -0
- package/dist/resources/card.js +103 -0
- package/dist/resources/collection.d.ts +2 -0
- package/dist/resources/collection.js +134 -0
- package/dist/resources/content-translation.d.ts +11 -0
- package/dist/resources/content-translation.js +27 -0
- package/dist/resources/csv-upload.d.ts +2 -0
- package/dist/resources/csv-upload.js +9 -0
- package/dist/resources/dashboard.d.ts +2 -0
- package/dist/resources/dashboard.js +221 -0
- package/dist/resources/data-action.d.ts +60 -0
- package/dist/resources/data-action.js +79 -0
- package/dist/resources/data-app.d.ts +112 -0
- package/dist/resources/data-app.js +75 -0
- package/dist/resources/database.d.ts +2 -0
- package/dist/resources/database.js +103 -0
- package/dist/resources/dataset.d.ts +2 -0
- package/dist/resources/dataset.js +81 -0
- package/dist/resources/dependency.d.ts +2 -0
- package/dist/resources/dependency.js +156 -0
- package/dist/resources/document.d.ts +55 -0
- package/dist/resources/document.js +60 -0
- package/dist/resources/eid-translation.d.ts +8 -0
- package/dist/resources/eid-translation.js +19 -0
- package/dist/resources/erd.d.ts +2 -0
- package/dist/resources/erd.js +26 -0
- package/dist/resources/field.d.ts +2 -0
- package/dist/resources/field.js +99 -0
- package/dist/resources/git-sync.d.ts +2 -0
- package/dist/resources/git-sync.js +362 -0
- package/dist/resources/glossary.d.ts +2 -0
- package/dist/resources/glossary.js +51 -0
- package/dist/resources/library.d.ts +85 -0
- package/dist/resources/library.js +90 -0
- package/dist/resources/measure.d.ts +2 -0
- package/dist/resources/measure.js +57 -0
- package/dist/resources/metric.d.ts +2 -0
- package/dist/resources/metric.js +50 -0
- package/dist/resources/moderation-review.d.ts +23 -0
- package/dist/resources/moderation-review.js +24 -0
- package/dist/resources/notification.d.ts +2 -0
- package/dist/resources/notification.js +93 -0
- package/dist/resources/optional-parsed.d.ts +7 -0
- package/dist/resources/optional-parsed.js +14 -0
- package/dist/resources/permission.d.ts +10 -0
- package/dist/resources/permission.js +31 -0
- package/dist/resources/pivot-export.d.ts +10 -0
- package/dist/resources/pivot-export.js +16 -0
- package/dist/resources/pulse.d.ts +2 -0
- package/dist/resources/pulse.js +76 -0
- package/dist/resources/replacement.d.ts +2 -0
- package/dist/resources/replacement.js +82 -0
- package/dist/resources/request-body.d.ts +9 -0
- package/dist/resources/request-body.js +13 -0
- package/dist/resources/revision.d.ts +70 -0
- package/dist/resources/revision.js +46 -0
- package/dist/resources/search.d.ts +2 -0
- package/dist/resources/search.js +78 -0
- package/dist/resources/segment.d.ts +2 -0
- package/dist/resources/segment.js +55 -0
- package/dist/resources/setting.d.ts +11 -0
- package/dist/resources/setting.js +43 -0
- package/dist/resources/setup.d.ts +8 -0
- package/dist/resources/setup.js +18 -0
- package/dist/resources/snippet.d.ts +2 -0
- package/dist/resources/snippet.js +52 -0
- package/dist/resources/table.d.ts +2 -0
- package/dist/resources/table.js +274 -0
- package/dist/resources/timeline-event.d.ts +12 -0
- package/dist/resources/timeline-event.js +51 -0
- package/dist/resources/timeline.d.ts +2 -0
- package/dist/resources/timeline.js +82 -0
- package/dist/resources/transform-dag-run.d.ts +22 -0
- package/dist/resources/transform-dag-run.js +32 -0
- package/dist/resources/transform-inspector.d.ts +214 -0
- package/dist/resources/transform-inspector.js +47 -0
- package/dist/resources/transform-job.d.ts +2 -0
- package/dist/resources/transform-job.js +90 -0
- package/dist/resources/transform-python.d.ts +59 -0
- package/dist/resources/transform-python.js +57 -0
- package/dist/resources/transform-tag.d.ts +35 -0
- package/dist/resources/transform-tag.js +47 -0
- package/dist/resources/transform-test.d.ts +2 -0
- package/dist/resources/transform-test.js +75 -0
- package/dist/resources/transform.d.ts +2 -0
- package/dist/resources/transform.js +227 -0
- package/dist/resources/upload.d.ts +2 -0
- package/dist/resources/upload.js +48 -0
- package/dist/resources/user.d.ts +8 -0
- package/dist/resources/user.js +11 -0
- package/dist/revision-Dyl-8p7d.d.ts +106 -0
- package/dist/search-Cm5IxKss.d.ts +92 -0
- package/dist/search-Cten2h0I.d.ts +26 -0
- package/dist/segment-CbAgVO-5.d.ts +47 -0
- package/dist/segment-DQLX6r1E.d.ts +16 -0
- package/dist/session-properties-COtlxAcK.d.ts +15 -0
- package/dist/setting-DXuQGXGF.d.ts +25 -0
- package/dist/setup-JqcJ2unJ.d.ts +26 -0
- package/dist/signal.d.ts +8 -0
- package/dist/signal.js +25 -0
- package/dist/snippet-C_Ilx7tR.d.ts +41 -0
- package/dist/snippet-Djn0rL21.d.ts +16 -0
- package/dist/table-CDZbLNow.d.ts +176 -0
- package/dist/table-Od6uvDVW.d.ts +3234 -0
- package/dist/tag-qzjGGci8.d.ts +48 -0
- package/dist/timeline-BK45hy-h.d.ts +218 -0
- package/dist/timeline-BTs6fuRp.d.ts +21 -0
- package/dist/transform-C5thnJwW.d.ts +559 -0
- package/dist/transform-WASQAXeA.d.ts +652 -0
- package/dist/transform-dag-run-BgZwv1yx.d.ts +49 -0
- package/dist/transform-inspector-CMCh8WKV.d.ts +374 -0
- package/dist/transform-job-D8jTQtdX.d.ts +98 -0
- package/dist/transform-job-DmTwKxhc.d.ts +237 -0
- package/dist/transform-python-DtL3xxMj.d.ts +101 -0
- package/dist/transform-tag-C6j5EUkX.d.ts +25 -0
- package/dist/transform-test-CR_i54IV.d.ts +412 -0
- package/dist/transform-test-CeMzDpUC.d.ts +346 -0
- package/dist/transport-BsXqRujn.d.ts +476 -0
- package/dist/transport-HP7cyo9N.js +397 -0
- package/dist/upload-B5YjVkSW.d.ts +12 -0
- package/dist/upload-UPfZFdbH.d.ts +22 -0
- package/dist/url-CI0pxHOc.d.ts +7 -0
- package/dist/url.d.ts +2 -0
- package/dist/url.js +34 -0
- package/dist/user-Sqqv7rqh.d.ts +18 -0
- package/dist/version/capability-error.d.ts +2 -0
- package/dist/version/capability-error.js +42 -0
- package/dist/version/features.d.ts +2 -0
- package/dist/version/features.js +171 -0
- package/dist/version/input-gates.d.ts +2 -0
- package/dist/version/input-gates.js +13 -0
- package/dist/version/known-range.d.ts +2 -0
- package/dist/version/known-range.js +7 -0
- package/dist/version/probe.d.ts +2 -0
- package/dist/version/probe.js +30 -0
- package/dist/version/profile.d.ts +2 -0
- package/dist/version/profile.js +64 -0
- package/dist/version/requirement-check.d.ts +2 -0
- package/dist/version/requirement-check.js +62 -0
- package/dist/version/requirements.d.ts +2 -0
- package/dist/version/requirements.js +229 -0
- package/dist/version/tag.d.ts +2 -0
- package/dist/version/tag.js +52 -0
- package/package.json +66 -4
package/dist/client.d.ts
ADDED
package/dist/client.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { r as createTransport } from "./transport-HP7cyo9N.js";
|
|
2
|
+
import { apiKeyResource } from "./resources/api-key.js";
|
|
3
|
+
import { cardResource } from "./resources/card.js";
|
|
4
|
+
import { collectionResource } from "./resources/collection.js";
|
|
5
|
+
import { contentTranslationResource } from "./resources/content-translation.js";
|
|
6
|
+
import { dashboardResource } from "./resources/dashboard.js";
|
|
7
|
+
import { dataActionResource } from "./resources/data-action.js";
|
|
8
|
+
import { dataAppResource } from "./resources/data-app.js";
|
|
9
|
+
import { databaseResource } from "./resources/database.js";
|
|
10
|
+
import { datasetResource } from "./resources/dataset.js";
|
|
11
|
+
import { dependencyResource } from "./resources/dependency.js";
|
|
12
|
+
import { documentResource } from "./resources/document.js";
|
|
13
|
+
import { eidTranslationResource } from "./resources/eid-translation.js";
|
|
14
|
+
import { erdResource } from "./resources/erd.js";
|
|
15
|
+
import { fieldResource } from "./resources/field.js";
|
|
16
|
+
import { gitSyncResource } from "./resources/git-sync.js";
|
|
17
|
+
import { glossaryResource } from "./resources/glossary.js";
|
|
18
|
+
import { libraryResource } from "./resources/library.js";
|
|
19
|
+
import { measureResource } from "./resources/measure.js";
|
|
20
|
+
import { metricResource } from "./resources/metric.js";
|
|
21
|
+
import { moderationReviewResource } from "./resources/moderation-review.js";
|
|
22
|
+
import { notificationResource } from "./resources/notification.js";
|
|
23
|
+
import { permissionResource } from "./resources/permission.js";
|
|
24
|
+
import { pulseResource } from "./resources/pulse.js";
|
|
25
|
+
import { replacementResource } from "./resources/replacement.js";
|
|
26
|
+
import { revisionResource } from "./resources/revision.js";
|
|
27
|
+
import { searchResource } from "./resources/search.js";
|
|
28
|
+
import { segmentResource } from "./resources/segment.js";
|
|
29
|
+
import { settingResource } from "./resources/setting.js";
|
|
30
|
+
import { setupResource } from "./resources/setup.js";
|
|
31
|
+
import { snippetResource } from "./resources/snippet.js";
|
|
32
|
+
import { tableResource } from "./resources/table.js";
|
|
33
|
+
import { timelineEventResource } from "./resources/timeline-event.js";
|
|
34
|
+
import { timelineResource } from "./resources/timeline.js";
|
|
35
|
+
import { transformDagRunResource } from "./resources/transform-dag-run.js";
|
|
36
|
+
import { transformInspectorResource } from "./resources/transform-inspector.js";
|
|
37
|
+
import { transformJobResource } from "./resources/transform-job.js";
|
|
38
|
+
import { transformPythonResource } from "./resources/transform-python.js";
|
|
39
|
+
import { transformResource } from "./resources/transform.js";
|
|
40
|
+
import { transformTagResource } from "./resources/transform-tag.js";
|
|
41
|
+
import { transformTestResource } from "./resources/transform-test.js";
|
|
42
|
+
import { uploadResource } from "./resources/upload.js";
|
|
43
|
+
import { userResource } from "./resources/user.js";
|
|
44
|
+
//#region src/client.ts
|
|
45
|
+
function createClient(config, options) {
|
|
46
|
+
const transport = createTransport(config, options);
|
|
47
|
+
return {
|
|
48
|
+
apiKey: apiKeyResource(transport),
|
|
49
|
+
card: cardResource(transport),
|
|
50
|
+
collection: collectionResource(transport),
|
|
51
|
+
contentTranslation: contentTranslationResource(transport),
|
|
52
|
+
dashboard: dashboardResource(transport),
|
|
53
|
+
dataAction: dataActionResource(transport),
|
|
54
|
+
dataApp: dataAppResource(transport),
|
|
55
|
+
database: databaseResource(transport),
|
|
56
|
+
dataset: datasetResource(transport),
|
|
57
|
+
dependency: dependencyResource(transport),
|
|
58
|
+
document: documentResource(transport),
|
|
59
|
+
eidTranslation: eidTranslationResource(transport),
|
|
60
|
+
erd: erdResource(transport),
|
|
61
|
+
field: fieldResource(transport),
|
|
62
|
+
gitSync: gitSyncResource(transport),
|
|
63
|
+
glossary: glossaryResource(transport),
|
|
64
|
+
library: libraryResource(transport),
|
|
65
|
+
measure: measureResource(transport),
|
|
66
|
+
metric: metricResource(transport),
|
|
67
|
+
moderationReview: moderationReviewResource(transport),
|
|
68
|
+
notification: notificationResource(transport),
|
|
69
|
+
permission: permissionResource(transport),
|
|
70
|
+
pulse: pulseResource(transport),
|
|
71
|
+
replacement: replacementResource(transport),
|
|
72
|
+
revision: revisionResource(transport),
|
|
73
|
+
search: searchResource(transport),
|
|
74
|
+
segment: segmentResource(transport),
|
|
75
|
+
setting: settingResource(transport),
|
|
76
|
+
setup: setupResource(transport),
|
|
77
|
+
snippet: snippetResource(transport),
|
|
78
|
+
table: tableResource(transport),
|
|
79
|
+
timeline: timelineResource(transport),
|
|
80
|
+
timelineEvent: timelineEventResource(transport),
|
|
81
|
+
transform: transformResource(transport),
|
|
82
|
+
transformDagRun: transformDagRunResource(transport),
|
|
83
|
+
transformInspector: transformInspectorResource(transport),
|
|
84
|
+
transformJob: transformJobResource(transport),
|
|
85
|
+
transformPython: transformPythonResource(transport),
|
|
86
|
+
transformTag: transformTagResource(transport),
|
|
87
|
+
transformTest: transformTestResource(transport),
|
|
88
|
+
upload: uploadResource(transport),
|
|
89
|
+
user: userResource(transport),
|
|
90
|
+
server: transport.server,
|
|
91
|
+
verifiedServer: transport.verifiedServer,
|
|
92
|
+
probesSettled: transport.probesSettled,
|
|
93
|
+
requestParsed: transport.requestParsed,
|
|
94
|
+
requestRaw: transport.requestRaw,
|
|
95
|
+
requestStream: transport.requestStream
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
export { createClient };
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/collection.d.ts
|
|
3
|
+
declare const CollectionId: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
4
|
+
type CollectionId = z.infer<typeof CollectionId>;
|
|
5
|
+
declare const CollectionAuthorityLevel: z.ZodEnum<{
|
|
6
|
+
official: "official";
|
|
7
|
+
}>;
|
|
8
|
+
type CollectionAuthorityLevel = z.infer<typeof CollectionAuthorityLevel>;
|
|
9
|
+
declare const CollectionType: z.ZodEnum<{
|
|
10
|
+
library: "library";
|
|
11
|
+
"instance-analytics": "instance-analytics";
|
|
12
|
+
trash: "trash";
|
|
13
|
+
"library-data": "library-data";
|
|
14
|
+
"library-metrics": "library-metrics";
|
|
15
|
+
"library-dashboards": "library-dashboards";
|
|
16
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
17
|
+
}>;
|
|
18
|
+
type CollectionType = z.infer<typeof CollectionType>;
|
|
19
|
+
declare const CollectionNamespace: z.ZodEnum<{
|
|
20
|
+
"data-apps": "data-apps";
|
|
21
|
+
transforms: "transforms";
|
|
22
|
+
snippets: "snippets";
|
|
23
|
+
analytics: "analytics";
|
|
24
|
+
"shared-tenant-collection": "shared-tenant-collection";
|
|
25
|
+
"tenant-specific": "tenant-specific";
|
|
26
|
+
"data-actions": "data-actions";
|
|
27
|
+
}>;
|
|
28
|
+
type CollectionNamespace = z.infer<typeof CollectionNamespace>;
|
|
29
|
+
declare const CollectionListFilter: z.ZodEnum<{
|
|
30
|
+
archived: "archived";
|
|
31
|
+
all: "all";
|
|
32
|
+
personal: "personal";
|
|
33
|
+
}>;
|
|
34
|
+
type CollectionListFilter = z.infer<typeof CollectionListFilter>;
|
|
35
|
+
declare const COLLECTION_ITEM_FILTER_MODELS: readonly ["card", "dataset", "metric", "dashboard", "snippet", "collection", "document", "exploration", "table", "transform", "measure", "pulse", "timeline", "no_models"];
|
|
36
|
+
declare const CollectionItemFilterModel: z.ZodEnum<{
|
|
37
|
+
transform: "transform";
|
|
38
|
+
collection: "collection";
|
|
39
|
+
card: "card";
|
|
40
|
+
dashboard: "dashboard";
|
|
41
|
+
dataset: "dataset";
|
|
42
|
+
document: "document";
|
|
43
|
+
metric: "metric";
|
|
44
|
+
measure: "measure";
|
|
45
|
+
pulse: "pulse";
|
|
46
|
+
snippet: "snippet";
|
|
47
|
+
table: "table";
|
|
48
|
+
timeline: "timeline";
|
|
49
|
+
exploration: "exploration";
|
|
50
|
+
no_models: "no_models";
|
|
51
|
+
}>;
|
|
52
|
+
type CollectionItemFilterModel = z.infer<typeof CollectionItemFilterModel>;
|
|
53
|
+
declare const COLLECTION_ITEM_MODELS: readonly ["card", "dataset", "metric", "dashboard", "snippet", "collection", "document", "exploration", "table", "transform", "measure", "pulse", "timeline", "no_models", "indexed-entity", "action"];
|
|
54
|
+
declare const CollectionItemModel: z.ZodEnum<{
|
|
55
|
+
transform: "transform";
|
|
56
|
+
collection: "collection";
|
|
57
|
+
card: "card";
|
|
58
|
+
dashboard: "dashboard";
|
|
59
|
+
dataset: "dataset";
|
|
60
|
+
document: "document";
|
|
61
|
+
metric: "metric";
|
|
62
|
+
measure: "measure";
|
|
63
|
+
pulse: "pulse";
|
|
64
|
+
snippet: "snippet";
|
|
65
|
+
table: "table";
|
|
66
|
+
timeline: "timeline";
|
|
67
|
+
exploration: "exploration";
|
|
68
|
+
no_models: "no_models";
|
|
69
|
+
"indexed-entity": "indexed-entity";
|
|
70
|
+
action: "action";
|
|
71
|
+
}>;
|
|
72
|
+
type CollectionItemModel = z.infer<typeof CollectionItemModel>;
|
|
73
|
+
declare const COLLECTION_PINNED_STATES: readonly ["all", "is_pinned", "is_not_pinned"];
|
|
74
|
+
declare const CollectionPinnedState: z.ZodEnum<{
|
|
75
|
+
all: "all";
|
|
76
|
+
is_pinned: "is_pinned";
|
|
77
|
+
is_not_pinned: "is_not_pinned";
|
|
78
|
+
}>;
|
|
79
|
+
type CollectionPinnedState = z.infer<typeof CollectionPinnedState>;
|
|
80
|
+
declare const Collection: z.ZodObject<{
|
|
81
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
87
|
+
personal_owner_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
88
|
+
is_personal: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
90
|
+
official: "official";
|
|
91
|
+
}>>>;
|
|
92
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
93
|
+
library: "library";
|
|
94
|
+
"instance-analytics": "instance-analytics";
|
|
95
|
+
trash: "trash";
|
|
96
|
+
"library-data": "library-data";
|
|
97
|
+
"library-metrics": "library-metrics";
|
|
98
|
+
"library-dashboards": "library-dashboards";
|
|
99
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
100
|
+
}>>>;
|
|
101
|
+
namespace: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
102
|
+
"data-apps": "data-apps";
|
|
103
|
+
transforms: "transforms";
|
|
104
|
+
snippets: "snippets";
|
|
105
|
+
analytics: "analytics";
|
|
106
|
+
"shared-tenant-collection": "shared-tenant-collection";
|
|
107
|
+
"tenant-specific": "tenant-specific";
|
|
108
|
+
"data-actions": "data-actions";
|
|
109
|
+
}>>>;
|
|
110
|
+
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
112
|
+
can_write: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
is_remote_synced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
114
|
+
}, z.core.$loose>;
|
|
115
|
+
type Collection = z.infer<typeof Collection>;
|
|
116
|
+
declare const CollectionCompact: z.ZodObject<{
|
|
117
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
118
|
+
library: "library";
|
|
119
|
+
"instance-analytics": "instance-analytics";
|
|
120
|
+
trash: "trash";
|
|
121
|
+
"library-data": "library-data";
|
|
122
|
+
"library-metrics": "library-metrics";
|
|
123
|
+
"library-dashboards": "library-dashboards";
|
|
124
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
125
|
+
}>>>;
|
|
126
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
+
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
132
|
+
official: "official";
|
|
133
|
+
}>>>;
|
|
134
|
+
is_personal: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
is_remote_synced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
136
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
137
|
+
namespace: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
138
|
+
"data-apps": "data-apps";
|
|
139
|
+
transforms: "transforms";
|
|
140
|
+
snippets: "snippets";
|
|
141
|
+
analytics: "analytics";
|
|
142
|
+
"shared-tenant-collection": "shared-tenant-collection";
|
|
143
|
+
"tenant-specific": "tenant-specific";
|
|
144
|
+
"data-actions": "data-actions";
|
|
145
|
+
}>>>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
type CollectionCompact = z.infer<typeof CollectionCompact>;
|
|
148
|
+
declare const CollectionItem: z.ZodObject<{
|
|
149
|
+
id: z.ZodNumber;
|
|
150
|
+
model: z.ZodEnum<{
|
|
151
|
+
transform: "transform";
|
|
152
|
+
collection: "collection";
|
|
153
|
+
card: "card";
|
|
154
|
+
dashboard: "dashboard";
|
|
155
|
+
dataset: "dataset";
|
|
156
|
+
document: "document";
|
|
157
|
+
metric: "metric";
|
|
158
|
+
measure: "measure";
|
|
159
|
+
pulse: "pulse";
|
|
160
|
+
snippet: "snippet";
|
|
161
|
+
table: "table";
|
|
162
|
+
timeline: "timeline";
|
|
163
|
+
exploration: "exploration";
|
|
164
|
+
no_models: "no_models";
|
|
165
|
+
"indexed-entity": "indexed-entity";
|
|
166
|
+
action: "action";
|
|
167
|
+
}>;
|
|
168
|
+
name: z.ZodString;
|
|
169
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
170
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
171
|
+
collection_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
172
|
+
collection_position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
173
|
+
display: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
|
+
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
|
+
database_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
177
|
+
dashboard_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
178
|
+
}, z.core.$loose>;
|
|
179
|
+
type CollectionItem = z.infer<typeof CollectionItem>;
|
|
180
|
+
declare const CollectionItemCompact: z.ZodObject<{
|
|
181
|
+
id: z.ZodNumber;
|
|
182
|
+
name: z.ZodString;
|
|
183
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
185
|
+
collection_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
186
|
+
model: z.ZodEnum<{
|
|
187
|
+
transform: "transform";
|
|
188
|
+
collection: "collection";
|
|
189
|
+
card: "card";
|
|
190
|
+
dashboard: "dashboard";
|
|
191
|
+
dataset: "dataset";
|
|
192
|
+
document: "document";
|
|
193
|
+
metric: "metric";
|
|
194
|
+
measure: "measure";
|
|
195
|
+
pulse: "pulse";
|
|
196
|
+
snippet: "snippet";
|
|
197
|
+
table: "table";
|
|
198
|
+
timeline: "timeline";
|
|
199
|
+
exploration: "exploration";
|
|
200
|
+
no_models: "no_models";
|
|
201
|
+
"indexed-entity": "indexed-entity";
|
|
202
|
+
action: "action";
|
|
203
|
+
}>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
type CollectionItemCompact = z.infer<typeof CollectionItemCompact>;
|
|
206
|
+
declare const CollectionTreeNodeBase: z.ZodObject<{
|
|
207
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
208
|
+
name: z.ZodString;
|
|
209
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
213
|
+
library: "library";
|
|
214
|
+
"instance-analytics": "instance-analytics";
|
|
215
|
+
trash: "trash";
|
|
216
|
+
"library-data": "library-data";
|
|
217
|
+
"library-metrics": "library-metrics";
|
|
218
|
+
"library-dashboards": "library-dashboards";
|
|
219
|
+
"tenant-specific-root-collection": "tenant-specific-root-collection";
|
|
220
|
+
}>>>;
|
|
221
|
+
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
222
|
+
official: "official";
|
|
223
|
+
}>>>;
|
|
224
|
+
here: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
225
|
+
transform: "transform";
|
|
226
|
+
collection: "collection";
|
|
227
|
+
card: "card";
|
|
228
|
+
dashboard: "dashboard";
|
|
229
|
+
dataset: "dataset";
|
|
230
|
+
document: "document";
|
|
231
|
+
metric: "metric";
|
|
232
|
+
measure: "measure";
|
|
233
|
+
pulse: "pulse";
|
|
234
|
+
snippet: "snippet";
|
|
235
|
+
table: "table";
|
|
236
|
+
timeline: "timeline";
|
|
237
|
+
exploration: "exploration";
|
|
238
|
+
no_models: "no_models";
|
|
239
|
+
"indexed-entity": "indexed-entity";
|
|
240
|
+
action: "action";
|
|
241
|
+
}>>>;
|
|
242
|
+
below: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
243
|
+
transform: "transform";
|
|
244
|
+
collection: "collection";
|
|
245
|
+
card: "card";
|
|
246
|
+
dashboard: "dashboard";
|
|
247
|
+
dataset: "dataset";
|
|
248
|
+
document: "document";
|
|
249
|
+
metric: "metric";
|
|
250
|
+
measure: "measure";
|
|
251
|
+
pulse: "pulse";
|
|
252
|
+
snippet: "snippet";
|
|
253
|
+
table: "table";
|
|
254
|
+
timeline: "timeline";
|
|
255
|
+
exploration: "exploration";
|
|
256
|
+
no_models: "no_models";
|
|
257
|
+
"indexed-entity": "indexed-entity";
|
|
258
|
+
action: "action";
|
|
259
|
+
}>>>;
|
|
260
|
+
}, z.core.$loose>;
|
|
261
|
+
type CollectionTreeNode = z.infer<typeof CollectionTreeNodeBase> & {
|
|
262
|
+
children: CollectionTreeNode[];
|
|
263
|
+
};
|
|
264
|
+
declare const CollectionTreeNode: z.ZodType<CollectionTreeNode>;
|
|
265
|
+
declare const CollectionCreateInput: z.ZodObject<{
|
|
266
|
+
name: z.ZodString;
|
|
267
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
268
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
269
|
+
namespace: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
270
|
+
"data-apps": "data-apps";
|
|
271
|
+
transforms: "transforms";
|
|
272
|
+
snippets: "snippets";
|
|
273
|
+
analytics: "analytics";
|
|
274
|
+
"shared-tenant-collection": "shared-tenant-collection";
|
|
275
|
+
"tenant-specific": "tenant-specific";
|
|
276
|
+
"data-actions": "data-actions";
|
|
277
|
+
}>>>;
|
|
278
|
+
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
279
|
+
official: "official";
|
|
280
|
+
}>>>;
|
|
281
|
+
}, z.core.$loose>;
|
|
282
|
+
type CollectionCreateInput = z.infer<typeof CollectionCreateInput>;
|
|
283
|
+
declare const CollectionUpdateInput: z.ZodObject<{
|
|
284
|
+
name: z.ZodOptional<z.ZodString>;
|
|
285
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
287
|
+
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
288
|
+
official: "official";
|
|
289
|
+
}>>>;
|
|
290
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
+
}, z.core.$strict>;
|
|
292
|
+
type CollectionUpdateInput = z.infer<typeof CollectionUpdateInput>;
|
|
293
|
+
//#endregion
|
|
294
|
+
export { CollectionType as _, CollectionAuthorityLevel as a, CollectionId as c, CollectionItemFilterModel as d, CollectionItemModel as f, CollectionTreeNode as g, CollectionPinnedState as h, Collection as i, CollectionItem as l, CollectionNamespace as m, COLLECTION_ITEM_MODELS as n, CollectionCompact as o, CollectionListFilter as p, COLLECTION_PINNED_STATES as r, CollectionCreateInput as s, COLLECTION_ITEM_FILTER_MODELS as t, CollectionItemCompact as u, CollectionUpdateInput as v };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
import { n as Page, r as PaginateOptions } from "./paginate-COuL0Gzl.js";
|
|
4
|
+
import { c as CollectionId, d as CollectionItemFilterModel, g as CollectionTreeNode, h as CollectionPinnedState, i as Collection, m as CollectionNamespace, p as CollectionListFilter, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-DGnTvD6R.js";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
//#region src/resources/collection.d.ts
|
|
7
|
+
interface CollectionListParams {
|
|
8
|
+
filter?: CollectionListFilter | undefined;
|
|
9
|
+
namespace?: CollectionNamespace | undefined;
|
|
10
|
+
}
|
|
11
|
+
interface CollectionItemListParams {
|
|
12
|
+
models?: CollectionItemFilterModel[] | undefined;
|
|
13
|
+
archived?: boolean | undefined;
|
|
14
|
+
pinned_state?: CollectionPinnedState | undefined;
|
|
15
|
+
}
|
|
16
|
+
interface CollectionTreeParams {
|
|
17
|
+
/** Include the Library collections, which the tree leaves out by default. */
|
|
18
|
+
"include-library"?: boolean | undefined;
|
|
19
|
+
}
|
|
20
|
+
type CollectionItemPageOptions = Omit<PaginateOptions, "query">;
|
|
21
|
+
/**
|
|
22
|
+
* List every collection the caller can read, the Library and its children among them, parsing each
|
|
23
|
+
* through the caller's own projection. `Collection` pins `type`, `namespace` and `authority_level`
|
|
24
|
+
* to closed enums, so a consumer reading a few fields off every collection on the instance narrows
|
|
25
|
+
* here: one collection carrying a server value outside those sets then costs nothing to a caller
|
|
26
|
+
* that never reads the field.
|
|
27
|
+
*/
|
|
28
|
+
declare function listCollectionsAs<T>(transport: Transport, schema: z.ZodType<T>, options?: RequestOptions): Promise<T[]>;
|
|
29
|
+
declare function collectionResource(transport: Transport): {
|
|
30
|
+
list: (params?: CollectionListParams, options?: RequestOptions) => Promise<ListResult<Collection>>;
|
|
31
|
+
get: (ref: CollectionId, options?: RequestOptions) => Promise<Collection>;
|
|
32
|
+
create: (params: CollectionCreateInput, options?: RequestOptions) => Promise<Collection>;
|
|
33
|
+
update: (ref: CollectionId, params: CollectionUpdateInput, options?: RequestOptions) => Promise<Collection>;
|
|
34
|
+
archive: (ref: CollectionId, options?: RequestOptions) => Promise<Collection>;
|
|
35
|
+
itemPages: (ref: string | number, params?: CollectionItemListParams | undefined, options?: CollectionItemPageOptions | undefined) => AsyncIterable<Page<{
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
id: number;
|
|
38
|
+
model: "transform" | "collection" | "card" | "dashboard" | "dataset" | "document" | "metric" | "measure" | "pulse" | "snippet" | "table" | "timeline" | "exploration" | "no_models" | "indexed-entity" | "action";
|
|
39
|
+
name: string;
|
|
40
|
+
archived: boolean | null;
|
|
41
|
+
description?: string | null | undefined;
|
|
42
|
+
collection_id?: string | number | null | undefined;
|
|
43
|
+
collection_position?: number | null | undefined;
|
|
44
|
+
display?: string | null | undefined;
|
|
45
|
+
location?: string | null | undefined;
|
|
46
|
+
entity_id?: string | null | undefined;
|
|
47
|
+
database_id?: number | null | undefined;
|
|
48
|
+
dashboard_id?: number | null | undefined;
|
|
49
|
+
}>>;
|
|
50
|
+
tree: (params?: CollectionTreeParams, options?: RequestOptions) => Promise<ListResult<CollectionTreeNode>>;
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
export { collectionResource as a, CollectionTreeParams as i, CollectionItemPageOptions as n, listCollectionsAs as o, CollectionListParams as r, CollectionItemListParams as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/content-translation.d.ts
|
|
3
|
+
declare const ContentTranslationUploadResult: z.ZodObject<{
|
|
4
|
+
success: z.ZodLiteral<true>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type ContentTranslationUploadResult = z.infer<typeof ContentTranslationUploadResult>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ContentTranslationUploadResult as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { o as OAuthTokens } from "./oauth-C4ordeoJ.js";
|
|
2
|
+
//#region src/auth/credential.d.ts
|
|
3
|
+
interface ApiKeyCredential {
|
|
4
|
+
kind: "apiKey";
|
|
5
|
+
apiKey: string;
|
|
6
|
+
}
|
|
7
|
+
interface OAuthCredential {
|
|
8
|
+
kind: "oauth";
|
|
9
|
+
accessToken: string;
|
|
10
|
+
refreshToken: string;
|
|
11
|
+
expiresAt: string;
|
|
12
|
+
clientId: string;
|
|
13
|
+
}
|
|
14
|
+
type Credential = ApiKeyCredential | OAuthCredential;
|
|
15
|
+
type CredentialRefresher = () => Promise<Credential | null>;
|
|
16
|
+
declare const API_KEY_HEADER = "x-api-key";
|
|
17
|
+
declare const AUTHORIZATION_HEADER = "authorization";
|
|
18
|
+
declare const DEFAULT_EXPIRES_IN_SECONDS = 3600;
|
|
19
|
+
interface AuthHeader {
|
|
20
|
+
name: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
23
|
+
declare function credentialAuthHeader(credential: Credential): AuthHeader;
|
|
24
|
+
declare function assertCredentialHeaderSafe(credential: Credential): void;
|
|
25
|
+
declare function credentialSecrets(credential: Credential): string[];
|
|
26
|
+
declare function isOAuthExpired(credential: OAuthCredential, nowMs: number): boolean;
|
|
27
|
+
declare function expiresAtFromNow(expiresInSeconds: number, nowMs: number): string;
|
|
28
|
+
declare function oauthCredentialFromTokens(tokens: Pick<OAuthTokens, "access_token" | "expires_in">, refreshToken: string, clientId: string, nowMs: number): OAuthCredential;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { Credential as a, OAuthCredential as c, credentialSecrets as d, expiresAtFromNow as f, AuthHeader as i, assertCredentialHeaderSafe as l, oauthCredentialFromTokens as m, AUTHORIZATION_HEADER as n, CredentialRefresher as o, isOAuthExpired as p, ApiKeyCredential as r, DEFAULT_EXPIRES_IN_SECONDS as s, API_KEY_HEADER as t, credentialAuthHeader as u };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/cron.d.ts
|
|
3
|
+
declare const CronUiDisplayType: z.ZodEnum<{
|
|
4
|
+
"cron/raw": "cron/raw";
|
|
5
|
+
"cron/builder": "cron/builder";
|
|
6
|
+
}>;
|
|
7
|
+
type CronUiDisplayType = z.infer<typeof CronUiDisplayType>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CronUiDisplayType as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
import { _ as DashcardDetail, a as DashboardCopyInput, l as DashboardListFilter, m as DashboardUpdateInput, o as DashboardCreateInput, r as DashboardCopy, s as DashboardDetail, t as Dashboard, u as DashboardParameterConstraints, v as DashcardPatchInput } from "./dashboard-DtLXVgtf.js";
|
|
4
|
+
import { s as ParameterValues } from "./parameter-ak-J-IOj.js";
|
|
5
|
+
//#region src/resources/dashboard.d.ts
|
|
6
|
+
interface DashboardListParams {
|
|
7
|
+
f?: DashboardListFilter | undefined;
|
|
8
|
+
}
|
|
9
|
+
interface DashcardCardMissing {
|
|
10
|
+
reason: "missing";
|
|
11
|
+
}
|
|
12
|
+
interface DashcardCardArchived {
|
|
13
|
+
reason: "archived";
|
|
14
|
+
}
|
|
15
|
+
interface DashcardCardUnreadable {
|
|
16
|
+
reason: "unreadable";
|
|
17
|
+
detail: string;
|
|
18
|
+
}
|
|
19
|
+
type DashcardCardProblem = DashcardCardMissing | DashcardCardArchived | DashcardCardUnreadable;
|
|
20
|
+
interface DashcardCardIssue {
|
|
21
|
+
cardId: number;
|
|
22
|
+
path: string;
|
|
23
|
+
problem: DashcardCardProblem;
|
|
24
|
+
}
|
|
25
|
+
declare function dashboardResource(transport: Transport): {
|
|
26
|
+
list: (params?: DashboardListParams, options?: RequestOptions) => Promise<ListResult<Dashboard>>;
|
|
27
|
+
get: (id: number, options?: RequestOptions) => Promise<DashboardDetail>;
|
|
28
|
+
create: (params: DashboardCreateInput, options?: RequestOptions) => Promise<Dashboard>;
|
|
29
|
+
update: (id: number, params: DashboardUpdateInput, options?: RequestOptions) => Promise<DashboardDetail>;
|
|
30
|
+
archive: (id: number, options?: RequestOptions) => Promise<Dashboard>;
|
|
31
|
+
copy: (id: number, params?: DashboardCopyInput, options?: RequestOptions) => Promise<DashboardCopy>;
|
|
32
|
+
updateDashcard: (dashboardId: number, dashcardId: number, params: DashcardPatchInput, options?: RequestOptions) => Promise<DashcardDetail>;
|
|
33
|
+
checkCardReferences: (dashcards: ReadonlyArray<unknown> | null | undefined, options?: RequestOptions) => Promise<DashcardCardIssue[]>;
|
|
34
|
+
parameterValues: (dashboardId: number, parameterId: string, constraints?: DashboardParameterConstraints, options?: RequestOptions) => Promise<ParameterValues>;
|
|
35
|
+
searchParameterValues: (dashboardId: number, parameterId: string, query: string, constraints?: DashboardParameterConstraints, options?: RequestOptions) => Promise<ParameterValues>;
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { DashcardCardProblem as a, DashcardCardMissing as i, DashcardCardArchived as n, DashcardCardUnreadable as o, DashcardCardIssue as r, dashboardResource as s, DashboardListParams as t };
|