@budibase/types 3.2.11 → 3.2.14

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.
@@ -6,6 +6,9 @@ export interface ViewResponse {
6
6
  export interface ViewResponseEnriched {
7
7
  data: ViewV2Enriched;
8
8
  }
9
+ export interface ViewFetchResponseEnriched {
10
+ data: ViewV2Enriched[];
11
+ }
9
12
  export interface CreateViewRequest extends Omit<ViewV2, "version" | "id"> {
10
13
  }
11
14
  export interface UpdateViewRequest extends ViewV2 {
@@ -75,6 +75,9 @@ export interface ViewV2 {
75
75
  };
76
76
  schema?: ViewV2Schema;
77
77
  }
78
+ export interface PublicAPIView extends Omit<ViewV2, "query" | "queryUI"> {
79
+ query?: UISearchFilter;
80
+ }
78
81
  export type ViewV2Schema = Record<string, ViewFieldMetadata>;
79
82
  export type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema;
80
83
  export interface ViewCountOrSumSchema {
@@ -30,7 +30,6 @@ export interface StaticUsage {
30
30
  export interface MonthlyUsage {
31
31
  [MonthlyQuotaName.QUERIES]: number;
32
32
  [MonthlyQuotaName.AUTOMATIONS]: number;
33
- [MonthlyQuotaName.DAY_PASSES]: number;
34
33
  [MonthlyQuotaName.BUDIBASE_AI_CREDITS]: number;
35
34
  triggers: {
36
35
  [key in MonthlyQuotaName]?: QuotaTriggers;
@@ -48,7 +48,6 @@ export interface User extends Document {
48
48
  password?: string;
49
49
  status?: UserStatus;
50
50
  createdAt?: number;
51
- dayPassRecordedAt?: string;
52
51
  userGroups?: string[];
53
52
  onboardedAt?: string;
54
53
  freeTrialConfirmedAt?: string;
@@ -6,7 +6,7 @@ export interface RowValue {
6
6
  export interface RowResponse<T extends Document | RowValue> {
7
7
  id: string;
8
8
  key: string;
9
- error: string;
9
+ error?: string;
10
10
  value: T;
11
11
  doc?: T;
12
12
  }
package/dist/index.js CHANGED
@@ -537,7 +537,6 @@ var PriceDuration = /* @__PURE__ */ ((PriceDuration2) => {
537
537
  var PlanModel = /* @__PURE__ */ ((PlanModel2) => {
538
538
  PlanModel2["PER_USER"] = "perUser";
539
539
  PlanModel2["PER_CREATOR_PER_USER"] = "per_creator_per_user";
540
- PlanModel2["DAY_PASS"] = "dayPass";
541
540
  return PlanModel2;
542
541
  })(PlanModel || {});
543
542
 
@@ -565,7 +564,6 @@ var StaticQuotaName = /* @__PURE__ */ ((StaticQuotaName2) => {
565
564
  var MonthlyQuotaName = /* @__PURE__ */ ((MonthlyQuotaName2) => {
566
565
  MonthlyQuotaName2["QUERIES"] = "queries";
567
566
  MonthlyQuotaName2["AUTOMATIONS"] = "automations";
568
- MonthlyQuotaName2["DAY_PASSES"] = "dayPasses";
569
567
  MonthlyQuotaName2["BUDIBASE_AI_CREDITS"] = "budibaseAICredits";
570
568
  return MonthlyQuotaName2;
571
569
  })(MonthlyQuotaName || {});