@statezero/core 0.2.55 → 0.2.56

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 (71) hide show
  1. package/dist/adaptors/vue/components/StateZeroDebugPanel.js +2 -2
  2. package/dist/models/backend1/django_app/author.schema.json +16 -16
  3. package/dist/models/backend1/django_app/book.schema.json +11 -11
  4. package/dist/models/backend1/django_app/composeditem.schema.json +3 -3
  5. package/dist/models/backend1/django_app/comprehensivemodel.schema.json +3 -3
  6. package/dist/models/backend1/django_app/dailyrate.schema.json +7 -7
  7. package/dist/models/backend1/django_app/errortestcompoundunique.schema.json +4 -4
  8. package/dist/models/backend1/django_app/errortestonetoonemodel.schema.json +2 -2
  9. package/dist/models/backend1/django_app/errortestprotectedchild.schema.json +2 -2
  10. package/dist/models/backend1/django_app/errortestuniquemodel.schema.json +1 -1
  11. package/dist/models/backend1/django_app/excludeditem.schema.json +2 -2
  12. package/dist/models/backend1/django_app/hfchild.schema.json +2 -2
  13. package/dist/models/backend1/django_app/hfparent.schema.json +2 -2
  14. package/dist/models/backend1/django_app/index.js +2 -0
  15. package/dist/models/backend1/django_app/m2mdepthtestlevel1.schema.json +2 -2
  16. package/dist/models/backend1/django_app/m2mdepthtestlevel2.schema.json +2 -2
  17. package/dist/models/backend1/django_app/m2mdepthtestlevel3.schema.json +2 -2
  18. package/dist/models/backend1/django_app/modelwithrestrictedfields.schema.json +2 -2
  19. package/dist/models/backend1/django_app/nodeleteitem.schema.json +2 -2
  20. package/dist/models/backend1/django_app/objectlevelitem.schema.json +2 -2
  21. package/dist/models/backend1/django_app/order.schema.json +6 -6
  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/readonlyitem.schema.json +2 -2
  25. package/dist/models/backend1/django_app/restrictedcreateitem.schema.json +2 -2
  26. package/dist/models/backend1/django_app/restrictededititem.schema.json +2 -2
  27. package/dist/models/backend1/django_app/restrictedfieldrelatedmodel.schema.json +2 -2
  28. package/dist/models/backend1/django_app/rowfiltereditem.schema.json +2 -2
  29. package/dist/models/backend1/django_app/tag.schema.json +10 -10
  30. package/dist/models/backend1/django_app/uuidmessage.d.ts +156 -0
  31. package/dist/models/backend1/django_app/uuidmessage.js +72 -0
  32. package/dist/models/backend1/django_app/uuidmessage.schema.json +136 -0
  33. package/dist/models/backend1/django_app/uuiduser.d.ts +92 -0
  34. package/dist/models/backend1/django_app/uuiduser.js +69 -0
  35. package/dist/models/backend1/django_app/uuiduser.schema.json +70 -0
  36. package/dist/models/default/django_app/author.schema.json +16 -16
  37. package/dist/models/default/django_app/book.schema.json +11 -11
  38. package/dist/models/default/django_app/composeditem.schema.json +3 -3
  39. package/dist/models/default/django_app/comprehensivemodel.schema.json +3 -3
  40. package/dist/models/default/django_app/dailyrate.schema.json +7 -7
  41. package/dist/models/default/django_app/errortestcompoundunique.schema.json +4 -4
  42. package/dist/models/default/django_app/errortestonetoonemodel.schema.json +2 -2
  43. package/dist/models/default/django_app/errortestprotectedchild.schema.json +2 -2
  44. package/dist/models/default/django_app/errortestuniquemodel.schema.json +1 -1
  45. package/dist/models/default/django_app/excludeditem.schema.json +2 -2
  46. package/dist/models/default/django_app/hfchild.schema.json +2 -2
  47. package/dist/models/default/django_app/hfparent.schema.json +2 -2
  48. package/dist/models/default/django_app/index.js +2 -0
  49. package/dist/models/default/django_app/m2mdepthtestlevel1.schema.json +2 -2
  50. package/dist/models/default/django_app/m2mdepthtestlevel2.schema.json +2 -2
  51. package/dist/models/default/django_app/m2mdepthtestlevel3.schema.json +2 -2
  52. package/dist/models/default/django_app/modelwithrestrictedfields.schema.json +2 -2
  53. package/dist/models/default/django_app/nodeleteitem.schema.json +2 -2
  54. package/dist/models/default/django_app/objectlevelitem.schema.json +2 -2
  55. package/dist/models/default/django_app/order.schema.json +6 -6
  56. package/dist/models/default/django_app/orderitem.schema.json +4 -4
  57. package/dist/models/default/django_app/product.schema.json +11 -11
  58. package/dist/models/default/django_app/readonlyitem.schema.json +2 -2
  59. package/dist/models/default/django_app/restrictedcreateitem.schema.json +2 -2
  60. package/dist/models/default/django_app/restrictededititem.schema.json +2 -2
  61. package/dist/models/default/django_app/restrictedfieldrelatedmodel.schema.json +2 -2
  62. package/dist/models/default/django_app/rowfiltereditem.schema.json +2 -2
  63. package/dist/models/default/django_app/tag.schema.json +10 -10
  64. package/dist/models/default/django_app/uuidmessage.d.ts +156 -0
  65. package/dist/models/default/django_app/uuidmessage.js +72 -0
  66. package/dist/models/default/django_app/uuidmessage.schema.json +136 -0
  67. package/dist/models/default/django_app/uuiduser.d.ts +92 -0
  68. package/dist/models/default/django_app/uuiduser.js +69 -0
  69. package/dist/models/default/django_app/uuiduser.schema.json +70 -0
  70. package/dist/syncEngine/stores/querysetStore.js +2 -1
  71. package/package.json +1 -1
