@statezero/core 0.1.76 → 0.1.78

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.
Files changed (109) hide show
  1. package/dist/actions/backend1/django_app/calculate-hash.js +77 -0
  2. package/dist/actions/backend1/django_app/get-current-username.js +62 -0
  3. package/dist/actions/backend1/django_app/get-server-status.js +65 -0
  4. package/dist/actions/backend1/django_app/get-user-info.js +67 -0
  5. package/dist/actions/backend1/django_app/process-data.js +75 -0
  6. package/dist/actions/backend1/django_app/send-notification.js +78 -0
  7. package/dist/actions/backend1/index.d.ts +1 -0
  8. package/dist/actions/backend1/index.js +1 -0
  9. package/dist/actions/default/django_app/calculate-hash.d.ts +57 -0
  10. package/dist/actions/{django_app → default/django_app}/calculate-hash.js +1 -1
  11. package/dist/actions/default/django_app/get-current-username.d.ts +29 -0
  12. package/dist/actions/{django_app → default/django_app}/get-current-username.js +1 -1
  13. package/dist/actions/default/django_app/get-server-status.d.ts +38 -0
  14. package/dist/actions/{django_app → default/django_app}/get-server-status.js +1 -1
  15. package/dist/actions/default/django_app/get-user-info.d.ts +44 -0
  16. package/dist/actions/{django_app → default/django_app}/get-user-info.js +1 -1
  17. package/dist/actions/default/django_app/index.d.ts +6 -0
  18. package/dist/actions/default/django_app/index.js +6 -0
  19. package/dist/actions/default/django_app/process-data.d.ts +51 -0
  20. package/dist/actions/{django_app → default/django_app}/process-data.js +1 -1
  21. package/dist/actions/default/django_app/send-notification.d.ts +55 -0
  22. package/dist/actions/{django_app → default/django_app}/send-notification.js +1 -1
  23. package/dist/actions/default/index.d.ts +1 -0
  24. package/dist/actions/default/index.js +1 -0
  25. package/dist/actions/index.d.ts +1 -1
  26. package/dist/actions/index.js +5 -1
  27. package/dist/cli/commands/syncActions.js +38 -5
  28. package/dist/cli/commands/syncModels.js +44 -7
  29. package/dist/filtering/localFiltering.js +92 -11
  30. package/dist/models/{django_app → backend1/django_app}/comprehensivemodel.d.ts +3 -3
  31. package/dist/models/backend1/django_app/comprehensivemodel.js +63 -0
  32. package/dist/models/{django_app → backend1/django_app}/custompkmodel.d.ts +3 -3
  33. package/dist/models/backend1/django_app/custompkmodel.js +61 -0
  34. package/dist/models/{django_app → backend1/django_app}/deepmodellevel1.d.ts +3 -3
  35. package/dist/models/backend1/django_app/deepmodellevel1.js +64 -0
  36. package/dist/models/{django_app → backend1/django_app}/deepmodellevel2.d.ts +3 -3
  37. package/dist/models/backend1/django_app/deepmodellevel2.js +63 -0
  38. package/dist/models/{django_app → backend1/django_app}/deepmodellevel3.d.ts +3 -3
  39. package/dist/models/backend1/django_app/deepmodellevel3.js +61 -0
  40. package/dist/models/{django_app → backend1/django_app}/dummymodel.d.ts +3 -3
  41. package/dist/models/backend1/django_app/dummymodel.js +63 -0
  42. package/dist/models/{django_app → backend1/django_app}/dummyrelatedmodel.d.ts +3 -3
  43. package/dist/models/backend1/django_app/dummyrelatedmodel.js +61 -0
  44. package/dist/models/{django_app → backend1/django_app}/filetest.d.ts +3 -3
  45. package/dist/models/backend1/django_app/filetest.js +61 -0
  46. package/dist/models/{django_app → backend1/django_app}/modelwithcustompkrelation.d.ts +3 -3
  47. package/dist/models/backend1/django_app/modelwithcustompkrelation.js +63 -0
  48. package/dist/models/{django_app → backend1/django_app}/namefiltercustompkmodel.d.ts +3 -3
  49. package/dist/models/backend1/django_app/namefiltercustompkmodel.js +61 -0
  50. package/dist/models/{django_app → backend1/django_app}/order.d.ts +3 -3
  51. package/dist/models/backend1/django_app/order.js +61 -0
  52. package/dist/models/{django_app → backend1/django_app}/orderitem.d.ts +3 -3
  53. package/dist/models/backend1/django_app/orderitem.js +64 -0
  54. package/dist/models/{django_app → backend1/django_app}/product.d.ts +3 -3
  55. package/dist/models/backend1/django_app/product.js +63 -0
  56. package/dist/models/{django_app → backend1/django_app}/productcategory.d.ts +3 -3
  57. package/dist/models/backend1/django_app/productcategory.js +61 -0
  58. package/dist/models/backend1/fileobject.d.ts +4 -0
  59. package/dist/models/backend1/fileobject.js +9 -0
  60. package/dist/models/backend1/index.d.ts +2 -0
  61. package/dist/models/backend1/index.js +2 -0
  62. package/dist/models/default/django_app/comprehensivemodel.d.ts +47 -0
  63. package/dist/models/{django_app → default/django_app}/comprehensivemodel.js +2 -2
  64. package/dist/models/default/django_app/custompkmodel.d.ts +44 -0
  65. package/dist/models/{django_app → default/django_app}/custompkmodel.js +2 -2
  66. package/dist/models/default/django_app/deepmodellevel1.d.ts +47 -0
  67. package/dist/models/{django_app → default/django_app}/deepmodellevel1.js +2 -2
  68. package/dist/models/default/django_app/deepmodellevel2.d.ts +47 -0
  69. package/dist/models/{django_app → default/django_app}/deepmodellevel2.js +2 -2
  70. package/dist/models/default/django_app/deepmodellevel3.d.ts +44 -0
  71. package/dist/models/{django_app → default/django_app}/deepmodellevel3.js +2 -2
  72. package/dist/models/default/django_app/dummymodel.d.ts +47 -0
  73. package/dist/models/{django_app → default/django_app}/dummymodel.js +2 -2
  74. package/dist/models/default/django_app/dummyrelatedmodel.d.ts +44 -0
  75. package/dist/models/{django_app → default/django_app}/dummyrelatedmodel.js +2 -2
  76. package/dist/models/default/django_app/filetest.d.ts +44 -0
  77. package/dist/models/{django_app → default/django_app}/filetest.js +2 -2
  78. package/dist/models/default/django_app/index.d.ts +14 -0
  79. package/dist/models/default/django_app/index.js +14 -0
  80. package/dist/models/default/django_app/modelwithcustompkrelation.d.ts +47 -0
  81. package/dist/models/{django_app → default/django_app}/modelwithcustompkrelation.js +2 -2
  82. package/dist/models/default/django_app/namefiltercustompkmodel.d.ts +44 -0
  83. package/dist/models/{django_app → default/django_app}/namefiltercustompkmodel.js +2 -2
  84. package/dist/models/default/django_app/order.d.ts +44 -0
  85. package/dist/models/{django_app → default/django_app}/order.js +2 -2
  86. package/dist/models/default/django_app/orderitem.d.ts +47 -0
  87. package/dist/models/{django_app → default/django_app}/orderitem.js +2 -2
  88. package/dist/models/default/django_app/product.d.ts +47 -0
  89. package/dist/models/{django_app → default/django_app}/product.js +2 -2
  90. package/dist/models/default/django_app/productcategory.d.ts +44 -0
  91. package/dist/models/{django_app → default/django_app}/productcategory.js +2 -2
  92. package/dist/models/default/fileobject.d.ts +4 -0
  93. package/dist/models/default/index.d.ts +2 -0
  94. package/dist/models/default/index.js +2 -0
  95. package/dist/models/index.d.ts +1 -2
  96. package/dist/models/index.js +5 -2
  97. package/package.json +1 -1
  98. package/dist/models/fileobject.d.ts +0 -4
  99. /package/dist/actions/{django_app → backend1/django_app}/calculate-hash.d.ts +0 -0
  100. /package/dist/actions/{django_app → backend1/django_app}/get-current-username.d.ts +0 -0
  101. /package/dist/actions/{django_app → backend1/django_app}/get-server-status.d.ts +0 -0
  102. /package/dist/actions/{django_app → backend1/django_app}/get-user-info.d.ts +0 -0
  103. /package/dist/actions/{django_app → backend1/django_app}/index.d.ts +0 -0
  104. /package/dist/actions/{django_app → backend1/django_app}/index.js +0 -0
  105. /package/dist/actions/{django_app → backend1/django_app}/process-data.d.ts +0 -0
  106. /package/dist/actions/{django_app → backend1/django_app}/send-notification.d.ts +0 -0
  107. /package/dist/models/{django_app → backend1/django_app}/index.d.ts +0 -0
  108. /package/dist/models/{django_app → backend1/django_app}/index.js +0 -0
  109. /package/dist/models/{fileobject.js → default/fileobject.js} +0 -0
