Membrane React - v0.29.2
    Preparing search index...

    Function useAppDataSchema

    • Parameters

      • selector: string | undefined

      Returns {
          appDataSchema:
              | {
                  id: string;
                  uuid?: string;
                  key?: string;
                  description?: string;
                  meta?: Record<string, any>;
                  instanceKey?: string;
                  appDataSchemaId?: string;
                  schema?: any;
                  code?: string;
                  name: string;
                  state?:
                      | BUILDING
                      | CLIENT_ACTION_REQUIRED
                      | CONFIGURATION_ERROR
                      | SETUP_FAILED
                      | READY
                      | DISCONNECTING;
                  errors?: ErrorDataSchema[];
                  revision?: string;
                  createdAt?: string;
                  updatedAt?: string;
                  isDeactivated?: boolean;
                  isReadOnly?: boolean;
                  appDataSchemaRevision?: string;
                  archivedAt?: string;
                  isCustomized?: boolean;
                  error?: ErrorDataSchema;
                  userId?: string;
                  tenantId?: string;
                  user?: any;
                  appDataSchema?: any;
              }
              | undefined;
          accessor: AppDataSchemaAccessor
          | undefined;
          loading: boolean;
          saving: boolean;
          error: any;
          refresh: () => Promise<
              {
                  id: string;
                  uuid?: string;
                  key?: string;
                  description?: string;
                  meta?: Record<string, any>;
                  instanceKey?: string;
                  appDataSchemaId?: string;
                  schema?: any;
                  code?: string;
                  name: string;
                  state?:
                      | BUILDING
                      | CLIENT_ACTION_REQUIRED
                      | CONFIGURATION_ERROR
                      | SETUP_FAILED
                      | READY
                      | DISCONNECTING;
                  errors?: ErrorDataSchema[];
                  revision?: string;
                  createdAt?: string;
                  updatedAt?: string;
                  isDeactivated?: boolean;
                  isReadOnly?: boolean;
                  appDataSchemaRevision?: string;
                  archivedAt?: string;
                  isCustomized?: boolean;
                  error?: ErrorDataSchema;
                  userId?: string;
                  tenantId?: string;
                  user?: any;
                  appDataSchema?: any;
              },
          >;
          refreshing: boolean;
          create: (
              data: CreateAppDataSchemaRequest,
          ) => Promise<
              | {
                  id: string;
                  uuid?: string;
                  key?: string;
                  description?: string;
                  meta?: Record<string, any>;
                  instanceKey?: string;
                  appDataSchemaId?: string;
                  schema?: any;
                  code?: string;
                  name: string;
                  state?:
                      | BUILDING
                      | CLIENT_ACTION_REQUIRED
                      | CONFIGURATION_ERROR
                      | SETUP_FAILED
                      | READY
                      | DISCONNECTING;
                  errors?: ErrorDataSchema[];
                  revision?: string;
                  createdAt?: string;
                  updatedAt?: string;
                  isDeactivated?: boolean;
                  isReadOnly?: boolean;
                  appDataSchemaRevision?: string;
                  archivedAt?: string;
                  isCustomized?: boolean;
                  error?: ErrorDataSchema;
                  userId?: string;
                  tenantId?: string;
                  user?: any;
                  appDataSchema?: any;
              }
              | undefined,
          >;
          patch: (
              data: Partial<UpdateRequest>,
              options?: MutatorConfig,
          ) => Promise<void>;
          put: (
              data: UpdateAppDataSchemaRequest,
              options?: MutatorConfig,
          ) => Promise<void>;
          archive: () => Promise<void>;
      }