@@ -5,11 +5,11 @@
5
5
  "plural_title": "Composed Items",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "secret",
9
8
  "name",
10
- "value",
11
9
  "owner",
12
- "id"
10
+ "secret",
11
+ "id",
12
+ "value"
13
13
  ],
14
14
  "searchable_fields": [
15
15
  "name"
@@ -5,8 +5,8 @@
5
5
  "plural_title": "Comprehensive Models",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "int_field",
9
- "char_field"
8
+ "char_field",
9
+ "int_field"
10
10
  ],
11
11
  "searchable_fields": [
12
12
  "char_field",
@@ -105,7 +105,7 @@
105
105
  "format": "date-time",
106
106
  "max_length": null,
107
107
  "choices": null,
108
- "default": "2026-02-23T18:47:00.015208+00:00",
108
+ "default": "2026-02-28T23:13:32.530886+00:00",
109
109
  "validators": [],
110
110
  "max_digits": null,
111
111
  "decimal_places": null,
@@ -5,16 +5,16 @@
5
5
  "plural_title": "Daily Rates",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "min_stay_arrival",
9
- "price",
10
- "rate_plan",
11
- "min_stay_through",
12
- "stop_sell",
13
8
  "closed_to_arrival",
14
- "max_stay",
9
+ "min_stay_through",
10
+ "min_stay_arrival",
11
+ "closed_to_departure",
15
12
  "date",
13
+ "max_stay",
14
+ "price",
16
15
  "id",
17
- "closed_to_departure"
16
+ "stop_sell",
17
+ "rate_plan"
18
18
  ],
19
19
  "searchable_fields": [],
20
20
  "ordering_fields": [
@@ -5,18 +5,18 @@
5
5
  "plural_title": "Error Test Compound Uniques",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
+ "rank",
8
9
  "label",
9
10
  "id",
10
- "group",
11
- "rank"
11
+ "group"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "label",
15
15
  "group"
16
16
  ],
17
17
  "ordering_fields": [
18
- "group",
19
- "rank"
18
+ "rank",
19
+ "group"
20
20
  ],
21
21
  "properties": {
22
22
  "id": {
@@ -5,9 +5,9 @@
5
5
  "plural_title": "Error Test One To One Models",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "note",
8
+ "parent",
9
9
  "id",
10
- "parent"
10
+ "note"
11
11
  ],
12
12
  "searchable_fields": [],
13
13
  "ordering_fields": [],
@@ -5,9 +5,9 @@
5
5
  "plural_title": "Error Test Protected Childs",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
+ "parent",
8
9
  "id",
9
- "name",
10
- "parent"
10
+ "name"
11
11
  ],
12
12
  "searchable_fields": [
13
13
  "name"
@@ -5,8 +5,8 @@
5
5
  "plural_title": "Error Test Unique Models",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "label",
9
8
  "id",
9
+ "label",
10
10
  "code"
11
11
  ],
12
12
  "searchable_fields": [
@@ -6,9 +6,9 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "value",
9
- "secret",
10
9
  "id",
11
- "name"
10
+ "name",
11
+ "secret"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "name"
@@ -5,9 +5,9 @@
5
5
  "plural_title": "Hf Childs",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
+ "parent",
8
9
  "id",
9
- "name",
10
- "parent"
10
+ "name"
11
11
  ],
12
12
  "searchable_fields": [
13
13
  "name"
@@ -6,9 +6,9 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "value",
9
- "secret",
10
9
  "id",
11
- "name"
10
+ "name",
11
+ "secret"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "name"
@@ -38,3 +38,5 @@ export * from './errortestuniquemodel';
38
38
  export * from './errortestonetoonemodel';
39
39
  export * from './errortestcompoundunique';
40
40
  export * from './updateonlyitem';
41
+ export * from './uuiduser';
42
+ export * from './uuidmessage';
@@ -6,8 +6,8 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "level2s",
9
- "id",
10
- "name"
9
+ "name",
10
+ "id"
11
11
  ],
