@metabase/client 0.1.1 → 0.1.2

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.
Files changed (155) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +4 -2
  3. package/dist/auth/credential.d.ts +1 -1
  4. package/dist/auth/oauth-login.d.ts +1 -1
  5. package/dist/auth/oauth-login.js +1 -1
  6. package/dist/auth/oauth-session.d.ts +1 -1
  7. package/dist/{card-DN0sLkCG.d.ts → card-CbV6hLYH.d.ts} +3 -3
  8. package/dist/{card-BxBzr5Uj.d.ts → card-CrSywvOt.d.ts} +23 -23
  9. package/dist/{client-DdXLlH1B.d.ts → client-cBi6_RQs.d.ts} +108 -108
  10. package/dist/client.d.ts +1 -1
  11. package/dist/{collection-DGnTvD6R.d.ts → collection-Bmtisr3r.d.ts} +34 -34
  12. package/dist/{collection-fFahL-ub.d.ts → collection-Q9FNMiRh.d.ts} +4 -4
  13. package/dist/{credential-6aOEGqMH.d.ts → credential-B6fKSvqp.d.ts} +1 -1
  14. package/dist/{dashboard-CM7RmNeE.d.ts → dashboard-CknUcTp8.d.ts} +3 -3
  15. package/dist/{dashboard-DtLXVgtf.d.ts → dashboard-DBdEehA9.d.ts} +18 -18
  16. package/dist/{data-action-CkXVrOUH.d.ts → data-action-CqqZ0JYg.d.ts} +1 -1
  17. package/dist/{data-app-CqP5_fpB.d.ts → data-app-MoMS9VUr.d.ts} +1 -1
  18. package/dist/{database-B0JNZjDN.d.ts → database-Bs5WQOOZ.d.ts} +3 -3
  19. package/dist/{database-BxqDmfcj.d.ts → database-CYNLJ8AZ.d.ts} +19 -19
  20. package/dist/{dataset-BBNGPVec.d.ts → dataset-cg8ZZrOP.d.ts} +78 -78
  21. package/dist/{dataset-BUirJ1rO.d.ts → dataset-dzWljE_C.d.ts} +3 -3
  22. package/dist/{dependency-CzpXmeu7.d.ts → dependency-CL-YG9KH.d.ts} +25 -25
  23. package/dist/{dependency-arB8Cr2H.d.ts → dependency-VqvLTDAU.d.ts} +134 -134
  24. package/dist/domain/card.d.ts +1 -1
  25. package/dist/domain/collection.d.ts +1 -1
  26. package/dist/domain/dashboard.d.ts +1 -1
  27. package/dist/domain/data-action.d.ts +1 -1
  28. package/dist/domain/data-app.d.ts +1 -1
  29. package/dist/domain/database.d.ts +1 -1
  30. package/dist/domain/dataset.d.ts +1 -1
  31. package/dist/domain/dependency.d.ts +1 -1
  32. package/dist/domain/eid-translation.d.ts +1 -1
  33. package/dist/domain/embedding.d.ts +1 -1
  34. package/dist/domain/field.d.ts +1 -1
  35. package/dist/domain/git-sync.d.ts +1 -1
  36. package/dist/domain/metric.d.ts +1 -1
  37. package/dist/domain/moderation-review.d.ts +1 -1
  38. package/dist/domain/notification.d.ts +1 -1
  39. package/dist/domain/parameter.d.ts +1 -1
  40. package/dist/domain/pulse.d.ts +1 -1
  41. package/dist/domain/replacement.d.ts +1 -1
  42. package/dist/domain/revision.d.ts +1 -1
  43. package/dist/domain/search.d.ts +1 -1
  44. package/dist/domain/table.d.ts +1 -1
  45. package/dist/domain/timeline.d.ts +1 -1
  46. package/dist/domain/transform-dag-run.d.ts +1 -1
  47. package/dist/domain/transform-inspector.d.ts +1 -1
  48. package/dist/domain/transform-job.d.ts +1 -1
  49. package/dist/domain/transform-test.d.ts +1 -1
  50. package/dist/domain/transform.d.ts +1 -1
  51. package/dist/{eid-translation-CH6NPWd-.d.ts → eid-translation-aQSffx0o.d.ts} +35 -35
  52. package/dist/{embedding-oU3gqfgX.d.ts → embedding-Cz3RUJYf.d.ts} +1 -1
  53. package/dist/{erd-CbV7xvAc.d.ts → erd-DCgdEC2S.d.ts} +1 -1
  54. package/dist/errors.d.ts +1 -1
  55. package/dist/{field-D1Pfk-0S.d.ts → field-ozrfbvUd.d.ts} +2 -2
  56. package/dist/{field-p9Rme2zB.d.ts → field-tqQPtVuR.d.ts} +3 -3
  57. package/dist/{git-sync-BTf1aYHr.d.ts → git-sync-5lFWX1ds.d.ts} +1 -1
  58. package/dist/{git-sync-C99SVdJ9.d.ts → git-sync-QL9Nu6gP.d.ts} +8 -8
  59. package/dist/{glossary-DFvnz-E5.d.ts → glossary-DwS7QVrl.d.ts} +1 -1
  60. package/dist/http/errors.d.ts +1 -1
  61. package/dist/http/oauth.d.ts +1 -1
  62. package/dist/http/oauth.js +47 -36
  63. package/dist/http/transport.d.ts +1 -1
  64. package/dist/index.d.ts +35 -35
  65. package/dist/index.js +1 -1
  66. package/dist/{json-BksZpXDC.d.ts → json-DwGOvRtS.d.ts} +1 -1
  67. package/dist/json.d.ts +1 -1
  68. package/dist/{measure-lPz8qnwz.d.ts → measure-CInoXeyH.d.ts} +1 -1
  69. package/dist/{metric-DcYloqOQ.d.ts → metric-CYOmbcM5.d.ts} +8 -8
  70. package/dist/{moderation-review-B4RUTZ6_.d.ts → moderation-review-CWUQ3_HL.d.ts} +4 -4
  71. package/dist/{notification-D1MThyKE.d.ts → notification-BY2JEjKp.d.ts} +2 -2
  72. package/dist/{notification-Cp5GJErS.d.ts → notification-D-Hp82Pn.d.ts} +2 -2
  73. package/dist/{oauth-C4ordeoJ.d.ts → oauth-CVoZpuq8.d.ts} +4 -2
  74. package/dist/{oauth-login-D734Jvbq.js → oauth-login--tDagiZu.js} +29 -11
  75. package/dist/{oauth-login-CJsT_3EE.d.ts → oauth-login-SZ4Csai8.d.ts} +3 -2
  76. package/dist/{oauth-session-BlIlcd8Q.d.ts → oauth-session-COLH4puN.d.ts} +1 -1
  77. package/dist/{paginate-COuL0Gzl.d.ts → paginate-CaJ5usdp.d.ts} +1 -1
  78. package/dist/paginate.d.ts +1 -1
  79. package/dist/{parameter-ak-J-IOj.d.ts → parameter-BYo7uR-J.d.ts} +2 -2
  80. package/dist/{pulse-BzKmz3Yn.d.ts → pulse-BTpSNxhT.d.ts} +2 -2
  81. package/dist/{pulse-0LG3K6qO.d.ts → pulse-BUlfrJZH.d.ts} +16 -16
  82. package/dist/{replacement-BGyggp-G.d.ts → replacement-BQian4vA.d.ts} +19 -19
  83. package/dist/{replacement-CVebCuNp.d.ts → replacement-Dbtvvrmz.d.ts} +11 -11
  84. package/dist/{requirement-check-glU7wqhQ.d.ts → requirement-check-CHHEHXcj.d.ts} +1 -1
  85. package/dist/resources/api-key.d.ts +1 -1
  86. package/dist/resources/card.d.ts +1 -1
  87. package/dist/resources/collection.d.ts +1 -1
  88. package/dist/resources/collection.js +6 -1
  89. package/dist/resources/content-translation.d.ts +1 -1
  90. package/dist/resources/dashboard.d.ts +1 -1
  91. package/dist/resources/data-action.d.ts +2 -2
  92. package/dist/resources/data-app.d.ts +1 -1
  93. package/dist/resources/database.d.ts +1 -1
  94. package/dist/resources/dataset.d.ts +1 -1
  95. package/dist/resources/dependency.d.ts +1 -1
  96. package/dist/resources/document.d.ts +2 -9
  97. package/dist/resources/eid-translation.d.ts +2 -2
  98. package/dist/resources/erd.d.ts +1 -1
  99. package/dist/resources/field.d.ts +1 -1
  100. package/dist/resources/git-sync.d.ts +1 -1
  101. package/dist/resources/glossary.d.ts +1 -1
  102. package/dist/resources/library.d.ts +1 -1
  103. package/dist/resources/measure.d.ts +1 -1
  104. package/dist/resources/metric.d.ts +1 -1
  105. package/dist/resources/moderation-review.d.ts +1 -1
  106. package/dist/resources/notification.d.ts +1 -1
  107. package/dist/resources/optional-parsed.d.ts +1 -1
  108. package/dist/resources/permission.d.ts +1 -1
  109. package/dist/resources/pivot-export.d.ts +1 -1
  110. package/dist/resources/pulse.d.ts +1 -1
  111. package/dist/resources/replacement.d.ts +1 -1
  112. package/dist/resources/revision.d.ts +1 -1
  113. package/dist/resources/search.d.ts +1 -1
  114. package/dist/resources/segment.d.ts +1 -1
  115. package/dist/resources/setting.d.ts +1 -1
  116. package/dist/resources/setup.d.ts +1 -1
  117. package/dist/resources/snippet.d.ts +1 -1
  118. package/dist/resources/table.d.ts +1 -1
  119. package/dist/resources/timeline-event.d.ts +2 -2
  120. package/dist/resources/timeline.d.ts +1 -1
  121. package/dist/resources/transform-dag-run.d.ts +2 -2
  122. package/dist/resources/transform-inspector.d.ts +4 -4
  123. package/dist/resources/transform-job.d.ts +1 -1
  124. package/dist/resources/transform-python.d.ts +1 -1
  125. package/dist/resources/transform-tag.d.ts +1 -1
  126. package/dist/resources/transform-test.d.ts +1 -1
  127. package/dist/resources/transform.d.ts +1 -1
  128. package/dist/resources/upload.d.ts +1 -1
  129. package/dist/resources/user.d.ts +1 -1
  130. package/dist/{revision-Dyl-8p7d.d.ts → revision-DNEw6S93.d.ts} +1 -1
  131. package/dist/{search-Cten2h0I.d.ts → search-BQWkdVg1.d.ts} +2 -2
  132. package/dist/{search-Cm5IxKss.d.ts → search-tK5lmRb8.d.ts} +18 -18
  133. package/dist/{segment-DQLX6r1E.d.ts → segment-jyhBtOAZ.d.ts} +1 -1
  134. package/dist/signal.d.ts +3 -2
  135. package/dist/signal.js +9 -4
  136. package/dist/{snippet-Djn0rL21.d.ts → snippet-DsgohpTV.d.ts} +1 -1
  137. package/dist/{table-CDZbLNow.d.ts → table-B1pQSpTA.d.ts} +10 -10
  138. package/dist/{table-Od6uvDVW.d.ts → table-BAl8aPZZ.d.ts} +30 -30
  139. package/dist/{timeline-BTs6fuRp.d.ts → timeline-BdLvwRnl.d.ts} +2 -2
  140. package/dist/{timeline-BK45hy-h.d.ts → timeline-BfX1lMob.d.ts} +11 -11
  141. package/dist/{transform-WASQAXeA.d.ts → transform-Ds74yPiY.d.ts} +12 -12
  142. package/dist/{transform-C5thnJwW.d.ts → transform-DwnIcpqV.d.ts} +14 -14
  143. package/dist/{transform-dag-run-BgZwv1yx.d.ts → transform-dag-run-BSrdrjaK.d.ts} +4 -4
  144. package/dist/{transform-inspector-CMCh8WKV.d.ts → transform-inspector-BMaRqcRM.d.ts} +8 -8
  145. package/dist/{transform-job-DmTwKxhc.d.ts → transform-job-C85GxBHj.d.ts} +6 -6
  146. package/dist/{transform-job-D8jTQtdX.d.ts → transform-job-Dfp9Ox0l.d.ts} +2 -2
  147. package/dist/{transform-test-CR_i54IV.d.ts → transform-test-C3hiZ4AV.d.ts} +2 -2
  148. package/dist/{transform-test-CeMzDpUC.d.ts → transform-test-DROPvrkI.d.ts} +1 -1
  149. package/dist/{transport-BsXqRujn.d.ts → transport-CS11mEqI.d.ts} +3 -3
  150. package/dist/{upload-B5YjVkSW.d.ts → upload-Bx1D7eNy.d.ts} +1 -1
  151. package/dist/version/capability-error.d.ts +1 -1
  152. package/dist/version/probe.d.ts +1 -1
  153. package/dist/version/profile.d.ts +1 -1
  154. package/dist/version/requirement-check.d.ts +1 -1
  155. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import { n as snippetResource, t as SnippetListParams } from "../snippet-Djn0rL21.js";