@@ -0,0 +1,64 @@
1
+ /**
2
+ * This file was auto-generated. Do not make direct changes to the file.
3
+ */
4
+ import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
5
+ import { wrapReactiveModel } from '../../../../src';
6
+ import schemaData from './orderitem.schema.json';
7
+ /**
8
+ * Model-specific QuerySet implementation
9
+ */
10
+ export class OrderItemQuerySet extends QuerySet {
11
+ }
12
+ /**
13
+ * Model-specific Manager implementation
14
+ */
15
+ export class OrderItemManager extends Manager {
16
+ constructor(ModelClass) {
17
+ super(ModelClass, OrderItemQuerySet);
18
+ }
19
+ newQuerySet() {
20
+ return new OrderItemQuerySet(this.ModelClass);
21
+ }
22
+ }
23
+ /**
24
+ * Implementation of the OrderItem model
25
+ */
26
+ export class OrderItem extends Model {
27
+ constructor(data) {
28
+ OrderItem.validateFields(data);
29
+ super(data);
30
+ // Define getters and setters for all fields
31
+ this._defineProperties();
32
+ return wrapReactiveModel(this);
33
+ }
34
+ /**
35
+ * Define property getters and setters for all model fields
36
+ * @private
37
+ */
38
+ _defineProperties() {
39
+ // For each field, define a property that gets/sets from internal storage
40
+ OrderItem.fields.forEach(field => {
41
+ Object.defineProperty(this, field, {
42
+ get: function () {
43
+ return this.getField(field);
44
+ },
45
+ set: function (value) {
46
+ this.setField(field, value);
47
+ },
48
+ enumerable: true, // Make sure fields are enumerable for serialization
49
+ configurable: true
50
+ });
51
+ });
52
+ }
53
+ }
54
+ // Bind this model to its backend
55
+ OrderItem.configKey = 'backend1';
56
+ OrderItem.modelName = 'django_app.orderitem';
57
+ OrderItem.primaryKeyField = 'id';
58
+ OrderItem.objects = new OrderItemManager(OrderItem);
59
+ OrderItem.fields = ['id', 'order', 'product', 'quantity', 'price', 'subtotal'];
60
+ OrderItem.schema = schemaData;
61
+ OrderItem.relationshipFields = new Map([
62
+ ['order', { 'ModelClass': () => getModelClass('django_app.order', 'backend1'), 'relationshipType': 'foreign-key' }],
63
+ ['product', { 'ModelClass': () => getModelClass('django_app.product', 'backend1'), 'relationshipType': 'foreign-key' }]
64
+ ]);
@@ -42,6 +42,6 @@ export class Product extends Model {
42
42
  */
43
43
  private _defineProperties;
44
44
  }
