codify-plugin-lib 1.0.83 → 1.0.85

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.
@@ -22,6 +22,7 @@ export class ResourceController {
22
22
  allErrors: true,
23
23
  strict: true,
24
24
  strictRequired: false,
25
+ allowUnionTypes: true
25
26
  });
26
27
  this.schemaValidator = this.ajv.compile(this.settings.schema);
27
28
  }
@@ -129,7 +129,7 @@ export declare abstract class ArrayStatefulParameter<T extends StringIndexedObje
129
129
  * @param desired The desired value to refresh
130
130
  * @return The current value on the system or null if not found.
131
131
  */
132
- abstract refresh(desired: V[] | null): Promise<V[] | null>;
132
+ abstract refresh(desired: V[] | null, config: Partial<T>): Promise<V[] | null>;
133
133
  /**
134
134
  * Helper method that gets called when individual elements of the array need to be added. See {@link StatefulParameter.add}
135
135
  * for more information.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
4
4
  "description": "Library plugin library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -41,6 +41,7 @@ export class ResourceController<T extends StringIndexedObject> {
41
41
  allErrors: true,
42
42
  strict: true,
43
43
  strictRequired: false,
44
+ allowUnionTypes: true
44
45
  })
45
46
  this.schemaValidator = this.ajv.compile(this.settings.schema);
46
47
  }
@@ -180,7 +180,7 @@ export abstract class ArrayStatefulParameter<T extends StringIndexedObject, V> e
180
180
  * @param desired The desired value to refresh
181
181
  * @return The current value on the system or null if not found.
182
182
  */
183
- abstract refresh(desired: V[] | null): Promise<V[] | null>;
183
+ abstract refresh(desired: V[] | null, config: Partial<T>): Promise<V[] | null>;
184
184
 
185
185
  /**
186
186
  * Helper method that gets called when individual elements of the array need to be added. See {@link StatefulParameter.add}