@statezero/core 0.2.23 → 0.2.25

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 (53) hide show
  1. package/dist/filtering/localFiltering.d.ts +1 -8
  2. package/dist/filtering/localFiltering.js +123 -47
  3. package/dist/models/backend1/django_app/comprehensivemodel.schema.json +3 -3
  4. package/dist/models/backend1/django_app/custompkmodel.schema.json +4 -4
  5. package/dist/models/backend1/django_app/dailyrate.schema.json +5 -5
  6. package/dist/models/backend1/django_app/dummymodel.schema.json +2 -2
  7. package/dist/models/backend1/django_app/index.js +3 -0
  8. package/dist/models/backend1/django_app/m2mdepthtestlevel1.d.ts +118 -0
  9. package/dist/models/backend1/django_app/m2mdepthtestlevel1.js +71 -0
  10. package/dist/models/backend1/django_app/m2mdepthtestlevel1.schema.json +94 -0
  11. package/dist/models/backend1/django_app/m2mdepthtestlevel2.d.ts +118 -0
  12. package/dist/models/backend1/django_app/m2mdepthtestlevel2.js +71 -0
  13. package/dist/models/backend1/django_app/m2mdepthtestlevel2.schema.json +94 -0
  14. package/dist/models/backend1/django_app/m2mdepthtestlevel3.d.ts +134 -0
  15. package/dist/models/backend1/django_app/m2mdepthtestlevel3.js +71 -0
  16. package/dist/models/backend1/django_app/m2mdepthtestlevel3.schema.json +112 -0
  17. package/dist/models/backend1/django_app/modelwithcustompkrelation.schema.json +2 -2
  18. package/dist/models/backend1/django_app/modelwithrestrictedfields.d.ts +1 -1
  19. package/dist/models/backend1/django_app/modelwithrestrictedfields.schema.json +5 -5
  20. package/dist/models/backend1/django_app/namefiltercustompkmodel.schema.json +4 -4
  21. package/dist/models/backend1/django_app/order.schema.json +4 -4
  22. package/dist/models/backend1/django_app/orderitem.schema.json +4 -4
  23. package/dist/models/backend1/django_app/product.schema.json +11 -11
  24. package/dist/models/backend1/django_app/productcategory.schema.json +2 -2
  25. package/dist/models/backend1/django_app/rateplan.schema.json +2 -2
  26. package/dist/models/backend1/django_app/restrictedfieldrelatedmodel.d.ts +1 -1
  27. package/dist/models/backend1/django_app/restrictedfieldrelatedmodel.schema.json +4 -4
  28. package/dist/models/default/django_app/comprehensivemodel.schema.json +3 -3
  29. package/dist/models/default/django_app/custompkmodel.schema.json +4 -4
  30. package/dist/models/default/django_app/dailyrate.schema.json +5 -5
  31. package/dist/models/default/django_app/dummymodel.schema.json +2 -2
  32. package/dist/models/default/django_app/index.js +3 -0
  33. package/dist/models/default/django_app/m2mdepthtestlevel1.d.ts +118 -0
  34. package/dist/models/default/django_app/m2mdepthtestlevel1.js +71 -0
  35. package/dist/models/default/django_app/m2mdepthtestlevel1.schema.json +94 -0
  36. package/dist/models/default/django_app/m2mdepthtestlevel2.d.ts +118 -0
  37. package/dist/models/default/django_app/m2mdepthtestlevel2.js +71 -0
  38. package/dist/models/default/django_app/m2mdepthtestlevel2.schema.json +94 -0
  39. package/dist/models/default/django_app/m2mdepthtestlevel3.d.ts +134 -0
  40. package/dist/models/default/django_app/m2mdepthtestlevel3.js +71 -0
  41. package/dist/models/default/django_app/m2mdepthtestlevel3.schema.json +112 -0
  42. package/dist/models/default/django_app/modelwithcustompkrelation.schema.json +2 -2
  43. package/dist/models/default/django_app/modelwithrestrictedfields.d.ts +1 -1
  44. package/dist/models/default/django_app/modelwithrestrictedfields.schema.json +5 -5
  45. package/dist/models/default/django_app/namefiltercustompkmodel.schema.json +4 -4
  46. package/dist/models/default/django_app/order.schema.json +4 -4
  47. package/dist/models/default/django_app/orderitem.schema.json +4 -4
  48. package/dist/models/default/django_app/product.schema.json +11 -11
  49. package/dist/models/default/django_app/productcategory.schema.json +2 -2
  50. package/dist/models/default/django_app/rateplan.schema.json +2 -2
  51. package/dist/models/default/django_app/restrictedfieldrelatedmodel.d.ts +1 -1
  52. package/dist/models/default/django_app/restrictedfieldrelatedmodel.schema.json +4 -4
  53. package/package.json +1 -1