45
- import { QuerySet } from '../../../src';
46
- import { Manager } from '../../../src';
47
- import { Model } from '../../../src';
45
+ import { QuerySet } from '../../../../src';
46
+ import { Manager } from '../../../../src';
47
+ import { Model } from '../../../../src';
@@ -0,0 +1,63 @@
1
+ /**
2
+ * This file was auto-generated. Do not make direct changes to the file.
3
+ */
4
+ import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
5
+ import { wrapReactiveModel } from '../../../../src';
6
+ import schemaData from './product.schema.json';
7
+ /**
8
+ * Model-specific QuerySet implementation
9
+ */
10
+ export class ProductQuerySet extends QuerySet {
11
+ }
12
+ /**
13
+ * Model-specific Manager implementation
14
+ */
15
+ export class ProductManager extends Manager {
16
+ constructor(ModelClass) {
17
+ super(ModelClass, ProductQuerySet);
18
+ }
19
+ newQuerySet() {
20
+ return new ProductQuerySet(this.ModelClass);
21
+ }
22
+ }
23
+ /**
24
+ * Implementation of the Product model
25
+ */
26
+ export class Product extends Model {
27
+ constructor(data) {
28
+ Product.validateFields(data);
29
+ super(data);
30
+ // Define getters and setters for all fields
31
+ this._defineProperties();
32
+ return wrapReactiveModel(this);
33
+ }
34
+ /**
35
+ * Define property getters and setters for all model fields
36
+ * @private
37
+ */
38
+ _defineProperties() {
39
+ // For each field, define a property that gets/sets from internal storage
40
+ Product.fields.forEach(field => {
41
+ Object.defineProperty(this, field, {
42
+ get: function () {
43
+ return this.getField(field);
44
+ },
45
+ set: function (value) {
46
+ this.setField(field, value);
47
+ },
48
+ enumerable: true, // Make sure fields are enumerable for serialization
49
+ configurable: true
50
+ });
51
+ });
52
+ }
53
+ }
54
+ // Bind this model to its backend
55
+ Product.configKey = 'backend1';
56
+ Product.modelName = 'django_app.product';
57
+ Product.primaryKeyField = 'id';
58
+ Product.objects = new ProductManager(Product);
59
+ Product.fields = ['id', 'name', 'description', 'price', 'category', 'in_stock', 'created_at', 'created_by', 'price_with_tax', 'display_name'];
60
+ Product.schema = schemaData;
61
+ Product.relationshipFields = new Map([
62
+ ['category', { 'ModelClass': () => getModelClass('django_app.productcategory', 'backend1'), 'relationshipType': 'foreign-key' }]
63
+ ]);
@@ -39,6 +39,6 @@ export class ProductCategory extends Model {
39
39
  */
40
40
  private _defineProperties;
41
41
  }
