@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.
- package/dist/actions/backend1/django_app/calculate-hash.js +77 -0
- package/dist/actions/backend1/django_app/get-current-username.js +62 -0
- package/dist/actions/backend1/django_app/get-server-status.js +65 -0
- package/dist/actions/backend1/django_app/get-user-info.js +67 -0
- package/dist/actions/backend1/django_app/process-data.js +75 -0
- package/dist/actions/backend1/django_app/send-notification.js +78 -0
- package/dist/actions/backend1/index.d.ts +1 -0
- package/dist/actions/backend1/index.js +1 -0
- package/dist/actions/default/django_app/calculate-hash.d.ts +57 -0
- package/dist/actions/{django_app → default/django_app}/calculate-hash.js +1 -1
- package/dist/actions/default/django_app/get-current-username.d.ts +29 -0
- package/dist/actions/{django_app → default/django_app}/get-current-username.js +1 -1
- package/dist/actions/default/django_app/get-server-status.d.ts +38 -0
- package/dist/actions/{django_app → default/django_app}/get-server-status.js +1 -1
- package/dist/actions/default/django_app/get-user-info.d.ts +44 -0
- package/dist/actions/{django_app → default/django_app}/get-user-info.js +1 -1
- package/dist/actions/default/django_app/index.d.ts +6 -0
- package/dist/actions/default/django_app/index.js +6 -0
- package/dist/actions/default/django_app/process-data.d.ts +51 -0
- package/dist/actions/{django_app → default/django_app}/process-data.js +1 -1
- package/dist/actions/default/django_app/send-notification.d.ts +55 -0
- package/dist/actions/{django_app → default/django_app}/send-notification.js +1 -1
- package/dist/actions/default/index.d.ts +1 -0
- package/dist/actions/default/index.js +1 -0
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +5 -1
- package/dist/cli/commands/syncActions.js +38 -5
- package/dist/cli/commands/syncModels.js +44 -7
- package/dist/filtering/localFiltering.js +92 -11
- package/dist/models/{django_app → backend1/django_app}/comprehensivemodel.d.ts +3 -3
- package/dist/models/backend1/django_app/comprehensivemodel.js +63 -0
- package/dist/models/{django_app → backend1/django_app}/custompkmodel.d.ts +3 -3
- package/dist/models/backend1/django_app/custompkmodel.js +61 -0
- package/dist/models/{django_app → backend1/django_app}/deepmodellevel1.d.ts +3 -3
- package/dist/models/backend1/django_app/deepmodellevel1.js +64 -0
- package/dist/models/{django_app → backend1/django_app}/deepmodellevel2.d.ts +3 -3
- package/dist/models/backend1/django_app/deepmodellevel2.js +63 -0
- package/dist/models/{django_app → backend1/django_app}/deepmodellevel3.d.ts +3 -3
- package/dist/models/backend1/django_app/deepmodellevel3.js +61 -0
- package/dist/models/{django_app → backend1/django_app}/dummymodel.d.ts +3 -3
- package/dist/models/backend1/django_app/dummymodel.js +63 -0
- package/dist/models/{django_app → backend1/django_app}/dummyrelatedmodel.d.ts +3 -3
- package/dist/models/backend1/django_app/dummyrelatedmodel.js +61 -0
- package/dist/models/{django_app → backend1/django_app}/filetest.d.ts +3 -3
- package/dist/models/backend1/django_app/filetest.js +61 -0
- package/dist/models/{django_app → backend1/django_app}/modelwithcustompkrelation.d.ts +3 -3
- package/dist/models/backend1/django_app/modelwithcustompkrelation.js +63 -0
- package/dist/models/{django_app → backend1/django_app}/namefiltercustompkmodel.d.ts +3 -3
- package/dist/models/backend1/django_app/namefiltercustompkmodel.js +61 -0
- package/dist/models/{django_app → backend1/django_app}/order.d.ts +3 -3
- package/dist/models/backend1/django_app/order.js +61 -0
- package/dist/models/{django_app → backend1/django_app}/orderitem.d.ts +3 -3
- package/dist/models/backend1/django_app/orderitem.js +64 -0
- package/dist/models/{django_app → backend1/django_app}/product.d.ts +3 -3
- package/dist/models/backend1/django_app/product.js +63 -0
- package/dist/models/{django_app → backend1/django_app}/productcategory.d.ts +3 -3
- package/dist/models/backend1/django_app/productcategory.js +61 -0
- package/dist/models/backend1/fileobject.d.ts +4 -0
- package/dist/models/backend1/fileobject.js +9 -0
- package/dist/models/backend1/index.d.ts +2 -0
- package/dist/models/backend1/index.js +2 -0
- package/dist/models/default/django_app/comprehensivemodel.d.ts +47 -0
- package/dist/models/{django_app → default/django_app}/comprehensivemodel.js +2 -2
- package/dist/models/default/django_app/custompkmodel.d.ts +44 -0
- package/dist/models/{django_app → default/django_app}/custompkmodel.js +2 -2
- package/dist/models/default/django_app/deepmodellevel1.d.ts +47 -0
- package/dist/models/{django_app → default/django_app}/deepmodellevel1.js +2 -2
- package/dist/models/default/django_app/deepmodellevel2.d.ts +47 -0
- package/dist/models/{django_app → default/django_app}/deepmodellevel2.js +2 -2
- package/dist/models/default/django_app/deepmodellevel3.d.ts +44 -0
- package/dist/models/{django_app → default/django_app}/deepmodellevel3.js +2 -2
- package/dist/models/default/django_app/dummymodel.d.ts +47 -0
- package/dist/models/{django_app → default/django_app}/dummymodel.js +2 -2
- package/dist/models/default/django_app/dummyrelatedmodel.d.ts +44 -0
- package/dist/models/{django_app → default/django_app}/dummyrelatedmodel.js +2 -2
- package/dist/models/default/django_app/filetest.d.ts +44 -0
- package/dist/models/{django_app → default/django_app}/filetest.js +2 -2
- package/dist/models/default/django_app/index.d.ts +14 -0
- package/dist/models/default/django_app/index.js +14 -0
- package/dist/models/default/django_app/modelwithcustompkrelation.d.ts +47 -0
- package/dist/models/{django_app → default/django_app}/modelwithcustompkrelation.js +2 -2
- package/dist/models/default/django_app/namefiltercustompkmodel.d.ts +44 -0
- package/dist/models/{django_app → default/django_app}/namefiltercustompkmodel.js +2 -2
- package/dist/models/default/django_app/order.d.ts +44 -0
- package/dist/models/{django_app → default/django_app}/order.js +2 -2
- package/dist/models/default/django_app/orderitem.d.ts +47 -0
- package/dist/models/{django_app → default/django_app}/orderitem.js +2 -2
- package/dist/models/default/django_app/product.d.ts +47 -0
- package/dist/models/{django_app → default/django_app}/product.js +2 -2
- package/dist/models/default/django_app/productcategory.d.ts +44 -0
- package/dist/models/{django_app → default/django_app}/productcategory.js +2 -2
- package/dist/models/default/fileobject.d.ts +4 -0
- package/dist/models/default/index.d.ts +2 -0
- package/dist/models/default/index.js +2 -0
- package/dist/models/index.d.ts +1 -2
- package/dist/models/index.js +5 -2
- package/package.json +1 -1
- package/dist/models/fileobject.d.ts +0 -4
- /package/dist/actions/{django_app → backend1/django_app}/calculate-hash.d.ts +0 -0
- /package/dist/actions/{django_app → backend1/django_app}/get-current-username.d.ts +0 -0
- /package/dist/actions/{django_app → backend1/django_app}/get-server-status.d.ts +0 -0
- /package/dist/actions/{django_app → backend1/django_app}/get-user-info.d.ts +0 -0
- /package/dist/actions/{django_app → backend1/django_app}/index.d.ts +0 -0
- /package/dist/actions/{django_app → backend1/django_app}/index.js +0 -0
- /package/dist/actions/{django_app → backend1/django_app}/process-data.d.ts +0 -0
- /package/dist/actions/{django_app → backend1/django_app}/send-notification.d.ts +0 -0
- /package/dist/models/{django_app → backend1/django_app}/index.d.ts +0 -0
- /package/dist/models/{django_app → backend1/django_app}/index.js +0 -0
- /package/dist/models/{fileobject.js → default/fileobject.js} +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model-specific QuerySet implementation
|
|
3
|
+
*/
|
|
4
|
+
export class FileTestQuerySet 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 FileTestManager extends Manager {
|
|
22
|
+
constructor(ModelClass: any);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Implementation of the FileTest model
|
|
26
|
+
*/
|
|
27
|
+
export class FileTest extends Model {
|
|
28
|
+
static configKey: string;
|
|
29
|
+
static modelName: string;
|
|
30
|
+
static primaryKeyField: string;
|
|
31
|
+
static objects: FileTestManager;
|
|
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 '
|
|
5
|
-
import { wrapReactiveModel } from '
|
|
4
|
+
import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
|
|
5
|
+
import { wrapReactiveModel } from '../../../../src';
|
|
6
6
|
import schemaData from './filetest.schema.json';
|
|
7
7
|
/**
|
|
8
8
|
* Model-specific QuerySet implementation
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./dummyrelatedmodel";
|
|
2
|
+
export * from "./dummymodel";
|
|
3
|
+
export * from "./filetest";
|
|
4
|
+
export * from "./deepmodellevel3";
|
|
5
|
+
export * from "./deepmodellevel2";
|
|
6
|
+
export * from "./deepmodellevel1";
|
|
7
|
+
export * from "./comprehensivemodel";
|
|
8
|
+
export * from "./custompkmodel";
|
|
9
|
+
export * from "./modelwithcustompkrelation";
|
|
10
|
+
export * from "./namefiltercustompkmodel";
|
|
11
|
+
export * from "./productcategory";
|
|
12
|
+
export * from "./product";
|
|
13
|
+
export * from "./order";
|
|
14
|
+
export * from "./orderitem";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './dummyrelatedmodel';
|
|
2
|
+
export * from './dummymodel';
|
|
3
|
+
export * from './filetest';
|
|
4
|
+
export * from './deepmodellevel3';
|
|
5
|
+
export * from './deepmodellevel2';
|
|
6
|
+
export * from './deepmodellevel1';
|
|
7
|
+
export * from './comprehensivemodel';
|
|
8
|
+
export * from './custompkmodel';
|
|
9
|
+
export * from './modelwithcustompkrelation';
|
|
10
|
+
export * from './namefiltercustompkmodel';
|
|
11
|
+
export * from './productcategory';
|
|
12
|
+
export * from './product';
|
|
13
|
+
export * from './order';
|
|
14
|
+
export * from './orderitem';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model-specific QuerySet implementation
|
|
3
|
+
*/
|
|
4
|
+
export class ModelWithCustomPKRelationQuerySet 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 ModelWithCustomPKRelationManager extends Manager {
|
|
22
|
+
constructor(ModelClass: any);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Implementation of the ModelWithCustomPKRelation model
|
|
26
|
+
*/
|
|
27
|
+
export class ModelWithCustomPKRelation extends Model {
|
|
28
|
+
static configKey: string;
|
|
29
|
+
static modelName: string;
|
|
30
|
+
static primaryKeyField: string;
|
|
31
|
+
static objects: ModelWithCustomPKRelationManager;
|
|
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 '
|
|
5
|
-
import { wrapReactiveModel } from '
|
|
4
|
+
import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
|
|
5
|
+
import { wrapReactiveModel } from '../../../../src';
|
|
6
6
|
import schemaData from './modelwithcustompkrelation.schema.json';
|
|
7
7
|
/**
|
|
8
8
|
* Model-specific QuerySet implementation
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model-specific QuerySet implementation
|
|
3
|
+
*/
|
|
4
|
+
export class NameFilterCustomPKModelQuerySet 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 NameFilterCustomPKModelManager extends Manager {
|
|
22
|
+
constructor(ModelClass: any);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Implementation of the NameFilterCustomPKModel model
|
|
26
|
+
*/
|
|
27
|
+
export class NameFilterCustomPKModel extends Model {
|
|
28
|
+
static configKey: string;
|
|
29
|
+
static modelName: string;
|
|
30
|
+
static primaryKeyField: string;
|
|
31
|
+
static objects: NameFilterCustomPKModelManager;
|
|
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 '
|
|
5
|
-
import { wrapReactiveModel } from '
|
|
4
|
+
import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
|
|
5
|
+
import { wrapReactiveModel } from '../../../../src';
|
|
6
6
|
import schemaData from './namefiltercustompkmodel.schema.json';
|
|
7
7
|
/**
|
|
8
8
|
* Model-specific QuerySet implementation
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model-specific QuerySet implementation
|
|
3
|
+
*/
|
|
4
|
+
export class OrderQuerySet 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 OrderManager extends Manager {
|
|
22
|
+
constructor(ModelClass: any);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Implementation of the Order model
|
|
26
|
+
*/
|
|
27
|
+
export class Order extends Model {
|
|
28
|
+
static configKey: string;
|
|
29
|
+
static modelName: string;
|
|
30
|
+
static primaryKeyField: string;
|
|
31
|
+
static objects: OrderManager;
|
|
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 '
|
|
5
|
-
import { wrapReactiveModel } from '
|
|
4
|
+
import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
|
|
5
|
+
import { wrapReactiveModel } from '../../../../src';
|
|
6
6
|
import schemaData from './order.schema.json';
|
|
7
7
|
/**
|
|
8
8
|
* Model-specific QuerySet implementation
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model-specific QuerySet implementation
|
|
3
|
+
*/
|
|
4
|
+
export class OrderItemQuerySet 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 OrderItemManager extends Manager {
|
|
22
|
+
constructor(ModelClass: any);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Implementation of the OrderItem model
|
|
26
|
+
*/
|
|
27
|
+
export class OrderItem extends Model {
|
|
28
|
+
static configKey: string;
|
|
29
|
+
static modelName: string;
|
|
30
|
+
static primaryKeyField: string;
|
|
31
|
+
static objects: OrderItemManager;
|
|
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 '
|
|
5
|
-
import { wrapReactiveModel } from '
|
|
4
|
+
import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
|
|
5
|
+
import { wrapReactiveModel } from '../../../../src';
|
|
6
6
|
import schemaData from './orderitem.schema.json';
|
|
7
7
|
/**
|
|
8
8
|
* Model-specific QuerySet implementation
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model-specific QuerySet implementation
|
|
3
|
+
*/
|
|
4
|
+
export class ProductQuerySet 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 ProductManager extends Manager {
|
|
22
|
+
constructor(ModelClass: any);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Implementation of the Product model
|
|
26
|
+
*/
|
|
27
|
+
export class Product extends Model {
|
|
28
|
+
static configKey: string;
|
|
29
|
+
static modelName: string;
|
|
30
|
+
static primaryKeyField: string;
|
|
31
|
+
static objects: ProductManager;
|
|
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 '
|
|
5
|
-
import { wrapReactiveModel } from '
|
|
4
|
+
import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
|
|
5
|
+
import { wrapReactiveModel } from '../../../../src';
|
|
6
6
|
import schemaData from './product.schema.json';
|
|
7
7
|
/**
|
|
8
8
|
* Model-specific QuerySet implementation
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model-specific QuerySet implementation
|
|
3
|
+
*/
|
|
4
|
+
export class ProductCategoryQuerySet 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 ProductCategoryManager extends Manager {
|
|
22
|
+
constructor(ModelClass: any);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Implementation of the ProductCategory model
|
|
26
|
+
*/
|
|
27
|
+
export class ProductCategory extends Model {
|
|
28
|
+
static configKey: string;
|
|
29
|
+
static modelName: string;
|
|
30
|
+
static primaryKeyField: string;
|
|
31
|
+
static objects: ProductCategoryManager;
|
|
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 '
|
|
5
|
-
import { wrapReactiveModel } from '
|
|
4
|
+
import { Model, Manager, QuerySet, getModelClass } from '../../../../src';
|
|
5
|
+
import { wrapReactiveModel } from '../../../../src';
|
|
6
6
|
import schemaData from './productcategory.schema.json';
|
|
7
7
|
/**
|
|
8
8
|
* Model-specific QuerySet implementation
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./django_app/index";
|
|
1
|
+
export * from "./default/index";
|
package/dist/models/index.js
CHANGED
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|