12
12
  "searchable_fields": [
13
13
  "name"
@@ -5,9 +5,9 @@
5
5
  "plural_title": "M2M Depth Test Level2S",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
+ "level3s",
8
9
  "id",
9
- "name",
10
- "level3s"
10
+ "name"
11
11
  ],
12
12
  "searchable_fields": [
13
13
  "name"
@@ -6,9 +6,9 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "value",
9
- "id",
9
+ "category",
10
10
  "name",
11
- "category"
11
+ "id"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "name"
@@ -6,9 +6,9 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "restricted_related",
9
+ "admin_only_field",
9
10
  "id",
10
- "name",
11
- "admin_only_field"
11
+ "name"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "name"
@@ -6,9 +6,9 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "value",
9
- "secret",
10
9
  "id",
11
- "name"
10
+ "name",
11
+ "secret"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "name"
@@ -6,9 +6,9 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "value",
9
- "id",
9
+ "owner",
10
10
  "name",
11
- "owner"
11
+ "id"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "name"
@@ -6,17 +6,17 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "last_updated",
9
- "customer_email",
10
- "total",
11
- "created_at",
12
9
  "order_number",
10
+ "total",
13
11
  "status",
14
12
  "customer_name",
13
+ "created_at",
14
+ "customer_email",
15
15
  "id"
16
16
  ],
17
17
  "searchable_fields": [
18
- "customer_name",
19
- "order_number"
18
+ "order_number",
19
+ "customer_name"
20
20
  ],
21
21
  "ordering_fields": [
22
22
  "created_at",
@@ -134,7 +134,7 @@
134
134
  "format": "date-time",
135
135
  "max_length": null,
136
136
  "choices": null,
137
- "default": "2026-02-23T18:47:00.028567+00:00",
137
+ "default": "2026-02-28T23:13:32.541835+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
- "product",
10
8
  "quantity",
11
- "order",
12
- "id"
9
+ "product",
10
+ "price",
11
+ "id",
12
+ "order"
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
- "in_stock",
8
+ "description",
9
9
  "name",
10
- "price",
11
- "created_by",
12
- "created_at",
10
+ "in_stock",
13
11
  "category",
14
- "id",
15
- "description"
12
+ "created_at",
13
+ "created_by",
14
+ "price",
15
+ "id"
16
16
  ],
17
17
  "searchable_fields": [
18
- "name",
19
- "description"
18
+ "description",
19
+ "name"
20
20
  ],
21
21
  "ordering_fields": [
22
22
  "created_at",
23
- "name",
24
- "price"
23
+ "price",
24
+ "name"
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-02-23T18:47:00.026623+00:00",
132
+ "default": "2026-02-28T23:13:32.540179+00:00",
133
133
  "validators": [],
134
134
  "max_digits": null,
135
135
  "decimal_places": null,
@@ -6,9 +6,9 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "value",
9
- "secret",
10
9
  "id",
11
- "name"
10
+ "name",
11
+ "secret"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "name"
@@ -6,9 +6,9 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "value",
9
- "secret",
10
9
  "id",
11
- "name"
10
+ "name",
11
+ "secret"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "name"
@@ -6,9 +6,9 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "value",
9
- "secret",
10
9
  "id",
11
- "name"
10
+ "name",
11
+ "secret"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "name"
@@ -5,9 +5,9 @@
5
5
  "plural_title": "Restricted Field Related Models",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
+ "admin_only_field",
8
9
  "id",
9
- "name",
10
- "admin_only_field"
10
+ "name"
11
11
  ],
12
12
  "searchable_fields": [
13
13
  "name"
@@ -6,9 +6,9 @@
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
8
  "value",
9
- "secret",
10
9
  "id",
11
- "name"
10
+ "name",
11
+ "secret"
12
12
  ],