42
- import { QuerySet } from '../../../src';
43
- import { Manager } from '../../../src';
44
- import { Model } from '../../../src';
42
+ import { QuerySet } from '../../../../src';
43
+ import { Manager } from '../../../../src';
44
+ import { Model } from '../../../../src';
@@ -0,0 +1,61 @@
1
+ /**
2
+ * This file was auto-generated. Do not make direct changes to the file.
3
+ */
4
+ import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
5
+ import { wrapReactiveModel } from '../../../../src';
6
+ import schemaData from './productcategory.schema.json';
7
+ /**
8
+ * Model-specific QuerySet implementation
9
+ */
10
+ export class ProductCategoryQuerySet extends QuerySet {
11
+ }
12
+ /**
13
+ * Model-specific Manager implementation
14
+ */
15
+ export class ProductCategoryManager extends Manager {
16
+ constructor(ModelClass) {
17
+ super(ModelClass, ProductCategoryQuerySet);
18
+ }
19
+ newQuerySet() {
20
+ return new ProductCategoryQuerySet(this.ModelClass);
21
+ }
22
+ }
23
+ /**
24
+ * Implementation of the ProductCategory model
25
+ */
26
+ export class ProductCategory extends Model {
27
+ constructor(data) {
28
+ ProductCategory.validateFields(data);
29
+ super(data);
30
+ // Define getters and setters for all fields
31
+ this._defineProperties();
32
+ return wrapReactiveModel(this);
33
+ }
34
+ /**
35
+ * Define property getters and setters for all model fields
36
+ * @private
37
+ */
38
+ _defineProperties() {
39
+ // For each field, define a property that gets/sets from internal storage
40
+ ProductCategory.fields.forEach(field => {
41
+ Object.defineProperty(this, field, {
42
+ get: function () {
43
+ return this.getField(field);
44
+ },
45
+ set: function (value) {
46
+ this.setField(field, value);
47
+ },
48
+ enumerable: true, // Make sure fields are enumerable for serialization
49
+ configurable: true
50
+ });
51
+ });
52
+ }
53
+ }
54
+ // Bind this model to its backend
55
+ ProductCategory.configKey = 'backend1';
56
+ ProductCategory.modelName = 'django_app.productcategory';
57
+ ProductCategory.primaryKeyField = 'id';
58
+ ProductCategory.objects = new ProductCategoryManager(ProductCategory);
59
+ ProductCategory.fields = ['id', 'name'];
60
+ ProductCategory.schema = schemaData;
61
+ ProductCategory.relationshipFields = new Map([]);
@@ -0,0 +1,4 @@
1
+ export class backend1FileObject extends BaseFileObject {
2
+ }
3
+ export const FileObject: typeof backend1FileObject;
4
+ import { FileObject as BaseFileObject } from '../../../src';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated. Do not make direct changes to the file.
3
+ * Backend-specific FileObject class for backend1
4
+ */
5
+ import { FileObject as BaseFileObject } from '../../../src';
6
+ export class backend1FileObject extends BaseFileObject {
7
+ }
8
+ backend1FileObject.configKey = 'backend1';
9
+ export const FileObject = backend1FileObject;
@@ -0,0 +1,2 @@
1
+ export * from "./fileobject";
2
+ export * from "./django_app/index";
@@ -0,0 +1,2 @@
1
+ export * from './fileobject';
2
+ export * from './django_app/index';
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Model-specific QuerySet implementation
3
+ */
4
+ export class ComprehensiveModelQuerySet extends QuerySet<any> {
5
+ constructor(ModelClass: ModelConstructor, config?: {
6
+ nodes?: QueryNode[] | undefined;
7
+ orderBy?: {
8
+ field: string;
9
+ direction: "asc" | "desc";
10
+ }[] | undefined;
11
+ fields?: Set<string> | undefined;
12
+ aggregations?: Aggregation[] | undefined;
13
+ initialQueryset?: string | undefined;
14
+ serializerOptions?: SerializerOptions;
15
+ materialized?: boolean | undefined;
16
+ } | undefined, parent?: null);
17
+ }
18
+ /**
19
+ * Model-specific Manager implementation
20
+ */
21
+ export class ComprehensiveModelManager extends Manager {
22
+ constructor(ModelClass: any);
23
+ }
24
+ /**
25
+ * Implementation of the ComprehensiveModel model
26
+ */
27
+ export class ComprehensiveModel extends Model {
28
+ static configKey: string;
29
+ static modelName: string;
30
+ static primaryKeyField: string;
31
+ static objects: ComprehensiveModelManager;
32
+ static fields: string[];
33
+ static schema: any;
34
+ static relationshipFields: Map<string, {
35
+ ModelClass: () => Function | null;
36
+ relationshipType: string;
37
+ }>;
38
+ constructor(data: any);
39
+ /**
40
+ * Define property getters and setters for all model fields
41
+ * @private
42
+ */
43
+ private _defineProperties;
44
+ }
45
+ import { QuerySet } from '../../../../src';
46
+ import { Manager } from '../../../../src';
47
+ import { Model } from '../../../../src';
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated. Do not make direct changes to the file.
3
3
  */