@@ -0,0 +1,71 @@
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 './m2mdepthtestlevel2.schema.json';
7
+ /**
8
+ * Model-specific QuerySet implementation
9
+ */
10
+ export class M2MDepthTestLevel2QuerySet extends QuerySet {
11
+ }
12
+ /**
13
+ * Model-specific Manager implementation
14
+ */
15
+ export class M2MDepthTestLevel2Manager extends Manager {
16
+ constructor(ModelClass) {
17
+ super(ModelClass, M2MDepthTestLevel2QuerySet);
18
+ }
19
+ newQuerySet() {
20
+ return new M2MDepthTestLevel2QuerySet(this.ModelClass);
21
+ }
22
+ }
23
+ /**
24
+ * Implementation of the M2MDepthTestLevel2 model
25
+ */
26
+ export class M2MDepthTestLevel2 extends Model {
27
+ constructor(data) {
28
+ M2MDepthTestLevel2.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
+ M2MDepthTestLevel2.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
+ // Add a special read-only getter for the repr field
53
+ Object.defineProperty(this, 'repr', {
54
+ get: function () {
55
+ return this.getField('repr');
56
+ },
57
+ enumerable: true, // Make sure repr is enumerable
58
+ configurable: true
59
+ });
60
+ }
61
+ }
62
+ // Bind this model to its backend
63
+ M2MDepthTestLevel2.configKey = 'default';
64
+ M2MDepthTestLevel2.modelName = 'django_app.m2mdepthtestlevel2';
65
+ M2MDepthTestLevel2.primaryKeyField = 'id';
66
+ M2MDepthTestLevel2.objects = new M2MDepthTestLevel2Manager(M2MDepthTestLevel2);
67
+ M2MDepthTestLevel2.fields = ['id', 'name', 'level3s'];
68
+ M2MDepthTestLevel2.schema = schemaData;
69
+ M2MDepthTestLevel2.relationshipFields = new Map([
70
+ ['level3s', { 'ModelClass': () => getModelClass('django_app.m2mdepthtestlevel3', 'default'), 'relationshipType': 'many-to-many' }]
71
+ ]);
@@ -0,0 +1,94 @@
1
+ {
2
+ "model_name": "django_app.m2mdepthtestlevel2",
3
+ "title": "M2M Depth Test Level2",
4
+ "class_name": "M2MDepthTestLevel2",
5
+ "plural_title": "M2M Depth Test Level2S",
6
+ "primary_key_field": "id",
7
+ "filterable_fields": [
8
+ "name",
9
+ "id",
10
+ "level3s"
11
+ ],
12
+ "searchable_fields": [
13
+ "name"
14
+ ],
15
+ "ordering_fields": [
16
+ "name"
17
+ ],
18
+ "properties": {
19
+ "id": {
20
+ "type": "integer",
21
+ "title": "Id",
22
+ "required": true,
23
+ "description": null,
24
+ "nullable": false,
25
+ "format": "id",
26
+ "max_length": null,
27
+ "choices": null,
28
+ "default": null,
29
+ "validators": [],
30
+ "max_digits": null,
31
+ "decimal_places": null,
32
+ "read_only": true,
33
+ "ref": null
34
+ },
35
+ "name": {
36
+ "type": "string",
37
+ "title": "Name",
38
+ "required": true,
39
+ "description": null,
40
+ "nullable": false,
41
+ "format": null,
42
+ "max_length": 100,
43
+ "choices": null,
44
+ "default": null,
45
+ "validators": [],
46
+ "max_digits": null,
47
+ "decimal_places": null,
48
+ "read_only": false,
49
+ "ref": null
50
+ },
51
+ "level3s": {
52
+ "type": "array",
53
+ "title": "Level3s",
54
+ "required": true,
55
+ "description": null,
56
+ "nullable": false,
57
+ "format": "many-to-many",
58
+ "max_length": null,
59
+ "choices": null,
60
+ "default": null,
61
+ "validators": [],
62
+ "max_digits": null,
63
+ "decimal_places": null,
64
+ "read_only": false,
65
+ "ref": null
66
+ }
67
+ },
68
+ "relationships": {
69
+ "level3s": {
70
+ "type": "many-to-many",
71
+ "model": "django_app.m2mdepthtestlevel3",
72
+ "class_name": "M2MDepthTestLevel3",
73
+ "primary_key_field": "id"
74
+ }
75
+ },
76
+ "default_ordering": null,
77
+ "definitions": {
78
+ "MoneyField": {
79
+ "type": "object",
80
+ "properties": {
81
+ "amount": {
82
+ "type": "number"
83
+ },
84
+ "currency": {
85
+ "type": "string"
86
+ }
87
+ }
88
+ }
89
+ },
90
+ "datetime_format": "iso-8601",
91
+ "date_format": "iso-8601",
92
+ "time_format": "iso-8601",
93
+ "display": null
94
+ }
@@ -0,0 +1,134 @@
1
+ /**
2
+ * Model-specific QuerySet implementation
3
+ */
4
+ export class M2MDepthTestLevel3QuerySet {
5
+ }
6
+ /**
7
+ * Model-specific Manager implementation
8
+ */
9
+ export class M2MDepthTestLevel3Manager {
10
+ constructor(ModelClass: any);
11
+ newQuerySet(): M2MDepthTestLevel3QuerySet;
12
+ }
13
+ /**
14
+ * Implementation of the M2MDepthTestLevel3 model
15
+ */
16
+ export class M2MDepthTestLevel3 {
17
+ static configKey: string;
18
+ static modelName: string;
19
+ static primaryKeyField: string;
20
+ static objects: M2MDepthTestLevel3Manager;
21
+ static fields: string[];
22
+ static schema: {
23
+ model_name: string;
24
+ title: string;
25
+ class_name: string;
26
+ plural_title: string;
27
+ primary_key_field: string;
28
+ filterable_fields: string[];
29
+ searchable_fields: string[];
30
+ ordering_fields: string[];
31
+ properties: {
32
+ id: {
33
+ type: string;
34
+ title: string;
35
+ required: boolean;
36
+ description: null;
37
+ nullable: boolean;
38
+ format: string;
39
+ max_length: null;
40
+ choices: null;
41
+ default: null;
42
+ validators: never[];
43
+ max_digits: null;
44
+ decimal_places: null;
45
+ read_only: boolean;
46
+ ref: null;
47
+ };
48
+ name: {
49
+ type: string;
50
+ title: string;
51
+ required: boolean;
52
+ description: null;
53
+ nullable: boolean;
54
+ format: null;
55
+ max_length: number;
56
+ choices: null;
57
+ default: null;
58
+ validators: never[];
59
+ max_digits: null;
60
+ decimal_places: null;
61
+ read_only: boolean;
62
+ ref: null;
63
+ };
64
+ value: {
65
+ type: string;
66
+ title: string;
67
+ required: boolean;
68
+ description: null;
69
+ nullable: boolean;
70
+ format: null;
71
+ max_length: null;
72
+ choices: null;
73
+ default: number;
74
+ validators: never[];
75
+ max_digits: null;
76
+ decimal_places: null;
77
+ read_only: boolean;
78
+ ref: null;
79
+ };
80
+ category: {
81
+ type: string;
82
+ title: string;
83
+ required: boolean;
84
+ description: null;
85
+ nullable: boolean;
86
+ format: string;
87
+ max_length: null;
88
+ choices: null;
89
+ default: null;
90
+ validators: never[];
91
+ max_digits: null;
92
+ decimal_places: null;
93
+ read_only: boolean;
94
+ ref: null;
95
+ };
96
+ };
97
+ relationships: {
98
+ category: {
99
+ type: string;
100
+ model: string;
101
+ class_name: string;
102
+ primary_key_field: string;
103
+ };
104
+ };
105
+ default_ordering: null;
106
+ definitions: {
107
+ MoneyField: {
108
+ type: string;
109
+ properties: {
110
+ amount: {
111
+ type: string;
112
+ };
113
+ currency: {
114
+ type: string;
115
+ };
116
+ };
117
+ };
118
+ };
119
+ datetime_format: string;
120
+ date_format: string;
121
+ time_format: string;
122
+ display: null;
123
+ };
124
+ static relationshipFields: Map<string, {
125
+ ModelClass: () => any;
126
+ relationshipType: string;
127
+ }>;
128
+ constructor(data: any);
129
+ /**
130
+ * Define property getters and setters for all model fields
131
+ * @private
132
+ */
133
+ private _defineProperties;
134
+ }
@@ -0,0 +1,71 @@
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 './m2mdepthtestlevel3.schema.json';
7
+ /**
8
+ * Model-specific QuerySet implementation
9
+ */
10
+ export class M2MDepthTestLevel3QuerySet extends QuerySet {
11
+ }
12
+ /**
13
+ * Model-specific Manager implementation
14
+ */
15
+ export class M2MDepthTestLevel3Manager extends Manager {
16
+ constructor(ModelClass) {
17
+ super(ModelClass, M2MDepthTestLevel3QuerySet);
18
+ }
19
+ newQuerySet() {
20
+ return new M2MDepthTestLevel3QuerySet(this.ModelClass);
21
+ }
22
+ }
23
+ /**
24
+ * Implementation of the M2MDepthTestLevel3 model
25
+ */
26
+ export class M2MDepthTestLevel3 extends Model {
27
+ constructor(data) {
28
+ M2MDepthTestLevel3.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
+ M2MDepthTestLevel3.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
+ // Add a special read-only getter for the repr field
53
+ Object.defineProperty(this, 'repr', {
54
+ get: function () {
55
+ return this.getField('repr');
56
+ },
57
+ enumerable: true, // Make sure repr is enumerable
58
+ configurable: true
59
+ });
60
+ }
61
+ }
62
+ // Bind this model to its backend
63
+ M2MDepthTestLevel3.configKey = 'default';
64
+ M2MDepthTestLevel3.modelName = 'django_app.m2mdepthtestlevel3';
65
+ M2MDepthTestLevel3.primaryKeyField = 'id';
66
+ M2MDepthTestLevel3.objects = new M2MDepthTestLevel3Manager(M2MDepthTestLevel3);
67
+ M2MDepthTestLevel3.fields = ['id', 'name', 'value', 'category'];
68
+ M2MDepthTestLevel3.schema = schemaData;
69
+ M2MDepthTestLevel3.relationshipFields = new Map([
70
+ ['category', { 'ModelClass': () => getModelClass('django_app.productcategory', 'default'), 'relationshipType': 'foreign-key' }]
71
+ ]);
@@ -0,0 +1,112 @@
1
+ {
2
+ "model_name": "django_app.m2mdepthtestlevel3",
3
+ "title": "M2M Depth Test Level3",
4
+ "class_name": "M2MDepthTestLevel3",
5
+ "plural_title": "M2M Depth Test Level3S",
6
+ "primary_key_field": "id",
7
+ "filterable_fields": [
8
+ "name",
9
+ "id",
10
+ "category",
11
+ "value"
12
+ ],
13
+ "searchable_fields": [
14
+ "name"
15
+ ],
16
+ "ordering_fields": [
17
+ "name",
18
+ "value"
19
+ ],
20
+ "properties": {
21
+ "id": {
22
+ "type": "integer",
23
+ "title": "Id",
24
+ "required": true,
25
+ "description": null,
26
+ "nullable": false,
27
+ "format": "id",
28
+ "max_length": null,
29
+ "choices": null,
30
+ "default": null,
31
+ "validators": [],
32
+ "max_digits": null,
33
+ "decimal_places": null,
34
+ "read_only": true,
35
+ "ref": null
36
+ },
37
+ "name": {
38
+ "type": "string",
39
+ "title": "Name",
40
+ "required": true,
41
+ "description": null,
42
+ "nullable": false,
43
+ "format": null,
44
+ "max_length": 100,
45
+ "choices": null,
46
+ "default": null,
47
+ "validators": [],
48
+ "max_digits": null,
49
+ "decimal_places": null,
50
+ "read_only": false,
51
+ "ref": null
52
+ },
53
+ "value": {
54
+ "type": "integer",
55
+ "title": "Value",
56
+ "required": false,
57
+ "description": null,
58
+ "nullable": false,
59
+ "format": null,
60
+ "max_length": null,
61
+ "choices": null,
62
+ "default": 0,
63
+ "validators": [],
64
+ "max_digits": null,
65
+ "decimal_places": null,
66
+ "read_only": false,
67
+ "ref": null
68
+ },
69
+ "category": {
70
+ "type": "integer",
71
+ "title": "Category",
72
+ "required": false,
73
+ "description": null,
74
+ "nullable": true,
75
+ "format": "foreign-key",
76
+ "max_length": null,
77
+ "choices": null,
78
+ "default": null,
79
+ "validators": [],
80
+ "max_digits": null,
81
+ "decimal_places": null,
82
+ "read_only": false,
83
+ "ref": null
84
+ }
85
+ },
86
+ "relationships": {
87
+ "category": {
88
+ "type": "foreign-key",
89
+ "model": "django_app.productcategory",
90
+ "class_name": "ProductCategory",
91
+ "primary_key_field": "id"
92
+ }
93
+ },
94
+ "default_ordering": null,
95
+ "definitions": {
96
+ "MoneyField": {
97
+ "type": "object",
98
+ "properties": {
99
+ "amount": {
100
+ "type": "number"
101
+ },
102
+ "currency": {
103
+ "type": "string"
104
+ }
105
+ }
106
+ }
107
+ },
108
+ "datetime_format": "iso-8601",
109
+ "date_format": "iso-8601",
110
+ "time_format": "iso-8601",
111
+ "display": null
112
+ }
@@ -5,8 +5,8 @@
5
5
  "plural_title": "Model With Custom Pk Relations",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "custom_pk_related",
