@metabase/client 0.0.0-stage → 0.1.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/CHANGELOG.md +7 -0
- package/LICENSE +661 -0
- package/README.md +488 -2
- 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-B6merEUN.d.ts +1392 -0
- package/dist/card-BZx4NSr-.d.ts +33 -0
- package/dist/client-DNRvXFRm.d.ts +3276 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +95 -0
- package/dist/collection-Bib61WiV.d.ts +294 -0
- package/dist/collection-CqtGPi4W.d.ts +39 -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-XTe46250.d.ts +38 -0
- package/dist/dashboard-z9i1VUZC.d.ts +970 -0
- package/dist/data-action-rS27f2Ji.d.ts +95 -0
- package/dist/database-BLUMlywE.d.ts +997 -0
- package/dist/database-DqTespfa.d.ts +27 -0
- package/dist/dataset-C6lX1-cr.d.ts +4144 -0
- package/dist/dataset-Cj3XuKLe.d.ts +23 -0
- package/dist/dependency-D8Qs5Xdx.d.ts +827 -0
- package/dist/dependency-fN5_7a22.d.ts +299 -0
- package/dist/document-oZNDbDfx.d.ts +115 -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 +194 -0
- package/dist/domain/data-action.d.ts +2 -0
- package/dist/domain/data-action.js +85 -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 +165 -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 +268 -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 +83 -0
- package/dist/domain/measure.d.ts +2 -0
- package/dist/domain/measure.js +41 -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 +138 -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 +133 -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 +63 -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 +44 -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 +156 -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 +109 -0
- package/dist/domain/transform-python.d.ts +2 -0
- package/dist/domain/transform-python.js +39 -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 +235 -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-nuhr8St2.d.ts +143 -0
- package/dist/embedding-Cz3RUJYf.d.ts +10 -0
- package/dist/erd-BdeFEeSy.d.ts +842 -0
- package/dist/erd-BujD227Y.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-CnFkUCj2.d.ts +261 -0
- package/dist/field-BCRO19mk.d.ts +2547 -0
- package/dist/field-Bqn10Fq_.d.ts +50 -0
- package/dist/git-sync-DNXrNVCW.d.ts +258 -0
- package/dist/git-sync-gAMKsZgN.d.ts +205 -0
- package/dist/glossary-CHK3elPj.d.ts +35 -0
- package/dist/glossary-CqFlzW33.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 +60 -0
- package/dist/index.js +62 -0
- package/dist/json-CZvjc3--.d.ts +19 -0
- package/dist/json-pointer.d.ts +4 -0
- package/dist/json-pointer.js +7 -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-Cx9h_RkU.d.ts +228 -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-CuMqPbQX.d.ts +108 -0
- package/dist/measure-KuXdjZYJ.d.ts +44 -0
- package/dist/metric-yvehaVCS.d.ts +2655 -0
- package/dist/moderation-review-B4RUTZ6_.d.ts +56 -0
- package/dist/network-error-5g4U1iul.js +62 -0
- package/dist/notification-BT2TDAd_.d.ts +379 -0
- package/dist/notification-BiegPoSD.d.ts +22 -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-DZWvWvbm.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-CMc1Rwdj.d.ts +596 -0
- package/dist/pulse-dylocLd9.d.ts +18 -0
- package/dist/query-Xsin530u.d.ts +23 -0
- package/dist/refusal-B9aeHMc9.js +130 -0
- package/dist/replacement-CyvtbxGg.d.ts +2467 -0
- package/dist/replacement-S9U3gApY.d.ts +128 -0
- package/dist/requirement-check-CIA5IHC1.d.ts +17 -0
- package/dist/requirements-C0txASN8.d.ts +217 -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 +110 -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 +218 -0
- package/dist/resources/data-action.d.ts +105 -0
- package/dist/resources/data-action.js +79 -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 +150 -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 +98 -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 +75 -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 +51 -0
- package/dist/resources/search.d.ts +2 -0
- package/dist/resources/search.js +57 -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 +275 -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 +52 -0
- package/dist/resources/transform-python.js +56 -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 +217 -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-CQBPhohA.d.ts +104 -0
- package/dist/search-BxJipLN6.d.ts +26 -0
- package/dist/search-NZR6iRBs.d.ts +92 -0
- package/dist/segment-D2i34X9l.d.ts +16 -0
- package/dist/segment-pj3wklGe.d.ts +47 -0
- package/dist/session-properties-COtlxAcK.d.ts +15 -0
- package/dist/setting-DXuQGXGF.d.ts +25 -0
- package/dist/setup-Ez_U7GmM.d.ts +26 -0
- package/dist/signal.d.ts +8 -0
- package/dist/signal.js +25 -0
- package/dist/snippet-RnnWa4TL.d.ts +16 -0
- package/dist/snippet-hEV429Pv.d.ts +41 -0
- package/dist/table-B3-UaPHa.d.ts +3229 -0
- package/dist/table-B_lfuaHc.d.ts +176 -0
- package/dist/tag-qzjGGci8.d.ts +48 -0
- package/dist/timeline-C2IEcRlP.d.ts +21 -0
- package/dist/timeline-folD3mQ_.d.ts +218 -0
- package/dist/transform-CDurgE1D.d.ts +443 -0
- package/dist/transform-CXOT5kFe.d.ts +638 -0
- package/dist/transform-dag-run-BgZwv1yx.d.ts +49 -0
- package/dist/transform-inspector-BUYBt6--.d.ts +374 -0
- package/dist/transform-job-29P6BULe.d.ts +237 -0
- package/dist/transform-job-CTJImaOd.d.ts +96 -0
- package/dist/transform-python-DdDnW6yK.d.ts +56 -0
- package/dist/transform-tag-DVUIZTEM.d.ts +25 -0
- package/dist/transform-test-A-CJYT6B.d.ts +412 -0
- package/dist/transform-test-BwuyrHpT.d.ts +346 -0
- package/dist/transport-E0ZaPNWJ.d.ts +462 -0
- package/dist/transport-HP7cyo9N.js +397 -0
- package/dist/upload-B7PG3ePk.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-2r0OBoO6.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 +143 -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 +219 -0
- package/dist/version/tag.d.ts +2 -0
- package/dist/version/tag.js +52 -0
- package/package.json +65 -4
package/dist/client.d.ts
ADDED
package/dist/client.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { r as createTransport } from "./transport-HP7cyo9N.js";
|
|
2
|
+
import { cardResource } from "./resources/card.js";
|
|
3
|
+
import { collectionResource } from "./resources/collection.js";
|
|
4
|
+
import { contentTranslationResource } from "./resources/content-translation.js";
|
|
5
|
+
import { dashboardResource } from "./resources/dashboard.js";
|
|
6
|
+
import { dataActionResource } from "./resources/data-action.js";
|
|
7
|
+
import { databaseResource } from "./resources/database.js";
|
|
8
|
+
import { datasetResource } from "./resources/dataset.js";
|
|
9
|
+
import { dependencyResource } from "./resources/dependency.js";
|
|
10
|
+
import { documentResource } from "./resources/document.js";
|
|
11
|
+
import { eidTranslationResource } from "./resources/eid-translation.js";
|
|
12
|
+
import { erdResource } from "./resources/erd.js";
|
|
13
|
+
import { fieldResource } from "./resources/field.js";
|
|
14
|
+
import { gitSyncResource } from "./resources/git-sync.js";
|
|
15
|
+
import { glossaryResource } from "./resources/glossary.js";
|
|
16
|
+
import { libraryResource } from "./resources/library.js";
|
|
17
|
+
import { measureResource } from "./resources/measure.js";
|
|
18
|
+
import { metricResource } from "./resources/metric.js";
|
|
19
|
+
import { moderationReviewResource } from "./resources/moderation-review.js";
|
|
20
|
+
import { notificationResource } from "./resources/notification.js";
|
|
21
|
+
import { permissionResource } from "./resources/permission.js";
|
|
22
|
+
import { pulseResource } from "./resources/pulse.js";
|
|
23
|
+
import { replacementResource } from "./resources/replacement.js";
|
|
24
|
+
import { revisionResource } from "./resources/revision.js";
|
|
25
|
+
import { searchResource } from "./resources/search.js";
|
|
26
|
+
import { segmentResource } from "./resources/segment.js";
|
|
27
|
+
import { settingResource } from "./resources/setting.js";
|
|
28
|
+
import { setupResource } from "./resources/setup.js";
|
|
29
|
+
import { snippetResource } from "./resources/snippet.js";
|
|
30
|
+
import { tableResource } from "./resources/table.js";
|
|
31
|
+
import { timelineEventResource } from "./resources/timeline-event.js";
|
|
32
|
+
import { timelineResource } from "./resources/timeline.js";
|
|
33
|
+
import { transformDagRunResource } from "./resources/transform-dag-run.js";
|
|
34
|
+
import { transformInspectorResource } from "./resources/transform-inspector.js";
|
|
35
|
+
import { transformJobResource } from "./resources/transform-job.js";
|
|
36
|
+
import { transformPythonResource } from "./resources/transform-python.js";
|
|
37
|
+
import { transformResource } from "./resources/transform.js";
|
|
38
|
+
import { transformTagResource } from "./resources/transform-tag.js";
|
|
39
|
+
import { transformTestResource } from "./resources/transform-test.js";
|
|
40
|
+
import { uploadResource } from "./resources/upload.js";
|
|
41
|
+
import { userResource } from "./resources/user.js";
|
|
42
|
+
//#region src/client.ts
|
|
43
|
+
function createClient(config, options) {
|
|
44
|
+
const transport = createTransport(config, options);
|
|
45
|
+
return {
|
|
46
|
+
card: cardResource(transport),
|
|
47
|
+
collection: collectionResource(transport),
|
|
48
|
+
contentTranslation: contentTranslationResource(transport),
|
|
49
|
+
dashboard: dashboardResource(transport),
|
|
50
|
+
dataAction: dataActionResource(transport),
|
|
51
|
+
database: databaseResource(transport),
|
|
52
|
+
dataset: datasetResource(transport),
|
|
53
|
+
dependency: dependencyResource(transport),
|
|
54
|
+
document: documentResource(transport),
|
|
55
|
+
eidTranslation: eidTranslationResource(transport),
|
|
56
|
+
erd: erdResource(transport),
|
|
57
|
+
field: fieldResource(transport),
|
|
58
|
+
gitSync: gitSyncResource(transport),
|
|
59
|
+
glossary: glossaryResource(transport),
|
|
60
|
+
library: libraryResource(transport),
|
|
61
|
+
measure: measureResource(transport),
|
|
62
|
+
metric: metricResource(transport),
|
|
63
|
+
moderationReview: moderationReviewResource(transport),
|
|
64
|
+
notification: notificationResource(transport),
|
|
65
|
+
permission: permissionResource(transport),
|
|
66
|
+
pulse: pulseResource(transport),
|
|
67
|
+
replacement: replacementResource(transport),
|
|
68
|
+
revision: revisionResource(transport),
|
|
69
|
+
search: searchResource(transport),
|
|
70
|
+
segment: segmentResource(transport),
|
|
71
|
+
setting: settingResource(transport),
|
|
72
|
+
setup: setupResource(transport),
|
|
73
|
+
snippet: snippetResource(transport),
|
|
74
|
+
table: tableResource(transport),
|
|
75
|
+
timeline: timelineResource(transport),
|
|
76
|
+
timelineEvent: timelineEventResource(transport),
|
|
77
|
+
transform: transformResource(transport),
|
|
78
|
+
transformDagRun: transformDagRunResource(transport),
|
|
79
|
+
transformInspector: transformInspectorResource(transport),
|
|
80
|
+
transformJob: transformJobResource(transport),
|
|
81
|
+
transformPython: transformPythonResource(transport),
|
|
82
|
+
transformTag: transformTagResource(transport),
|
|
83
|
+
transformTest: transformTestResource(transport),
|
|
84
|
+
upload: uploadResource(transport),
|
|
85
|
+
user: userResource(transport),
|
|
86
|
+
server: transport.server,
|
|
87
|
+
verifiedServer: transport.verifiedServer,
|
|
88
|
+
probesSettled: transport.probesSettled,
|
|
89
|
+
requestParsed: transport.requestParsed,
|
|
90
|
+
requestRaw: transport.requestRaw,
|
|
91
|
+
requestStream: transport.requestStream
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
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
|
+
transforms: "transforms";
|
|
21
|
+
snippets: "snippets";
|
|
22
|
+
analytics: "analytics";
|
|
23
|
+
"shared-tenant-collection": "shared-tenant-collection";
|
|
24
|
+
"tenant-specific": "tenant-specific";
|
|
25
|
+
"data-apps": "data-apps";
|
|
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
|
+
card: "card";
|
|
38
|
+
collection: "collection";
|
|
39
|
+
dashboard: "dashboard";
|
|
40
|
+
dataset: "dataset";
|
|
41
|
+
document: "document";
|
|
42
|
+
metric: "metric";
|
|
43
|
+
measure: "measure";
|
|
44
|
+
pulse: "pulse";
|
|
45
|
+
snippet: "snippet";
|
|
46
|
+
table: "table";
|
|
47
|
+
timeline: "timeline";
|
|
48
|
+
transform: "transform";
|
|
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
|
+
card: "card";
|
|
56
|
+
collection: "collection";
|
|
57
|
+
dashboard: "dashboard";
|
|
58
|
+
dataset: "dataset";
|
|
59
|
+
document: "document";
|
|
60
|
+
metric: "metric";
|
|
61
|
+
measure: "measure";
|
|
62
|
+
pulse: "pulse";
|
|
63
|
+
snippet: "snippet";
|
|
64
|
+
table: "table";
|
|
65
|
+
timeline: "timeline";
|
|
66
|
+
transform: "transform";
|
|
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
|
+
transforms: "transforms";
|
|
103
|
+
snippets: "snippets";
|
|
104
|
+
analytics: "analytics";
|
|
105
|
+
"shared-tenant-collection": "shared-tenant-collection";
|
|
106
|
+
"tenant-specific": "tenant-specific";
|
|
107
|
+
"data-apps": "data-apps";
|
|
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
|
+
name: z.ZodString;
|
|
127
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
128
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
+
authority_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
131
|
+
official: "official";
|
|
132
|
+
}>>>;
|
|
133
|
+
is_personal: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
is_remote_synced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
135
|
+
parent_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
136
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
namespace: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
138
|
+
transforms: "transforms";
|
|
139
|
+
snippets: "snippets";
|
|
140
|
+
analytics: "analytics";
|
|
141
|
+
"shared-tenant-collection": "shared-tenant-collection";
|
|
142
|
+
"tenant-specific": "tenant-specific";
|
|
143
|
+
"data-apps": "data-apps";
|
|
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
|
+
card: "card";
|
|
152
|
+
collection: "collection";
|
|
153
|
+
dashboard: "dashboard";
|
|
154
|
+
dataset: "dataset";
|
|
155
|
+
document: "document";
|
|
156
|
+
metric: "metric";
|
|
157
|
+
measure: "measure";
|
|
158
|
+
pulse: "pulse";
|
|
159
|
+
snippet: "snippet";
|
|
160
|
+
table: "table";
|
|
161
|
+
timeline: "timeline";
|
|
162
|
+
transform: "transform";
|
|
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
|
+
name: z.ZodString;
|
|
182
|
+
id: z.ZodNumber;
|
|
183
|
+
collection_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
184
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
185
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
186
|
+
model: z.ZodEnum<{
|
|
187
|
+
card: "card";
|
|
188
|
+
collection: "collection";
|
|
189
|
+
dashboard: "dashboard";
|
|
190
|
+
dataset: "dataset";
|
|
191
|
+
document: "document";
|
|
192
|
+
metric: "metric";
|
|
193
|
+
measure: "measure";
|
|
194
|
+
pulse: "pulse";
|
|
195
|
+
snippet: "snippet";
|
|
196
|
+
table: "table";
|
|
197
|
+
timeline: "timeline";
|
|
198
|
+
transform: "transform";
|
|
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
|
+
card: "card";
|
|
226
|
+
collection: "collection";
|
|
227
|
+
dashboard: "dashboard";
|
|
228
|
+
dataset: "dataset";
|
|
229
|
+
document: "document";
|
|
230
|
+
metric: "metric";
|
|
231
|
+
measure: "measure";
|
|
232
|
+
pulse: "pulse";
|
|
233
|
+
snippet: "snippet";
|
|
234
|
+
table: "table";
|
|
235
|
+
timeline: "timeline";
|
|
236
|
+
transform: "transform";
|
|
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
|
+
card: "card";
|
|
244
|
+
collection: "collection";
|
|
245
|
+
dashboard: "dashboard";
|
|
246
|
+
dataset: "dataset";
|
|
247
|
+
document: "document";
|
|
248
|
+
metric: "metric";
|
|
249
|
+
measure: "measure";
|
|
250
|
+
pulse: "pulse";
|
|
251
|
+
snippet: "snippet";
|
|
252
|
+
table: "table";
|
|
253
|
+
timeline: "timeline";
|
|
254
|
+
transform: "transform";
|
|
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
|
+
transforms: "transforms";
|
|
271
|
+
snippets: "snippets";
|
|
272
|
+
analytics: "analytics";
|
|
273
|
+
"shared-tenant-collection": "shared-tenant-collection";
|
|
274
|
+
"tenant-specific": "tenant-specific";
|
|
275
|
+
"data-apps": "data-apps";
|
|
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,39 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-E0ZaPNWJ.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
import { n as Page, r as PaginateOptions } from "./paginate-DZWvWvbm.js";
|
|
4
|
+
import { c as CollectionId, d as CollectionItemFilterModel, g as CollectionTreeNode, h as CollectionPinnedState, i as Collection, l as CollectionItem, m as CollectionNamespace, p as CollectionListFilter, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-Bib61WiV.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: CollectionId, params?: CollectionItemListParams, options?: CollectionItemPageOptions) => AsyncIterable<Page<CollectionItem>>;
|
|
36
|
+
tree: (params?: CollectionTreeParams, options?: RequestOptions) => Promise<ListResult<CollectionTreeNode>>;
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
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-E0ZaPNWJ.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
import { _ as DashcardPatchInput, a as DashboardCopyInput, c as DashboardListFilter, g as DashcardDetail, l as DashboardParameterConstraints, o as DashboardCreateInput, p as DashboardUpdateInput, r as DashboardCopy, s as DashboardDetail, t as Dashboard } from "./dashboard-z9i1VUZC.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 };
|