4
- import { Model, Manager, QuerySet, getModelClass } from '../../../src';
5
- import { wrapReactiveModel } from '../../../src';
4
+ import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
5
+ import { wrapReactiveModel } from '../../../../src';
6
6
  import schemaData from './comprehensivemodel.schema.json';
7
7
  /**
8
8
  * Model-specific QuerySet implementation
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Model-specific QuerySet implementation
3
+ */
4
+ export class CustomPKModelQuerySet extends QuerySet<any> {
5
+ constructor(ModelClass: ModelConstructor, config?: {
6
+ nodes?: QueryNode[] | undefined;
7
+ orderBy?: {
8
+ field: string;
9
+ direction: "asc" | "desc";
10
+ }[] | undefined;
11
+ fields?: Set<string> | undefined;
12
+ aggregations?: Aggregation[] | undefined;
13
+ initialQueryset?: string | undefined;
14
+ serializerOptions?: SerializerOptions;
15
+ materialized?: boolean | undefined;
16
+ } | undefined, parent?: null);
17
+ }
18
+ /**
19
+ * Model-specific Manager implementation
20
+ */
21
+ export class CustomPKModelManager extends Manager {
22
+ constructor(ModelClass: any);
23
+ }
24
+ /**
25
+ * Implementation of the CustomPKModel model
26
+ */
27
+ export class CustomPKModel extends Model {
28
+ static configKey: string;
29
+ static modelName: string;
30
+ static primaryKeyField: string;
31
+ static objects: CustomPKModelManager;
32
+ static fields: string[];
33
+ static schema: any;
34
+ static relationshipFields: Map<any, any>;
35
+ constructor(data: any);
36
+ /**
37
+ * Define property getters and setters for all model fields
38
+ * @private
39
+ */
40
+ private _defineProperties;
41
+ }
42
+ import { QuerySet } from '../../../../src';
43
+ import { Manager } from '../../../../src';
44
+ import { Model } from '../../../../src';
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated. Do not make direct changes to the file.
3
3
  */
