Change to HouID because it's closer to GUID and easier to say.

This commit is contained in:
Eric Schultz 2021-01-25 13:44:59 -06:00 committed by Eric Schultz
parent 169dbc5987
commit 869f819ba0
2 changed files with 7 additions and 7 deletions

View file

@ -1,9 +1,9 @@
// License: LGPL-3.0-or-later // License: LGPL-3.0-or-later
import type { Amount, HoudiniObject, IdType, HoudID } from "../common"; import type { Amount, HoudiniObject, IdType, HouID } from "../common";
import type Nonprofit from './'; import type Nonprofit from './';
export interface Transaction extends HoudiniObject<HoudID> { export interface Transaction extends HoudiniObject<HouID> {
amount: Amount; amount: Amount;
nonprofit: IdType | Nonprofit; nonprofit: IdType | Nonprofit;
object: 'transaction'; object: 'transaction';

View file

@ -9,7 +9,7 @@ export type IdType = number;
/** /**
* an identifier for HoudiniObjects which is unique among all HoudiniObjects. * an identifier for HoudiniObjects which is unique among all HoudiniObjects.
*/ */
export type HoudID = string; export type HouID = string;
/** /**
* Describes a monetary value in the minimum unit for this current. Corresponds to Money class in * Describes a monetary value in the minimum unit for this current. Corresponds to Money class in
@ -60,7 +60,7 @@ export type RecurrenceRule = {
* Every object controlled by the Houdini event publisher must meet this standard interface * Every object controlled by the Houdini event publisher must meet this standard interface
* and will inherit from it. * and will inherit from it.
*/ */
export interface HoudiniObject<Id extends IdType|HoudID=IdType> { export interface HoudiniObject<Id extends IdType|HouID=IdType> {
/** /**
* An IdType which unique which uniquely identifies this object * An IdType which unique which uniquely identifies this object
* from all other similar objects * from all other similar objects
@ -73,7 +73,7 @@ export interface HoudiniObject<Id extends IdType|HoudID=IdType> {
} }
type HoudiniObjectOfAllIds = HoudiniObject<IdType> | HoudiniObject<HoudID>; type HoudiniObjectOfAllIds = HoudiniObject<IdType> | HoudiniObject<HouID>;
/** /**
* An event published by Houdini * An event published by Houdini
* *
@ -90,9 +90,9 @@ export interface HoudiniEvent<EventType extends string, DataObject extends Houdi
object: DataObject; object: DataObject;
}; };
/** /**
* A HoudID uniquely representing the event * A HouID uniquely representing the event
*/ */
id: HoudID; id: HouID;
object: 'object_event'; object: 'object_event';
/** The type of event that this is */ /** The type of event that this is */
type: EventType; type: EventType;