@chevre/factory 4.399.0-alpha.3 → 4.399.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ export interface IObjectAsProduct {
12
12
  productID: string;
13
13
  typeOf: ProductType;
14
14
  }
15
- export type IObject = IObjectAsNote | IObjectAsProduct;
15
+ export type IObject = IObjectAsNote[] | IObjectAsProduct[];
16
16
  export interface IAddedObject {
17
17
  id: string;
18
18
  typeOf: CreativeWorkType.NoteDigitalDocument | ProductType;
@@ -24,12 +24,12 @@ export interface IInstrument {
24
24
  }
25
25
  export interface ITargetCollectionAsNote {
26
26
  typeOf: CreativeWorkType.NoteDigitalDocument;
27
- about: Pick<INoteAbout, 'id' | 'typeOf'>;
27
+ about: Pick<INoteAbout, 'typeOf'>;
28
28
  }
29
29
  export interface ITargetCollectionAsProduct {
30
30
  typeOf: ProductType;
31
31
  }
32
- export type ITargetCollection = ITargetCollectionAsNote;
32
+ export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsProduct;
33
33
  export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.AddAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
34
34
  potentialActions?: never;
35
35
  instrument: IInstrument;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.399.0-alpha.3",
3
+ "version": "4.399.0-alpha.4",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",