4
- import { Model, Manager, QuerySet, getModelClass } from '../../../src';
5
- import { wrapReactiveModel } from '../../../src';
4
+ import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
5
+ import { wrapReactiveModel } from '../../../../src';
6
6
  import schemaData from './custompkmodel.schema.json';
7
7
  /**
8
8
  * Model-specific QuerySet implementation
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Model-specific QuerySet implementation
3
+ */
4
+ export class DeepModelLevel1QuerySet extends QuerySet<any> {
5
+ constructor(ModelClass: ModelConstructor, config?: {
6
+ nodes?: QueryNode[] | undefined;
7
+ orderBy?: {
8
+ field: string;
9
+ direction: "asc" | "desc";
10
+ }[] | undefined;
11
+ fields?: Set<string> | undefined;
12
+ aggregations?: Aggregation[] | undefined;
13
+ initialQueryset?: string | undefined;
14
+ serializerOptions?: SerializerOptions;
15
+ materialized?: boolean | undefined;
16
+ } | undefined, parent?: null);
17
+ }
18
+ /**
19
+ * Model-specific Manager implementation
20
+ */
21
+ export class DeepModelLevel1Manager extends Manager {
22
+ constructor(ModelClass: any);
23
+ }
24
+ /**
25
+ * Implementation of the DeepModelLevel1 model
26
+ */
27
+ export class DeepModelLevel1 extends Model {
28
+ static configKey: string;
29
+ static modelName: string;
30
+ static primaryKeyField: string;
31
+ static objects: DeepModelLevel1Manager;
32
+ static fields: string[];
33
+ static schema: any;
34
+ static relationshipFields: Map<string, {
35
+ ModelClass: () => Function | null;
36
+ relationshipType: string;
37
+ }>;
38
+ constructor(data: any);
39
+ /**
40
+ * Define property getters and setters for all model fields
41
+ * @private
42
+ */
43
+ private _defineProperties;
44
+ }
45
+ import { QuerySet } from '../../../../src';
46
+ import { Manager } from '../../../../src';
47
+ import { Model } from '../../../../src';
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated. Do not make direct changes to the file.
3
3
  */
4
- import { Model, Manager, QuerySet, getModelClass } from '../../../src';
5
- import { wrapReactiveModel } from '../../../src';
4
+ import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
5
+ import { wrapReactiveModel } from '../../../../src';
6
6
  import schemaData from './deepmodellevel1.schema.json';
