Interface ProjectFieldValueUpdater

Source
Expand description

Interface for updating project field values.

interface ProjectFieldValueUpdater {
    increment(
        fieldNameSelector: (s: OrganizationConfig) => string | undefined,
        condition?: (currentFieldVal: string) => boolean,
    ): Promise<void>;
    updateDate(
        fieldNameSelector: (s: OrganizationConfig) => string | undefined,
        newFieldValue: string,
        condition?: (currentFieldVal: string) => boolean,
    ): Promise<void>;
}

Methods§

Source§

increment(
    fieldNameSelector: (s: OrganizationConfig) => string | undefined,
    condition?: (currentFieldVal: string) => boolean,
): Promise<void>

Increments the number field in the project.

Source§

updateDate(
    fieldNameSelector: (s: OrganizationConfig) => string | undefined,
    newFieldValue: string,
    condition?: (currentFieldVal: string) => boolean,
): Promise<void>

Updates the date field in the project.