@open-mercato/core 0.6.1-develop.3291.1.6fad645fd0 → 0.6.1
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/.turbo/turbo-build.log +1 -1
- package/AGENTS.md +14 -0
- package/dist/modules/auth/backend/roles/[id]/edit/page.js +2 -1
- package/dist/modules/auth/backend/roles/[id]/edit/page.js.map +2 -2
- package/dist/modules/auth/backend/users/[id]/edit/page.js +2 -5
- package/dist/modules/auth/backend/users/[id]/edit/page.js.map +2 -2
- package/dist/modules/catalog/ai-agents.js +47 -5
- package/dist/modules/catalog/ai-agents.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/categories/[id]/edit/page.js +2 -5
- package/dist/modules/catalog/backend/catalog/categories/[id]/edit/page.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.js +4 -3
- package/dist/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js +2 -9
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js +2 -9
- package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js.map +2 -2
- package/dist/modules/customers/ai-agents.js +174 -1
- package/dist/modules/customers/ai-agents.js.map +2 -2
- package/dist/modules/customers/ai-tools/deal-analyzer-pack.js +196 -0
- package/dist/modules/customers/ai-tools/deal-analyzer-pack.js.map +7 -0
- package/dist/modules/customers/ai-tools.js +3 -1
- package/dist/modules/customers/ai-tools.js.map +2 -2
- package/dist/modules/customers/backend/customers/companies/page.js +11 -1
- package/dist/modules/customers/backend/customers/companies/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/page.js +11 -1
- package/dist/modules/customers/backend/customers/deals/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/people/page.js +11 -1
- package/dist/modules/customers/backend/customers/people/page.js.map +2 -2
- package/dist/modules/customers/commands/companies.js +37 -15
- package/dist/modules/customers/commands/companies.js.map +2 -2
- package/dist/modules/customers/components/detail/AiActionChips.js +2 -2
- package/dist/modules/customers/components/detail/AiActionChips.js.map +2 -2
- package/dist/modules/customers/components/detail/ChangelogTab.js +3 -9
- package/dist/modules/customers/components/detail/ChangelogTab.js.map +2 -2
- package/dist/modules/customers/components/detail/changelogValues.js +35 -0
- package/dist/modules/customers/components/detail/changelogValues.js.map +7 -0
- package/dist/modules/customers/components/detail/customFieldUtils.js +1 -1
- package/dist/modules/customers/components/detail/customFieldUtils.js.map +1 -1
- package/dist/modules/customers/components/formConfig.js +3 -2
- package/dist/modules/customers/components/formConfig.js.map +2 -2
- package/dist/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.js +4 -9
- package/dist/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.js.map +2 -2
- package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.js +302 -0
- package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.js.map +7 -0
- package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.js +17 -0
- package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.js.map +7 -0
- package/dist/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.js +2 -2
- package/dist/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.js.map +2 -2
- package/dist/modules/customers/widgets/injection-table.js +2 -2
- package/dist/modules/customers/widgets/injection-table.js.map +2 -2
- package/dist/modules/directory/backend/directory/organizations/[id]/edit/page.js +2 -5
- package/dist/modules/directory/backend/directory/organizations/[id]/edit/page.js.map +2 -2
- package/dist/modules/directory/backend/directory/tenants/[id]/edit/page.js +2 -5
- package/dist/modules/directory/backend/directory/tenants/[id]/edit/page.js.map +2 -2
- package/dist/modules/resources/backend/resources/resources/[id]/page.js +2 -5
- package/dist/modules/resources/backend/resources/resources/[id]/page.js.map +2 -2
- package/dist/modules/sales/backend/sales/channels/[channelId]/edit/page.js +2 -25
- package/dist/modules/sales/backend/sales/channels/[channelId]/edit/page.js.map +2 -2
- package/dist/modules/sales/components/channels/ChannelOfferForm.js +2 -43
- package/dist/modules/sales/components/channels/ChannelOfferForm.js.map +2 -2
- package/dist/modules/sales/components/documents/LineItemDialog.js +162 -42
- package/dist/modules/sales/components/documents/LineItemDialog.js.map +2 -2
- package/dist/modules/sales/components/documents/customFieldHelpers.js +4 -31
- package/dist/modules/sales/components/documents/customFieldHelpers.js.map +2 -2
- package/package.json +16 -8
- package/src/modules/auth/backend/roles/[id]/edit/page.tsx +2 -1
- package/src/modules/auth/backend/users/[id]/edit/page.tsx +2 -5
- package/src/modules/business_rules/migrations/.snapshot-open-mercato.json +746 -394
- package/src/modules/catalog/ai-agents.ts +62 -4
- package/src/modules/catalog/backend/catalog/categories/[id]/edit/page.tsx +2 -5
- package/src/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.tsx +4 -3
- package/src/modules/catalog/backend/catalog/products/[id]/page.tsx +2 -12
- package/src/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.tsx +2 -10
- package/src/modules/catalog/migrations/.snapshot-open-mercato.json +2519 -1307
- package/src/modules/customer_accounts/migrations/.snapshot-open-mercato.json +828 -834
- package/src/modules/customers/AGENTS.md +6 -1
- package/src/modules/customers/ai-agents.ts +213 -6
- package/src/modules/customers/ai-tools/deal-analyzer-pack.ts +286 -0
- package/src/modules/customers/ai-tools.ts +2 -0
- package/src/modules/customers/backend/customers/companies/page.tsx +10 -0
- package/src/modules/customers/backend/customers/deals/page.tsx +10 -0
- package/src/modules/customers/backend/customers/people/page.tsx +10 -0
- package/src/modules/customers/commands/companies.ts +38 -14
- package/src/modules/customers/components/detail/AiActionChips.tsx +2 -2
- package/src/modules/customers/components/detail/ChangelogTab.tsx +3 -10
- package/src/modules/customers/components/detail/changelogValues.ts +42 -0
- package/src/modules/customers/components/detail/customFieldUtils.ts +1 -1
- package/src/modules/customers/components/formConfig.tsx +3 -2
- package/src/modules/customers/i18n/de.json +7 -0
- package/src/modules/customers/i18n/en.json +7 -0
- package/src/modules/customers/i18n/es.json +7 -0
- package/src/modules/customers/i18n/pl.json +7 -0
- package/src/modules/customers/migrations/.snapshot-open-mercato.json +2313 -2336
- package/src/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.tsx +4 -6
- package/src/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.tsx +358 -0
- package/src/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.ts +34 -0
- package/src/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.tsx +2 -2
- package/src/modules/customers/widgets/injection-table.ts +12 -9
- package/src/modules/data_sync/migrations/.snapshot-open-mercato.json +554 -210
- package/src/modules/dictionaries/migrations/.snapshot-open-mercato.json +146 -146
- package/src/modules/directory/backend/directory/organizations/[id]/edit/page.tsx +2 -5
- package/src/modules/directory/backend/directory/tenants/[id]/edit/page.tsx +2 -5
- package/src/modules/directory/migrations/.snapshot-open-mercato.json +273 -140
- package/src/modules/feature_toggles/migrations/.snapshot-open-mercato.json +242 -137
- package/src/modules/integrations/migrations/.snapshot-open-mercato.json +498 -195
- package/src/modules/payment_gateways/migrations/.snapshot-open-mercato.json +158 -157
- package/src/modules/perspectives/migrations/.snapshot-open-mercato.json +274 -129
- package/src/modules/planner/migrations/.snapshot-open-mercato.json +327 -157
- package/src/modules/progress/AGENTS.md +72 -0
- package/src/modules/resources/backend/resources/resources/[id]/page.tsx +2 -5
- package/src/modules/resources/migrations/.snapshot-open-mercato.json +920 -470
- package/src/modules/sales/backend/sales/channels/[channelId]/edit/page.tsx +2 -27
- package/src/modules/sales/components/channels/ChannelOfferForm.tsx +2 -49
- package/src/modules/sales/components/documents/LineItemDialog.tsx +214 -78
- package/src/modules/sales/components/documents/customFieldHelpers.ts +4 -43
- package/src/modules/sales/i18n/de.json +3 -0
- package/src/modules/sales/i18n/en.json +3 -0
- package/src/modules/sales/i18n/es.json +3 -0
- package/src/modules/sales/i18n/pl.json +3 -0
- package/src/modules/sales/migrations/.snapshot-open-mercato.json +4740 -4778
- package/src/modules/shipping_carriers/migrations/.snapshot-open-mercato.json +340 -81
- package/src/modules/staff/migrations/.snapshot-open-mercato.json +1439 -729
|
@@ -1,74 +1,107 @@
|
|
|
1
1
|
{
|
|
2
|
+
"name": "public",
|
|
2
3
|
"namespaces": [
|
|
3
4
|
"public"
|
|
4
5
|
],
|
|
5
|
-
"name": "public",
|
|
6
6
|
"tables": [
|
|
7
7
|
{
|
|
8
|
+
"name": "carrier_shipments",
|
|
9
|
+
"schema": "public",
|
|
8
10
|
"columns": {
|
|
9
|
-
"
|
|
10
|
-
"name": "
|
|
11
|
-
"type": "
|
|
12
|
-
"unsigned": false,
|
|
13
|
-
"autoincrement": false,
|
|
14
|
-
"primary": false,
|
|
15
|
-
"nullable": false,
|
|
16
|
-
"default": "gen_random_uuid()",
|
|
17
|
-
"mappedType": "uuid"
|
|
18
|
-
},
|
|
19
|
-
"order_id": {
|
|
20
|
-
"name": "order_id",
|
|
21
|
-
"type": "uuid",
|
|
11
|
+
"carrier_shipment_id": {
|
|
12
|
+
"name": "carrier_shipment_id",
|
|
13
|
+
"type": "text",
|
|
22
14
|
"unsigned": false,
|
|
23
15
|
"autoincrement": false,
|
|
24
16
|
"primary": false,
|
|
25
17
|
"nullable": false,
|
|
26
|
-
"
|
|
18
|
+
"unique": false,
|
|
19
|
+
"length": null,
|
|
20
|
+
"precision": null,
|
|
21
|
+
"scale": null,
|
|
22
|
+
"default": null,
|
|
23
|
+
"comment": null,
|
|
24
|
+
"enumItems": [],
|
|
25
|
+
"mappedType": "text"
|
|
27
26
|
},
|
|
28
|
-
"
|
|
29
|
-
"name": "
|
|
27
|
+
"carrier_status": {
|
|
28
|
+
"name": "carrier_status",
|
|
30
29
|
"type": "text",
|
|
31
30
|
"unsigned": false,
|
|
32
31
|
"autoincrement": false,
|
|
33
32
|
"primary": false,
|
|
34
|
-
"nullable":
|
|
33
|
+
"nullable": true,
|
|
34
|
+
"unique": false,
|
|
35
|
+
"length": null,
|
|
36
|
+
"precision": null,
|
|
37
|
+
"scale": null,
|
|
38
|
+
"default": null,
|
|
39
|
+
"comment": null,
|
|
40
|
+
"enumItems": [],
|
|
35
41
|
"mappedType": "text"
|
|
36
42
|
},
|
|
37
|
-
"
|
|
38
|
-
"name": "
|
|
39
|
-
"type": "
|
|
43
|
+
"created_at": {
|
|
44
|
+
"name": "created_at",
|
|
45
|
+
"type": "timestamptz(6)",
|
|
40
46
|
"unsigned": false,
|
|
41
47
|
"autoincrement": false,
|
|
42
48
|
"primary": false,
|
|
43
49
|
"nullable": false,
|
|
44
|
-
"
|
|
50
|
+
"unique": false,
|
|
51
|
+
"length": 6,
|
|
52
|
+
"precision": null,
|
|
53
|
+
"scale": null,
|
|
54
|
+
"default": null,
|
|
55
|
+
"comment": null,
|
|
56
|
+
"enumItems": [],
|
|
57
|
+
"mappedType": "datetime"
|
|
45
58
|
},
|
|
46
|
-
"
|
|
47
|
-
"name": "
|
|
48
|
-
"type": "
|
|
59
|
+
"deleted_at": {
|
|
60
|
+
"name": "deleted_at",
|
|
61
|
+
"type": "timestamptz(6)",
|
|
49
62
|
"unsigned": false,
|
|
50
63
|
"autoincrement": false,
|
|
51
64
|
"primary": false,
|
|
52
|
-
"nullable":
|
|
53
|
-
"
|
|
65
|
+
"nullable": true,
|
|
66
|
+
"unique": false,
|
|
67
|
+
"length": 6,
|
|
68
|
+
"precision": null,
|
|
69
|
+
"scale": null,
|
|
70
|
+
"default": null,
|
|
71
|
+
"comment": null,
|
|
72
|
+
"enumItems": [],
|
|
73
|
+
"mappedType": "datetime"
|
|
54
74
|
},
|
|
55
|
-
"
|
|
56
|
-
"name": "
|
|
57
|
-
"type": "
|
|
75
|
+
"id": {
|
|
76
|
+
"name": "id",
|
|
77
|
+
"type": "uuid",
|
|
58
78
|
"unsigned": false,
|
|
59
79
|
"autoincrement": false,
|
|
60
|
-
"primary":
|
|
80
|
+
"primary": true,
|
|
61
81
|
"nullable": false,
|
|
62
|
-
"
|
|
63
|
-
"
|
|
82
|
+
"unique": false,
|
|
83
|
+
"length": null,
|
|
84
|
+
"precision": null,
|
|
85
|
+
"scale": null,
|
|
86
|
+
"default": "gen_random_uuid()",
|
|
87
|
+
"comment": null,
|
|
88
|
+
"enumItems": [],
|
|
89
|
+
"mappedType": "uuid"
|
|
64
90
|
},
|
|
65
|
-
"
|
|
66
|
-
"name": "
|
|
91
|
+
"label_data": {
|
|
92
|
+
"name": "label_data",
|
|
67
93
|
"type": "text",
|
|
68
94
|
"unsigned": false,
|
|
69
95
|
"autoincrement": false,
|
|
70
96
|
"primary": false,
|
|
71
97
|
"nullable": true,
|
|
98
|
+
"unique": false,
|
|
99
|
+
"length": null,
|
|
100
|
+
"precision": null,
|
|
101
|
+
"scale": null,
|
|
102
|
+
"default": null,
|
|
103
|
+
"comment": null,
|
|
104
|
+
"enumItems": [],
|
|
72
105
|
"mappedType": "text"
|
|
73
106
|
},
|
|
74
107
|
"label_url": {
|
|
@@ -78,25 +111,62 @@
|
|
|
78
111
|
"autoincrement": false,
|
|
79
112
|
"primary": false,
|
|
80
113
|
"nullable": true,
|
|
114
|
+
"unique": false,
|
|
115
|
+
"length": null,
|
|
116
|
+
"precision": null,
|
|
117
|
+
"scale": null,
|
|
118
|
+
"default": null,
|
|
119
|
+
"comment": null,
|
|
120
|
+
"enumItems": [],
|
|
81
121
|
"mappedType": "text"
|
|
82
122
|
},
|
|
83
|
-
"
|
|
84
|
-
"name": "
|
|
85
|
-
"type": "
|
|
123
|
+
"last_polled_at": {
|
|
124
|
+
"name": "last_polled_at",
|
|
125
|
+
"type": "timestamptz(6)",
|
|
86
126
|
"unsigned": false,
|
|
87
127
|
"autoincrement": false,
|
|
88
128
|
"primary": false,
|
|
89
129
|
"nullable": true,
|
|
90
|
-
"
|
|
130
|
+
"unique": false,
|
|
131
|
+
"length": 6,
|
|
132
|
+
"precision": null,
|
|
133
|
+
"scale": null,
|
|
134
|
+
"default": null,
|
|
135
|
+
"comment": null,
|
|
136
|
+
"enumItems": [],
|
|
137
|
+
"mappedType": "datetime"
|
|
91
138
|
},
|
|
92
|
-
"
|
|
93
|
-
"name": "
|
|
94
|
-
"type": "
|
|
139
|
+
"last_webhook_at": {
|
|
140
|
+
"name": "last_webhook_at",
|
|
141
|
+
"type": "timestamptz(6)",
|
|
95
142
|
"unsigned": false,
|
|
96
143
|
"autoincrement": false,
|
|
97
144
|
"primary": false,
|
|
98
145
|
"nullable": true,
|
|
99
|
-
"
|
|
146
|
+
"unique": false,
|
|
147
|
+
"length": 6,
|
|
148
|
+
"precision": null,
|
|
149
|
+
"scale": null,
|
|
150
|
+
"default": null,
|
|
151
|
+
"comment": null,
|
|
152
|
+
"enumItems": [],
|
|
153
|
+
"mappedType": "datetime"
|
|
154
|
+
},
|
|
155
|
+
"order_id": {
|
|
156
|
+
"name": "order_id",
|
|
157
|
+
"type": "uuid",
|
|
158
|
+
"unsigned": false,
|
|
159
|
+
"autoincrement": false,
|
|
160
|
+
"primary": false,
|
|
161
|
+
"nullable": false,
|
|
162
|
+
"unique": false,
|
|
163
|
+
"length": null,
|
|
164
|
+
"precision": null,
|
|
165
|
+
"scale": null,
|
|
166
|
+
"default": null,
|
|
167
|
+
"comment": null,
|
|
168
|
+
"enumItems": [],
|
|
169
|
+
"mappedType": "uuid"
|
|
100
170
|
},
|
|
101
171
|
"organization_id": {
|
|
102
172
|
"name": "organization_id",
|
|
@@ -105,8 +175,31 @@
|
|
|
105
175
|
"autoincrement": false,
|
|
106
176
|
"primary": false,
|
|
107
177
|
"nullable": false,
|
|
178
|
+
"unique": false,
|
|
179
|
+
"length": null,
|
|
180
|
+
"precision": null,
|
|
181
|
+
"scale": null,
|
|
182
|
+
"default": null,
|
|
183
|
+
"comment": null,
|
|
184
|
+
"enumItems": [],
|
|
108
185
|
"mappedType": "uuid"
|
|
109
186
|
},
|
|
187
|
+
"provider_key": {
|
|
188
|
+
"name": "provider_key",
|
|
189
|
+
"type": "text",
|
|
190
|
+
"unsigned": false,
|
|
191
|
+
"autoincrement": false,
|
|
192
|
+
"primary": false,
|
|
193
|
+
"nullable": false,
|
|
194
|
+
"unique": false,
|
|
195
|
+
"length": null,
|
|
196
|
+
"precision": null,
|
|
197
|
+
"scale": null,
|
|
198
|
+
"default": null,
|
|
199
|
+
"comment": null,
|
|
200
|
+
"enumItems": [],
|
|
201
|
+
"mappedType": "text"
|
|
202
|
+
},
|
|
110
203
|
"tenant_id": {
|
|
111
204
|
"name": "tenant_id",
|
|
112
205
|
"type": "uuid",
|
|
@@ -114,64 +207,94 @@
|
|
|
114
207
|
"autoincrement": false,
|
|
115
208
|
"primary": false,
|
|
116
209
|
"nullable": false,
|
|
210
|
+
"unique": false,
|
|
211
|
+
"length": null,
|
|
212
|
+
"precision": null,
|
|
213
|
+
"scale": null,
|
|
214
|
+
"default": null,
|
|
215
|
+
"comment": null,
|
|
216
|
+
"enumItems": [],
|
|
117
217
|
"mappedType": "uuid"
|
|
118
218
|
},
|
|
119
|
-
"
|
|
120
|
-
"name": "
|
|
121
|
-
"type": "
|
|
219
|
+
"tracking_events": {
|
|
220
|
+
"name": "tracking_events",
|
|
221
|
+
"type": "jsonb",
|
|
122
222
|
"unsigned": false,
|
|
123
223
|
"autoincrement": false,
|
|
124
224
|
"primary": false,
|
|
125
225
|
"nullable": true,
|
|
126
|
-
"
|
|
127
|
-
"
|
|
226
|
+
"unique": false,
|
|
227
|
+
"length": null,
|
|
228
|
+
"precision": null,
|
|
229
|
+
"scale": null,
|
|
230
|
+
"default": null,
|
|
231
|
+
"comment": null,
|
|
232
|
+
"enumItems": [],
|
|
233
|
+
"mappedType": "json"
|
|
128
234
|
},
|
|
129
|
-
"
|
|
130
|
-
"name": "
|
|
131
|
-
"type": "
|
|
235
|
+
"tracking_number": {
|
|
236
|
+
"name": "tracking_number",
|
|
237
|
+
"type": "text",
|
|
132
238
|
"unsigned": false,
|
|
133
239
|
"autoincrement": false,
|
|
134
240
|
"primary": false,
|
|
135
|
-
"nullable":
|
|
136
|
-
"
|
|
137
|
-
"
|
|
241
|
+
"nullable": false,
|
|
242
|
+
"unique": false,
|
|
243
|
+
"length": null,
|
|
244
|
+
"precision": null,
|
|
245
|
+
"scale": null,
|
|
246
|
+
"default": null,
|
|
247
|
+
"comment": null,
|
|
248
|
+
"enumItems": [],
|
|
249
|
+
"mappedType": "text"
|
|
138
250
|
},
|
|
139
|
-
"
|
|
140
|
-
"name": "
|
|
141
|
-
"type": "
|
|
251
|
+
"unified_status": {
|
|
252
|
+
"name": "unified_status",
|
|
253
|
+
"type": "text",
|
|
142
254
|
"unsigned": false,
|
|
143
255
|
"autoincrement": false,
|
|
144
256
|
"primary": false,
|
|
145
257
|
"nullable": false,
|
|
146
|
-
"
|
|
147
|
-
"
|
|
258
|
+
"unique": false,
|
|
259
|
+
"length": null,
|
|
260
|
+
"precision": null,
|
|
261
|
+
"scale": null,
|
|
262
|
+
"default": "'label_created'",
|
|
263
|
+
"comment": null,
|
|
264
|
+
"enumItems": [],
|
|
265
|
+
"mappedType": "text"
|
|
148
266
|
},
|
|
149
267
|
"updated_at": {
|
|
150
268
|
"name": "updated_at",
|
|
151
|
-
"type": "timestamptz",
|
|
269
|
+
"type": "timestamptz(6)",
|
|
152
270
|
"unsigned": false,
|
|
153
271
|
"autoincrement": false,
|
|
154
272
|
"primary": false,
|
|
155
273
|
"nullable": false,
|
|
274
|
+
"unique": false,
|
|
156
275
|
"length": 6,
|
|
157
|
-
"
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"unsigned": false,
|
|
163
|
-
"autoincrement": false,
|
|
164
|
-
"primary": false,
|
|
165
|
-
"nullable": true,
|
|
166
|
-
"length": 6,
|
|
276
|
+
"precision": null,
|
|
277
|
+
"scale": null,
|
|
278
|
+
"default": null,
|
|
279
|
+
"comment": null,
|
|
280
|
+
"enumItems": [],
|
|
167
281
|
"mappedType": "datetime"
|
|
168
282
|
}
|
|
169
283
|
},
|
|
170
|
-
"name": "carrier_shipments",
|
|
171
|
-
"schema": "public",
|
|
172
284
|
"indexes": [
|
|
173
285
|
{
|
|
174
|
-
"
|
|
286
|
+
"columnNames": [
|
|
287
|
+
"order_id",
|
|
288
|
+
"organization_id",
|
|
289
|
+
"tenant_id"
|
|
290
|
+
],
|
|
291
|
+
"composite": true,
|
|
292
|
+
"constraint": false,
|
|
293
|
+
"keyName": "carrier_shipments_order_id_organization_id_tenant_id_index",
|
|
294
|
+
"primary": false,
|
|
295
|
+
"unique": false
|
|
296
|
+
},
|
|
297
|
+
{
|
|
175
298
|
"columnNames": [
|
|
176
299
|
"organization_id",
|
|
177
300
|
"tenant_id",
|
|
@@ -179,11 +302,21 @@
|
|
|
179
302
|
],
|
|
180
303
|
"composite": true,
|
|
181
304
|
"constraint": false,
|
|
305
|
+
"keyName": "carrier_shipments_organization_id_tenant_id_unifie_47ae1_index",
|
|
182
306
|
"primary": false,
|
|
183
307
|
"unique": false
|
|
184
308
|
},
|
|
185
309
|
{
|
|
186
|
-
"
|
|
310
|
+
"columnNames": [
|
|
311
|
+
"id"
|
|
312
|
+
],
|
|
313
|
+
"composite": false,
|
|
314
|
+
"constraint": true,
|
|
315
|
+
"keyName": "carrier_shipments_pkey",
|
|
316
|
+
"primary": true,
|
|
317
|
+
"unique": true
|
|
318
|
+
},
|
|
319
|
+
{
|
|
187
320
|
"columnNames": [
|
|
188
321
|
"provider_key",
|
|
189
322
|
"carrier_shipment_id",
|
|
@@ -191,36 +324,162 @@
|
|
|
191
324
|
],
|
|
192
325
|
"composite": true,
|
|
193
326
|
"constraint": false,
|
|
327
|
+
"keyName": "carrier_shipments_provider_key_carrier_shipment_id_f580a_index",
|
|
194
328
|
"primary": false,
|
|
195
329
|
"unique": false
|
|
330
|
+
}
|
|
331
|
+
],
|
|
332
|
+
"checks": [],
|
|
333
|
+
"foreignKeys": {},
|
|
334
|
+
"comment": null
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "carrier_webhook_events",
|
|
338
|
+
"schema": "public",
|
|
339
|
+
"columns": {
|
|
340
|
+
"event_type": {
|
|
341
|
+
"name": "event_type",
|
|
342
|
+
"type": "text",
|
|
343
|
+
"unsigned": false,
|
|
344
|
+
"autoincrement": false,
|
|
345
|
+
"primary": false,
|
|
346
|
+
"nullable": false,
|
|
347
|
+
"unique": false,
|
|
348
|
+
"length": null,
|
|
349
|
+
"precision": null,
|
|
350
|
+
"scale": null,
|
|
351
|
+
"default": null,
|
|
352
|
+
"comment": null,
|
|
353
|
+
"enumItems": [],
|
|
354
|
+
"mappedType": "text"
|
|
196
355
|
},
|
|
356
|
+
"id": {
|
|
357
|
+
"name": "id",
|
|
358
|
+
"type": "uuid",
|
|
359
|
+
"unsigned": false,
|
|
360
|
+
"autoincrement": false,
|
|
361
|
+
"primary": true,
|
|
362
|
+
"nullable": false,
|
|
363
|
+
"unique": false,
|
|
364
|
+
"length": null,
|
|
365
|
+
"precision": null,
|
|
366
|
+
"scale": null,
|
|
367
|
+
"default": "gen_random_uuid()",
|
|
368
|
+
"comment": null,
|
|
369
|
+
"enumItems": [],
|
|
370
|
+
"mappedType": "uuid"
|
|
371
|
+
},
|
|
372
|
+
"idempotency_key": {
|
|
373
|
+
"name": "idempotency_key",
|
|
374
|
+
"type": "text",
|
|
375
|
+
"unsigned": false,
|
|
376
|
+
"autoincrement": false,
|
|
377
|
+
"primary": false,
|
|
378
|
+
"nullable": false,
|
|
379
|
+
"unique": true,
|
|
380
|
+
"length": null,
|
|
381
|
+
"precision": null,
|
|
382
|
+
"scale": null,
|
|
383
|
+
"default": null,
|
|
384
|
+
"comment": null,
|
|
385
|
+
"enumItems": [],
|
|
386
|
+
"mappedType": "text"
|
|
387
|
+
},
|
|
388
|
+
"organization_id": {
|
|
389
|
+
"name": "organization_id",
|
|
390
|
+
"type": "uuid",
|
|
391
|
+
"unsigned": false,
|
|
392
|
+
"autoincrement": false,
|
|
393
|
+
"primary": false,
|
|
394
|
+
"nullable": false,
|
|
395
|
+
"unique": false,
|
|
396
|
+
"length": null,
|
|
397
|
+
"precision": null,
|
|
398
|
+
"scale": null,
|
|
399
|
+
"default": null,
|
|
400
|
+
"comment": null,
|
|
401
|
+
"enumItems": [],
|
|
402
|
+
"mappedType": "uuid"
|
|
403
|
+
},
|
|
404
|
+
"processed_at": {
|
|
405
|
+
"name": "processed_at",
|
|
406
|
+
"type": "timestamptz(6)",
|
|
407
|
+
"unsigned": false,
|
|
408
|
+
"autoincrement": false,
|
|
409
|
+
"primary": false,
|
|
410
|
+
"nullable": false,
|
|
411
|
+
"unique": false,
|
|
412
|
+
"length": 6,
|
|
413
|
+
"precision": null,
|
|
414
|
+
"scale": null,
|
|
415
|
+
"default": null,
|
|
416
|
+
"comment": null,
|
|
417
|
+
"enumItems": [],
|
|
418
|
+
"mappedType": "datetime"
|
|
419
|
+
},
|
|
420
|
+
"provider_key": {
|
|
421
|
+
"name": "provider_key",
|
|
422
|
+
"type": "text",
|
|
423
|
+
"unsigned": false,
|
|
424
|
+
"autoincrement": false,
|
|
425
|
+
"primary": false,
|
|
426
|
+
"nullable": false,
|
|
427
|
+
"unique": false,
|
|
428
|
+
"length": null,
|
|
429
|
+
"precision": null,
|
|
430
|
+
"scale": null,
|
|
431
|
+
"default": null,
|
|
432
|
+
"comment": null,
|
|
433
|
+
"enumItems": [],
|
|
434
|
+
"mappedType": "text"
|
|
435
|
+
},
|
|
436
|
+
"tenant_id": {
|
|
437
|
+
"name": "tenant_id",
|
|
438
|
+
"type": "uuid",
|
|
439
|
+
"unsigned": false,
|
|
440
|
+
"autoincrement": false,
|
|
441
|
+
"primary": false,
|
|
442
|
+
"nullable": false,
|
|
443
|
+
"unique": false,
|
|
444
|
+
"length": null,
|
|
445
|
+
"precision": null,
|
|
446
|
+
"scale": null,
|
|
447
|
+
"default": null,
|
|
448
|
+
"comment": null,
|
|
449
|
+
"enumItems": [],
|
|
450
|
+
"mappedType": "uuid"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"indexes": [
|
|
197
454
|
{
|
|
198
|
-
"keyName": "carrier_shipments_order_id_organization_id_tenant_id_index",
|
|
199
455
|
"columnNames": [
|
|
200
|
-
"
|
|
456
|
+
"idempotency_key",
|
|
457
|
+
"provider_key",
|
|
201
458
|
"organization_id",
|
|
202
459
|
"tenant_id"
|
|
203
460
|
],
|
|
204
461
|
"composite": true,
|
|
205
|
-
"constraint":
|
|
462
|
+
"constraint": true,
|
|
463
|
+
"keyName": "carrier_webhook_events_idempotency_unique",
|
|
206
464
|
"primary": false,
|
|
207
|
-
"unique":
|
|
465
|
+
"unique": true
|
|
208
466
|
},
|
|
209
467
|
{
|
|
210
|
-
"keyName": "carrier_shipments_pkey",
|
|
211
468
|
"columnNames": [
|
|
212
469
|
"id"
|
|
213
470
|
],
|
|
214
471
|
"composite": false,
|
|
215
472
|
"constraint": true,
|
|
473
|
+
"keyName": "carrier_webhook_events_pkey",
|
|
216
474
|
"primary": true,
|
|
217
475
|
"unique": true
|
|
218
476
|
}
|
|
219
477
|
],
|
|
220
478
|
"checks": [],
|
|
221
479
|
"foreignKeys": {},
|
|
222
|
-
"
|
|
480
|
+
"comment": null
|
|
223
481
|
}
|
|
224
482
|
],
|
|
483
|
+
"views": [],
|
|
225
484
|
"nativeEnums": {}
|
|
226
|
-
}
|
|
485
|
+
}
|