@metabase/client 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/LICENSE +661 -0
- package/README.md +490 -2
- package/dist/api-key-DJeN1-7G.d.ts +46 -0
- package/dist/auth/credential.d.ts +2 -0
- package/dist/auth/credential.js +61 -0
- package/dist/auth/oauth-login.d.ts +2 -0
- package/dist/auth/oauth-login.js +2 -0
- package/dist/auth/oauth-session.d.ts +2 -0
- package/dist/auth/oauth-session.js +31 -0
- package/dist/card-BxBzr5Uj.d.ts +1392 -0
- package/dist/card-DN0sLkCG.d.ts +33 -0
- package/dist/client-DdXLlH1B.d.ts +3380 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +99 -0
- package/dist/collection-DGnTvD6R.d.ts +294 -0
- package/dist/collection-fFahL-ub.d.ts +53 -0
- package/dist/content-translation-zfUkE_OG.d.ts +8 -0
- package/dist/credential-6aOEGqMH.d.ts +30 -0
- package/dist/cron-DThzerR6.d.ts +9 -0
- package/dist/csv-upload--K35QedP.d.ts +8 -0
- package/dist/dashboard-CM7RmNeE.d.ts +38 -0
- package/dist/dashboard-DtLXVgtf.d.ts +978 -0
- package/dist/data-action-CkXVrOUH.d.ts +97 -0
- package/dist/data-app-CqP5_fpB.d.ts +76 -0
- package/dist/database-B0JNZjDN.d.ts +27 -0
- package/dist/database-BxqDmfcj.d.ts +997 -0
- package/dist/dataset-BBNGPVec.d.ts +4144 -0
- package/dist/dataset-BUirJ1rO.d.ts +23 -0
- package/dist/dependency-CzpXmeu7.d.ts +299 -0
- package/dist/dependency-arB8Cr2H.d.ts +879 -0
- package/dist/document-tLd6pYWe.d.ts +115 -0
- package/dist/domain/api-key.d.ts +2 -0
- package/dist/domain/api-key.js +31 -0
- package/dist/domain/card.d.ts +2 -0
- package/dist/domain/card.js +140 -0
- package/dist/domain/collection.d.ts +2 -0
- package/dist/domain/collection.js +137 -0
- package/dist/domain/content-translation.d.ts +2 -0
- package/dist/domain/content-translation.js +5 -0
- package/dist/domain/cron.d.ts +2 -0
- package/dist/domain/cron.js +5 -0
- package/dist/domain/dashboard.d.ts +2 -0
- package/dist/domain/dashboard.js +211 -0
- package/dist/domain/data-action.d.ts +2 -0
- package/dist/domain/data-action.js +91 -0
- package/dist/domain/data-app.d.ts +2 -0
- package/dist/domain/data-app.js +52 -0
- package/dist/domain/database.d.ts +2 -0
- package/dist/domain/database.js +56 -0
- package/dist/domain/dataset.d.ts +2 -0
- package/dist/domain/dataset.js +56 -0
- package/dist/domain/dependency.d.ts +2 -0
- package/dist/domain/dependency.js +168 -0
- package/dist/domain/document.d.ts +2 -0
- package/dist/domain/document.js +94 -0
- package/dist/domain/eid-translation.d.ts +2 -0
- package/dist/domain/eid-translation.js +36 -0
- package/dist/domain/embedding.d.ts +2 -0
- package/dist/domain/embedding.js +9 -0
- package/dist/domain/erd.d.ts +2 -0
- package/dist/domain/erd.js +45 -0
- package/dist/domain/field.d.ts +2 -0
- package/dist/domain/field.js +274 -0
- package/dist/domain/git-sync.d.ts +2 -0
- package/dist/domain/git-sync.js +147 -0
- package/dist/domain/glossary.d.ts +2 -0
- package/dist/domain/glossary.js +30 -0
- package/dist/domain/library.d.ts +2 -0
- package/dist/domain/library.js +89 -0
- package/dist/domain/measure.d.ts +2 -0
- package/dist/domain/measure.js +43 -0
- package/dist/domain/metric.d.ts +2 -0
- package/dist/domain/metric.js +139 -0
- package/dist/domain/moderation-review.d.ts +2 -0
- package/dist/domain/moderation-review.js +31 -0
- package/dist/domain/notification.d.ts +2 -0
- package/dist/domain/notification.js +143 -0
- package/dist/domain/parameter.d.ts +2 -0
- package/dist/domain/parameter.js +109 -0
- package/dist/domain/permission.d.ts +2 -0
- package/dist/domain/permission.js +36 -0
- package/dist/domain/pulse.d.ts +2 -0
- package/dist/domain/pulse.js +140 -0
- package/dist/domain/query.d.ts +2 -0
- package/dist/domain/query.js +13 -0
- package/dist/domain/replacement.d.ts +2 -0
- package/dist/domain/replacement.js +93 -0
- package/dist/domain/revision.d.ts +2 -0
- package/dist/domain/revision.js +90 -0
- package/dist/domain/search.d.ts +2 -0
- package/dist/domain/search.js +63 -0
- package/dist/domain/segment.d.ts +2 -0
- package/dist/domain/segment.js +46 -0
- package/dist/domain/session-properties.d.ts +2 -0
- package/dist/domain/session-properties.js +14 -0
- package/dist/domain/setting.d.ts +2 -0
- package/dist/domain/setting.js +22 -0
- package/dist/domain/setup.d.ts +2 -0
- package/dist/domain/setup.js +21 -0
- package/dist/domain/snippet.d.ts +2 -0
- package/dist/domain/snippet.js +38 -0
- package/dist/domain/table.d.ts +2 -0
- package/dist/domain/table.js +187 -0
- package/dist/domain/text.d.ts +5 -0
- package/dist/domain/text.js +6 -0
- package/dist/domain/timeline.d.ts +2 -0
- package/dist/domain/timeline.js +97 -0
- package/dist/domain/transform-dag-run.d.ts +2 -0
- package/dist/domain/transform-dag-run.js +19 -0
- package/dist/domain/transform-inspector.d.ts +2 -0
- package/dist/domain/transform-inspector.js +142 -0
- package/dist/domain/transform-job.d.ts +2 -0
- package/dist/domain/transform-job.js +115 -0
- package/dist/domain/transform-python.d.ts +2 -0
- package/dist/domain/transform-python.js +51 -0
- package/dist/domain/transform-tag.d.ts +2 -0
- package/dist/domain/transform-tag.js +17 -0
- package/dist/domain/transform-test.d.ts +2 -0
- package/dist/domain/transform-test.js +176 -0
- package/dist/domain/transform.d.ts +2 -0
- package/dist/domain/transform.js +304 -0
- package/dist/domain/upload.d.ts +2 -0
- package/dist/domain/upload.js +13 -0
- package/dist/domain/user.d.ts +2 -0
- package/dist/domain/user.js +16 -0
- package/dist/eid-translation-CH6NPWd-.d.ts +143 -0
- package/dist/embedding-oU3gqfgX.d.ts +10 -0
- package/dist/erd-BdeFEeSy.d.ts +842 -0
- package/dist/erd-CbV7xvAc.d.ts +51 -0
- package/dist/errors-DdMlaXqq.js +330 -0
- package/dist/errors.d.ts +2 -0
- package/dist/errors.js +189 -0
- package/dist/features-SMSfJhB6.d.ts +295 -0
- package/dist/field-D1Pfk-0S.d.ts +50 -0
- package/dist/field-p9Rme2zB.d.ts +2549 -0
- package/dist/git-sync-BTf1aYHr.d.ts +205 -0
- package/dist/git-sync-C99SVdJ9.d.ts +258 -0
- package/dist/glossary-CHK3elPj.d.ts +35 -0
- package/dist/glossary-DFvnz-E5.d.ts +15 -0
- package/dist/http/errors.d.ts +2 -0
- package/dist/http/errors.js +2 -0
- package/dist/http/oauth.d.ts +2 -0
- package/dist/http/oauth.js +201 -0
- package/dist/http/retry.d.ts +19 -0
- package/dist/http/retry.js +33 -0
- package/dist/http/transport.d.ts +2 -0
- package/dist/http/transport.js +2 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +64 -0
- package/dist/input-gate-registry-Dai7SfXb.js +14 -0
- package/dist/input-gates-DwKoTJVQ.d.ts +28 -0
- package/dist/json-BksZpXDC.d.ts +19 -0
- package/dist/json-pointer.d.ts +5 -0
- package/dist/json-pointer.js +10 -0
- package/dist/json.d.ts +2 -0
- package/dist/json.js +44 -0
- package/dist/known-range-DTOBgTEC.d.ts +7 -0
- package/dist/library-B9pEq7qP.d.ts +230 -0
- package/dist/list-BT_bBm9Z.d.ts +7 -0
- package/dist/list.d.ts +2 -0
- package/dist/list.js +1 -0
- package/dist/measure-CgH14YQZ.d.ts +44 -0
- package/dist/measure-lPz8qnwz.d.ts +108 -0
- package/dist/metric-DcYloqOQ.d.ts +2655 -0
- package/dist/moderation-review-B4RUTZ6_.d.ts +56 -0
- package/dist/network-error-5g4U1iul.js +62 -0
- package/dist/notification-Cp5GJErS.d.ts +22 -0
- package/dist/notification-D1MThyKE.d.ts +443 -0
- package/dist/oauth-C4ordeoJ.d.ts +59 -0
- package/dist/oauth-login-CJsT_3EE.d.ts +19 -0
- package/dist/oauth-login-D734Jvbq.js +179 -0
- package/dist/oauth-session-BlIlcd8Q.d.ts +6 -0
- package/dist/paginate-COuL0Gzl.d.ts +24 -0
- package/dist/paginate.d.ts +2 -0
- package/dist/paginate.js +49 -0
- package/dist/parameter-ak-J-IOj.d.ts +190 -0
- package/dist/permission-BnCQw5Kp.d.ts +149 -0
- package/dist/poll-CIwnee7h.d.ts +15 -0
- package/dist/poll.d.ts +2 -0
- package/dist/poll.js +47 -0
- package/dist/predicates.d.ts +10 -0
- package/dist/predicates.js +18 -0
- package/dist/pulse-0LG3K6qO.d.ts +598 -0
- package/dist/pulse-BzKmz3Yn.d.ts +18 -0
- package/dist/query-Xsin530u.d.ts +23 -0
- package/dist/refusal-B9aeHMc9.js +130 -0
- package/dist/replacement-BGyggp-G.d.ts +2467 -0
- package/dist/replacement-CVebCuNp.d.ts +128 -0
- package/dist/requirement-check-glU7wqhQ.d.ts +17 -0
- package/dist/requirements-Dx_ZVzl7.d.ts +227 -0
- package/dist/resources/api-key.d.ts +11 -0
- package/dist/resources/api-key.js +35 -0
- package/dist/resources/card.d.ts +2 -0
- package/dist/resources/card.js +103 -0
- package/dist/resources/collection.d.ts +2 -0
- package/dist/resources/collection.js +134 -0
- package/dist/resources/content-translation.d.ts +11 -0
- package/dist/resources/content-translation.js +27 -0
- package/dist/resources/csv-upload.d.ts +2 -0
- package/dist/resources/csv-upload.js +9 -0
- package/dist/resources/dashboard.d.ts +2 -0
- package/dist/resources/dashboard.js +221 -0
- package/dist/resources/data-action.d.ts +60 -0
- package/dist/resources/data-action.js +79 -0
- package/dist/resources/data-app.d.ts +112 -0
- package/dist/resources/data-app.js +75 -0
- package/dist/resources/database.d.ts +2 -0
- package/dist/resources/database.js +103 -0
- package/dist/resources/dataset.d.ts +2 -0
- package/dist/resources/dataset.js +81 -0
- package/dist/resources/dependency.d.ts +2 -0
- package/dist/resources/dependency.js +156 -0
- package/dist/resources/document.d.ts +55 -0
- package/dist/resources/document.js +60 -0
- package/dist/resources/eid-translation.d.ts +8 -0
- package/dist/resources/eid-translation.js +19 -0
- package/dist/resources/erd.d.ts +2 -0
- package/dist/resources/erd.js +26 -0
- package/dist/resources/field.d.ts +2 -0
- package/dist/resources/field.js +99 -0
- package/dist/resources/git-sync.d.ts +2 -0
- package/dist/resources/git-sync.js +362 -0
- package/dist/resources/glossary.d.ts +2 -0
- package/dist/resources/glossary.js +51 -0
- package/dist/resources/library.d.ts +85 -0
- package/dist/resources/library.js +90 -0
- package/dist/resources/measure.d.ts +2 -0
- package/dist/resources/measure.js +57 -0
- package/dist/resources/metric.d.ts +2 -0
- package/dist/resources/metric.js +50 -0
- package/dist/resources/moderation-review.d.ts +23 -0
- package/dist/resources/moderation-review.js +24 -0
- package/dist/resources/notification.d.ts +2 -0
- package/dist/resources/notification.js +93 -0
- package/dist/resources/optional-parsed.d.ts +7 -0
- package/dist/resources/optional-parsed.js +14 -0
- package/dist/resources/permission.d.ts +10 -0
- package/dist/resources/permission.js +31 -0
- package/dist/resources/pivot-export.d.ts +10 -0
- package/dist/resources/pivot-export.js +16 -0
- package/dist/resources/pulse.d.ts +2 -0
- package/dist/resources/pulse.js +76 -0
- package/dist/resources/replacement.d.ts +2 -0
- package/dist/resources/replacement.js +82 -0
- package/dist/resources/request-body.d.ts +9 -0
- package/dist/resources/request-body.js +13 -0
- package/dist/resources/revision.d.ts +70 -0
- package/dist/resources/revision.js +46 -0
- package/dist/resources/search.d.ts +2 -0
- package/dist/resources/search.js +78 -0
- package/dist/resources/segment.d.ts +2 -0
- package/dist/resources/segment.js +55 -0
- package/dist/resources/setting.d.ts +11 -0
- package/dist/resources/setting.js +43 -0
- package/dist/resources/setup.d.ts +8 -0
- package/dist/resources/setup.js +18 -0
- package/dist/resources/snippet.d.ts +2 -0
- package/dist/resources/snippet.js +52 -0
- package/dist/resources/table.d.ts +2 -0
- package/dist/resources/table.js +274 -0
- package/dist/resources/timeline-event.d.ts +12 -0
- package/dist/resources/timeline-event.js +51 -0
- package/dist/resources/timeline.d.ts +2 -0
- package/dist/resources/timeline.js +82 -0
- package/dist/resources/transform-dag-run.d.ts +22 -0
- package/dist/resources/transform-dag-run.js +32 -0
- package/dist/resources/transform-inspector.d.ts +214 -0
- package/dist/resources/transform-inspector.js +47 -0
- package/dist/resources/transform-job.d.ts +2 -0
- package/dist/resources/transform-job.js +90 -0
- package/dist/resources/transform-python.d.ts +59 -0
- package/dist/resources/transform-python.js +57 -0
- package/dist/resources/transform-tag.d.ts +35 -0
- package/dist/resources/transform-tag.js +47 -0
- package/dist/resources/transform-test.d.ts +2 -0
- package/dist/resources/transform-test.js +75 -0
- package/dist/resources/transform.d.ts +2 -0
- package/dist/resources/transform.js +227 -0
- package/dist/resources/upload.d.ts +2 -0
- package/dist/resources/upload.js +48 -0
- package/dist/resources/user.d.ts +8 -0
- package/dist/resources/user.js +11 -0
- package/dist/revision-Dyl-8p7d.d.ts +106 -0
- package/dist/search-Cm5IxKss.d.ts +92 -0
- package/dist/search-Cten2h0I.d.ts +26 -0
- package/dist/segment-CbAgVO-5.d.ts +47 -0
- package/dist/segment-DQLX6r1E.d.ts +16 -0
- package/dist/session-properties-COtlxAcK.d.ts +15 -0
- package/dist/setting-DXuQGXGF.d.ts +25 -0
- package/dist/setup-JqcJ2unJ.d.ts +26 -0
- package/dist/signal.d.ts +8 -0
- package/dist/signal.js +25 -0
- package/dist/snippet-C_Ilx7tR.d.ts +41 -0
- package/dist/snippet-Djn0rL21.d.ts +16 -0
- package/dist/table-CDZbLNow.d.ts +176 -0
- package/dist/table-Od6uvDVW.d.ts +3234 -0
- package/dist/tag-qzjGGci8.d.ts +48 -0
- package/dist/timeline-BK45hy-h.d.ts +218 -0
- package/dist/timeline-BTs6fuRp.d.ts +21 -0
- package/dist/transform-C5thnJwW.d.ts +559 -0
- package/dist/transform-WASQAXeA.d.ts +652 -0
- package/dist/transform-dag-run-BgZwv1yx.d.ts +49 -0
- package/dist/transform-inspector-CMCh8WKV.d.ts +374 -0
- package/dist/transform-job-D8jTQtdX.d.ts +98 -0
- package/dist/transform-job-DmTwKxhc.d.ts +237 -0
- package/dist/transform-python-DtL3xxMj.d.ts +101 -0
- package/dist/transform-tag-C6j5EUkX.d.ts +25 -0
- package/dist/transform-test-CR_i54IV.d.ts +412 -0
- package/dist/transform-test-CeMzDpUC.d.ts +346 -0
- package/dist/transport-BsXqRujn.d.ts +476 -0
- package/dist/transport-HP7cyo9N.js +397 -0
- package/dist/upload-B5YjVkSW.d.ts +12 -0
- package/dist/upload-UPfZFdbH.d.ts +22 -0
- package/dist/url-CI0pxHOc.d.ts +7 -0
- package/dist/url.d.ts +2 -0
- package/dist/url.js +34 -0
- package/dist/user-Sqqv7rqh.d.ts +18 -0
- package/dist/version/capability-error.d.ts +2 -0
- package/dist/version/capability-error.js +42 -0
- package/dist/version/features.d.ts +2 -0
- package/dist/version/features.js +171 -0
- package/dist/version/input-gates.d.ts +2 -0
- package/dist/version/input-gates.js +13 -0
- package/dist/version/known-range.d.ts +2 -0
- package/dist/version/known-range.js +7 -0
- package/dist/version/probe.d.ts +2 -0
- package/dist/version/probe.js +30 -0
- package/dist/version/profile.d.ts +2 -0
- package/dist/version/profile.js +64 -0
- package/dist/version/requirement-check.d.ts +2 -0
- package/dist/version/requirement-check.js +62 -0
- package/dist/version/requirements.d.ts +2 -0
- package/dist/version/requirements.js +229 -0
- package/dist/version/tag.d.ts +2 -0
- package/dist/version/tag.js +52 -0
- package/package.json +66 -4
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.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
|
+
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
8
|
+
name: 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
|
+
id: string | number;
|
|
177
|
+
name: string;
|
|
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,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
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
sync_task_type: z.ZodEnum<{
|
|
71
|
+
import: "import";
|
|
72
|
+
export: "export";
|
|
73
|
+
}>;
|
|
74
|
+
status: z.ZodEnum<{
|
|
75
|
+
running: "running";
|
|
76
|
+
successful: "successful";
|
|
77
|
+
errored: "errored";
|
|
78
|
+
cancelled: "cancelled";
|
|
79
|
+
"timed-out": "timed-out";
|
|
80
|
+
conflict: "conflict";
|
|
81
|
+
}>;
|
|
82
|
+
progress: z.ZodNullable<z.ZodNumber>;
|
|
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
|
+
id: z.ZodNumber;
|
|
102
|
+
name: z.ZodNullable<z.ZodString>;
|
|
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,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-BsXqRujn.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-BsXqRujn.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 };
|