@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,10 @@
|
|
|
1
|
+
//#region src/predicates.d.ts
|
|
2
|
+
declare function isPlainObject(value: unknown): value is {
|
|
3
|
+
readonly [key: string]: unknown;
|
|
4
|
+
};
|
|
5
|
+
/** Matches a string Metabase reads as not blank: one holding a character that is not Java whitespace. */
|
|
6
|
+
declare const NOT_BLANK: RegExp;
|
|
7
|
+
/** Whether Metabase reads `value` as blank: empty, or Java whitespace only. */
|
|
8
|
+
declare function isBlank(value: string): boolean;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { NOT_BLANK, isBlank, isPlainObject };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/predicates.ts
|
|
2
|
+
function isPlainObject(value) {
|
|
3
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
4
|
+
}
|
|
5
|
+
const JAVA_WHITESPACE = " \n\v\f\r \u2028\u2029 ";
|
|
6
|
+
const UNICODE_ESCAPE_DIGITS = 4;
|
|
7
|
+
function unicodeEscape(char) {
|
|
8
|
+
return `\\u${char.charCodeAt(0).toString(16).padStart(UNICODE_ESCAPE_DIGITS, "0")}`;
|
|
9
|
+
}
|
|
10
|
+
const JAVA_WHITESPACE_ESCAPED = [...JAVA_WHITESPACE].map(unicodeEscape).join("");
|
|
11
|
+
/** Matches a string Metabase reads as not blank: one holding a character that is not Java whitespace. */
|
|
12
|
+
const NOT_BLANK = new RegExp(`[^${JAVA_WHITESPACE_ESCAPED}]`);
|
|
13
|
+
/** Whether Metabase reads `value` as blank: empty, or Java whitespace only. */
|
|
14
|
+
function isBlank(value) {
|
|
15
|
+
return !NOT_BLANK.test(value);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { NOT_BLANK, isBlank, isPlainObject };
|
|
@@ -0,0 +1,596 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/pulse.d.ts
|
|
3
|
+
declare const PulseChannelType: z.ZodEnum<{
|
|
4
|
+
email: "email";
|
|
5
|
+
slack: "slack";
|
|
6
|
+
http: "http";
|
|
7
|
+
}>;
|
|
8
|
+
type PulseChannelType = z.infer<typeof PulseChannelType>;
|
|
9
|
+
declare const PulseScheduleType: z.ZodEnum<{
|
|
10
|
+
hourly: "hourly";
|
|
11
|
+
daily: "daily";
|
|
12
|
+
weekly: "weekly";
|
|
13
|
+
monthly: "monthly";
|
|
14
|
+
}>;
|
|
15
|
+
type PulseScheduleType = z.infer<typeof PulseScheduleType>;
|
|
16
|
+
declare const PulseScheduleDay: z.ZodEnum<{
|
|
17
|
+
mon: "mon";
|
|
18
|
+
tue: "tue";
|
|
19
|
+
wed: "wed";
|
|
20
|
+
thu: "thu";
|
|
21
|
+
fri: "fri";
|
|
22
|
+
sat: "sat";
|
|
23
|
+
sun: "sun";
|
|
24
|
+
}>;
|
|
25
|
+
type PulseScheduleDay = z.infer<typeof PulseScheduleDay>;
|
|
26
|
+
declare const PulseScheduleFrame: z.ZodEnum<{
|
|
27
|
+
first: "first";
|
|
28
|
+
mid: "mid";
|
|
29
|
+
last: "last";
|
|
30
|
+
}>;
|
|
31
|
+
type PulseScheduleFrame = z.infer<typeof PulseScheduleFrame>;
|
|
32
|
+
declare const PulseChannelDetails: z.ZodObject<{
|
|
33
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$loose>;
|
|
35
|
+
type PulseChannelDetails = z.infer<typeof PulseChannelDetails>;
|
|
36
|
+
declare const PulseRecipient: z.ZodObject<{
|
|
37
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
|
+
email: z.ZodString;
|
|
39
|
+
}, z.core.$loose>;
|
|
40
|
+
type PulseRecipient = z.infer<typeof PulseRecipient>;
|
|
41
|
+
declare const PulseRecipientCompact: z.ZodObject<{
|
|
42
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
|
+
email: z.ZodString;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
type PulseRecipientCompact = z.infer<typeof PulseRecipientCompact>;
|
|
46
|
+
declare const PulseChannel: z.ZodObject<{
|
|
47
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
channel_type: z.ZodEnum<{
|
|
49
|
+
email: "email";
|
|
50
|
+
slack: "slack";
|
|
51
|
+
http: "http";
|
|
52
|
+
}>;
|
|
53
|
+
channel_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
+
enabled: z.ZodBoolean;
|
|
55
|
+
schedule_type: z.ZodEnum<{
|
|
56
|
+
hourly: "hourly";
|
|
57
|
+
daily: "daily";
|
|
58
|
+
weekly: "weekly";
|
|
59
|
+
monthly: "monthly";
|
|
60
|
+
}>;
|
|
61
|
+
schedule_hour: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
schedule_day: z.ZodNullable<z.ZodEnum<{
|
|
63
|
+
mon: "mon";
|
|
64
|
+
tue: "tue";
|
|
65
|
+
wed: "wed";
|
|
66
|
+
thu: "thu";
|
|
67
|
+
fri: "fri";
|
|
68
|
+
sat: "sat";
|
|
69
|
+
sun: "sun";
|
|
70
|
+
}>>;
|
|
71
|
+
schedule_frame: z.ZodNullable<z.ZodEnum<{
|
|
72
|
+
first: "first";
|
|
73
|
+
mid: "mid";
|
|
74
|
+
last: "last";
|
|
75
|
+
}>>;
|
|
76
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$loose>>;
|
|
79
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
80
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
81
|
+
email: z.ZodString;
|
|
82
|
+
}, z.core.$loose>>;
|
|
83
|
+
}, z.core.$loose>;
|
|
84
|
+
type PulseChannel = z.infer<typeof PulseChannel>;
|
|
85
|
+
declare const PulseChannelCompact: z.ZodObject<{
|
|
86
|
+
enabled: z.ZodBoolean;
|
|
87
|
+
channel_type: z.ZodEnum<{
|
|
88
|
+
email: "email";
|
|
89
|
+
slack: "slack";
|
|
90
|
+
http: "http";
|
|
91
|
+
}>;
|
|
92
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$loose>>;
|
|
95
|
+
schedule_type: z.ZodEnum<{
|
|
96
|
+
hourly: "hourly";
|
|
97
|
+
daily: "daily";
|
|
98
|
+
weekly: "weekly";
|
|
99
|
+
monthly: "monthly";
|
|
100
|
+
}>;
|
|
101
|
+
schedule_hour: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
schedule_day: z.ZodNullable<z.ZodEnum<{
|
|
103
|
+
mon: "mon";
|
|
104
|
+
tue: "tue";
|
|
105
|
+
wed: "wed";
|
|
106
|
+
thu: "thu";
|
|
107
|
+
fri: "fri";
|
|
108
|
+
sat: "sat";
|
|
109
|
+
sun: "sun";
|
|
110
|
+
}>>;
|
|
111
|
+
schedule_frame: z.ZodNullable<z.ZodEnum<{
|
|
112
|
+
first: "first";
|
|
113
|
+
mid: "mid";
|
|
114
|
+
last: "last";
|
|
115
|
+
}>>;
|
|
116
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
117
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
118
|
+
email: z.ZodString;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
type PulseChannelCompact = z.infer<typeof PulseChannelCompact>;
|
|
122
|
+
declare const PulseCard: z.ZodObject<{
|
|
123
|
+
id: z.ZodNumber;
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
dashboard_card_id: z.ZodNullable<z.ZodNumber>;
|
|
126
|
+
include_csv: z.ZodBoolean;
|
|
127
|
+
include_xls: z.ZodBoolean;
|
|
128
|
+
}, z.core.$loose>;
|
|
129
|
+
type PulseCard = z.infer<typeof PulseCard>;
|
|
130
|
+
declare const PulseCardCompact: z.ZodObject<{
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
id: z.ZodNumber;
|
|
133
|
+
dashboard_card_id: z.ZodNullable<z.ZodNumber>;
|
|
134
|
+
include_csv: z.ZodBoolean;
|
|
135
|
+
include_xls: z.ZodBoolean;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
type PulseCardCompact = z.infer<typeof PulseCardCompact>;
|
|
138
|
+
declare const Pulse: z.ZodObject<{
|
|
139
|
+
id: z.ZodNumber;
|
|
140
|
+
name: z.ZodNullable<z.ZodString>;
|
|
141
|
+
creator_id: z.ZodNumber;
|
|
142
|
+
dashboard_id: z.ZodNullable<z.ZodNumber>;
|
|
143
|
+
collection_id: z.ZodNullable<z.ZodNumber>;
|
|
144
|
+
archived: z.ZodBoolean;
|
|
145
|
+
skip_if_empty: z.ZodBoolean;
|
|
146
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
type: z.ZodEnum<{
|
|
149
|
+
number: "number";
|
|
150
|
+
boolean: "boolean";
|
|
151
|
+
id: "id";
|
|
152
|
+
date: "date";
|
|
153
|
+
text: "text";
|
|
154
|
+
"temporal-unit": "temporal-unit";
|
|
155
|
+
"date/single": "date/single";
|
|
156
|
+
category: "category";
|
|
157
|
+
"location/city": "location/city";
|
|
158
|
+
"location/state": "location/state";
|
|
159
|
+
"location/zip_code": "location/zip_code";
|
|
160
|
+
"location/country": "location/country";
|
|
161
|
+
"date/range": "date/range";
|
|
162
|
+
"date/month-year": "date/month-year";
|
|
163
|
+
"date/quarter-year": "date/quarter-year";
|
|
164
|
+
"date/relative": "date/relative";
|
|
165
|
+
"date/all-options": "date/all-options";
|
|
166
|
+
"number/!=": "number/!=";
|
|
167
|
+
"number/<=": "number/<=";
|
|
168
|
+
"number/=": "number/=";
|
|
169
|
+
"number/>=": "number/>=";
|
|
170
|
+
"number/between": "number/between";
|
|
171
|
+
"string/!=": "string/!=";
|
|
172
|
+
"string/=": "string/=";
|
|
173
|
+
"string/contains": "string/contains";
|
|
174
|
+
"string/does-not-contain": "string/does-not-contain";
|
|
175
|
+
"string/ends-with": "string/ends-with";
|
|
176
|
+
"string/starts-with": "string/starts-with";
|
|
177
|
+
"boolean/=": "boolean/=";
|
|
178
|
+
}>;
|
|
179
|
+
name: z.ZodOptional<z.ZodString>;
|
|
180
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
181
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
182
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
183
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
184
|
+
filteringParameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
185
|
+
target: z.ZodOptional<z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"dimension">, z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"template-tag">, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
186
|
+
id: z.ZodString;
|
|
187
|
+
}, z.core.$loose>]>], null>, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>], z.ZodUnknown>, z.ZodTuple<[z.ZodLiteral<"variable">, z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"template-tag">, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
188
|
+
id: z.ZodString;
|
|
189
|
+
}, z.core.$loose>]>], null>, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>], null>, z.ZodTuple<[z.ZodLiteral<"text-tag">, z.ZodString], null>, z.ZodNumber, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>>;
|
|
190
|
+
temporal_units: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
191
|
+
default: "default";
|
|
192
|
+
millisecond: "millisecond";
|
|
193
|
+
second: "second";
|
|
194
|
+
minute: "minute";
|
|
195
|
+
hour: "hour";
|
|
196
|
+
day: "day";
|
|
197
|
+
week: "week";
|
|
198
|
+
month: "month";
|
|
199
|
+
quarter: "quarter";
|
|
200
|
+
year: "year";
|
|
201
|
+
"second-of-minute": "second-of-minute";
|
|
202
|
+
"minute-of-hour": "minute-of-hour";
|
|
203
|
+
"hour-of-day": "hour-of-day";
|
|
204
|
+
"day-of-week": "day-of-week";
|
|
205
|
+
"day-of-month": "day-of-month";
|
|
206
|
+
"day-of-year": "day-of-year";
|
|
207
|
+
"week-of-year": "week-of-year";
|
|
208
|
+
"month-of-year": "month-of-year";
|
|
209
|
+
"quarter-of-year": "quarter-of-year";
|
|
210
|
+
"year-of-era": "year-of-era";
|
|
211
|
+
}>>>>;
|
|
212
|
+
values_query_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
213
|
+
list: "list";
|
|
214
|
+
search: "search";
|
|
215
|
+
none: "none";
|
|
216
|
+
}>>>;
|
|
217
|
+
values_source_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
218
|
+
card: "card";
|
|
219
|
+
"static-list": "static-list";
|
|
220
|
+
}>>>;
|
|
221
|
+
values_source_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
222
|
+
values: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
223
|
+
card_id: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
value_field: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodUnknown>>;
|
|
225
|
+
label_field: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodUnknown>>;
|
|
226
|
+
}, z.core.$loose>>>;
|
|
227
|
+
}, z.core.$loose>>;
|
|
228
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
229
|
+
id: z.ZodNumber;
|
|
230
|
+
name: z.ZodString;
|
|
231
|
+
dashboard_card_id: z.ZodNullable<z.ZodNumber>;
|
|
232
|
+
include_csv: z.ZodBoolean;
|
|
233
|
+
include_xls: z.ZodBoolean;
|
|
234
|
+
}, z.core.$loose>>;
|
|
235
|
+
channels: z.ZodArray<z.ZodObject<{
|
|
236
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
channel_type: z.ZodEnum<{
|
|
238
|
+
email: "email";
|
|
239
|
+
slack: "slack";
|
|
240
|
+
http: "http";
|
|
241
|
+
}>;
|
|
242
|
+
channel_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
243
|
+
enabled: z.ZodBoolean;
|
|
244
|
+
schedule_type: z.ZodEnum<{
|
|
245
|
+
hourly: "hourly";
|
|
246
|
+
daily: "daily";
|
|
247
|
+
weekly: "weekly";
|
|
248
|
+
monthly: "monthly";
|
|
249
|
+
}>;
|
|
250
|
+
schedule_hour: z.ZodNullable<z.ZodNumber>;
|
|
251
|
+
schedule_day: z.ZodNullable<z.ZodEnum<{
|
|
252
|
+
mon: "mon";
|
|
253
|
+
tue: "tue";
|
|
254
|
+
wed: "wed";
|
|
255
|
+
thu: "thu";
|
|
256
|
+
fri: "fri";
|
|
257
|
+
sat: "sat";
|
|
258
|
+
sun: "sun";
|
|
259
|
+
}>>;
|
|
260
|
+
schedule_frame: z.ZodNullable<z.ZodEnum<{
|
|
261
|
+
first: "first";
|
|
262
|
+
mid: "mid";
|
|
263
|
+
last: "last";
|
|
264
|
+
}>>;
|
|
265
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, z.core.$loose>>;
|
|
268
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
269
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
270
|
+
email: z.ZodString;
|
|
271
|
+
}, z.core.$loose>>;
|
|
272
|
+
}, z.core.$loose>>;
|
|
273
|
+
}, z.core.$loose>;
|
|
274
|
+
type Pulse = z.infer<typeof Pulse>;
|
|
275
|
+
declare const PulseCompact: z.ZodObject<{
|
|
276
|
+
name: z.ZodNullable<z.ZodString>;
|
|
277
|
+
id: z.ZodNumber;
|
|
278
|
+
collection_id: z.ZodNullable<z.ZodNumber>;
|
|
279
|
+
archived: z.ZodBoolean;
|
|
280
|
+
dashboard_id: z.ZodNullable<z.ZodNumber>;
|
|
281
|
+
skip_if_empty: z.ZodBoolean;
|
|
282
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
283
|
+
name: z.ZodString;
|
|
284
|
+
id: z.ZodNumber;
|
|
285
|
+
dashboard_card_id: z.ZodNullable<z.ZodNumber>;
|
|
286
|
+
include_csv: z.ZodBoolean;
|
|
287
|
+
include_xls: z.ZodBoolean;
|
|
288
|
+
}, z.core.$strip>>;
|
|
289
|
+
channels: z.ZodArray<z.ZodObject<{
|
|
290
|
+
enabled: z.ZodBoolean;
|
|
291
|
+
channel_type: z.ZodEnum<{
|
|
292
|
+
email: "email";
|
|
293
|
+
slack: "slack";
|
|
294
|
+
http: "http";
|
|
295
|
+
}>;
|
|
296
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
297
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, z.core.$loose>>;
|
|
299
|
+
schedule_type: z.ZodEnum<{
|
|
300
|
+
hourly: "hourly";
|
|
301
|
+
daily: "daily";
|
|
302
|
+
weekly: "weekly";
|
|
303
|
+
monthly: "monthly";
|
|
304
|
+
}>;
|
|
305
|
+
schedule_hour: z.ZodNullable<z.ZodNumber>;
|
|
306
|
+
schedule_day: z.ZodNullable<z.ZodEnum<{
|
|
307
|
+
mon: "mon";
|
|
308
|
+
tue: "tue";
|
|
309
|
+
wed: "wed";
|
|
310
|
+
thu: "thu";
|
|
311
|
+
fri: "fri";
|
|
312
|
+
sat: "sat";
|
|
313
|
+
sun: "sun";
|
|
314
|
+
}>>;
|
|
315
|
+
schedule_frame: z.ZodNullable<z.ZodEnum<{
|
|
316
|
+
first: "first";
|
|
317
|
+
mid: "mid";
|
|
318
|
+
last: "last";
|
|
319
|
+
}>>;
|
|
320
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
321
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
322
|
+
email: z.ZodString;
|
|
323
|
+
}, z.core.$strip>>;
|
|
324
|
+
}, z.core.$strip>>;
|
|
325
|
+
}, z.core.$strip>;
|
|
326
|
+
type PulseCompact = z.infer<typeof PulseCompact>;
|
|
327
|
+
declare const PulseCreateInput: z.ZodObject<{
|
|
328
|
+
name: z.ZodString;
|
|
329
|
+
dashboard_id: z.ZodNumber;
|
|
330
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
331
|
+
id: z.ZodNumber;
|
|
332
|
+
include_csv: z.ZodBoolean;
|
|
333
|
+
include_xls: z.ZodBoolean;
|
|
334
|
+
dashboard_card_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
335
|
+
format_rows: z.ZodOptional<z.ZodBoolean>;
|
|
336
|
+
pivot_results: z.ZodOptional<z.ZodBoolean>;
|
|
337
|
+
}, z.core.$loose>>;
|
|
338
|
+
channels: z.ZodArray<z.ZodObject<{
|
|
339
|
+
channel_type: z.ZodEnum<{
|
|
340
|
+
email: "email";
|
|
341
|
+
slack: "slack";
|
|
342
|
+
http: "http";
|
|
343
|
+
}>;
|
|
344
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
345
|
+
schedule_type: z.ZodEnum<{
|
|
346
|
+
hourly: "hourly";
|
|
347
|
+
daily: "daily";
|
|
348
|
+
weekly: "weekly";
|
|
349
|
+
monthly: "monthly";
|
|
350
|
+
}>;
|
|
351
|
+
schedule_hour: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
352
|
+
schedule_day: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
353
|
+
mon: "mon";
|
|
354
|
+
tue: "tue";
|
|
355
|
+
wed: "wed";
|
|
356
|
+
thu: "thu";
|
|
357
|
+
fri: "fri";
|
|
358
|
+
sat: "sat";
|
|
359
|
+
sun: "sun";
|
|
360
|
+
}>>>;
|
|
361
|
+
schedule_frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
362
|
+
first: "first";
|
|
363
|
+
mid: "mid";
|
|
364
|
+
last: "last";
|
|
365
|
+
}>>>;
|
|
366
|
+
channel_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
367
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
368
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
369
|
+
}, z.core.$loose>>;
|
|
370
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
371
|
+
id: z.ZodNumber;
|
|
372
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
373
|
+
email: z.ZodString;
|
|
374
|
+
}, z.core.$loose>]>>>;
|
|
375
|
+
}, z.core.$loose>>;
|
|
376
|
+
skip_if_empty: z.ZodOptional<z.ZodBoolean>;
|
|
377
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
378
|
+
id: z.ZodString;
|
|
379
|
+
type: z.ZodEnum<{
|
|
380
|
+
number: "number";
|
|
381
|
+
boolean: "boolean";
|
|
382
|
+
id: "id";
|
|
383
|
+
date: "date";
|
|
384
|
+
text: "text";
|
|
385
|
+
"temporal-unit": "temporal-unit";
|
|
386
|
+
"date/single": "date/single";
|
|
387
|
+
category: "category";
|
|
388
|
+
"location/city": "location/city";
|
|
389
|
+
"location/state": "location/state";
|
|
390
|
+
"location/zip_code": "location/zip_code";
|
|
391
|
+
"location/country": "location/country";
|
|
392
|
+
"date/range": "date/range";
|
|
393
|
+
"date/month-year": "date/month-year";
|
|
394
|
+
"date/quarter-year": "date/quarter-year";
|
|
395
|
+
"date/relative": "date/relative";
|
|
396
|
+
"date/all-options": "date/all-options";
|
|
397
|
+
"number/!=": "number/!=";
|
|
398
|
+
"number/<=": "number/<=";
|
|
399
|
+
"number/=": "number/=";
|
|
400
|
+
"number/>=": "number/>=";
|
|
401
|
+
"number/between": "number/between";
|
|
402
|
+
"string/!=": "string/!=";
|
|
403
|
+
"string/=": "string/=";
|
|
404
|
+
"string/contains": "string/contains";
|
|
405
|
+
"string/does-not-contain": "string/does-not-contain";
|
|
406
|
+
"string/ends-with": "string/ends-with";
|
|
407
|
+
"string/starts-with": "string/starts-with";
|
|
408
|
+
"boolean/=": "boolean/=";
|
|
409
|
+
}>;
|
|
410
|
+
name: z.ZodOptional<z.ZodString>;
|
|
411
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
412
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
413
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
414
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
415
|
+
filteringParameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
416
|
+
target: z.ZodOptional<z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"dimension">, z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"template-tag">, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
417
|
+
id: z.ZodString;
|
|
418
|
+
}, z.core.$loose>]>], null>, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>], z.ZodUnknown>, z.ZodTuple<[z.ZodLiteral<"variable">, z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"template-tag">, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
419
|
+
id: z.ZodString;
|
|
420
|
+
}, z.core.$loose>]>], null>, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>], null>, z.ZodTuple<[z.ZodLiteral<"text-tag">, z.ZodString], null>, z.ZodNumber, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>>;
|
|
421
|
+
temporal_units: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
422
|
+
default: "default";
|
|
423
|
+
millisecond: "millisecond";
|
|
424
|
+
second: "second";
|
|
425
|
+
minute: "minute";
|
|
426
|
+
hour: "hour";
|
|
427
|
+
day: "day";
|
|
428
|
+
week: "week";
|
|
429
|
+
month: "month";
|
|
430
|
+
quarter: "quarter";
|
|
431
|
+
year: "year";
|
|
432
|
+
"second-of-minute": "second-of-minute";
|
|
433
|
+
"minute-of-hour": "minute-of-hour";
|
|
434
|
+
"hour-of-day": "hour-of-day";
|
|
435
|
+
"day-of-week": "day-of-week";
|
|
436
|
+
"day-of-month": "day-of-month";
|
|
437
|
+
"day-of-year": "day-of-year";
|
|
438
|
+
"week-of-year": "week-of-year";
|
|
439
|
+
"month-of-year": "month-of-year";
|
|
440
|
+
"quarter-of-year": "quarter-of-year";
|
|
441
|
+
"year-of-era": "year-of-era";
|
|
442
|
+
}>>>>;
|
|
443
|
+
values_query_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
444
|
+
list: "list";
|
|
445
|
+
search: "search";
|
|
446
|
+
none: "none";
|
|
447
|
+
}>>>;
|
|
448
|
+
values_source_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
449
|
+
card: "card";
|
|
450
|
+
"static-list": "static-list";
|
|
451
|
+
}>>>;
|
|
452
|
+
values_source_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
453
|
+
values: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
454
|
+
card_id: z.ZodOptional<z.ZodNumber>;
|
|
455
|
+
value_field: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodUnknown>>;
|
|
456
|
+
label_field: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodUnknown>>;
|
|
457
|
+
}, z.core.$loose>>>;
|
|
458
|
+
}, z.core.$loose>>>;
|
|
459
|
+
}, z.core.$loose>;
|
|
460
|
+
type PulseCreateInput = z.infer<typeof PulseCreateInput>;
|
|
461
|
+
declare const PulseUpdateInput: z.ZodObject<{
|
|
462
|
+
name: z.ZodOptional<z.ZodString>;
|
|
463
|
+
cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
464
|
+
id: z.ZodNumber;
|
|
465
|
+
include_csv: z.ZodBoolean;
|
|
466
|
+
include_xls: z.ZodBoolean;
|
|
467
|
+
dashboard_card_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
468
|
+
format_rows: z.ZodOptional<z.ZodBoolean>;
|
|
469
|
+
pivot_results: z.ZodOptional<z.ZodBoolean>;
|
|
470
|
+
}, z.core.$loose>>>;
|
|
471
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
472
|
+
channel_type: z.ZodEnum<{
|
|
473
|
+
email: "email";
|
|
474
|
+
slack: "slack";
|
|
475
|
+
http: "http";
|
|
476
|
+
}>;
|
|
477
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
478
|
+
schedule_type: z.ZodEnum<{
|
|
479
|
+
hourly: "hourly";
|
|
480
|
+
daily: "daily";
|
|
481
|
+
weekly: "weekly";
|
|
482
|
+
monthly: "monthly";
|
|
483
|
+
}>;
|
|
484
|
+
schedule_hour: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
485
|
+
schedule_day: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
486
|
+
mon: "mon";
|
|
487
|
+
tue: "tue";
|
|
488
|
+
wed: "wed";
|
|
489
|
+
thu: "thu";
|
|
490
|
+
fri: "fri";
|
|
491
|
+
sat: "sat";
|
|
492
|
+
sun: "sun";
|
|
493
|
+
}>>>;
|
|
494
|
+
schedule_frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
495
|
+
first: "first";
|
|
496
|
+
mid: "mid";
|
|
497
|
+
last: "last";
|
|
498
|
+
}>>>;
|
|
499
|
+
channel_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
500
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
501
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
502
|
+
}, z.core.$loose>>;
|
|
503
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
504
|
+
id: z.ZodNumber;
|
|
505
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
506
|
+
email: z.ZodString;
|
|
507
|
+
}, z.core.$loose>]>>>;
|
|
508
|
+
}, z.core.$loose>>>;
|
|
509
|
+
skip_if_empty: z.ZodOptional<z.ZodBoolean>;
|
|
510
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
511
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
512
|
+
id: z.ZodString;
|
|
513
|
+
type: z.ZodEnum<{
|
|
514
|
+
number: "number";
|
|
515
|
+
boolean: "boolean";
|
|
516
|
+
id: "id";
|
|
517
|
+
date: "date";
|
|
518
|
+
text: "text";
|
|
519
|
+
"temporal-unit": "temporal-unit";
|
|
520
|
+
"date/single": "date/single";
|
|
521
|
+
category: "category";
|
|
522
|
+
"location/city": "location/city";
|
|
523
|
+
"location/state": "location/state";
|
|
524
|
+
"location/zip_code": "location/zip_code";
|
|
525
|
+
"location/country": "location/country";
|
|
526
|
+
"date/range": "date/range";
|
|
527
|
+
"date/month-year": "date/month-year";
|
|
528
|
+
"date/quarter-year": "date/quarter-year";
|
|
529
|
+
"date/relative": "date/relative";
|
|
530
|
+
"date/all-options": "date/all-options";
|
|
531
|
+
"number/!=": "number/!=";
|
|
532
|
+
"number/<=": "number/<=";
|
|
533
|
+
"number/=": "number/=";
|
|
534
|
+
"number/>=": "number/>=";
|
|
535
|
+
"number/between": "number/between";
|
|
536
|
+
"string/!=": "string/!=";
|
|
537
|
+
"string/=": "string/=";
|
|
538
|
+
"string/contains": "string/contains";
|
|
539
|
+
"string/does-not-contain": "string/does-not-contain";
|
|
540
|
+
"string/ends-with": "string/ends-with";
|
|
541
|
+
"string/starts-with": "string/starts-with";
|
|
542
|
+
"boolean/=": "boolean/=";
|
|
543
|
+
}>;
|
|
544
|
+
name: z.ZodOptional<z.ZodString>;
|
|
545
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
546
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
547
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
548
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
549
|
+
filteringParameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
550
|
+
target: z.ZodOptional<z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"dimension">, z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"template-tag">, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
551
|
+
id: z.ZodString;
|
|
552
|
+
}, z.core.$loose>]>], null>, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>], z.ZodUnknown>, z.ZodTuple<[z.ZodLiteral<"variable">, z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"template-tag">, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
553
|
+
id: z.ZodString;
|
|
554
|
+
}, z.core.$loose>]>], null>, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>], null>, z.ZodTuple<[z.ZodLiteral<"text-tag">, z.ZodString], null>, z.ZodNumber, z.ZodTuple<[z.ZodString], z.ZodUnknown>]>>;
|
|
555
|
+
temporal_units: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
556
|
+
default: "default";
|
|
557
|
+
millisecond: "millisecond";
|
|
558
|
+
second: "second";
|
|
559
|
+
minute: "minute";
|
|
560
|
+
hour: "hour";
|
|
561
|
+
day: "day";
|
|
562
|
+
week: "week";
|
|
563
|
+
month: "month";
|
|
564
|
+
quarter: "quarter";
|
|
565
|
+
year: "year";
|
|
566
|
+
"second-of-minute": "second-of-minute";
|
|
567
|
+
"minute-of-hour": "minute-of-hour";
|
|
568
|
+
"hour-of-day": "hour-of-day";
|
|
569
|
+
"day-of-week": "day-of-week";
|
|
570
|
+
"day-of-month": "day-of-month";
|
|
571
|
+
"day-of-year": "day-of-year";
|
|
572
|
+
"week-of-year": "week-of-year";
|
|
573
|
+
"month-of-year": "month-of-year";
|
|
574
|
+
"quarter-of-year": "quarter-of-year";
|
|
575
|
+
"year-of-era": "year-of-era";
|
|
576
|
+
}>>>>;
|
|
577
|
+
values_query_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
578
|
+
list: "list";
|
|
579
|
+
search: "search";
|
|
580
|
+
none: "none";
|
|
581
|
+
}>>>;
|
|
582
|
+
values_source_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
583
|
+
card: "card";
|
|
584
|
+
"static-list": "static-list";
|
|
585
|
+
}>>>;
|
|
586
|
+
values_source_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
587
|
+
values: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
588
|
+
card_id: z.ZodOptional<z.ZodNumber>;
|
|
589
|
+
value_field: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodUnknown>>;
|
|
590
|
+
label_field: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodUnknown>>;
|
|
591
|
+
}, z.core.$loose>>>;
|
|
592
|
+
}, z.core.$loose>>>;
|
|
593
|
+
}, z.core.$loose>;
|
|
594
|
+
type PulseUpdateInput = z.infer<typeof PulseUpdateInput>;
|
|
595
|
+
//#endregion
|
|
596
|
+
export { PulseChannelCompact as a, PulseCompact as c, PulseRecipientCompact as d, PulseScheduleDay as f, PulseUpdateInput as h, PulseChannel as i, PulseCreateInput as l, PulseScheduleType as m, PulseCard as n, PulseChannelDetails as o, PulseScheduleFrame as p, PulseCardCompact as r, PulseChannelType as s, Pulse as t, PulseRecipient as u };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { f as RequestOptions, h as Transport } from "./transport-E0ZaPNWJ.js";
|
|
2
|
+
import { t as ListResult } from "./list-BT_bBm9Z.js";
|
|
3
|
+
import { h as PulseUpdateInput, l as PulseCreateInput, t as Pulse } from "./pulse-CMc1Rwdj.js";
|
|
4
|
+
//#region src/resources/pulse.d.ts
|
|
5
|
+
interface PulseListParams {
|
|
6
|
+
dashboard_id?: number | undefined;
|
|
7
|
+
archived?: boolean | undefined;
|
|
8
|
+
}
|
|
9
|
+
declare function mergePulseUpdate(current: Pulse, patch: PulseUpdateInput): PulseUpdateInput;
|
|
10
|
+
declare function pulseResource(transport: Transport): {
|
|
11
|
+
list: (params?: PulseListParams, options?: RequestOptions) => Promise<ListResult<Pulse>>;
|
|
12
|
+
get: (id: number, options?: RequestOptions) => Promise<Pulse>;
|
|
13
|
+
create: (params: PulseCreateInput, options?: RequestOptions) => Promise<Pulse>;
|
|
14
|
+
update: (id: number, params: PulseUpdateInput, options?: RequestOptions) => Promise<Pulse>;
|
|
15
|
+
archive: (id: number, options?: RequestOptions) => Promise<Pulse>;
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { mergePulseUpdate as n, pulseResource as r, PulseListParams as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/domain/query.d.ts
|
|
3
|
+
declare const DatasetQuery: z.ZodObject<{}, z.core.$loose>;
|
|
4
|
+
type DatasetQuery = z.infer<typeof DatasetQuery>;
|
|
5
|
+
declare const ExportFormat: z.ZodEnum<{
|
|
6
|
+
csv: "csv";
|
|
7
|
+
json: "json";
|
|
8
|
+
xlsx: "xlsx";
|
|
9
|
+
}>;
|
|
10
|
+
type ExportFormat = z.infer<typeof ExportFormat>;
|
|
11
|
+
declare const PivotExportFormat: z.ZodEnum<{
|
|
12
|
+
csv: "csv";
|
|
13
|
+
xlsx: "xlsx";
|
|
14
|
+
}>;
|
|
15
|
+
declare const VisualizationSettings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
16
|
+
type VisualizationSettings = z.infer<typeof VisualizationSettings>;
|
|
17
|
+
declare const SortDirection: z.ZodEnum<{
|
|
18
|
+
asc: "asc";
|
|
19
|
+
desc: "desc";
|
|
20
|
+
}>;
|
|
21
|
+
type SortDirection = z.infer<typeof SortDirection>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { VisualizationSettings as a, SortDirection as i, ExportFormat as n, PivotExportFormat as r, DatasetQuery as t };
|