@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
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-E0ZaPNWJ.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
//#region src/resources/replacement.d.ts
|
|
4
|
+
interface ReplacementRunListParams {
|
|
5
|
+
"is-active"?: boolean | undefined;
|
|
6
|
+
}
|
|
7
|
+
declare function replacementResource(transport: Transport): {
|
|
8
|
+
checkReplaceSource: (params: {
|
|
9
|
+
source_entity_id: number;
|
|
10
|
+
source_entity_type: "card" | "table";
|
|
11
|
+
target_entity_id: number;
|
|
12
|
+
target_entity_type: "card" | "table";
|
|
13
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
14
|
+
success: boolean;
|
|
15
|
+
errors?: ("cycle-detected" | "database-mismatch" | "incompatible-implicit-joins" | "affects-gtap-policies")[] | undefined;
|
|
16
|
+
column_mappings?: ({
|
|
17
|
+
source: {
|
|
18
|
+
id: number | null;
|
|
19
|
+
name: string;
|
|
20
|
+
display_name: string;
|
|
21
|
+
base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
|
|
22
|
+
effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
|
|
23
|
+
semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
|
|
24
|
+
};
|
|
25
|
+
target: {
|
|
26
|
+
id: number | null;
|
|
27
|
+
name: string;
|
|
28
|
+
display_name: string;
|
|
29
|
+
base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
|
|
30
|
+
effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
|
|
31
|
+
semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
|
|
32
|
+
};
|
|
33
|
+
errors?: ("column-type-mismatch" | "missing-primary-key" | "missing-foreign-key" | "foreign-key-mismatch")[] | undefined;
|
|
34
|
+
} | {
|
|
35
|
+
source: {
|
|
36
|
+
id: number | null;
|
|
37
|
+
name: string;
|
|
38
|
+
display_name: string;
|
|
39
|
+
base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
|
|
40
|
+
effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
|
|
41
|
+
semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
target: {
|
|
45
|
+
id: number | null;
|
|
46
|
+
name: string;
|
|
47
|
+
display_name: string;
|
|
48
|
+
base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
|
|
49
|
+
effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
|
|
50
|
+
semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
|
|
51
|
+
};
|
|
52
|
+
})[] | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
replaceSource: (params: {
|
|
55
|
+
source_entity_id: number;
|
|
56
|
+
source_entity_type: "card" | "table";
|
|
57
|
+
target_entity_id: number;
|
|
58
|
+
target_entity_type: "card" | "table";
|
|
59
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
60
|
+
run_id: number;
|
|
61
|
+
}>;
|
|
62
|
+
replaceModelWithTransform: (params: {
|
|
63
|
+
card_id: number;
|
|
64
|
+
transform_name: string;
|
|
65
|
+
transform_target: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
type: "table";
|
|
68
|
+
name: string;
|
|
69
|
+
database?: number | undefined;
|
|
70
|
+
schema?: string | null | undefined;
|
|
71
|
+
} | {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
type: "table-incremental";
|
|
74
|
+
name: string;
|
|
75
|
+
"target-incremental-strategy": {
|
|
76
|
+
[x: string]: unknown;
|
|
77
|
+
type: "append";
|
|
78
|
+
} | {
|
|
79
|
+
[x: string]: unknown;
|
|
80
|
+
type: "merge";
|
|
81
|
+
"unique-key": {
|
|
82
|
+
[x: string]: unknown;
|
|
83
|
+
name?: string | undefined;
|
|
84
|
+
"field-id"?: number | null | undefined;
|
|
85
|
+
}[];
|
|
86
|
+
};
|
|
87
|
+
database?: number | undefined;
|
|
88
|
+
schema?: string | null | undefined;
|
|
89
|
+
};
|
|
90
|
+
target_collection_id?: number | null | undefined;
|
|
91
|
+
transform_tag_ids?: number[] | null | undefined;
|
|
92
|
+
}, options?: RequestOptions | undefined) => Promise<{
|
|
93
|
+
run_id: number;
|
|
94
|
+
}>;
|
|
95
|
+
listRuns: (params?: ReplacementRunListParams | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
|
|
96
|
+
[x: string]: unknown;
|
|
97
|
+
id: number;
|
|
98
|
+
status: "timeout" | "failed" | "pending" | "started" | "succeeded" | "canceled";
|
|
99
|
+
is_active: true | null;
|
|
100
|
+
source_entity_type: "card" | "table" | "transform";
|
|
101
|
+
source_entity_id: number;
|
|
102
|
+
target_entity_type: "card" | "table" | "transform";
|
|
103
|
+
target_entity_id: number;
|
|
104
|
+
progress: number | null;
|
|
105
|
+
message: string | null;
|
|
106
|
+
user_id: number | null;
|
|
107
|
+
start_time: string;
|
|
108
|
+
end_time: string | null;
|
|
109
|
+
}>>;
|
|
110
|
+
getRun: (id: number, options?: RequestOptions | undefined) => Promise<{
|
|
111
|
+
[x: string]: unknown;
|
|
112
|
+
id: number;
|
|
113
|
+
status: "timeout" | "failed" | "pending" | "started" | "succeeded" | "canceled";
|
|
114
|
+
is_active: true | null;
|
|
115
|
+
source_entity_type: "card" | "table" | "transform";
|
|
116
|
+
source_entity_id: number;
|
|
117
|
+
target_entity_type: "card" | "table" | "transform";
|
|
118
|
+
target_entity_id: number;
|
|
119
|
+
progress: number | null;
|
|
120
|
+
message: string | null;
|
|
121
|
+
user_id: number | null;
|
|
122
|
+
start_time: string;
|
|
123
|
+
end_time: string | null;
|
|
124
|
+
}>;
|
|
125
|
+
cancelRun: (id: number, options?: RequestOptions | undefined) => Promise<void>;
|
|
126
|
+
};
|
|
127
|
+
//#endregion
|
|
128
|
+
export { replacementResource as n, ReplacementRunListParams as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { i as FeatureName } from "./features-CnFkUCj2.js";
|
|
2
|
+
import { b as RequirementFailure, yt as ServerProfile } from "./transport-E0ZaPNWJ.js";
|
|
3
|
+
//#region src/version/requirement-check.d.ts
|
|
4
|
+
/** The first of `features` the profile lacks, or `null` when it has every one. */
|
|
5
|
+
declare function checkFeatures(features: readonly FeatureName[], profile: ServerProfile): RequirementFailure | null;
|
|
6
|
+
/**
|
|
7
|
+
* The verdict that the profile has `feature`, which takes the value `detail` describes out of the
|
|
8
|
+
* server's vocabulary, or `null` when the profile lacks it.
|
|
9
|
+
*/
|
|
10
|
+
declare function supersedingFeature(feature: FeatureName, profile: ServerProfile, detail: string): RequirementFailure | null;
|
|
11
|
+
/**
|
|
12
|
+
* Every one of `features` the profile lacks, each once and in the order given, so a caller that
|
|
13
|
+
* goes on past the first still hears of the rest.
|
|
14
|
+
*/
|
|
15
|
+
declare function featureFailures(features: readonly FeatureName[], profile: ServerProfile): RequirementFailure[];
|
|
16
|
+
//#endregion
|
|
17
|
+
export { featureFailures as n, supersedingFeature as r, checkFeatures as t };
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { i as FeatureName } from "./features-CnFkUCj2.js";
|
|
2
|
+
//#region src/version/requirements.d.ts
|
|
3
|
+
declare const METHOD_REQUIREMENTS: {
|
|
4
|
+
"card.list": never[];
|
|
5
|
+
"card.get": never[];
|
|
6
|
+
"card.create": never[];
|
|
7
|
+
"card.update": never[];
|
|
8
|
+
"card.archive": never[];
|
|
9
|
+
"card.query": never[];
|
|
10
|
+
"card.exportQuery": never[];
|
|
11
|
+
"card.queryMetadata": never[];
|
|
12
|
+
"collection.list": never[];
|
|
13
|
+
"collection.get": never[];
|
|
14
|
+
"collection.create": never[];
|
|
15
|
+
"collection.update": never[];
|
|
16
|
+
"collection.archive": never[];
|
|
17
|
+
"collection.itemPages": never[];
|
|
18
|
+
"collection.tree": never[];
|
|
19
|
+
"contentTranslation.download": "contentTranslation"[];
|
|
20
|
+
"contentTranslation.upload": "contentTranslation"[];
|
|
21
|
+
"dashboard.list": never[];
|
|
22
|
+
"dashboard.get": never[];
|
|
23
|
+
"dashboard.create": never[];
|
|
24
|
+
"dashboard.update": never[];
|
|
25
|
+
"dashboard.archive": never[];
|
|
26
|
+
"dashboard.copy": never[];
|
|
27
|
+
"dashboard.updateDashcard": never[];
|
|
28
|
+
"dashboard.checkCardReferences": never[];
|
|
29
|
+
"dashboard.parameterValues": never[];
|
|
30
|
+
"dashboard.searchParameterValues": never[];
|
|
31
|
+
"dataAction.list": never[];
|
|
32
|
+
"dataAction.get": never[];
|
|
33
|
+
"dataAction.create": "dataActionsWithoutModel"[];
|
|
34
|
+
"dataAction.update": never[];
|
|
35
|
+
"dataAction.archive": never[];
|
|
36
|
+
"dataAction.delete": never[];
|
|
37
|
+
"dataAction.execute": never[];
|
|
38
|
+
"database.list": never[];
|
|
39
|
+
"database.get": never[];
|
|
40
|
+
"database.update": never[];
|
|
41
|
+
"database.schemas": never[];
|
|
42
|
+
"database.schemaTables": never[];
|
|
43
|
+
"database.syncSchema": never[];
|
|
44
|
+
"database.rescanValues": never[];
|
|
45
|
+
"dataset.query": never[];
|
|
46
|
+
"dataset.native": never[];
|
|
47
|
+
"dataset.queryMetadata": never[];
|
|
48
|
+
"dataset.exportQuery": never[];
|
|
49
|
+
"dependency.breakingPages": "dependencyItemListings"[];
|
|
50
|
+
"dependency.broken": "dependencyItemListings"[];
|
|
51
|
+
"dependency.dependents": "dependencyItemListings"[];
|
|
52
|
+
"dependency.graph": "dependencyGraph"[];
|
|
53
|
+
"dependency.unreferencedPages": "dependencyItemListings"[];
|
|
54
|
+
"document.list": never[];
|
|
55
|
+
"document.get": never[];
|
|
56
|
+
"document.create": never[];
|
|
57
|
+
"document.update": never[];
|
|
58
|
+
"document.archive": never[];
|
|
59
|
+
"document.copy": "documentCopy"[];
|
|
60
|
+
"eidTranslation.translate": never[];
|
|
61
|
+
"erd.get": "erd"[];
|
|
62
|
+
"field.get": never[];
|
|
63
|
+
"field.update": never[];
|
|
64
|
+
"field.setDataSensitivity": "fieldDataSensitivity"[];
|
|
65
|
+
"field.search": never[];
|
|
66
|
+
"field.remapping": never[];
|
|
67
|
+
"field.summary": never[];
|
|
68
|
+
"field.values": never[];
|
|
69
|
+
"gitSync.currentTask": "remoteSync"[];
|
|
70
|
+
"gitSync.cancelTask": "remoteSync"[];
|
|
71
|
+
"gitSync.isDirty": "remoteSync"[];
|
|
72
|
+
"gitSync.dirty": "remoteSync"[];
|
|
73
|
+
"gitSync.hasRemoteChanges": "remoteSyncRemoteChanges"[];
|
|
74
|
+
"gitSync.import": "remoteSync"[];
|
|
75
|
+
"gitSync.export": "remoteSync"[];
|
|
76
|
+
"gitSync.exportPreflight": "remoteSyncExportPreflight"[];
|
|
77
|
+
"gitSync.stash": "remoteSync"[];
|
|
78
|
+
"gitSync.branches": "remoteSync"[];
|
|
79
|
+
"gitSync.createBranch": "remoteSync"[];
|
|
80
|
+
"gitSync.setCollectionSynced": "remoteSync"[];
|
|
81
|
+
"gitSync.syncedCollections": "remoteSync"[];
|
|
82
|
+
"gitSync.remoteUrl": never[];
|
|
83
|
+
"gitSync.branch": "remoteSync"[];
|
|
84
|
+
"gitSync.remote": "remoteSync"[];
|
|
85
|
+
"gitSync.trackedBranch": "remoteSync"[];
|
|
86
|
+
"gitSync.waitForTask": "remoteSync"[];
|
|
87
|
+
"glossary.list": never[];
|
|
88
|
+
"glossary.create": never[];
|
|
89
|
+
"glossary.update": never[];
|
|
90
|
+
"glossary.delete": never[];
|
|
91
|
+
"library.get": "library"[];
|
|
92
|
+
"library.create": "library"[];
|
|
93
|
+
"library.ensureDataCollectionId": "library"[];
|
|
94
|
+
"library.publishTables": "library"[];
|
|
95
|
+
"library.unpublishTables": "library"[];
|
|
96
|
+
"metric.query": "metricDefinitionQuery"[];
|
|
97
|
+
"metric.breakoutValues": "metricDefinitionQuery"[];
|
|
98
|
+
"metric.dimensions": "metricDimensionListing"[];
|
|
99
|
+
"measure.list": "measures"[];
|
|
100
|
+
"measure.get": "measures"[];
|
|
101
|
+
"measure.create": "measures"[];
|
|
102
|
+
"measure.update": "measures"[];
|
|
103
|
+
"measure.archive": "measures"[];
|
|
104
|
+
"moderationReview.create": "contentVerification"[];
|
|
105
|
+
"notification.list": never[];
|
|
106
|
+
"notification.get": never[];
|
|
107
|
+
"notification.create": never[];
|
|
108
|
+
"notification.update": never[];
|
|
109
|
+
"notification.archive": never[];
|
|
110
|
+
"notification.send": never[];
|
|
111
|
+
"permission.graph": never[];
|
|
112
|
+
"permission.databaseGraph": never[];
|
|
113
|
+
"permission.groupGraph": never[];
|
|
114
|
+
"pulse.list": never[];
|
|
115
|
+
"pulse.get": never[];
|
|
116
|
+
"pulse.create": never[];
|
|
117
|
+
"pulse.update": never[];
|
|
118
|
+
"pulse.archive": never[];
|
|
119
|
+
"replacement.checkReplaceSource": "sourceReplacement"[];
|
|
120
|
+
"replacement.replaceSource": "sourceReplacement"[];
|
|
121
|
+
"replacement.replaceModelWithTransform": "sourceReplacement"[];
|
|
122
|
+
"replacement.listRuns": "sourceReplacement"[];
|
|
123
|
+
"replacement.getRun": "sourceReplacement"[];
|
|
124
|
+
"replacement.cancelRun": "sourceReplacement"[];
|
|
125
|
+
"revision.list": never[];
|
|
126
|
+
"revision.revert": never[];
|
|
127
|
+
"search.query": never[];
|
|
128
|
+
"segment.list": never[];
|
|
129
|
+
"segment.get": never[];
|
|
130
|
+
"segment.create": never[];
|
|
131
|
+
"segment.update": never[];
|
|
132
|
+
"segment.archive": never[];
|
|
133
|
+
"setting.list": never[];
|
|
134
|
+
"setting.get": never[];
|
|
135
|
+
"setting.set": never[];
|
|
136
|
+
"setup.create": never[];
|
|
137
|
+
"snippet.list": never[];
|
|
138
|
+
"snippet.get": never[];
|
|
139
|
+
"snippet.create": never[];
|
|
140
|
+
"snippet.update": never[];
|
|
141
|
+
"snippet.archive": never[];
|
|
142
|
+
"table.list": never[];
|
|
143
|
+
"table.get": never[];
|
|
144
|
+
"table.update": never[];
|
|
145
|
+
"table.queryMetadata": never[];
|
|
146
|
+
"table.fks": never[];
|
|
147
|
+
"table.syncSchema": never[];
|
|
148
|
+
"table.rescanValues": never[];
|
|
149
|
+
"table.discardValues": never[];
|
|
150
|
+
"table.bulkEdit": "bulkTableEdit"[];
|
|
151
|
+
"table.bulkSyncSchema": "bulkTableSync"[];
|
|
152
|
+
"table.bulkRescanValues": "bulkTableSync"[];
|
|
153
|
+
"table.bulkDiscardValues": "bulkTableSync"[];
|
|
154
|
+
"table.appendCsv": never[];
|
|
155
|
+
"table.replaceCsv": never[];
|
|
156
|
+
"timeline.list": never[];
|
|
157
|
+
"timeline.get": never[];
|
|
158
|
+
"timeline.events": never[];
|
|
159
|
+
"timeline.create": never[];
|
|
160
|
+
"timeline.update": never[];
|
|
161
|
+
"timeline.archive": never[];
|
|
162
|
+
"timeline.delete": never[];
|
|
163
|
+
"timelineEvent.get": never[];
|
|
164
|
+
"timelineEvent.create": never[];
|
|
165
|
+
"timelineEvent.update": never[];
|
|
166
|
+
"timelineEvent.archive": never[];
|
|
167
|
+
"timelineEvent.delete": never[];
|
|
168
|
+
"transform.list": "transforms"[];
|
|
169
|
+
"transform.get": "transforms"[];
|
|
170
|
+
"transform.create": "transforms"[];
|
|
171
|
+
"transform.update": "transforms"[];
|
|
172
|
+
"transform.delete": "transforms"[];
|
|
173
|
+
"transform.deleteTable": "transforms"[];
|
|
174
|
+
"transform.dependencies": "transforms"[];
|
|
175
|
+
"transform.cancel": "transforms"[];
|
|
176
|
+
"transform.getRun": "transforms"[];
|
|
177
|
+
"transform.runPages": "transforms"[];
|
|
178
|
+
"transform.runSummaryPages": ("transforms" | "unifiedTransformRuns")[];
|
|
179
|
+
"transform.resetCheckpoint": ("transforms" | "transformCheckpointReset")[];
|
|
180
|
+
"transform.runDag": ("transforms" | "transformDagRuns")[];
|
|
181
|
+
"transform.dagTransforms": ("transforms" | "transformDagRuns")[];
|
|
182
|
+
"transform.run": "transforms"[];
|
|
183
|
+
"transformDagRun.transformRuns": ("transforms" | "transformDagRuns")[];
|
|
184
|
+
"transformDagRun.cancel": ("transforms" | "transformDagRuns")[];
|
|
185
|
+
"transformInspector.discover": "transformInspector"[];
|
|
186
|
+
"transformInspector.lens": "transformInspector"[];
|
|
187
|
+
"transformInspector.query": "transformInspector"[];
|
|
188
|
+
"transformJob.list": "transforms"[];
|
|
189
|
+
"transformJob.get": "transforms"[];
|
|
190
|
+
"transformJob.create": "transforms"[];
|
|
191
|
+
"transformJob.update": "transforms"[];
|
|
192
|
+
"transformJob.delete": "transforms"[];
|
|
193
|
+
"transformJob.run": "transforms"[];
|
|
194
|
+
"transformJob.transforms": "transforms"[];
|
|
195
|
+
"transformJob.setActive": ("transforms" | "transformJobActivation")[];
|
|
196
|
+
"transformPython.getLibrary": "pythonLibrary"[];
|
|
197
|
+
"transformPython.updateLibrary": "pythonLibrary"[];
|
|
198
|
+
"transformPython.testRun": "pythonTestRun"[];
|
|
199
|
+
"transformTag.list": "transforms"[];
|
|
200
|
+
"transformTag.create": "transforms"[];
|
|
201
|
+
"transformTag.update": "transforms"[];
|
|
202
|
+
"transformTag.delete": "transforms"[];
|
|
203
|
+
"transformTest.list": "transformTests"[];
|
|
204
|
+
"transformTest.get": "transformTests"[];
|
|
205
|
+
"transformTest.create": "transformTests"[];
|
|
206
|
+
"transformTest.update": "transformTests"[];
|
|
207
|
+
"transformTest.delete": "transformTests"[];
|
|
208
|
+
"transformTest.run": "transformTests"[];
|
|
209
|
+
"upload.createFromCsv": never[];
|
|
210
|
+
"user.current": never[];
|
|
211
|
+
};
|
|
212
|
+
type MethodKey = keyof typeof METHOD_REQUIREMENTS;
|
|
213
|
+
declare function isMethodKey(key: string): key is MethodKey;
|
|
214
|
+
declare const METHOD_KEYS: ReadonlyArray<MethodKey>;
|
|
215
|
+
declare function methodRequirements(key: MethodKey): readonly FeatureName[];
|
|
216
|
+
//#endregion
|
|
217
|
+
export { methodRequirements as a, isMethodKey as i, METHOD_REQUIREMENTS as n, MethodKey as r, METHOD_KEYS as t };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Card, CardDetail, CardQueryResult } from "../domain/card.js";
|
|
2
|
+
import { QueryMetadata } from "../domain/dataset.js";
|
|
3
|
+
import { assertPivotedExport } from "./pivot-export.js";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
//#region src/resources/card.ts
|
|
6
|
+
const CardApiList = z.array(Card);
|
|
7
|
+
function cardResource(transport) {
|
|
8
|
+
/** List cards. `f` picks a server-side preset; `model_id` scopes the presets that need an id. */
|
|
9
|
+
async function list(params = {}, options = {}) {
|
|
10
|
+
return {
|
|
11
|
+
data: await transport.requestParsed(CardApiList, "/api/card", {
|
|
12
|
+
...options,
|
|
13
|
+
query: {
|
|
14
|
+
f: params.f,
|
|
15
|
+
model_id: params.model_id
|
|
16
|
+
}
|
|
17
|
+
}),
|
|
18
|
+
total: null
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/** Get one card by id. */
|
|
22
|
+
async function get(id, options = {}) {
|
|
23
|
+
return transport.requestParsed(CardDetail, `/api/card/${id}`, { ...options });
|
|
24
|
+
}
|
|
25
|
+
/** Create a card — a question, a model, or a metric — from a full card body. */
|
|
26
|
+
async function create(params, options = {}) {
|
|
27
|
+
return transport.requestParsed(CardDetail, "/api/card", {
|
|
28
|
+
...options,
|
|
29
|
+
method: "POST",
|
|
30
|
+
body: params
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/** Update a card by id, patching only the fields the body carries. */
|
|
34
|
+
async function update(id, params, options = {}) {
|
|
35
|
+
return transport.requestParsed(CardDetail, `/api/card/${id}`, {
|
|
36
|
+
...options,
|
|
37
|
+
method: "PUT",
|
|
38
|
+
body: params
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/** Archive (soft-delete) a card by id. Metabase models this as an update, not its own endpoint. */
|
|
42
|
+
async function archive(id, options = {}) {
|
|
43
|
+
return update(id, { archived: true }, options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Run the query associated with a Card and return the query result envelope. A result served
|
|
47
|
+
* from the cache carries the time it was computed in `cached`; `ignore_cache` runs the query
|
|
48
|
+
* against the database instead. The rows stop at the server's row limit for an API run, which
|
|
49
|
+
* `rows_truncated` carries when it cut them; `exportQuery` runs under the larger download limit.
|
|
50
|
+
*/
|
|
51
|
+
async function query(id, params, options = {}) {
|
|
52
|
+
return transport.requestParsed(CardQueryResult, `/api/card/${id}/query`, {
|
|
53
|
+
...options,
|
|
54
|
+
method: "POST",
|
|
55
|
+
body: {
|
|
56
|
+
parameters: params.parameters,
|
|
57
|
+
ignore_cache: params.ignore_cache
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Run the query associated with a Card, and return its results as a file in the specified
|
|
63
|
+
* format. Unlike `query`, this endpoint takes a form-encoded body and answers bytes, so a caller
|
|
64
|
+
* consumes the stream rather than a value. A pivot the server would answer with plain rows (a
|
|
65
|
+
* JSON export, or pivoted exports turned off) is refused. `csv_include_bom` opens a CSV with a
|
|
66
|
+
* UTF-8 byte order mark; a server without it drops the key silently, so asking for one is refused
|
|
67
|
+
* there before the wire.
|
|
68
|
+
*/
|
|
69
|
+
async function exportQuery(id, format, params, options = {}) {
|
|
70
|
+
if (params.pivot_results) await assertPivotedExport(transport, format, options);
|
|
71
|
+
await transport.requireFeatures(params.csv_include_bom ? ["exportCsvByteOrderMark"] : [], options);
|
|
72
|
+
const body = new URLSearchParams({
|
|
73
|
+
parameters: JSON.stringify(params.parameters),
|
|
74
|
+
format_rows: String(params.format_rows),
|
|
75
|
+
pivot_results: String(params.pivot_results),
|
|
76
|
+
csv_include_bom: String(params.csv_include_bom)
|
|
77
|
+
});
|
|
78
|
+
return transport.requestStream(`/api/card/${id}/query/${format}`, {
|
|
79
|
+
...options,
|
|
80
|
+
method: "POST",
|
|
81
|
+
body
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Get all of the required query metadata for a saved card: the databases, tables, fields and
|
|
86
|
+
* snippets its query references, plus the card's own metadata for a model or a native query.
|
|
87
|
+
*/
|
|
88
|
+
async function queryMetadata(id, options = {}) {
|
|
89
|
+
return transport.requestParsed(QueryMetadata, `/api/card/${id}/query_metadata`, { ...options });
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
list,
|
|
93
|
+
get,
|
|
94
|
+
create,
|
|
95
|
+
update,
|
|
96
|
+
archive,
|
|
97
|
+
query,
|
|
98
|
+
exportQuery,
|
|
99
|
+
queryMetadata
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
export { cardResource };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as collectionResource, i as CollectionTreeParams, n as CollectionItemPageOptions, o as listCollectionsAs, r as CollectionListParams, t as CollectionItemListParams } from "../collection-CqtGPi4W.js";
|
|
2
|
+
export { CollectionItemListParams, CollectionItemPageOptions, CollectionListParams, CollectionTreeParams, collectionResource, listCollectionsAs };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Collection, CollectionItem, CollectionTreeNode } from "../domain/collection.js";
|
|
2
|
+
import { paginatePages } from "../paginate.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
//#region src/resources/collection.ts
|
|
5
|
+
const CollectionApiList = z.array(Collection);
|
|
6
|
+
const CollectionTreeApiList = z.array(CollectionTreeNode);
|
|
7
|
+
const COLLECTION_LIST_QUERY = {
|
|
8
|
+
all: {},
|
|
9
|
+
archived: { archived: true },
|
|
10
|
+
personal: { "personal-only": true }
|
|
11
|
+
};
|
|
12
|
+
const DEFAULT_LIST_FILTER = "all";
|
|
13
|
+
function refPath(ref) {
|
|
14
|
+
return encodeURIComponent(ref);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* List every collection the caller can read, the Library and its children among them, parsing each
|
|
18
|
+
* through the caller's own projection. `Collection` pins `type`, `namespace` and `authority_level`
|
|
19
|
+
* to closed enums, so a consumer reading a few fields off every collection on the instance narrows
|
|
20
|
+
* here: one collection carrying a server value outside those sets then costs nothing to a caller
|
|
21
|
+
* that never reads the field.
|
|
22
|
+
*/
|
|
23
|
+
async function listCollectionsAs(transport, schema, options = {}) {
|
|
24
|
+
return transport.requestParsed(z.array(schema), "/api/collection", { ...options });
|
|
25
|
+
}
|
|
26
|
+
function collectionResource(transport) {
|
|
27
|
+
/**
|
|
28
|
+
* List collections. `filter` picks a server-side preset: everything, archived, or personal. Every
|
|
29
|
+
* preset includes the Library collections that match it. `namespace` lists that namespace's
|
|
30
|
+
* collections, with its root, instead of the default namespace's.
|
|
31
|
+
*/
|
|
32
|
+
async function list(params = {}, options = {}) {
|
|
33
|
+
return {
|
|
34
|
+
data: await transport.requestParsed(CollectionApiList, "/api/collection", {
|
|
35
|
+
...options,
|
|
36
|
+
query: {
|
|
37
|
+
...COLLECTION_LIST_QUERY[params.filter ?? DEFAULT_LIST_FILTER],
|
|
38
|
+
namespace: params.namespace
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
total: null
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/** Get one collection by id, entity id, or the `root`/`trash` alias. */
|
|
45
|
+
async function get(ref, options = {}) {
|
|
46
|
+
return transport.requestParsed(Collection, `/api/collection/${refPath(ref)}`, { ...options });
|
|
47
|
+
}
|
|
48
|
+
/** Create a new collection. */
|
|
49
|
+
async function create(params, options = {}) {
|
|
50
|
+
return transport.requestParsed(Collection, "/api/collection", {
|
|
51
|
+
...options,
|
|
52
|
+
method: "POST",
|
|
53
|
+
body: params
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Update a collection, patching the fields the body carries. The server reads an absent
|
|
58
|
+
* `archived` as `false`, so a patch without it restores an archived collection, and a patch that
|
|
59
|
+
* moves a collection into the trash ignores `parent_id`.
|
|
60
|
+
*/
|
|
61
|
+
async function update(ref, params, options = {}) {
|
|
62
|
+
return transport.requestParsed(Collection, `/api/collection/${refPath(ref)}`, {
|
|
63
|
+
...options,
|
|
64
|
+
method: "PUT",
|
|
65
|
+
body: params
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/** Archive (soft-delete) a collection. Metabase models this as an update, not its own endpoint. */
|
|
69
|
+
async function archive(ref, options = {}) {
|
|
70
|
+
return update(ref, { archived: true }, options);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Walk the items inside a collection one page at a time. This endpoint pages on the server, so
|
|
74
|
+
* the caller consumes pages rather than a single list and decides how far to pull.
|
|
75
|
+
*/
|
|
76
|
+
async function* itemPages(ref, params = {}, options = {}) {
|
|
77
|
+
yield* paginatePages(transport, `/api/collection/${refPath(ref)}/items`, CollectionItem, {
|
|
78
|
+
query: {
|
|
79
|
+
models: params.models,
|
|
80
|
+
archived: params.archived,
|
|
81
|
+
pinned_state: params.pinned_state
|
|
82
|
+
},
|
|
83
|
+
...options.offset !== void 0 && { offset: options.offset },
|
|
84
|
+
...options.max !== void 0 && { max: options.max },
|
|
85
|
+
...options.pageSize !== void 0 && { pageSize: options.pageSize },
|
|
86
|
+
...options.signal !== void 0 && { signal: options.signal }
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/** Fetch the collection hierarchy as a forest of nested nodes. */
|
|
90
|
+
async function tree(params = {}, options = {}) {
|
|
91
|
+
return {
|
|
92
|
+
data: await transport.requestParsed(CollectionTreeApiList, "/api/collection/tree", {
|
|
93
|
+
...options,
|
|
94
|
+
query: { "include-library": params["include-library"] }
|
|
95
|
+
}),
|
|
96
|
+
total: null
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
list,
|
|
101
|
+
get,
|
|
102
|
+
create,
|
|
103
|
+
update,
|
|
104
|
+
archive,
|
|
105
|
+
itemPages,
|
|
106
|
+
tree
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
//#endregion
|
|
110
|
+
export { collectionResource, listCollectionsAs };
|