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

    Function useAppEventType

    • Parameters

      • selector: string | undefined

      Returns {
          appEventType:
              | {
                  id: string;
                  uuid?: string;
                  key?: string;
                  description?: string;
                  meta?: Record<string, any>;
                  name: string;
                  state?:
                      | BUILDING
                      | CLIENT_ACTION_REQUIRED
                      | CONFIGURATION_ERROR
                      | SETUP_FAILED
                      | READY
                      | DISCONNECTING;
                  errors?: ErrorDataSchema[];
                  createdAt?: string;
                  updatedAt?: string;
                  isDeactivated?: boolean;
                  isReadOnly?: boolean;
                  revision: string;
                  archivedAt?: string;
                  webhookKey: string;
                  subscribeRequest?: {
                      method?: GET
                      | POST
                      | PATCH
                      | PUT
                      | DELETE;
                      uri: any;
                      headers?: Record<string, any>;
                      query?: Record<string, any>;
                      body?: any;
                  };
                  example?: any;
                  schema?: DataSchema;
                  globalWebhookUri: string;
                  tenantIdFormula?: any;
                  userIdFormula?: any;
              }
              | undefined;
          accessor: AppEventTypeAccessor
          | undefined;
          loading: boolean;
          saving: boolean;
          error: any;
          refresh: () => Promise<
              {
                  id: string;
                  uuid?: string;
                  key?: string;
                  description?: string;
                  meta?: Record<string, any>;
                  name: string;
                  state?:
                      | BUILDING
                      | CLIENT_ACTION_REQUIRED
                      | CONFIGURATION_ERROR
                      | SETUP_FAILED
                      | READY
                      | DISCONNECTING;
                  errors?: ErrorDataSchema[];
                  createdAt?: string;
                  updatedAt?: string;
                  isDeactivated?: boolean;
                  isReadOnly?: boolean;
                  revision: string;
                  archivedAt?: string;
                  webhookKey: string;
                  subscribeRequest?: {
                      method?: GET
                      | POST
                      | PATCH
                      | PUT
                      | DELETE;
                      uri: any;
                      headers?: Record<string, any>;
                      query?: Record<string, any>;
                      body?: any;
                  };
                  example?: any;
                  schema?: DataSchema;
                  globalWebhookUri: string;
                  tenantIdFormula?: any;
                  userIdFormula?: any;
              },
          >;
          refreshing: boolean;
          create: (
              data: CreateAppEventTypeRequest,
          ) => Promise<
              | {
                  id: string;
                  uuid?: string;
                  key?: string;
                  description?: string;
                  meta?: Record<string, any>;
                  name: string;
                  state?:
                      | BUILDING
                      | CLIENT_ACTION_REQUIRED
                      | CONFIGURATION_ERROR
                      | SETUP_FAILED
                      | READY
                      | DISCONNECTING;
                  errors?: ErrorDataSchema[];
                  createdAt?: string;
                  updatedAt?: string;
                  isDeactivated?: boolean;
                  isReadOnly?: boolean;
                  revision: string;
                  archivedAt?: string;
                  webhookKey: string;
                  subscribeRequest?: {
                      method?: GET
                      | POST
                      | PATCH
                      | PUT
                      | DELETE;
                      uri: any;
                      headers?: Record<string, any>;
                      query?: Record<string, any>;
                      body?: any;
                  };
                  example?: any;
                  schema?: DataSchema;
                  globalWebhookUri: string;
                  tenantIdFormula?: any;
                  userIdFormula?: any;
              }
              | undefined,
          >;
          patch: (
              data: Partial<UpdateRequest>,
              options?: MutatorConfig,
          ) => Promise<void>;
          put: (
              data: UpdateAppEventTypeRequest,
              options?: MutatorConfig,
          ) => Promise<void>;
          archive: () => Promise<void>;
      }