@budibase/types 3.2.38 → 3.2.40

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.
@@ -14,5 +14,5 @@ export interface GetGlobalSelfResponse extends User {
14
14
  license: License;
15
15
  budibaseAccess: boolean;
16
16
  accountPortalAccess: boolean;
17
- csrfToken: boolean;
17
+ csrfToken: string;
18
18
  }
@@ -17,6 +17,7 @@ export interface UserDetails {
17
17
  email: string;
18
18
  password?: string;
19
19
  }
20
+ export type UnsavedUser = Omit<User, "tenantId">;
20
21
  export interface BulkUserRequest {
21
22
  delete?: {
22
23
  users: Array<{
@@ -26,7 +27,7 @@ export interface BulkUserRequest {
26
27
  };
27
28
  create?: {
28
29
  roles?: any[];
29
- users: User[];
30
+ users: UnsavedUser[];
30
31
  groups: any[];
31
32
  };
32
33
  }
@@ -122,7 +123,7 @@ export interface AcceptUserInviteRequest {
122
123
  inviteCode: string;
123
124
  password: string;
124
125
  firstName: string;
125
- lastName: string;
126
+ lastName?: string;
126
127
  }
127
128
  export interface AcceptUserInviteResponse {
128
129
  _id: string;
@@ -26,7 +26,5 @@ export interface ScreenRoutesViewOutput extends Document {
26
26
  routing: ScreenRouting;
27
27
  }
28
28
  export type ScreenRoutingJson = Record<string, {
29
- subpaths: Record<string, {
30
- screens: Record<string, string>;
31
- }>;
29
+ subpaths: Record<string, any>;
32
30
  }>;
package/dist/index.js CHANGED
@@ -848,10 +848,13 @@ var TenantResolutionStrategy = /* @__PURE__ */ ((TenantResolutionStrategy2) => {
848
848
  // src/sdk/featureFlag.ts
849
849
  var FeatureFlag = /* @__PURE__ */ ((FeatureFlag2) => {
850
850
  FeatureFlag2["USE_ZOD_VALIDATOR"] = "USE_ZOD_VALIDATOR";
851
+ FeatureFlag2["DIRECT_LOGIN_TO_ACCOUNT_PORTAL"] = "DIRECT_LOGIN_TO_ACCOUNT_PORTAL";
851
852
  return FeatureFlag2;
852
853
  })(FeatureFlag || {});
853
854
  var FeatureFlagDefaults = {
854
- ["USE_ZOD_VALIDATOR" /* USE_ZOD_VALIDATOR */]: false
855
+ ["USE_ZOD_VALIDATOR" /* USE_ZOD_VALIDATOR */]: false,
856
+ // Account-portal
857
+ ["DIRECT_LOGIN_TO_ACCOUNT_PORTAL" /* DIRECT_LOGIN_TO_ACCOUNT_PORTAL */]: false
855
858
  };
856
859
 
857
860
  // src/sdk/environmentVariables.ts