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

    Function useDataLinkTableInstance

    • Parameters

      Returns {
          dataLinkTableInstance:
              | {
                  id: string;
                  uuid?: string;
                  key?: string;
                  description?: string;
                  meta?: Record<string, any>;
                  connectionId?: string;
                  instanceKey?: string;
                  dataLinkTableId?: 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;
                  integrationId?: string;
                  archivedAt?: string;
                  isCustomized?: boolean;
                  userId?: string;
                  tenantId?: string;
                  user?: any;
                  connection?: any;
                  integration?: any;
                  dataLinkTable?: any;
              }
              | undefined;
          accessor: DataLinkTableInstanceAccessor
          | undefined;
          refresh: () => Promise<
              {
                  id: string;
                  uuid?: string;
                  key?: string;
                  description?: string;
                  meta?: Record<string, any>;
                  connectionId?: string;
                  instanceKey?: string;
                  dataLinkTableId?: 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;
                  integrationId?: string;
                  archivedAt?: string;
                  isCustomized?: boolean;
                  userId?: string;
                  tenantId?: string;
                  user?: any;
                  connection?: any;
                  integration?: any;
                  dataLinkTable?: any;
              },
          >;
          findLinks: | (
              (
                  query?: {
                      limit?: number;
                      cursor?: string;
                      direction?: IMPORT | EXPORT | BOTH;
                      appRecordId?: string;
                      externalRecordId?: string;
                  },
              ) => Promise<
                  {
                      items: {
                          id: string;
                          dataLinkTableInstanceId: string;
                          externalRecordId: string;
                          appRecordId: string;
                          direction: DataLinkDirection;
                      }[];
                      cursor?: string;
                  },
              >
          )
          | undefined;
          createLink: ((data: CreateDataLinkRequest) => Promise<void>)
          | undefined;
          deleteLink: ((data: DeleteDataLinkRequest) => Promise<void>) | undefined;
          loading: boolean;
          saving: boolean;
          error: any;
          refreshing: boolean;
          create: (
              data: CreateDataLinkTableInstanceRequest,
          ) => Promise<
              | {
                  id: string;
                  uuid?: string;
                  key?: string;
                  description?: string;
                  meta?: Record<string, any>;
                  connectionId?: string;
                  instanceKey?: string;
                  dataLinkTableId?: 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;
                  integrationId?: string;
                  archivedAt?: string;
                  isCustomized?: boolean;
                  userId?: string;
                  tenantId?: string;
                  user?: any;
                  connection?: any;
                  integration?: any;
                  dataLinkTable?: any;
              }
              | undefined,
          >;
          patch: (
              data: Partial<UpdateRequest>,
              options?: MutatorConfig,
          ) => Promise<void>;
          put: (
              data: UpdateDataLinkTableInstanceRequest,
              options?: MutatorConfig,
          ) => Promise<void>;
          archive: () => Promise<void>;
      }