Type Alias ListScriptsData

ListScriptsData: {
    createdBy?: string;
    firstParentHash?: string;
    hideWithoutMain?: boolean;
    isTemplate?: boolean;
    kinds?: string;
    lastParentHash?: string;
    orderDesc?: boolean;
    page?: number;
    parentHash?: string;
    pathExact?: string;
    pathStart?: string;
    perPage?: number;
    showArchived?: boolean;
    starredOnly?: boolean;
    workspace: string;
}

Type declaration

  • OptionalcreatedBy?: string

    mask to filter exact matching user creator

  • OptionalfirstParentHash?: string

    mask to filter scripts whom first direct parent has exact hash

  • OptionalhideWithoutMain?: boolean

    (default false) hide the scripts without an exported main function

  • OptionalisTemplate?: boolean

    (default regardless) if true show only the templates if false show only the non templates if not defined, show all regardless of if the script is a template

  • Optionalkinds?: string

    (default regardless) script kinds to filter, split by comma

  • OptionallastParentHash?: string

    mask to filter scripts whom last parent in the chain has exact hash. Beware that each script stores only a limited number of parents. Hence the last parent hash for a script is not necessarily its top-most parent. To find the top-most parent you will have to jump from last to last hash until finding the parent

  • OptionalorderDesc?: boolean

    order by desc order (default true)

  • Optionalpage?: number

    which page to return (start at 1, default 1)

  • OptionalparentHash?: string

    is the hash present in the array of stored parent hashes for this script. The same warning applies than for last_parent_hash. A script only store a limited number of direct parent

  • OptionalpathExact?: string

    mask to filter exact matching path

  • OptionalpathStart?: string

    mask to filter matching starting path

  • OptionalperPage?: number

    number of items to return for a given page (default 30, max 100)

  • OptionalshowArchived?: boolean

    (default false) show also the archived files. when multiple archived hash share the same path, only the ones with the latest create_at are ed.

  • OptionalstarredOnly?: boolean

    (default false) show only the starred items

  • workspace: string