7
7
  /**
8
8
  * Model-specific QuerySet implementation
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Model-specific QuerySet implementation
3
+ */
4
+ export class DeepModelLevel2QuerySet extends QuerySet<any> {
5
+ constructor(ModelClass: ModelConstructor, config?: {
6
+ nodes?: QueryNode[] | undefined;
7
+ orderBy?: {
8
+ field: string;
9
+ direction: "asc" | "desc";
10
+ }[] | undefined;
11
+ fields?: Set<string> | undefined;
12
+ aggregations?: Aggregation[] | undefined;
13
+ initialQueryset?: string | undefined;
14
+ serializerOptions?: SerializerOptions;
15
+ materialized?: boolean | undefined;
16
+ } | undefined, parent?: null);
17
+ }
18
+ /**
19
+ * Model-specific Manager implementation
20
+ */
21
+ export class DeepModelLevel2Manager extends Manager {
22
+ constructor(ModelClass: any);
23
+ }
24
+ /**
25
+ * Implementation of the DeepModelLevel2 model
26
+ */
27
+ export class DeepModelLevel2 extends Model {
28
+ static configKey: string;
29
+ static modelName: string;
30
+ static primaryKeyField: string;
31
+ static objects: DeepModelLevel2Manager;
32
+ static fields: string[];
33
+ static schema: any;
34
+ static relationshipFields: Map<string, {
35
+ ModelClass: () => Function | null;
36
+ relationshipType: string;
37
+ }>;
38
+ constructor(data: any);
39
+ /**
40
+ * Define property getters and setters for all model fields
41
+ * @private
42
+ */
43
+ private _defineProperties;
44
+ }
45
+ import { QuerySet } from '../../../../src';
46
+ import { Manager } from '../../../../src';
47
+ import { Model } from '../../../../src';
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated. Do not make direct changes to the file.
3
3
  */
4
- import { Model, Manager, QuerySet, getModelClass } from '../../../src';
5
- import { wrapReactiveModel } from '../../../src';
4
+ import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
5
+ import { wrapReactiveModel } from '../../../../src';
6
6
  import schemaData from './deepmodellevel2.schema.json';
7
7
  /**
8
8
  * Model-specific QuerySet implementation
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Model-specific QuerySet implementation
3
+ */
4
+ export class DeepModelLevel3QuerySet extends QuerySet<any> {
5
+ constructor(ModelClass: ModelConstructor, config?: {
6
+ nodes?: QueryNode[] | undefined;
7
+ orderBy?: {
8
+ field: string;
9
+ direction: "asc" | "desc";
10
+ }[] | undefined;
11
+ fields?: Set<string> | undefined;
12
+ aggregations?: Aggregation[] | undefined;
13
+ initialQueryset?: string | undefined;
14
+ serializerOptions?: SerializerOptions;
15
+ materialized?: boolean | undefined;
16
+ } | undefined, parent?: null);
17
+ }
18
+ /**
19
+ * Model-specific Manager implementation
20
+ */
21
+ export class DeepModelLevel3Manager extends Manager {
22
+ constructor(ModelClass: any);
23
+ }
24
+ /**
25
+ * Implementation of the DeepModelLevel3 model
26
+ */
27
+ export class DeepModelLevel3 extends Model {
28
+ static configKey: string;
29
+ static modelName: string;
30
+ static primaryKeyField: string;
31
+ static objects: DeepModelLevel3Manager;
32
+ static fields: string[];
33
+ static schema: any;
34
+ static relationshipFields: Map<any, any>;
35
+ constructor(data: any);
36
+ /**
37
+ * Define property getters and setters for all model fields
38
+ * @private
39
+ */
40
+ private _defineProperties;
41
+ }
42
+ import { QuerySet } from '../../../../src';
43
+ import { Manager } from '../../../../src';
44
+ import { Model } from '../../../../src';
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated. Do not make direct changes to the file.
3
3
  */
4
- import { Model, Manager, QuerySet, getModelClass } from '../../../src';
5
- import { wrapReactiveModel } from '../../../src';
4
+ import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
5
+ import { wrapReactiveModel } from '../../../../src';
6
6
  import schemaData from './deepmodellevel3.schema.json';
