@nymphjs/nymph 1.0.0-beta.4 → 1.0.0-beta.41
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.
- package/CHANGELOG.md +195 -0
- package/README.md +12 -12
- package/dist/Entity.d.ts +24 -3
- package/dist/Entity.js +194 -86
- package/dist/Entity.js.map +1 -1
- package/dist/Entity.test.js +34 -17
- package/dist/Entity.test.js.map +1 -1
- package/dist/Entity.types.d.ts +3 -1
- package/dist/Nymph.d.ts +22 -7
- package/dist/Nymph.js +214 -68
- package/dist/Nymph.js.map +1 -1
- package/dist/Nymph.types.d.ts +18 -5
- package/dist/Nymph.types.js +1 -1
- package/dist/Nymph.types.js.map +1 -1
- package/dist/driver/NymphDriver.d.ts +1 -22
- package/dist/driver/NymphDriver.js +2 -16
- package/dist/driver/NymphDriver.js.map +1 -1
- package/dist/driver/testArtifacts.js +208 -159
- package/dist/driver/testArtifacts.js.map +1 -1
- package/dist/errors/InvalidStateError.d.ts +3 -0
- package/dist/errors/InvalidStateError.js +11 -0
- package/dist/errors/InvalidStateError.js.map +1 -0
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.js +1 -0
- package/dist/errors/index.js.map +1 -1
- package/dist/testArtifacts.d.ts +10 -3
- package/dist/testArtifacts.js +20 -11
- package/dist/testArtifacts.js.map +1 -1
- package/dist/testMocks.d.ts +10 -7
- package/dist/testMocks.js +22 -10
- package/dist/testMocks.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +11 -5
- package/dist/utils.js.map +1 -1
- package/package.json +13 -13
- package/src/Entity.test.ts +31 -9
- package/src/Entity.ts +289 -113
- package/src/Entity.types.ts +13 -1
- package/src/Nymph.ts +386 -82
- package/src/Nymph.types.ts +76 -5
- package/src/driver/NymphDriver.ts +19 -85
- package/src/driver/testArtifacts.ts +125 -44
- package/src/errors/InvalidStateError.ts +6 -0
- package/src/errors/index.ts +2 -0
- package/src/testArtifacts.ts +28 -10
- package/src/testMocks.ts +38 -21
- package/src/utils.ts +21 -7
- package/typedoc.json +4 -0
package/src/Entity.types.ts
CHANGED
|
@@ -271,7 +271,7 @@ export interface EntityInterface extends DataObjectInterface {
|
|
|
271
271
|
$useSkipAc(useSkipAc: boolean): void;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
export type EntityConstructor = (new (
|
|
274
|
+
export type EntityConstructor = (new (...args: any[]) => EntityInterface) & {
|
|
275
275
|
/**
|
|
276
276
|
* The instance of Nymph to use for queries.
|
|
277
277
|
*/
|
|
@@ -288,6 +288,18 @@ export type EntityConstructor = (new (guid?: string) => EntityInterface) & {
|
|
|
288
288
|
* requests.
|
|
289
289
|
*/
|
|
290
290
|
class: string;
|
|
291
|
+
/**
|
|
292
|
+
* Whether this entity should publish changes to PubSub servers.
|
|
293
|
+
*/
|
|
294
|
+
pubSubEnabled: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Whether this entity should be accessible on the frontend through the REST
|
|
297
|
+
* server.
|
|
298
|
+
*
|
|
299
|
+
* If this is false, any request from the client that attempts to use this
|
|
300
|
+
* entity will fail.
|
|
301
|
+
*/
|
|
302
|
+
restEnabled: boolean;
|
|
291
303
|
/**
|
|
292
304
|
* Properties that will not be searchable from the frontend. If the frontend
|
|
293
305
|
* includes any of these properties in any of their clauses, they will be
|