13
13
  "searchable_fields": [
14
14
  "name"
@@ -5,25 +5,25 @@
5
5
  "plural_title": "Tags",
6
6
  "primary_key_field": "id",
7
7
  "filterable_fields": [
8
- "priority",
9
- "metadata",
10
- "cost_currency",
8
+ "slug",
9
+ "description",
11
10
  "name",
12
- "books",
13
11
  "created_at",
14
- "slug",
12
+ "cost_currency",
13
+ "id",
15
14
  "cost",
15
+ "books",
16
16
  "is_featured",
17
- "id",
18
- "description"
17
+ "metadata",
18
+ "priority"
19
19
  ],
20
20
  "searchable_fields": [
21
- "name",
22
- "description"
21
+ "description",
22
+ "name"
23
23
  ],
24
24
  "ordering_fields": [
25
- "priority",
26
25
  "created_at",
26
+ "priority",
27
27
  "name"
28
28
  ],
29
29
  "properties": {
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Model-specific QuerySet implementation
3
+ */
4
+ export class UUIDMessageQuerySet {
5
+ }
6
+ /**
7
+ * Model-specific Manager implementation
8
+ */
9
+ export class UUIDMessageManager {
10
+ constructor(ModelClass: any);
11
+ newQuerySet(): UUIDMessageQuerySet;
12
+ }
13
+ /**
14
+ * Implementation of the UUIDMessage model
15
+ */
16
+ export class UUIDMessage {
17
+ static configKey: string;
18
+ static modelName: string;
19
+ static primaryKeyField: string;
20
+ static objects: UUIDMessageManager;
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
+ sender: {
49
+ type: string;
50
+ title: string;
51
+ required: boolean;
52
+ description: null;
53
+ nullable: boolean;
54
+ format: string;
55
+ max_length: null;
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
+ recipient: {
65
+ type: string;
66
+ title: string;
67
+ required: boolean;
68
+ description: null;
69
+ nullable: boolean;
70
+ format: string;
71
+ max_length: null;
72
+ choices: null;
73
+ default: null;
74
+ validators: never[];
75
+ max_digits: null;
76
+ decimal_places: null;
77
+ read_only: boolean;
78
+ ref: null;
79
+ };
80
+ body: {
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: string;
90
+ validators: never[];
91
+ max_digits: null;
92
+ decimal_places: null;
93
+ read_only: boolean;
94
+ ref: null;
95
+ };
96
+ created_at: {
97
+ type: string;
98
+ title: string;
99
+ required: boolean;
100
+ description: null;
101
+ nullable: boolean;
102
+ format: string;
103
+ max_length: null;
104
+ choices: null;
105
+ default: string;
106
+ validators: never[];
107
+ max_digits: null;
108
+ decimal_places: null;
109
+ read_only: boolean;
110
+ ref: null;
111
+ };
112
+ };
113
+ relationships: {
114
+ sender: {
115
+ type: string;
116
+ model: string;
117
+ class_name: string;
118
+ primary_key_field: string;
119
+ };
120
+ recipient: {
121
+ type: string;
122
+ model: string;
123
+ class_name: string;
124
+ primary_key_field: string;
125
+ };
126
+ };
127
+ default_ordering: string[];
128
+ definitions: {
129
+ MoneyField: {
130
+ type: string;
131
+ properties: {
132
+ amount: {
133
+ type: string;
134
+ };
135
+ currency: {
136
+ type: string;
137
+ };
138
+ };
139
+ };
140
+ };
141
+ datetime_format: string;
142
+ date_format: string;
143
+ time_format: string;
144
+ display: null;
145
+ };
146
+ static relationshipFields: Map<string, {
147
+ ModelClass: () => any;
148
+ relationshipType: string;
149
+ }>;
150
+ constructor(data: any);
151
+ /**
152
+ * Define property getters and setters for all model fields
153
+ * @private
154
+ */
155
+ private _defineProperties;
156
+ }
@@ -0,0 +1,72 @@
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 './uuidmessage.schema.json';
7
+ /**
8
+ * Model-specific QuerySet implementation
9
+ */
10
+ export class UUIDMessageQuerySet extends QuerySet {
11
+ }
12
+ /**
13
+ * Model-specific Manager implementation
14
+ */
15
+ export class UUIDMessageManager extends Manager {
16
+ constructor(ModelClass) {
17
+ super(ModelClass, UUIDMessageQuerySet);
18
+ }
19
+ newQuerySet() {
20
+ return new UUIDMessageQuerySet(this.ModelClass);
21
+ }
22
+ }
23
+ /**
24
+ * Implementation of the UUIDMessage model
25
+ */
26
+ export class UUIDMessage extends Model {
27
+ constructor(data) {
28
+ UUIDMessage.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
+ UUIDMessage.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
+ UUIDMessage.configKey = 'default';
64
+ UUIDMessage.modelName = 'django_app.uuidmessage';
65
+ UUIDMessage.primaryKeyField = 'id';
66
+ UUIDMessage.objects = new UUIDMessageManager(UUIDMessage);
67
+ UUIDMessage.fields = ['id', 'sender', 'recipient', 'body', 'created_at'];
68
+ UUIDMessage.schema = schemaData;
69
+ UUIDMessage.relationshipFields = new Map([
70
+ ['sender', { 'ModelClass': () => getModelClass('django_app.uuiduser', 'default'), 'relationshipType': 'foreign-key' }],
71
+ ['recipient', { 'ModelClass': () => getModelClass('django_app.uuiduser', 'default'), 'relationshipType': 'foreign-key' }]
72
+ ]);