7
7
  /**
8
8
  * Model-specific QuerySet implementation
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Model-specific QuerySet implementation
3
+ */
4
+ export class DummyModelQuerySet extends QuerySet<any> {
5
+ constructor(ModelClass: ModelConstructor, config?: {
6
+ nodes?: QueryNode[] | undefined;
7
+ orderBy?: {
8
+ field: string;
9
+ direction: "asc" | "desc";
10
+ }[] | undefined;
11
+ fields?: Set<string> | undefined;
12
+ aggregations?: Aggregation[] | undefined;
13
+ initialQueryset?: string | undefined;
14
+ serializerOptions?: SerializerOptions;
15
+ materialized?: boolean | undefined;
16
+ } | undefined, parent?: null);
17
+ }
18
+ /**
19
+ * Model-specific Manager implementation
20
+ */
21
+ export class DummyModelManager extends Manager {
22
+ constructor(ModelClass: any);
23
+ }
24
+ /**
25
+ * Implementation of the DummyModel model
26
+ */
27
+ export class DummyModel extends Model {
28
+ static configKey: string;
29
+ static modelName: string;
30
+ static primaryKeyField: string;
31
+ static objects: DummyModelManager;
32
+ static fields: string[];
33
+ static schema: any;
34
+ static relationshipFields: Map<string, {
35
+ ModelClass: () => Function | null;
36
+ relationshipType: string;
37
+ }>;
38
+ constructor(data: any);
39
+ /**
40
+ * Define property getters and setters for all model fields
41
+ * @private
42
+ */
43
+ private _defineProperties;
44
+ }
45
+ import { QuerySet } from '../../../../src';
46
+ import { Manager } from '../../../../src';
47
+ import { Model } from '../../../../src';
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated. Do not make direct changes to the file.
3
3
  */
4
- import { Model, Manager, QuerySet, getModelClass } from '../../../src';
5
- import { wrapReactiveModel } from '../../../src';
4
+ import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
5
+ import { wrapReactiveModel } from '../../../../src';
6
6
  import schemaData from './dummymodel.schema.json';
7
7
  /**
8
8
  * Model-specific QuerySet implementation
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Model-specific QuerySet implementation
3
+ */
4
+ export class DummyRelatedModelQuerySet extends QuerySet<any> {
5
+ constructor(ModelClass: ModelConstructor, config?: {
6
+ nodes?: QueryNode[] | undefined;
7
+ orderBy?: {
8
+ field: string;
9
+ direction: "asc" | "desc";
10
+ }[] | undefined;
11
+ fields?: Set<string> | undefined;
12
+ aggregations?: Aggregation[] | undefined;
13
+ initialQueryset?: string | undefined;
14
+ serializerOptions?: SerializerOptions;
15
+ materialized?: boolean | undefined;
16
+ } | undefined, parent?: null);
17
+ }
18
+ /**
19
+ * Model-specific Manager implementation
20
+ */
21
+ export class DummyRelatedModelManager extends Manager {
22
+ constructor(ModelClass: any);
23
+ }
24
+ /**
25
+ * Implementation of the DummyRelatedModel model
26
+ */
27
+ export class DummyRelatedModel extends Model {
28
+ static configKey: string;
29
+ static modelName: string;
30
+ static primaryKeyField: string;
31
+ static objects: DummyRelatedModelManager;
32
+ static fields: string[];
33
+ static schema: any;
34
+ static relationshipFields: Map<any, any>;
35
+ constructor(data: any);
36
+ /**
37
+ * Define property getters and setters for all model fields
38
+ * @private
39
+ */
40
+ private _defineProperties;
41
+ }
42
+ import { QuerySet } from '../../../../src';
43
+ import { Manager } from '../../../../src';
44
+ import { Model } from '../../../../src';
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated. Do not make direct changes to the file.
3
3
  */
4
- import { Model, Manager, QuerySet, getModelClass } from '../../../src';
5
- import { wrapReactiveModel } from '../../../src';
4
+ import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
5
+ import { wrapReactiveModel } from '../../../../src';
6
6
  import schemaData from './dummyrelatedmodel.schema.json';
7
7
  /**
8
8
  * Model-specific QuerySet implementation