1
+ import { n as snippetResource, t as SnippetListParams } from "../snippet-DsgohpTV.js";
2
2
  export { SnippetListParams, snippetResource };
@@ -1,2 +1,2 @@
1
- import { n as tableResource, t as TableListParams } from "../table-CDZbLNow.js";
1
+ import { n as tableResource, t as TableListParams } from "../table-B1pQSpTA.js";
2
2
  export { TableListParams, tableResource };
@@ -1,5 +1,5 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
2
- import { i as TimelineEvent, o as TimelineEventCreateInput, s as TimelineEventUpdateInput } from "../timeline-BK45hy-h.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-CS11mEqI.js";
2
+ import { i as TimelineEvent, o as TimelineEventCreateInput, s as TimelineEventUpdateInput } from "../timeline-BfX1lMob.js";
3
3
  //#region src/resources/timeline-event.d.ts
4
4
  declare function timelineEventResource(transport: Transport): {
5
5
  get: (id: number, options?: RequestOptions) => Promise<TimelineEvent>;
@@ -1,2 +1,2 @@
1
- import { n as TimelineListParams, r as timelineResource, t as TimelineEventsParams } from "../timeline-BTs6fuRp.js";
1
+ import { n as TimelineListParams, r as timelineResource, t as TimelineEventsParams } from "../timeline-BdLvwRnl.js";
2
2
  export { TimelineEventsParams, TimelineListParams, timelineResource };
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-CS11mEqI.js";
2
2
  import { t as ListResult } from "../list-BT_bBm9Z.js";
3
3
  //#region src/resources/transform-dag-run.d.ts
4
4
  declare function transformDagRunResource(transport: Transport): {
@@ -7,7 +7,7 @@ declare function transformDagRunResource(transport: Transport): {
7
7
  id: number;
8
8
  transform_id: number | null;
9
9
  run_method: "manual" | "cron";
10
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
10
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
11
11
  is_active: boolean | null;
12
12
  start_time: string;
13
13
  message: string | null;
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-CS11mEqI.js";
2
2
  //#region src/resources/transform-inspector.d.ts
3
3
  declare function transformInspectorResource(transport: Transport): {
4
4
  discover: (id: number, options?: RequestOptions | undefined) => Promise<{
@@ -95,7 +95,7 @@ declare function transformInspectorResource(transport: Transport): {
95
95
  [x: string]: unknown;
96
96
  id: string;
97
97
  title: string;
98
- display: "table" | "hidden" | "progress" | "bar" | "row" | "line" | "area" | "pie" | "scalar" | "gauge";
98
+ display: "table" | "hidden" | "row" | "progress" | "bar" | "line" | "area" | "pie" | "scalar" | "gauge";
99
99
  dataset_query: {
100
100
  [x: string]: unknown;
101
101
  };
@@ -108,7 +108,7 @@ declare function transformInspectorResource(transport: Transport): {
108
108
  dedup_key?: unknown[] | undefined;
109
109
  depends_on_cards?: string[] | undefined;
110
110
  group_id?: string | undefined;
111
- group_role?: "output" | "input" | undefined;
111
+ group_role?: "input" | "output" | undefined;
112
112
  group_order?: number | undefined;
113
113
  card_type?: string | undefined;
114
114
  } | undefined;
@@ -149,7 +149,7 @@ declare function transformInspectorResource(transport: Transport): {
149
149
  [x: string]: unknown;
150
150
  name: string;
151
151
  };
152
- severity: "warning" | "info" | "error";
152
+ severity: "error" | "warning" | "info";
153
153
  message: string;
154
154
  metadata?: {
155
155
  [x: string]: unknown;
@@ -1,2 +1,2 @@
1
- import { n as transformJobResource, t as TransformJobRunParams } from "../transform-job-DmTwKxhc.js";
1
+ import { n as transformJobResource, t as TransformJobRunParams } from "../transform-job-C85GxBHj.js";
2
2
  export { TransformJobRunParams, transformJobResource };
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-CS11mEqI.js";
2
2
  //#region src/resources/transform-python.d.ts
3
3
  declare function transformPythonResource(transport: Transport): {
4
4
  getLibrary: (path: string, options?: RequestOptions | undefined) => Promise<{
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-CS11mEqI.js";
2
2
  import { t as ListResult } from "../list-BT_bBm9Z.js";
3
3
  //#region src/resources/transform-tag.d.ts
4
4
  declare function transformTagResource(transport: Transport): {
@@ -1,2 +1,2 @@
1
- import { n as transformTestResource, t as TransformTestListParams } from "../transform-test-CR_i54IV.js";
1
+ import { n as transformTestResource, t as TransformTestListParams } from "../transform-test-C3hiZ4AV.js";
2
2
  export { TransformTestListParams, transformTestResource };
@@ -1,2 +1,2 @@
1
- import { a as TransformRunSummaryPageParams, i as TransformRunParams, n as TransformRunPageOptions, o as transformResource, r as TransformRunPageParams, t as TransformDagParams } from "../transform-WASQAXeA.js";
1
+ import { a as TransformRunSummaryPageParams, i as TransformRunParams, n as TransformRunPageOptions, o as transformResource, r as TransformRunPageParams, t as TransformDagParams } from "../transform-Ds74yPiY.js";
2
2
  export { TransformDagParams, TransformRunPageOptions, TransformRunPageParams, TransformRunParams, TransformRunSummaryPageParams, transformResource };
@@ -1,2 +1,2 @@
1
- import { n as uploadResource, t as UploadCsvParams } from "../upload-B5YjVkSW.js";
1
+ import { n as uploadResource, t as UploadCsvParams } from "../upload-Bx1D7eNy.js";
2
2
  export { UploadCsvParams, uploadResource };
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-CS11mEqI.js";
2
2
  import { t as CurrentUser } from "../user-Sqqv7rqh.js";
3
3
  //#region src/resources/user.d.ts
4
4
  declare function userResource(transport: Transport): {
@@ -31,13 +31,13 @@ type Revision = z.infer<typeof Revision>;
31
31
  declare const RevisionCompact: z.ZodObject<{
32
32
  id: z.ZodNumber;
33
33
  description: z.ZodString;
34
- timestamp: z.ZodString;
35
34
  user: z.ZodObject<{
36
35
  id: z.ZodNumber;
37
36
  first_name: z.ZodNullable<z.ZodString>;
38
37
  last_name: z.ZodNullable<z.ZodString>;
39
38
  common_name: z.ZodString;
40
39
  }, z.core.$loose>;
40
+ timestamp: z.ZodString;
41
41
  is_creation: z.ZodBoolean;
42
42
  is_reversion: z.ZodBoolean;
43
43
  }, z.core.$strip>;
@@ -1,5 +1,5 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
2
- import { n as SearchModel, r as SearchResult } from "./search-Cm5IxKss.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-CS11mEqI.js";
2
+ import { n as SearchModel, r as SearchResult } from "./search-tK5lmRb8.js";
3
3
  //#region src/resources/search.d.ts
4
4
  interface SearchPage {
5
5
  data: SearchResult[];
@@ -3,19 +3,19 @@ import { z } from "zod";
3
3
  declare const SEARCH_MODELS: readonly ["card", "dataset", "metric", "dashboard", "collection", "database", "table", "segment", "measure", "document", "exploration", "action", "transform", "indexed-entity"];
4
4
  declare const SearchModel: z.ZodEnum<{
5
5
  transform: "transform";
6
- collection: "collection";
6
+ metric: "metric";
7
+ database: "database";
8
+ table: "table";
7
9
  card: "card";
8
10
  dashboard: "dashboard";
9
- database: "database";
10
11
  dataset: "dataset";
12
+ collection: "collection";
11
13
  document: "document";
12
- metric: "metric";
13
- measure: "measure";
14
- segment: "segment";
15
- table: "table";
16
14
  exploration: "exploration";
15
+ measure: "measure";
17
16
  "indexed-entity": "indexed-entity";
18
17
  action: "action";
18
+ segment: "segment";
19
19
  }>;
20
20
  type SearchModel = z.infer<typeof SearchModel>;
21
21
  declare const SearchResult: z.ZodObject<{
@@ -23,19 +23,19 @@ declare const SearchResult: z.ZodObject<{
23
23
  name: z.ZodString;
24
24
  model: z.ZodEnum<{
25
25
  transform: "transform";
26
- collection: "collection";
26
+ metric: "metric";
27
+ database: "database";
28
+ table: "table";
27
29
  card: "card";
28
30
  dashboard: "dashboard";
29
- database: "database";
30
31
  dataset: "dataset";
32
+ collection: "collection";
31
33
  document: "document";
32
- metric: "metric";
33
- measure: "measure";
34
- segment: "segment";
35
- table: "table";
36
34
  exploration: "exploration";
35
+ measure: "measure";
37
36
  "indexed-entity": "indexed-entity";
38
37
  action: "action";
38
+ segment: "segment";
39
39
  }>;
40
40
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  archived: z.ZodNullable<z.ZodBoolean>;
@@ -65,19 +65,19 @@ declare const SearchResultCompact: z.ZodObject<{
65
65
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
66
  model: z.ZodEnum<{
67
67
  transform: "transform";
68
- collection: "collection";
68
+ metric: "metric";
69
+ database: "database";
70
+ table: "table";
69
71
  card: "card";
70
72
  dashboard: "dashboard";
71
- database: "database";
72
73
  dataset: "dataset";
74
+ collection: "collection";
73
75
  document: "document";
74
- metric: "metric";
75
- measure: "measure";
76
- segment: "segment";
77
- table: "table";
78
76
  exploration: "exploration";
77
+ measure: "measure";
79
78
  "indexed-entity": "indexed-entity";
80
79
  action: "action";
80
+ segment: "segment";
81
81
  }>;
82
82
  table_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
83
  database_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-CS11mEqI.js";
2
2
  import { t as ListResult } from "./list-BT_bBm9Z.js";
3
3
  import { i as SegmentUpdateInput, r as SegmentCreateInput, t as Segment } from "./segment-CbAgVO-5.js";
4
4
  //#region src/resources/segment.d.ts
package/dist/signal.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import { X as MetabaseError } from "./transport-BsXqRujn.js";
1
+ import { X as MetabaseError } from "./transport-CS11mEqI.js";
2
2
  //#region src/signal.d.ts
3
3
  declare function combineAborts(...signals: Array<AbortSignal | undefined>): AbortSignal;
4
4
  declare function throwIfAborted(...signals: Array<AbortSignal | undefined>): void;
5
5
  declare function abortReason(signal: AbortSignal): MetabaseError;
6
6
  declare function untilAborted<T>(promise: Promise<T>, signal: AbortSignal | undefined): Promise<T>;
7
+ declare function whenAborted(signal: AbortSignal | undefined, onAbort: (reason: MetabaseError) => void): () => void;
7
8
  //#endregion
8
- export { abortReason, combineAborts, throwIfAborted, untilAborted };
9
+ export { abortReason, combineAborts, throwIfAborted, untilAborted, whenAborted };
package/dist/signal.js CHANGED
@@ -16,10 +16,15 @@ function untilAborted(promise, signal) {
16
16
  if (signal === void 0) return promise;
17
17
  throwIfAborted(signal);
18
18
  return new Promise((resolve, reject) => {
19
- const onAbort = () => reject(abortReason(signal));
20
- signal.addEventListener("abort", onAbort, { once: true });
21
- promise.then(resolve, reject).finally(() => signal.removeEventListener("abort", onAbort));
19
+ const stopWatching = whenAborted(signal, reject);
20
+ promise.then(resolve, reject).finally(stopWatching);
22
21
  });
23
22
  }
23
+ function whenAborted(signal, onAbort) {
24
+ if (signal === void 0) return () => void 0;
25
+ const listener = () => onAbort(abortReason(signal));
26
+ signal.addEventListener("abort", listener, { once: true });
27
+ return () => signal.removeEventListener("abort", listener);
28
+ }
24
29
  //#endregion
25
- export { abortReason, combineAborts, throwIfAborted, untilAborted };
30
+ export { abortReason, combineAborts, throwIfAborted, untilAborted, whenAborted };
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-CS11mEqI.js";
2
2
  import { t as ListResult } from "./list-BT_bBm9Z.js";
3
3
  import { i as SnippetUpdateInput, r as SnippetCreateInput, t as Snippet } from "./snippet-C_Ilx7tR.js";
4
4
  //#region src/resources/snippet.d.ts
@@ -1,6 +1,6 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-CS11mEqI.js";
2
2
  import { t as ListResult } from "./list-BT_bBm9Z.js";
3
- import { S as TableSchemaSyncResult, a as Table, g as TableForeignKey, h as TableFieldValuesResult, p as TableDataSource, u as TableDataLayer, y as TableQueryMetadata } from "./table-Od6uvDVW.js";
3
+ import { S as TableSchemaSyncResult, a as Table, g as TableForeignKey, h as TableFieldValuesResult, p as TableDataSource, u as TableDataLayer, y as TableQueryMetadata } from "./table-BAl8aPZZ.js";
4
4
  import { r as UploadUpdateResult } from "./upload-UPfZFdbH.js";
5
5
  import { t as CsvFile } from "./csv-upload--K35QedP.js";
6
6
  //#region src/resources/table.d.ts
@@ -29,7 +29,7 @@ declare function tableResource(transport: Transport): {
29
29
  db_id: number;
30
30
  schema: string | null;
31
31
  entity_type: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null;
32
- data_layer: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null;
32
+ data_layer: "hidden" | "final" | "internal" | "gold" | "silver" | "bronze" | "copper" | null;
33
33
  estimated_row_count: number | null;
34
34
  active: boolean;
35
35
  visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
@@ -68,9 +68,9 @@ declare function tableResource(transport: Transport): {
68
68
  points_of_interest?: string | null | undefined;
69
69
  show_in_getting_started?: boolean | undefined;
70
70
  field_order?: "custom" | "database" | "alphabetical" | "smart" | undefined;
71
- data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
71
+ data_authority?: "ingested" | "unconfigured" | "authoritative" | "computed" | null | undefined;
72
72
  data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
73
- data_layer?: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null | undefined;
73
+ data_layer?: "hidden" | "final" | "internal" | "gold" | "silver" | "bronze" | "copper" | null | undefined;
74
74
  owner_email?: string | null | undefined;
75
75
  owner_user_id?: number | null | undefined;
76
76
  collection_id?: number | undefined;
@@ -84,7 +84,7 @@ declare function tableResource(transport: Transport): {
84
84
  db_id: number;
85
85
  schema: string | null;
86
86
  entity_type: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null;
87
- data_layer: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null;
87
+ data_layer: "hidden" | "final" | "internal" | "gold" | "silver" | "bronze" | "copper" | null;
88
88
  estimated_row_count: number | null;
89
89
  active: boolean;
90
90
  visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
@@ -121,9 +121,9 @@ declare function tableResource(transport: Transport): {
121
121
  database_ids?: number[] | undefined;
122
122
  schema_ids?: string[] | undefined;
123
123
  table_ids?: number[] | undefined;
124
- data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
124
+ data_authority?: "ingested" | "unconfigured" | "authoritative" | "computed" | null | undefined;
125
125
  data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
126
- data_layer?: "internal" | "hidden" | "final" | null | undefined;
126
+ data_layer?: "hidden" | "final" | "internal" | null | undefined;
127
127
  entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
128
128
  owner_email?: string | null | undefined;
129
129
  owner_user_id?: number | null | undefined;
@@ -132,9 +132,9 @@ declare function tableResource(transport: Transport): {
132
132
  database_ids?: number[] | undefined;
133
133
  schema_ids?: string[] | undefined;
134
134
  table_ids?: number[] | undefined;
135
- data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
135
+ data_authority?: "ingested" | "unconfigured" | "authoritative" | "computed" | null | undefined;
136
136
  data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
137
- data_layer?: "internal" | "hidden" | "final" | null | undefined;
137
+ data_layer?: "hidden" | "final" | "internal" | null | undefined;
138
138
  entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
139
139
  owner_email?: string | null | undefined;
140
140
  owner_user_id?: number | null | undefined;
@@ -8,9 +8,9 @@ declare const TableVisibilityType: z.ZodEnum<{
8
8
  }>;
9
9
  type TableVisibilityType = z.infer<typeof TableVisibilityType>;
10
10
  declare const TableDataLayerTier: z.ZodEnum<{
11
- internal: "internal";
12
11
  hidden: "hidden";
13
12
  final: "final";
13
+ internal: "internal";
14
14
  }>;
15
15
  type TableDataLayerTier = z.infer<typeof TableDataLayerTier>;
16
16
  declare const TableDataLayerMedallion: z.ZodEnum<{
@@ -21,9 +21,9 @@ declare const TableDataLayerMedallion: z.ZodEnum<{
21
21
  }>;
22
22
  type TableDataLayerMedallion = z.infer<typeof TableDataLayerMedallion>;
23
23
  declare const TableDataLayer: z.ZodEnum<{
24
- internal: "internal";
25
24
  hidden: "hidden";
26
25
  final: "final";
26
+ internal: "internal";
27
27
  gold: "gold";
28
28
  silver: "silver";
29
29
  bronze: "bronze";
@@ -53,9 +53,9 @@ declare const Table: z.ZodObject<{
53
53
  cruft: "cruft";
54
54
  }>>>;
55
55
  data_layer: z.ZodNullable<z.ZodEnum<{
56
- internal: "internal";
57
56
  hidden: "hidden";
58
57
  final: "final";
58
+ internal: "internal";
59
59
  gold: "gold";
60
60
  silver: "silver";
61
61
  bronze: "bronze";
@@ -397,9 +397,9 @@ declare const TableQueryMetadata: z.ZodObject<{
397
397
  cruft: "cruft";
398
398
  }>>>;
399
399
  data_layer: z.ZodNullable<z.ZodEnum<{
400
- internal: "internal";
401
400
  hidden: "hidden";
402
401
  final: "final";
402
+ internal: "internal";
403
403
  gold: "gold";
404
404
  silver: "silver";
405
405
  bronze: "bronze";
@@ -1028,12 +1028,6 @@ declare const TableCompact: z.ZodObject<{
1028
1028
  display_name: z.ZodString;
1029
1029
  db_id: z.ZodNumber;
1030
1030
  schema: z.ZodNullable<z.ZodString>;
1031
- visibility_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1032
- hidden: "hidden";
1033
- technical: "technical";
1034
- cruft: "cruft";
1035
- }>>>;
1036
- active: z.ZodBoolean;
1037
1031
  entity_type: z.ZodNullable<z.ZodEnum<{
1038
1032
  "entity/GenericTable": "entity/GenericTable";
1039
1033
  "entity/UserTable": "entity/UserTable";
@@ -1043,13 +1037,19 @@ declare const TableCompact: z.ZodObject<{
1043
1037
  "entity/SubscriptionTable": "entity/SubscriptionTable";
1044
1038
  "entity/EventTable": "entity/EventTable";
1045
1039
  }>>;
1040
+ visibility_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1041
+ hidden: "hidden";
1042
+ technical: "technical";
1043
+ cruft: "cruft";
1044
+ }>>>;
1045
+ active: z.ZodBoolean;
1046
1046
  is_published: z.ZodOptional<z.ZodBoolean>;
1047
1047
  fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1048
1048
  id: z.ZodNumber;
1049
1049
  name: z.ZodString;
1050
1050
  description: z.ZodNullable<z.ZodString>;
1051
- display_name: z.ZodString;
1052
1051
  table_id: z.ZodNumber;
1052
+ display_name: z.ZodString;
1053
1053
  base_type: z.ZodEnum<{
1054
1054
  "type/*": "type/*";
1055
1055
  "type/field-values-unsupported": "type/field-values-unsupported";
@@ -1221,12 +1221,6 @@ declare const TableQueryMetadataCompact: z.ZodObject<{
1221
1221
  display_name: z.ZodString;
1222
1222
  db_id: z.ZodNumber;
1223
1223
  schema: z.ZodNullable<z.ZodString>;
1224
- visibility_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1225
- hidden: "hidden";
1226
- technical: "technical";
1227
- cruft: "cruft";
1228
- }>>>;
1229
- active: z.ZodBoolean;
1230
1224
  entity_type: z.ZodNullable<z.ZodEnum<{
1231
1225
  "entity/GenericTable": "entity/GenericTable";
1232
1226
  "entity/UserTable": "entity/UserTable";
@@ -1236,13 +1230,19 @@ declare const TableQueryMetadataCompact: z.ZodObject<{
1236
1230
  "entity/SubscriptionTable": "entity/SubscriptionTable";
1237
1231
  "entity/EventTable": "entity/EventTable";
1238
1232
  }>>;
1233
+ visibility_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1234
+ hidden: "hidden";
1235
+ technical: "technical";
1236
+ cruft: "cruft";
1237
+ }>>>;
1238
+ active: z.ZodBoolean;
1239
1239
  is_published: z.ZodOptional<z.ZodBoolean>;
1240
1240
  fields: z.ZodArray<z.ZodObject<{
1241
1241
  id: z.ZodNumber;
1242
1242
  name: z.ZodString;
1243
1243
  description: z.ZodNullable<z.ZodString>;
1244
- display_name: z.ZodString;
1245
1244
  table_id: z.ZodNumber;
1245
+ display_name: z.ZodString;
1246
1246
  base_type: z.ZodEnum<{
1247
1247
  "type/*": "type/*";
1248
1248
  "type/field-values-unsupported": "type/field-values-unsupported";
@@ -1447,10 +1447,10 @@ declare const TableUpdateInput: z.ZodObject<{
1447
1447
  smart: "smart";
1448
1448
  }>>;
1449
1449
  data_authority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1450
+ ingested: "ingested";
1450
1451
  unconfigured: "unconfigured";
1451
1452
  authoritative: "authoritative";
1452
1453
  computed: "computed";
1453
- ingested: "ingested";
1454
1454
  }>>>;
1455
1455
  data_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1456
1456
  unknown: "unknown";
@@ -1461,9 +1461,9 @@ declare const TableUpdateInput: z.ZodObject<{
1461
1461
  "source-data": "source-data";
1462
1462
  }>>>;
1463
1463
  data_layer: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1464
- internal: "internal";
1465
1464
  hidden: "hidden";
1466
1465
  final: "final";
1466
+ internal: "internal";
1467
1467
  gold: "gold";
1468
1468
  silver: "silver";
1469
1469
  bronze: "bronze";
@@ -1483,10 +1483,10 @@ declare const TableSelectors: z.ZodObject<{
1483
1483
  type TableSelectors = z.infer<typeof TableSelectors>;
1484
1484
  declare const TableBulkEditFields: z.ZodObject<{
1485
1485
  data_authority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1486
+ ingested: "ingested";
1486
1487
  unconfigured: "unconfigured";
1487
1488
  authoritative: "authoritative";
1488
1489
  computed: "computed";
1489
- ingested: "ingested";
1490
1490
  }>>>;
1491
1491
  data_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1492
1492
  unknown: "unknown";
@@ -1497,9 +1497,9 @@ declare const TableBulkEditFields: z.ZodObject<{
1497
1497
  "source-data": "source-data";
1498
1498
  }>>>;
1499
1499
  data_layer: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1500
- internal: "internal";
1501
1500
  hidden: "hidden";
1502
1501
  final: "final";
1502
+ internal: "internal";
1503
1503
  }>>>;
1504
1504
  entity_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1505
1505
  "entity/GenericTable": "entity/GenericTable";
@@ -1518,10 +1518,10 @@ declare const TableBulkEditInput: z.ZodObject<{
1518
1518
  schema_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1519
1519
  table_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1520
1520
  data_authority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1521
+ ingested: "ingested";
1521
1522
  unconfigured: "unconfigured";
1522
1523
  authoritative: "authoritative";
1523
1524
  computed: "computed";
1524
- ingested: "ingested";
1525
1525
  }>>>;
1526
1526
  data_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1527
1527
  unknown: "unknown";
@@ -1532,9 +1532,9 @@ declare const TableBulkEditInput: z.ZodObject<{
1532
1532
  "source-data": "source-data";
1533
1533
  }>>>;
1534
1534
  data_layer: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1535
- internal: "internal";
1536
1535
  hidden: "hidden";
1537
1536
  final: "final";
1537
+ internal: "internal";
1538
1538
  }>>>;
1539
1539
  entity_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1540
1540
  "entity/GenericTable": "entity/GenericTable";
@@ -1571,10 +1571,10 @@ declare const TableBulkEditResult: z.ZodObject<{
1571
1571
  schema_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1572
1572
  table_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1573
1573
  data_authority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1574
+ ingested: "ingested";
1574
1575
  unconfigured: "unconfigured";
1575
1576
  authoritative: "authoritative";
1576
1577
  computed: "computed";
1577
- ingested: "ingested";
1578
1578
  }>>>;
1579
1579
  data_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1580
1580
  unknown: "unknown";
@@ -1585,9 +1585,9 @@ declare const TableBulkEditResult: z.ZodObject<{
1585
1585
  "source-data": "source-data";
1586
1586
  }>>>;
1587
1587
  data_layer: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1588
- internal: "internal";
1589
1588
  hidden: "hidden";
1590
1589
  final: "final";
1590
+ internal: "internal";
1591
1591
  }>>>;
1592
1592
  entity_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1593
1593
  "entity/GenericTable": "entity/GenericTable";
@@ -1928,9 +1928,9 @@ declare const TableForeignKey: z.ZodObject<{
1928
1928
  cruft: "cruft";
1929
1929
  }>>>;
1930
1930
  data_layer: z.ZodNullable<z.ZodEnum<{
1931
- internal: "internal";
1932
1931
  hidden: "hidden";
1933
1932
  final: "final";
1933
+ internal: "internal";
1934
1934
  gold: "gold";
1935
1935
  silver: "silver";
1936
1936
  bronze: "bronze";
@@ -2565,9 +2565,9 @@ declare const TableForeignKey: z.ZodObject<{
2565
2565
  cruft: "cruft";
2566
2566
  }>>>;
2567
2567
  data_layer: z.ZodNullable<z.ZodEnum<{
2568
- internal: "internal";
2569
2568
  hidden: "hidden";
2570
2569
  final: "final";
2570
+ internal: "internal";
2571
2571
  gold: "gold";
2572
2572
  silver: "silver";
2573
2573
  bronze: "bronze";
@@ -2889,8 +2889,8 @@ declare const TableForeignKeyCompact: z.ZodObject<{
2889
2889
  id: z.ZodNumber;
2890
2890
  name: z.ZodString;
2891
2891
  description: z.ZodNullable<z.ZodString>;
2892
- display_name: z.ZodString;
2893
2892
  table_id: z.ZodNumber;
2893
+ display_name: z.ZodString;
2894
2894
  base_type: z.ZodEnum<{
2895
2895
  "type/*": "type/*";
2896
2896
  "type/field-values-unsupported": "type/field-values-unsupported";
@@ -3064,8 +3064,8 @@ declare const TableForeignKeyCompact: z.ZodObject<{
3064
3064
  id: z.ZodNumber;
3065
3065
  name: z.ZodString;
3066
3066
  description: z.ZodNullable<z.ZodString>;
3067
- display_name: z.ZodString;
3068
3067
  table_id: z.ZodNumber;
3068
+ display_name: z.ZodString;
3069
3069
  base_type: z.ZodEnum<{
3070
3070
  "type/*": "type/*";
3071
3071
  "type/field-values-unsupported": "type/field-values-unsupported";
@@ -1,6 +1,6 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-CS11mEqI.js";
2
2
  import { t as ListResult } from "./list-BT_bBm9Z.js";
3
- import { i as TimelineEvent, l as TimelineUpdateInput, r as TimelineCreateInput, t as Timeline } from "./timeline-BK45hy-h.js";
3
+ import { i as TimelineEvent, l as TimelineUpdateInput, r as TimelineCreateInput, t as Timeline } from "./timeline-BfX1lMob.js";
4
4
  //#region src/resources/timeline.d.ts
5
5
  interface TimelineListParams {
6
6
  archived?: boolean | undefined;
@@ -40,6 +40,11 @@ declare const TimelineEvent: z.ZodObject<{
40
40
  }, z.core.$loose>;
41
41
  type TimelineEvent = z.infer<typeof TimelineEvent>;
42
42
  declare const TimelineEventCompact: z.ZodObject<{
43
+ id: z.ZodNumber;
44
+ name: z.ZodString;
45
+ description: z.ZodNullable<z.ZodString>;
46
+ archived: z.ZodBoolean;
47
+ timestamp: z.ZodString;
43
48
  icon: z.ZodEnum<{
44
49
  star: "star";
45
50
  cake: "cake";
@@ -52,12 +57,7 @@ declare const TimelineEventCompact: z.ZodObject<{
52
57
  note: "note";
53
58
  event: "event";
54
59
  }>;
55
- id: z.ZodNumber;
56
- name: z.ZodString;
57
- description: z.ZodNullable<z.ZodString>;
58
- timestamp: z.ZodString;
59
60
  timeline_id: z.ZodNumber;
60
- archived: z.ZodBoolean;
61
61
  }, z.core.$strip>;
62
62
  type TimelineEventCompact = z.infer<typeof TimelineEventCompact>;
63
63
  declare const Timeline: z.ZodObject<{
@@ -111,6 +111,12 @@ declare const Timeline: z.ZodObject<{
111
111
  }, z.core.$loose>;
112
112
  type Timeline = z.infer<typeof Timeline>;
113
113
  declare const TimelineCompact: z.ZodObject<{
114
+ id: z.ZodNumber;
115
+ name: z.ZodString;
116
+ description: z.ZodNullable<z.ZodString>;
117
+ archived: z.ZodBoolean;
118
+ default: z.ZodBoolean;
119
+ collection_id: z.ZodNullable<z.ZodNumber>;
114
120
  icon: z.ZodEnum<{
115
121
  star: "star";
116
122
  cake: "cake";
@@ -123,12 +129,6 @@ declare const TimelineCompact: z.ZodObject<{
123
129
  note: "note";
124
130
  event: "event";
125
131
  }>;
126
- id: z.ZodNumber;
127
- name: z.ZodString;
128
- description: z.ZodNullable<z.ZodString>;
129
- archived: z.ZodBoolean;
130
- collection_id: z.ZodNullable<z.ZodNumber>;
131
- default: z.ZodBoolean;
132
132
  }, z.core.$strip>;
133
133
  type TimelineCompact = z.infer<typeof TimelineCompact>;
134
134
  declare const TimelineCreateInput: z.ZodObject<{