@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,50 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-E0ZaPNWJ.js";
|
|
2
|
+
import { a as FieldDataSensitivity, c as FieldSearchMatches, d as FieldUpdateInput, f as FieldValues, o as FieldDetail, s as FieldRemappedValue, u as FieldSummary } from "./field-BCRO19mk.js";
|
|
3
|
+
//#region src/resources/field.d.ts
|
|
4
|
+
interface FieldSearchByValue {
|
|
5
|
+
value: string;
|
|
6
|
+
limit?: number | undefined;
|
|
7
|
+
}
|
|
8
|
+
interface FieldSearchBounded {
|
|
9
|
+
value?: undefined;
|
|
10
|
+
limit: number;
|
|
11
|
+
}
|
|
12
|
+
type FieldSearchParams = FieldSearchByValue | FieldSearchBounded;
|
|
13
|
+
interface FieldRemappingParams {
|
|
14
|
+
value: string;
|
|
15
|
+
}
|
|
16
|
+
interface FieldSetDataSensitivityParams {
|
|
17
|
+
data_sensitivity: FieldDataSensitivity | null;
|
|
18
|
+
}
|
|
19
|
+
declare function fieldResource(transport: Transport): {
|
|
20
|
+
get: (id: number, options?: RequestOptions) => Promise<FieldDetail>;
|
|
21
|
+
update: (id: number, params: FieldUpdateInput, options?: RequestOptions) => Promise<FieldDetail>;
|
|
22
|
+
setDataSensitivity: (id: number, params: FieldSetDataSensitivityParams, options?: RequestOptions | undefined) => Promise<{
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
id: number;
|
|
25
|
+
table_id: number;
|
|
26
|
+
name: string;
|
|
27
|
+
display_name: string;
|
|
28
|
+
description: string | null;
|
|
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";
|
|
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
|
+
coercion_strategy: "Coercion/String->Temporal" | "Coercion/ISO8601->Temporal" | "Coercion/ISO8601->DateTime" | "Coercion/ISO8601->Time" | "Coercion/ISO8601->Date" | "Coercion/YYYYMMDDHHMMSSString->Temporal" | "Coercion/Bytes->Temporal" | "Coercion/YYYYMMDDHHMMSSBytes->Temporal" | "Coercion/ISO8601Bytes->Temporal" | "Coercion/Number->Temporal" | "Coercion/UNIXTime->Temporal" | "Coercion/UNIXSeconds->DateTime" | "Coercion/UNIXMilliSeconds->DateTime" | "Coercion/UNIXMicroSeconds->DateTime" | "Coercion/UNIXNanoSeconds->DateTime" | "Coercion/Temporal->Temporal" | "Coercion/DateTime->Date" | "Coercion/String->Number" | "Coercion/String->Float" | "Coercion/String->Integer" | "Coercion/Float->Integer" | null;
|
|
32
|
+
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;
|
|
33
|
+
fk_target_field_id: number | null;
|
|
34
|
+
database_is_pk: boolean | null;
|
|
35
|
+
parent_id: number | null;
|
|
36
|
+
nfc_path: string[] | null;
|
|
37
|
+
data_sensitivity: "SEC_KEY" | "SYS_TELEMETRY" | "PHI" | "BIO_GEN" | "PCI_FIN" | "SENS_PERS" | "PII" | "CORP_IP" | "BIZ_CONF" | "PUBLIC" | null;
|
|
38
|
+
database_type?: string | null | undefined;
|
|
39
|
+
has_field_values?: "list" | "search" | "none" | "auto-list" | null | undefined;
|
|
40
|
+
visibility_type?: "hidden" | "details-only" | "normal" | "retired" | "sensitive" | null | undefined;
|
|
41
|
+
active?: boolean | undefined;
|
|
42
|
+
position?: number | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
search: (id: number, searchId: number, params: FieldSearchParams, options?: RequestOptions) => Promise<FieldSearchMatches>;
|
|
45
|
+
remapping: (id: number, remappedId: number, params: FieldRemappingParams, options?: RequestOptions) => Promise<FieldRemappedValue | null>;
|
|
46
|
+
summary: (id: number, options?: RequestOptions) => Promise<FieldSummary>;
|
|
47
|
+
values: (id: number, options?: RequestOptions) => Promise<FieldValues>;
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { FieldSetDataSensitivityParams as a, FieldSearchParams as i, FieldSearchBounded as n, fieldResource as o, FieldSearchByValue as r, FieldRemappingParams as t };
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/git-sync.d.ts
|
|
3
|
+
declare const SyncTaskStatus: z.ZodEnum<{
|
|
4
|
+
running: "running";
|
|
5
|
+
successful: "successful";
|
|
6
|
+
errored: "errored";
|
|
7
|
+
cancelled: "cancelled";
|
|
8
|
+
"timed-out": "timed-out";
|
|
9
|
+
conflict: "conflict";
|
|
10
|
+
}>;
|
|
11
|
+
type SyncTaskStatus = z.infer<typeof SyncTaskStatus>;
|
|
12
|
+
declare const SyncTaskType: z.ZodEnum<{
|
|
13
|
+
import: "import";
|
|
14
|
+
export: "export";
|
|
15
|
+
}>;
|
|
16
|
+
type SyncTaskType = z.infer<typeof SyncTaskType>;
|
|
17
|
+
/**
|
|
18
|
+
* The direction an instance syncs in: `read-only` follows the remote branch and refuses local edits
|
|
19
|
+
* to synced content; `read-write` also exports its own changes.
|
|
20
|
+
*/
|
|
21
|
+
declare const SyncType: z.ZodEnum<{
|
|
22
|
+
"read-only": "read-only";
|
|
23
|
+
"read-write": "read-write";
|
|
24
|
+
}>;
|
|
25
|
+
type SyncType = z.infer<typeof SyncType>;
|
|
26
|
+
/**
|
|
27
|
+
* Whether a remote is configured, the direction the instance syncs in, and the branch it tracks,
|
|
28
|
+
* `null` when none is set. The sync type is a `SyncType` when an admin sets it; a server that reads
|
|
29
|
+
* `MB_REMOTE_SYNC_TYPE` (60 and later) does not check that value, so it is the string the server
|
|
30
|
+
* holds.
|
|
31
|
+
*/
|
|
32
|
+
declare const RemoteSyncState: z.ZodObject<{
|
|
33
|
+
configured: z.ZodBoolean;
|
|
34
|
+
sync_type: z.ZodString;
|
|
35
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
type RemoteSyncState = z.infer<typeof RemoteSyncState>;
|
|
38
|
+
/** Whether the server will report any further progress for a task in this status. */
|
|
39
|
+
declare function isSyncTaskTerminal(status: SyncTaskStatus): boolean;
|
|
40
|
+
/** Whether a terminal status means the sync did not carry out what it was asked to. */
|
|
41
|
+
declare function isSyncTaskFailed(status: SyncTaskStatus): boolean;
|
|
42
|
+
declare const SyncTask: z.ZodObject<{
|
|
43
|
+
id: z.ZodNumber;
|
|
44
|
+
sync_task_type: z.ZodEnum<{
|
|
45
|
+
import: "import";
|
|
46
|
+
export: "export";
|
|
47
|
+
}>;
|
|
48
|
+
status: z.ZodEnum<{
|
|
49
|
+
running: "running";
|
|
50
|
+
successful: "successful";
|
|
51
|
+
errored: "errored";
|
|
52
|
+
cancelled: "cancelled";
|
|
53
|
+
"timed-out": "timed-out";
|
|
54
|
+
conflict: "conflict";
|
|
55
|
+
}>;
|
|
56
|
+
progress: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
started_at: z.ZodString;
|
|
58
|
+
ended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
last_progress_report_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
initiated_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
62
|
+
cancelled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
63
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
conflicts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
65
|
+
}, z.core.$loose>;
|
|
66
|
+
type SyncTask = z.infer<typeof SyncTask>;
|
|
67
|
+
declare const SyncTaskCompact: z.ZodObject<{
|
|
68
|
+
id: z.ZodNumber;
|
|
69
|
+
sync_task_type: z.ZodEnum<{
|
|
70
|
+
import: "import";
|
|
71
|
+
export: "export";
|
|
72
|
+
}>;
|
|
73
|
+
status: z.ZodEnum<{
|
|
74
|
+
running: "running";
|
|
75
|
+
successful: "successful";
|
|
76
|
+
errored: "errored";
|
|
77
|
+
cancelled: "cancelled";
|
|
78
|
+
"timed-out": "timed-out";
|
|
79
|
+
conflict: "conflict";
|
|
80
|
+
}>;
|
|
81
|
+
progress: z.ZodNullable<z.ZodNumber>;
|
|
82
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
conflicts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
type SyncTaskCompact = z.infer<typeof SyncTaskCompact>;
|
|
87
|
+
declare const SyncDirtyItem: z.ZodObject<{
|
|
88
|
+
id: z.ZodNumber;
|
|
89
|
+
name: z.ZodNullable<z.ZodString>;
|
|
90
|
+
model: z.ZodString;
|
|
91
|
+
sync_status: z.ZodString;
|
|
92
|
+
collection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
93
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
display: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
query_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
table_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
97
|
+
table_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
}, z.core.$loose>;
|
|
99
|
+
type SyncDirtyItem = z.infer<typeof SyncDirtyItem>;
|
|
100
|
+
declare const SyncDirtyItemCompact: z.ZodObject<{
|
|
101
|
+
name: z.ZodNullable<z.ZodString>;
|
|
102
|
+
id: z.ZodNumber;
|
|
103
|
+
collection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
104
|
+
model: z.ZodString;
|
|
105
|
+
sync_status: z.ZodString;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
type SyncDirtyItemCompact = z.infer<typeof SyncDirtyItemCompact>;
|
|
108
|
+
declare const SyncRemoteChanges: z.ZodObject<{
|
|
109
|
+
has_changes: z.ZodBoolean;
|
|
110
|
+
remote_version: z.ZodNullable<z.ZodString>;
|
|
111
|
+
local_version: z.ZodNullable<z.ZodString>;
|
|
112
|
+
cached: z.ZodBoolean;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
type SyncRemoteChanges = z.infer<typeof SyncRemoteChanges>;
|
|
115
|
+
declare const SyncMergeSummary: z.ZodObject<{
|
|
116
|
+
added: z.ZodNumber;
|
|
117
|
+
updated: z.ZodNumber;
|
|
118
|
+
removed: z.ZodNumber;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
type SyncMergeSummary = z.infer<typeof SyncMergeSummary>;
|
|
121
|
+
declare const SyncForcePushCasualties: z.ZodObject<{
|
|
122
|
+
deleted: z.ZodArray<z.ZodString>;
|
|
123
|
+
overwritten: z.ZodArray<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
type SyncForcePushCasualties = z.infer<typeof SyncForcePushCasualties>;
|
|
126
|
+
declare const SyncExportPreflight: z.ZodObject<{
|
|
127
|
+
has_changes: z.ZodBoolean;
|
|
128
|
+
clean: z.ZodBoolean;
|
|
129
|
+
conflicts: z.ZodArray<z.ZodString>;
|
|
130
|
+
summary: z.ZodObject<{
|
|
131
|
+
added: z.ZodNumber;
|
|
132
|
+
updated: z.ZodNumber;
|
|
133
|
+
removed: z.ZodNumber;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
force_push_casualties: z.ZodObject<{
|
|
136
|
+
deleted: z.ZodArray<z.ZodString>;
|
|
137
|
+
overwritten: z.ZodArray<z.ZodString>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
reason: z.ZodNullable<z.ZodLiteral<"history-rewritten">>;
|
|
140
|
+
}, z.core.$loose>;
|
|
141
|
+
type SyncExportPreflight = z.infer<typeof SyncExportPreflight>;
|
|
142
|
+
declare const SyncExportPreflightCompact: z.ZodObject<{
|
|
143
|
+
summary: z.ZodObject<{
|
|
144
|
+
added: z.ZodNumber;
|
|
145
|
+
updated: z.ZodNumber;
|
|
146
|
+
removed: z.ZodNumber;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
conflicts: z.ZodArray<z.ZodString>;
|
|
149
|
+
has_changes: z.ZodBoolean;
|
|
150
|
+
force_push_casualties: z.ZodObject<{
|
|
151
|
+
deleted: z.ZodArray<z.ZodString>;
|
|
152
|
+
overwritten: z.ZodArray<z.ZodString>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
clean: z.ZodBoolean;
|
|
155
|
+
reason: z.ZodNullable<z.ZodLiteral<"history-rewritten">>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
type SyncExportPreflightCompact = z.infer<typeof SyncExportPreflightCompact>;
|
|
158
|
+
declare const SyncBranchCreated: z.ZodObject<{
|
|
159
|
+
status: z.ZodLiteral<"success">;
|
|
160
|
+
message: z.ZodString;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
type SyncBranchCreated = z.infer<typeof SyncBranchCreated>;
|
|
163
|
+
declare const SyncSettingsUpdateResult: z.ZodObject<{
|
|
164
|
+
success: z.ZodBoolean;
|
|
165
|
+
task_id: z.ZodOptional<z.ZodNumber>;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
type SyncSettingsUpdateResult = z.infer<typeof SyncSettingsUpdateResult>;
|
|
168
|
+
declare const SyncImportResult: z.ZodObject<{
|
|
169
|
+
message: z.ZodNullable<z.ZodString>;
|
|
170
|
+
task_id: z.ZodNullable<z.ZodNumber>;
|
|
171
|
+
final: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
172
|
+
id: z.ZodNumber;
|
|
173
|
+
sync_task_type: z.ZodEnum<{
|
|
174
|
+
import: "import";
|
|
175
|
+
export: "export";
|
|
176
|
+
}>;
|
|
177
|
+
status: z.ZodEnum<{
|
|
178
|
+
running: "running";
|
|
179
|
+
successful: "successful";
|
|
180
|
+
errored: "errored";
|
|
181
|
+
cancelled: "cancelled";
|
|
182
|
+
"timed-out": "timed-out";
|
|
183
|
+
conflict: "conflict";
|
|
184
|
+
}>;
|
|
185
|
+
progress: z.ZodNullable<z.ZodNumber>;
|
|
186
|
+
started_at: z.ZodString;
|
|
187
|
+
ended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
|
+
last_progress_report_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
189
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
|
+
initiated_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
191
|
+
cancelled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
192
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
conflicts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
194
|
+
}, z.core.$loose>>>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
type SyncImportResult = z.infer<typeof SyncImportResult>;
|
|
197
|
+
declare const SyncExportResult: z.ZodObject<{
|
|
198
|
+
message: z.ZodString;
|
|
199
|
+
task_id: z.ZodNumber;
|
|
200
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
201
|
+
final: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
202
|
+
id: z.ZodNumber;
|
|
203
|
+
sync_task_type: z.ZodEnum<{
|
|
204
|
+
import: "import";
|
|
205
|
+
export: "export";
|
|
206
|
+
}>;
|
|
207
|
+
status: z.ZodEnum<{
|
|
208
|
+
running: "running";
|
|
209
|
+
successful: "successful";
|
|
210
|
+
errored: "errored";
|
|
211
|
+
cancelled: "cancelled";
|
|
212
|
+
"timed-out": "timed-out";
|
|
213
|
+
conflict: "conflict";
|
|
214
|
+
}>;
|
|
215
|
+
progress: z.ZodNullable<z.ZodNumber>;
|
|
216
|
+
started_at: z.ZodString;
|
|
217
|
+
ended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
+
last_progress_report_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
|
+
initiated_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
221
|
+
cancelled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
222
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
conflicts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
224
|
+
}, z.core.$loose>>>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
type SyncExportResult = z.infer<typeof SyncExportResult>;
|
|
227
|
+
declare const SyncStashResult: z.ZodObject<{
|
|
228
|
+
status: z.ZodLiteral<"success">;
|
|
229
|
+
message: z.ZodString;
|
|
230
|
+
task_id: z.ZodNumber;
|
|
231
|
+
final: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
232
|
+
id: z.ZodNumber;
|
|
233
|
+
sync_task_type: z.ZodEnum<{
|
|
234
|
+
import: "import";
|
|
235
|
+
export: "export";
|
|
236
|
+
}>;
|
|
237
|
+
status: z.ZodEnum<{
|
|
238
|
+
running: "running";
|
|
239
|
+
successful: "successful";
|
|
240
|
+
errored: "errored";
|
|
241
|
+
cancelled: "cancelled";
|
|
242
|
+
"timed-out": "timed-out";
|
|
243
|
+
conflict: "conflict";
|
|
244
|
+
}>;
|
|
245
|
+
progress: z.ZodNullable<z.ZodNumber>;
|
|
246
|
+
started_at: z.ZodString;
|
|
247
|
+
ended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
248
|
+
last_progress_report_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
249
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
+
initiated_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
251
|
+
cancelled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
252
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
253
|
+
conflicts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
254
|
+
}, z.core.$loose>>>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
type SyncStashResult = z.infer<typeof SyncStashResult>;
|
|
257
|
+
//#endregion
|
|
258
|
+
export { SyncTaskType as _, SyncExportPreflight as a, isSyncTaskTerminal as b, SyncForcePushCasualties as c, SyncRemoteChanges as d, SyncSettingsUpdateResult as f, SyncTaskStatus as g, SyncTaskCompact as h, SyncDirtyItemCompact as i, SyncImportResult as l, SyncTask as m, SyncBranchCreated as n, SyncExportPreflightCompact as o, SyncStashResult as p, SyncDirtyItem as r, SyncExportResult as s, RemoteSyncState as t, SyncMergeSummary as u, SyncType as v, isSyncTaskFailed as y };
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-E0ZaPNWJ.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
import { a as PollOptions } from "./poll-CIwnee7h.js";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
//#region src/resources/git-sync.d.ts
|
|
6
|
+
declare const SyncScopeCollection: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
9
|
+
is_remote_synced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type SyncScopeCollection = z.infer<typeof SyncScopeCollection>;
|
|
12
|
+
interface SyncWaitParams {
|
|
13
|
+
wait?: PollOptions | undefined;
|
|
14
|
+
}
|
|
15
|
+
interface SyncRemoteChangesParams {
|
|
16
|
+
"force-refresh"?: boolean | undefined;
|
|
17
|
+
}
|
|
18
|
+
interface SyncImportParams extends SyncWaitParams {
|
|
19
|
+
branch?: string | undefined;
|
|
20
|
+
force?: boolean | undefined;
|
|
21
|
+
merge?: boolean | undefined;
|
|
22
|
+
expected_branch?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
interface SyncExportParams extends SyncWaitParams {
|
|
25
|
+
branch?: string | undefined;
|
|
26
|
+
message?: string | undefined;
|
|
27
|
+
force?: boolean | undefined;
|
|
28
|
+
merge?: boolean | undefined;
|
|
29
|
+
}
|
|
30
|
+
interface SyncExportPreflightParams {
|
|
31
|
+
branch: string;
|
|
32
|
+
}
|
|
33
|
+
interface SyncStashParams extends SyncWaitParams {
|
|
34
|
+
new_branch: string;
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
interface SyncCreateBranchParams {
|
|
38
|
+
name: string;
|
|
39
|
+
}
|
|
40
|
+
declare function gitSyncResource(transport: Transport): {
|
|
41
|
+
currentTask: (options?: RequestOptions | undefined) => Promise<{
|
|
42
|
+
[x: string]: unknown;
|
|
43
|
+
id: number;
|
|
44
|
+
sync_task_type: "import" | "export";
|
|
45
|
+
status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
|
|
46
|
+
progress: number | null;
|
|
47
|
+
started_at: string;
|
|
48
|
+
ended_at?: string | null | undefined;
|
|
49
|
+
last_progress_report_at?: string | null | undefined;
|
|
50
|
+
version?: string | null | undefined;
|
|
51
|
+
initiated_by?: number | null | undefined;
|
|
52
|
+
cancelled?: boolean | null | undefined;
|
|
53
|
+
error_message?: string | null | undefined;
|
|
54
|
+
conflicts?: string[] | null | undefined;
|
|
55
|
+
} | null>;
|
|
56
|
+
cancelTask: (options?: RequestOptions | undefined) => Promise<{
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
id: number;
|
|
59
|
+
sync_task_type: "import" | "export";
|
|
60
|
+
status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
|
|
61
|
+
progress: number | null;
|
|
62
|
+
started_at: string;
|
|
63
|
+
ended_at?: string | null | undefined;
|
|
64
|
+
last_progress_report_at?: string | null | undefined;
|
|
65
|
+
version?: string | null | undefined;
|
|
66
|
+
initiated_by?: number | null | undefined;
|
|
67
|
+
cancelled?: boolean | null | undefined;
|
|
68
|
+
error_message?: string | null | undefined;
|
|
69
|
+
conflicts?: string[] | null | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
isDirty: (options?: RequestOptions | undefined) => Promise<boolean>;
|
|
72
|
+
dirty: (options?: RequestOptions | undefined) => Promise<ListResult<{
|
|
73
|
+
[x: string]: unknown;
|
|
74
|
+
id: number;
|
|
75
|
+
name: string | null;
|
|
76
|
+
model: string;
|
|
77
|
+
sync_status: string;
|
|
78
|
+
collection_id?: number | null | undefined;
|
|
79
|
+
description?: string | null | undefined;
|
|
80
|
+
display?: string | null | undefined;
|
|
81
|
+
query_type?: string | null | undefined;
|
|
82
|
+
table_id?: number | null | undefined;
|
|
83
|
+
table_name?: string | null | undefined;
|
|
84
|
+
}>>;
|
|
85
|
+
hasRemoteChanges: (params?: SyncRemoteChangesParams | undefined, options?: RequestOptions | undefined) => Promise<{
|
|
86
|
+
has_changes: boolean;
|
|
87
|
+
remote_version: string | null;
|
|
88
|
+
local_version: string | null;
|
|
89
|
+
cached: boolean;
|
|
90
|
+
}>;
|
|
91
|
+
import: (params?: SyncImportParams | undefined, options?: RequestOptions | undefined) => Promise<{
|
|
92
|
+
message: string | null;
|
|
93
|
+
task_id: number | null;
|
|
94
|
+
final?: {
|
|
95
|
+
[x: string]: unknown;
|
|
96
|
+
id: number;
|
|
97
|
+
sync_task_type: "import" | "export";
|
|
98
|
+
status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
|
|
99
|
+
progress: number | null;
|
|
100
|
+
started_at: string;
|
|
101
|
+
ended_at?: string | null | undefined;
|
|
102
|
+
last_progress_report_at?: string | null | undefined;
|
|
103
|
+
version?: string | null | undefined;
|
|
104
|
+
initiated_by?: number | null | undefined;
|
|
105
|
+
cancelled?: boolean | null | undefined;
|
|
106
|
+
error_message?: string | null | undefined;
|
|
107
|
+
conflicts?: string[] | null | undefined;
|
|
108
|
+
} | null | undefined;
|
|
109
|
+
}>;
|
|
110
|
+
export: (params?: SyncExportParams | undefined, options?: RequestOptions | undefined) => Promise<{
|
|
111
|
+
message: string;
|
|
112
|
+
task_id: number;
|
|
113
|
+
branch: string | null;
|
|
114
|
+
final?: {
|
|
115
|
+
[x: string]: unknown;
|
|
116
|
+
id: number;
|
|
117
|
+
sync_task_type: "import" | "export";
|
|
118
|
+
status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
|
|
119
|
+
progress: number | null;
|
|
120
|
+
started_at: string;
|
|
121
|
+
ended_at?: string | null | undefined;
|
|
122
|
+
last_progress_report_at?: string | null | undefined;
|
|
123
|
+
version?: string | null | undefined;
|
|
124
|
+
initiated_by?: number | null | undefined;
|
|
125
|
+
cancelled?: boolean | null | undefined;
|
|
126
|
+
error_message?: string | null | undefined;
|
|
127
|
+
conflicts?: string[] | null | undefined;
|
|
128
|
+
} | null | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
exportPreflight: (params: SyncExportPreflightParams, options?: RequestOptions | undefined) => Promise<{
|
|
131
|
+
[x: string]: unknown;
|
|
132
|
+
has_changes: boolean;
|
|
133
|
+
clean: boolean;
|
|
134
|
+
conflicts: string[];
|
|
135
|
+
summary: {
|
|
136
|
+
added: number;
|
|
137
|
+
updated: number;
|
|
138
|
+
removed: number;
|
|
139
|
+
};
|
|
140
|
+
force_push_casualties: {
|
|
141
|
+
deleted: string[];
|
|
142
|
+
overwritten: string[];
|
|
143
|
+
};
|
|
144
|
+
reason: "history-rewritten" | null;
|
|
145
|
+
}>;
|
|
146
|
+
stash: (params: SyncStashParams, options?: RequestOptions | undefined) => Promise<{
|
|
147
|
+
status: "success";
|
|
148
|
+
message: string;
|
|
149
|
+
task_id: number;
|
|
150
|
+
final?: {
|
|
151
|
+
[x: string]: unknown;
|
|
152
|
+
id: number;
|
|
153
|
+
sync_task_type: "import" | "export";
|
|
154
|
+
status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
|
|
155
|
+
progress: number | null;
|
|
156
|
+
started_at: string;
|
|
157
|
+
ended_at?: string | null | undefined;
|
|
158
|
+
last_progress_report_at?: string | null | undefined;
|
|
159
|
+
version?: string | null | undefined;
|
|
160
|
+
initiated_by?: number | null | undefined;
|
|
161
|
+
cancelled?: boolean | null | undefined;
|
|
162
|
+
error_message?: string | null | undefined;
|
|
163
|
+
conflicts?: string[] | null | undefined;
|
|
164
|
+
} | null | undefined;
|
|
165
|
+
}>;
|
|
166
|
+
branches: (options?: RequestOptions | undefined) => Promise<ListResult<string>>;
|
|
167
|
+
createBranch: (params: SyncCreateBranchParams, options?: RequestOptions | undefined) => Promise<{
|
|
168
|
+
status: "success";
|
|
169
|
+
message: string;
|
|
170
|
+
}>;
|
|
171
|
+
setCollectionSynced: (collectionId: number, synced: boolean, options?: RequestOptions | undefined) => Promise<{
|
|
172
|
+
success: boolean;
|
|
173
|
+
task_id?: number | undefined;
|
|
174
|
+
}>;
|
|
175
|
+
syncedCollections: (options?: RequestOptions | undefined) => Promise<ListResult<{
|
|
176
|
+
name: string;
|
|
177
|
+
id: string | number;
|
|
178
|
+
is_remote_synced?: boolean | null | undefined;
|
|
179
|
+
}>>;
|
|
180
|
+
remoteUrl: (options?: RequestOptions) => Promise<string | null>;
|
|
181
|
+
branch: (options?: RequestOptions) => Promise<string | null>;
|
|
182
|
+
remote: (options?: RequestOptions) => Promise<{
|
|
183
|
+
configured: boolean;
|
|
184
|
+
sync_type: string;
|
|
185
|
+
branch: string | null;
|
|
186
|
+
}>;
|
|
187
|
+
trackedBranch: (options?: RequestOptions) => Promise<string>;
|
|
188
|
+
waitForTask: (wait: PollOptions, options?: RequestOptions | undefined) => Promise<{
|
|
189
|
+
[x: string]: unknown;
|
|
190
|
+
id: number;
|
|
191
|
+
sync_task_type: "import" | "export";
|
|
192
|
+
status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
|
|
193
|
+
progress: number | null;
|
|
194
|
+
started_at: string;
|
|
195
|
+
ended_at?: string | null | undefined;
|
|
196
|
+
last_progress_report_at?: string | null | undefined;
|
|
197
|
+
version?: string | null | undefined;
|
|
198
|
+
initiated_by?: number | null | undefined;
|
|
199
|
+
cancelled?: boolean | null | undefined;
|
|
200
|
+
error_message?: string | null | undefined;
|
|
201
|
+
conflicts?: string[] | null | undefined;
|
|
202
|
+
} | null>;
|
|
203
|
+
};
|
|
204
|
+
//#endregion
|
|
205
|
+
export { SyncRemoteChangesParams as a, SyncWaitParams as c, SyncImportParams as i, gitSyncResource as l, SyncExportParams as n, SyncScopeCollection as o, SyncExportPreflightParams as r, SyncStashParams as s, SyncCreateBranchParams as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/glossary.d.ts
|
|
3
|
+
declare const Glossary: z.ZodObject<{
|
|
4
|
+
id: z.ZodNumber;
|
|
5
|
+
term: z.ZodString;
|
|
6
|
+
definition: z.ZodString;
|
|
7
|
+
creator_id: z.ZodNumber;
|
|
8
|
+
creator: z.ZodObject<{
|
|
9
|
+
id: z.ZodNumber;
|
|
10
|
+
email: z.ZodString;
|
|
11
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
created_at: z.ZodString;
|
|
15
|
+
updated_at: z.ZodString;
|
|
16
|
+
}, z.core.$loose>;
|
|
17
|
+
type Glossary = z.infer<typeof Glossary>;
|
|
18
|
+
declare const GlossaryCompact: z.ZodObject<{
|
|
19
|
+
id: z.ZodNumber;
|
|
20
|
+
definition: z.ZodString;
|
|
21
|
+
term: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
type GlossaryCompact = z.infer<typeof GlossaryCompact>;
|
|
24
|
+
declare const GlossaryCreateInput: z.ZodObject<{
|
|
25
|
+
term: z.ZodString;
|
|
26
|
+
definition: z.ZodString;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
type GlossaryCreateInput = z.infer<typeof GlossaryCreateInput>;
|
|
29
|
+
declare const GlossaryUpdateInput: z.ZodObject<{
|
|
30
|
+
term: z.ZodString;
|
|
31
|
+
definition: z.ZodString;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
type GlossaryUpdateInput = GlossaryCreateInput;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { GlossaryUpdateInput as i, GlossaryCompact as n, GlossaryCreateInput as r, Glossary as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-E0ZaPNWJ.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
import { i as GlossaryUpdateInput, r as GlossaryCreateInput, t as Glossary } from "./glossary-CHK3elPj.js";
|
|
4
|
+
//#region src/resources/glossary.d.ts
|
|
5
|
+
interface GlossaryListParams {
|
|
6
|
+
search?: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
declare function glossaryResource(transport: Transport): {
|
|
9
|
+
list: (params?: GlossaryListParams, options?: RequestOptions) => Promise<ListResult<Glossary>>;
|
|
10
|
+
create: (params: GlossaryCreateInput, options?: RequestOptions) => Promise<Glossary>;
|
|
11
|
+
update: (id: number, params: GlossaryUpdateInput, options?: RequestOptions) => Promise<Glossary>;
|
|
12
|
+
delete: (id: number, options?: RequestOptions) => Promise<void>;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { glossaryResource as n, GlossaryListParams as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { A as HttpErrorDetail, B as isHttpNotFound, D as FORBIDDEN_STATUS, E as FIELD_PATH_SEPARATOR, F as PAYMENT_REQUIRED_STATUS, I as RemoteSyncedDependent, L as TOO_MANY_REQUESTS_STATUS, M as HttpErrorKind, N as INTERNAL_SERVER_ERROR_STATUS, O as FieldErrors, P as NOT_FOUND_STATUS, R as UNAUTHORIZED_STATUS, T as CONFLICT_STATUS, V as isRetryableStatus, j as HttpErrorInput, k as HttpError, w as BAD_REQUEST_STATUS, z as chainRequestFailure } from "../transport-E0ZaPNWJ.js";
|
|
2
|
+
export { BAD_REQUEST_STATUS, CONFLICT_STATUS, FIELD_PATH_SEPARATOR, FORBIDDEN_STATUS, FieldErrors, HttpError, HttpErrorDetail, HttpErrorInput, HttpErrorKind, INTERNAL_SERVER_ERROR_STATUS, NOT_FOUND_STATUS, PAYMENT_REQUIRED_STATUS, RemoteSyncedDependent, TOO_MANY_REQUESTS_STATUS, UNAUTHORIZED_STATUS, chainRequestFailure, isHttpNotFound, isRetryableStatus };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as HttpError, c as PAYMENT_REQUIRED_STATUS, d as chainRequestFailure, f as isHttpNotFound, i as FORBIDDEN_STATUS, l as TOO_MANY_REQUESTS_STATUS, n as CONFLICT_STATUS, o as INTERNAL_SERVER_ERROR_STATUS, p as isRetryableStatus, r as FIELD_PATH_SEPARATOR, s as NOT_FOUND_STATUS, t as BAD_REQUEST_STATUS, u as UNAUTHORIZED_STATUS } from "../errors-DdMlaXqq.js";
|
|
2
|
+
export { BAD_REQUEST_STATUS, CONFLICT_STATUS, FIELD_PATH_SEPARATOR, FORBIDDEN_STATUS, HttpError, INTERNAL_SERVER_ERROR_STATUS, NOT_FOUND_STATUS, PAYMENT_REQUIRED_STATUS, TOO_MANY_REQUESTS_STATUS, UNAUTHORIZED_STATUS, chainRequestFailure, isHttpNotFound, isRetryableStatus };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as OAuthServerMetadata, c as TokenRefresh, d as discoverMetadata, f as exchangeCode, g as tryDiscoverMetadata, h as revokeToken, i as OAUTH_UNSUPPORTED_MESSAGE, l as TokenRevocation, m as registerClient, n as CodeExchange, o as OAuthTokens, p as refreshTokens, r as OAUTH_SCOPE, s as RegisteredClient, t as ClientRegistration, u as discoverLoginMetadata } from "../oauth-C4ordeoJ.js";
|
|
2
|
+
export { ClientRegistration, CodeExchange, OAUTH_SCOPE, OAUTH_UNSUPPORTED_MESSAGE, OAuthServerMetadata, OAuthTokens, RegisteredClient, TokenRefresh, TokenRevocation, discoverLoginMetadata, discoverMetadata, exchangeCode, refreshTokens, registerClient, revokeToken, tryDiscoverMetadata };
|