9
- "name"
8
+ "name",
9
+ "custom_pk_related"
10
10
  ],
11
11
  "searchable_fields": [
12
12
  "name"
@@ -70,7 +70,7 @@ export class ModelWithRestrictedFields {
70
70
  format: null;
71
71
  max_length: number;
72
72
  choices: null;
73
- default: null;
73
+ default: string;
74
74
  validators: never[];
75
75
  max_digits: null;
76
76
  decimal_places: null;
@@ -5,10 +5,10 @@
5
5
  "plural_title": "Model With Restricted Fieldss",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "admin_only_field",
8
+ "name",
9
9
  "id",
10
- "restricted_related",
11
- "name"
10
+ "admin_only_field",
11
+ "restricted_related"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "name"
@@ -52,13 +52,13 @@
52
52
  "admin_only_field": {
53
53
  "type": "string",
54
54
  "title": "Admin only field",
55
- "required": true,
55
+ "required": false,
56
56
  "description": null,
57
57
  "nullable": false,
58
58
  "format": null,
59
59
  "max_length": 100,
60
60
  "choices": null,
61
- "default": null,
61
+ "default": "",
62
62
  "validators": [],
63
63
  "max_digits": null,
64
64
  "decimal_places": null,
@@ -5,15 +5,15 @@
5
5
  "plural_title": "Name Filter Custom Pk Models",
6
6
  "primary_key_field": "custom_pk",
7
7
  "filterable_fields": [
8
- "custom_pk",
9
- "name"
8
+ "name",
9
+ "custom_pk"
10
10
  ],
11
11
  "searchable_fields": [
12
12
  "name"
13
13
  ],
14
14
  "ordering_fields": [
15
- "custom_pk",
16
- "name"
15
+ "name",
16
+ "custom_pk"
17
17
  ],
18
18
  "properties": {
19
19
  "custom_pk": {
@@ -5,14 +5,14 @@
5
5
  "plural_title": "Orders",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "order_number",
8
+ "id",
9
9
  "customer_email",
10
10
  "customer_name",
11
11
  "status",
12
+ "order_number",
12
13
  "last_updated",
13
- "total",
14
14
  "created_at",
15
- "id"
15
+ "total"
16
16
  ],
17
17
  "searchable_fields": [
18
18
  "order_number",
@@ -134,7 +134,7 @@
134
134
  "format": "date-time",
135
135
  "max_length": null,
136
136
  "choices": null,
137
- "default": "2026-01-18T14:21:49.149085+00:00",
137
+ "default": "2026-01-18T17:05:59.982046+00:00",
138
138
  "validators": [],
139
139
  "max_digits": null,
140
140
  "decimal_places": null,
@@ -5,11 +5,11 @@
5
5
  "plural_title": "Order Items",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "price",
9
- "quantity",
10
- "order",
11
8
  "id",
12
- "product"
9
+ "order",
10
+ "price",
11
+ "product",
12
+ "quantity"
13
13
  ],
14
14
  "searchable_fields": [],
15
15
  "ordering_fields": [
@@ -5,23 +5,23 @@
5
5
  "plural_title": "Products",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "created_at",
9
- "price",
8
+ "id",
10
9
  "name",
11
- "in_stock",
12
- "category",
13
10
  "description",
14
- "id",
15
- "created_by"
11
+ "price",
12
+ "category",
13
+ "created_at",
14
+ "created_by",
15
+ "in_stock"
16
16
  ],
17
17
  "searchable_fields": [
18
- "description",
19
- "name"
18
+ "name",
19
+ "description"
20
20
  ],
21
21
  "ordering_fields": [
22
- "created_at",
22
+ "name",
23
23
  "price",
24
- "name"
24
+ "created_at"
25
25
  ],
26
26
  "properties": {
27
27
  "id": {
@@ -129,7 +129,7 @@
129
129
  "format": "date-time",
130
130
  "max_length": null,
131
131
  "choices": null,
132
- "default": "2026-01-18T14:21:49.074191+00:00",
132
+ "default": "2026-01-18T17:05:59.911294+00:00",
133
133
  "validators": [],
134
134
  "max_digits": null,
135
135
  "decimal_places": null,
@@ -5,8 +5,8 @@
5
5
  "plural_title": "Product Categorys",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "id",
9
- "name"
8
+ "name",
9
+ "id"
10
10
  ],
11
11
  "searchable_fields": [
12
12
  "name"
@@ -5,8 +5,8 @@
5
5
  "plural_title": "Rate Plans",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "id",
9
- "name"
8
+ "name",
9
+ "id"
10
10
  ],
11
11
  "searchable_fields": [
12
12
  "name"
@@ -70,7 +70,7 @@ export class RestrictedFieldRelatedModel {
70
70
  format: null;
71
71
  max_length: number;
72
72
  choices: null;
73
- default: null;
73
+ default: string;
74
74
  validators: never[];
75
75
  max_digits: null;
76
76
  decimal_places: null;