Methods

  • Retrieves a list of all Characteristics on a given Part

    Parameters

    • partId: number

      The id of the Part to return Characteristics for

    Returns Promise<SingleSPCCharacteristic[]>

  • Retrieves an existing Defect. Throws an error if the Defect does not exist.

    Parameters

    • id: number

      The id of the Defect to retrieve

    Returns Promise<SingleDefect>

  • Retrieves an existing DefectCategory. Throws an error if the DefectCategory does not exist.

    Parameters

    • id: number

      The id of the DefectCategory to retrieve

    Returns Promise<SingleDefectCategory>

  • Retrieves the ID of an existing DefectCategory by name. Throws an error if no DefectCategory exists with the given name.

    Parameters

    • name: string

      The name of the DefectCategory to retrieve

    Returns Promise<number>

  • Retrieves the ID of an existing Defect by name. Throws an error if no Defect exists with the given name.

    Parameters

    • name: string

      The name of the Defect to retrieve

    Returns Promise<number>

  • Retrieves an existing Filter. Throws an error if the Filter does not exist.

    Parameters

    • id: number

      The id of the Filter to retrieve

    Returns Promise<SingleFilter>

  • Retrieves the ID of an existing Filter by name. Throws an error if no Filter exists with the given name.

    Parameters

    • name: string

      The name of the Filter to retrieve

    Returns Promise<number>

  • Retrieves an existing Local Query. Throws an error if the Local Query does not exist.

    Parameters

    • id: number

      The id of the Local Query to retrieve

    Returns Promise<SingleLocalDatabaseQuery>

  • Retrieves the ID of an existing Local Query by name. Throws an error if no Local Query exists with the given name.

    Parameters

    • name: string

      The name of the Local Query to retrieve

    Returns Promise<number>

  • Retrieves an existing Part. Throws an error if the Part does not exist.

    Parameters

    • id: number

      The id of the Part to retrieve

    Returns Promise<SinglePart>

  • Retrieves the ID of an existing Part by name. Throws an error if no Part exists with the given name.

    Parameters

    • name: string

      The name of the Part to retrieve

    Returns Promise<number>

  • Retrieves an existing Process. Throws an error if the Process does not exist.

    Parameters

    • id: number

      The id of the Process to retrieve

    Returns Promise<SingleProcess>

  • Retrieves an existing Process by its revision ID. Throws an error if a Process with that revision does not exist.

    Parameters

    • id: number

      The id of the Process's revision to retrieve

    Returns Promise<SingleProcess>

  • Retrieves the ID of an existing Process by name. Throws an error if no Process exists with the given name.

    Parameters

    • name: string

      The name of the Process to retrieve

    Returns Promise<number>

  • Retrieves an existing Characteristic. Throws an error if the Characteristic does not exist.

    Parameters

    • id: number

      The id of the Characteristic to retrieve

    Returns Promise<SingleSPCCharacteristic>

  • Retrieves an existing Characteristic by its revision ID. Throws an error if a Characteristic with that revision does not exist.

    Parameters

    • id: number

      The id of the Characteristic's revision to retrieve

    Returns Promise<SingleSPCCharacteristic>

  • Retrieves the ID of an existing Characteristic by name. Throws an error if no Characteristic exists with the given name.

    Parameters

    • name: string

      The name of the Characteristic to retrieve

    • partName: string

      The name of the Part that is set on the Characteristic to retrieve

    Returns Promise<number>

  • Retrieves an existing Tag. Throws an error if the Tag does not exist.

    Parameters

    • id: number

      The id of the Tag to retrieve

    Returns Promise<GSBaseEntity>

  • Retrieves the ID of an existing Tag by name. Throws an error if no Tag exists with the given name.

    Parameters

    • name: string

      The name of the Tag to retrieve

    Returns Promise<number>

  • Retrieves an existing Traceability. Throws an error if the Traceability does not exist.

    Parameters

    • id: number

      The id of the Traceability to retrieve

    Returns Promise<SingleTraceability>

  • Retrieves the ID of an existing Traceability by name. Throws an error if no Traceability exists with the given name.

    Parameters

    • name: string

      The name of the Traceability to retrieve

    Returns Promise<number>

  • Retrieves an existing Unit. Throws an error if the Unit does not exist.

    Parameters

    • id: number

      The id of the Unit to retrieve

    Returns Promise<GSBaseEntity>

  • Retrieves the ID of an existing Unit by name. Throws an error if no Unit exists with the given name.

    Parameters

    • name: string

      The name of the Unit to retrieve

    Returns Promise<number>