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

    Function usePackages

    • Parameters

      • Optionalquery: {
            integrationId?: string;
            integrationKey?: string;
            parentId?: string;
            search?: string;
            limit?: number;
            cursor?: string;
            includeArchived?: boolean;
        }

      Returns {
          items: {
              id: string;
              state?: CONFIGURATION_ERROR | SETUP_FAILED | READY;
              errors?: ErrorDataSchema[];
              revision?: string;
              createdAt?: string;
              updatedAt?: string;
              archivedAt?: string;
              isDeactivated?: boolean;
              uuid?: string;
              description?: string;
              meta?: Record<string, any>;
              scenarioTemplateId?: string;
              elements?: { id: string; type: IntegrationElementType; element?: any }[];
              integrationId?: string;
              parentId?: string;
              key: string;
              name: string;
              isCustomized?: boolean;
              appliedToIntegrations?: {
                  element: {
                      id: string;
                      state?: CONFIGURATION_ERROR | SETUP_FAILED | READY;
                      errors?: ErrorDataSchema[];
                      revision?: string;
                      createdAt?: string;
                      updatedAt?: string;
                      archivedAt?: string;
                      isDeactivated?: boolean;
                      uuid?: string;
                      description?: string;
                      meta?: Record<string, any>;
                      scenarioTemplateId?: string;
                      elements?: { id: string; type: IntegrationElementType; element?: any }[];
                      integrationId?: string;
                      parentId?: string;
                      key: string;
                      name: string;
                      isCustomized?: boolean;
                  };
                  integration: {
                      id: string;
                      key?: string;
                      uuid?: string;
                      description?: string;
                      meta?: Record<string, any>;
                      name: string;
                      state?: CONFIGURATION_ERROR | SETUP_FAILED | READY;
                      errors?: ErrorDataSchema[];
                      revision?: string;
                      createdAt?: string;
                      updatedAt?: string;
                      logoUri: string;
                      connectorId?: string;
                      connectorVersion?: string;
                      oAuthCallbackUri?: string;
                      parameters?: any;
                      archivedAt?: string;
                      hasMissingParameters?: boolean;
                      hasDocumentation?: boolean;
                      hasOperations?: boolean;
                      operationsCount?: number;
                      hasData?: boolean;
                      dataCollectionsCount?: number;
                      hasEvents?: boolean;
                      eventsCount?: number;
                      hasGlobalWebhooks?: boolean;
                      hasUdm?: boolean;
                      isTest?: boolean;
                      appUuid?: string;
                      isDeactivated?: boolean;
                      authType?:
                          | "proxy"
                          | "integration-app-token"
                          | "membrane-token"
                          | "oauth2"
                          | "oauth1"
                          | "client-credentials";
                  };
              }[];
          }[];
          refresh: () => Promise<void>;
          refreshing: boolean;
          loadMore: () => Promise<void>;
          loadingMore: boolean;
          loading: boolean;
          error: any;
          packages: {
              id: string;
              state?: CONFIGURATION_ERROR | SETUP_FAILED | READY;
              errors?: ErrorDataSchema[];
              revision?: string;
              createdAt?: string;
              updatedAt?: string;
              archivedAt?: string;
              isDeactivated?: boolean;
              uuid?: string;
              description?: string;
              meta?: Record<string, any>;
              scenarioTemplateId?: string;
              elements?: { id: string; type: IntegrationElementType; element?: any }[];
              integrationId?: string;
              parentId?: string;
              key: string;
              name: string;
              isCustomized?: boolean;
              appliedToIntegrations?: {
                  element: {
                      id: string;
                      state?: CONFIGURATION_ERROR | SETUP_FAILED | READY;
                      errors?: ErrorDataSchema[];
                      revision?: string;
                      createdAt?: string;
                      updatedAt?: string;
                      archivedAt?: string;
                      isDeactivated?: boolean;
                      uuid?: string;
                      description?: string;
                      meta?: Record<string, any>;
                      scenarioTemplateId?: string;
                      elements?: { id: string; type: IntegrationElementType; element?: any }[];
                      integrationId?: string;
                      parentId?: string;
                      key: string;
                      name: string;
                      isCustomized?: boolean;
                  };
                  integration: {
                      id: string;
                      key?: string;
                      uuid?: string;
                      description?: string;
                      meta?: Record<string, any>;
                      name: string;
                      state?: CONFIGURATION_ERROR | SETUP_FAILED | READY;
                      errors?: ErrorDataSchema[];
                      revision?: string;
                      createdAt?: string;
                      updatedAt?: string;
                      logoUri: string;
                      connectorId?: string;
                      connectorVersion?: string;
                      oAuthCallbackUri?: string;
                      parameters?: any;
                      archivedAt?: string;
                      hasMissingParameters?: boolean;
                      hasDocumentation?: boolean;
                      hasOperations?: boolean;
                      operationsCount?: number;
                      hasData?: boolean;
                      dataCollectionsCount?: number;
                      hasEvents?: boolean;
                      eventsCount?: number;
                      hasGlobalWebhooks?: boolean;
                      hasUdm?: boolean;
                      isTest?: boolean;
                      appUuid?: string;
                      isDeactivated?: boolean;
                      authType?:
                          | "proxy"
                          | "integration-app-token"
                          | "membrane-token"
                          | "oauth2"
                          | "oauth1"
                          | "client-credentials";
                  };
              }[];
          }[];
      }