@open-mercato/core 0.6.1-develop.3291.1.6fad645fd0 → 0.6.1-develop.3306.1.9ad9ff2526

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 (122) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/AGENTS.md +14 -0
  3. package/dist/modules/auth/backend/roles/[id]/edit/page.js +2 -1
  4. package/dist/modules/auth/backend/roles/[id]/edit/page.js.map +2 -2
  5. package/dist/modules/auth/backend/users/[id]/edit/page.js +2 -5
  6. package/dist/modules/auth/backend/users/[id]/edit/page.js.map +2 -2
  7. package/dist/modules/catalog/ai-agents.js +47 -5
  8. package/dist/modules/catalog/ai-agents.js.map +2 -2
  9. package/dist/modules/catalog/backend/catalog/categories/[id]/edit/page.js +2 -5
  10. package/dist/modules/catalog/backend/catalog/categories/[id]/edit/page.js.map +2 -2
  11. package/dist/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.js +4 -3
  12. package/dist/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.js.map +2 -2
  13. package/dist/modules/catalog/backend/catalog/products/[id]/page.js +2 -9
  14. package/dist/modules/catalog/backend/catalog/products/[id]/page.js.map +2 -2
  15. package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js +2 -9
  16. package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js.map +2 -2
  17. package/dist/modules/customers/ai-agents.js +174 -1
  18. package/dist/modules/customers/ai-agents.js.map +2 -2
  19. package/dist/modules/customers/ai-tools/deal-analyzer-pack.js +196 -0
  20. package/dist/modules/customers/ai-tools/deal-analyzer-pack.js.map +7 -0
  21. package/dist/modules/customers/ai-tools.js +3 -1
  22. package/dist/modules/customers/ai-tools.js.map +2 -2
  23. package/dist/modules/customers/backend/customers/companies/page.js +11 -1
  24. package/dist/modules/customers/backend/customers/companies/page.js.map +2 -2
  25. package/dist/modules/customers/backend/customers/deals/page.js +11 -1
  26. package/dist/modules/customers/backend/customers/deals/page.js.map +2 -2
  27. package/dist/modules/customers/backend/customers/people/page.js +11 -1
  28. package/dist/modules/customers/backend/customers/people/page.js.map +2 -2
  29. package/dist/modules/customers/commands/companies.js +37 -15
  30. package/dist/modules/customers/commands/companies.js.map +2 -2
  31. package/dist/modules/customers/components/detail/AiActionChips.js +2 -2
  32. package/dist/modules/customers/components/detail/AiActionChips.js.map +2 -2
  33. package/dist/modules/customers/components/detail/ChangelogTab.js +3 -9
  34. package/dist/modules/customers/components/detail/ChangelogTab.js.map +2 -2
  35. package/dist/modules/customers/components/detail/changelogValues.js +35 -0
  36. package/dist/modules/customers/components/detail/changelogValues.js.map +7 -0
  37. package/dist/modules/customers/components/detail/customFieldUtils.js +1 -1
  38. package/dist/modules/customers/components/detail/customFieldUtils.js.map +1 -1
  39. package/dist/modules/customers/components/formConfig.js +3 -2
  40. package/dist/modules/customers/components/formConfig.js.map +2 -2
  41. package/dist/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.js +4 -9
  42. package/dist/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.js.map +2 -2
  43. package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.js +302 -0
  44. package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.js.map +7 -0
  45. package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.js +17 -0
  46. package/dist/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.js.map +7 -0
  47. package/dist/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.js +2 -2
  48. package/dist/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.js.map +2 -2
  49. package/dist/modules/customers/widgets/injection-table.js +2 -2
  50. package/dist/modules/customers/widgets/injection-table.js.map +2 -2
  51. package/dist/modules/directory/backend/directory/organizations/[id]/edit/page.js +2 -5
  52. package/dist/modules/directory/backend/directory/organizations/[id]/edit/page.js.map +2 -2
  53. package/dist/modules/directory/backend/directory/tenants/[id]/edit/page.js +2 -5
  54. package/dist/modules/directory/backend/directory/tenants/[id]/edit/page.js.map +2 -2
  55. package/dist/modules/resources/backend/resources/resources/[id]/page.js +2 -5
  56. package/dist/modules/resources/backend/resources/resources/[id]/page.js.map +2 -2
  57. package/dist/modules/sales/backend/sales/channels/[channelId]/edit/page.js +2 -25
  58. package/dist/modules/sales/backend/sales/channels/[channelId]/edit/page.js.map +2 -2
  59. package/dist/modules/sales/components/channels/ChannelOfferForm.js +2 -43
  60. package/dist/modules/sales/components/channels/ChannelOfferForm.js.map +2 -2
  61. package/dist/modules/sales/components/documents/LineItemDialog.js +162 -42
  62. package/dist/modules/sales/components/documents/LineItemDialog.js.map +2 -2
  63. package/dist/modules/sales/components/documents/customFieldHelpers.js +4 -31
  64. package/dist/modules/sales/components/documents/customFieldHelpers.js.map +2 -2
  65. package/package.json +15 -6
  66. package/src/modules/auth/backend/roles/[id]/edit/page.tsx +2 -1
  67. package/src/modules/auth/backend/users/[id]/edit/page.tsx +2 -5
  68. package/src/modules/business_rules/migrations/.snapshot-open-mercato.json +746 -394
  69. package/src/modules/catalog/ai-agents.ts +62 -4
  70. package/src/modules/catalog/backend/catalog/categories/[id]/edit/page.tsx +2 -5
  71. package/src/modules/catalog/backend/catalog/products/MerchandisingAssistantSheet.tsx +4 -3
  72. package/src/modules/catalog/backend/catalog/products/[id]/page.tsx +2 -12
  73. package/src/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.tsx +2 -10
  74. package/src/modules/catalog/migrations/.snapshot-open-mercato.json +2519 -1307
  75. package/src/modules/customer_accounts/migrations/.snapshot-open-mercato.json +828 -834
  76. package/src/modules/customers/AGENTS.md +6 -1
  77. package/src/modules/customers/ai-agents.ts +213 -6
  78. package/src/modules/customers/ai-tools/deal-analyzer-pack.ts +286 -0
  79. package/src/modules/customers/ai-tools.ts +2 -0
  80. package/src/modules/customers/backend/customers/companies/page.tsx +10 -0
  81. package/src/modules/customers/backend/customers/deals/page.tsx +10 -0
  82. package/src/modules/customers/backend/customers/people/page.tsx +10 -0
  83. package/src/modules/customers/commands/companies.ts +38 -14
  84. package/src/modules/customers/components/detail/AiActionChips.tsx +2 -2
  85. package/src/modules/customers/components/detail/ChangelogTab.tsx +3 -10
  86. package/src/modules/customers/components/detail/changelogValues.ts +42 -0
  87. package/src/modules/customers/components/detail/customFieldUtils.ts +1 -1
  88. package/src/modules/customers/components/formConfig.tsx +3 -2
  89. package/src/modules/customers/i18n/de.json +7 -0
  90. package/src/modules/customers/i18n/en.json +7 -0
  91. package/src/modules/customers/i18n/es.json +7 -0
  92. package/src/modules/customers/i18n/pl.json +7 -0
  93. package/src/modules/customers/migrations/.snapshot-open-mercato.json +2313 -2336
  94. package/src/modules/customers/widgets/injection/ai-assistant-trigger/widget.client.tsx +4 -6
  95. package/src/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.client.tsx +358 -0
  96. package/src/modules/customers/widgets/injection/ai-deal-analyzer-trigger/widget.ts +34 -0
  97. package/src/modules/customers/widgets/injection/ai-deal-detail-trigger/widget.client.tsx +2 -2
  98. package/src/modules/customers/widgets/injection-table.ts +12 -9
  99. package/src/modules/data_sync/migrations/.snapshot-open-mercato.json +554 -210
  100. package/src/modules/dictionaries/migrations/.snapshot-open-mercato.json +146 -146
  101. package/src/modules/directory/backend/directory/organizations/[id]/edit/page.tsx +2 -5
  102. package/src/modules/directory/backend/directory/tenants/[id]/edit/page.tsx +2 -5
  103. package/src/modules/directory/migrations/.snapshot-open-mercato.json +273 -140
  104. package/src/modules/feature_toggles/migrations/.snapshot-open-mercato.json +242 -137
  105. package/src/modules/integrations/migrations/.snapshot-open-mercato.json +498 -195
  106. package/src/modules/payment_gateways/migrations/.snapshot-open-mercato.json +158 -157
  107. package/src/modules/perspectives/migrations/.snapshot-open-mercato.json +274 -129
  108. package/src/modules/planner/migrations/.snapshot-open-mercato.json +327 -157
  109. package/src/modules/progress/AGENTS.md +72 -0
  110. package/src/modules/resources/backend/resources/resources/[id]/page.tsx +2 -5
  111. package/src/modules/resources/migrations/.snapshot-open-mercato.json +920 -470
  112. package/src/modules/sales/backend/sales/channels/[channelId]/edit/page.tsx +2 -27
  113. package/src/modules/sales/components/channels/ChannelOfferForm.tsx +2 -49
  114. package/src/modules/sales/components/documents/LineItemDialog.tsx +214 -78
  115. package/src/modules/sales/components/documents/customFieldHelpers.ts +4 -43
  116. package/src/modules/sales/i18n/de.json +3 -0
  117. package/src/modules/sales/i18n/en.json +3 -0
  118. package/src/modules/sales/i18n/es.json +3 -0
  119. package/src/modules/sales/i18n/pl.json +3 -0
  120. package/src/modules/sales/migrations/.snapshot-open-mercato.json +4740 -4778
  121. package/src/modules/shipping_carriers/migrations/.snapshot-open-mercato.json +340 -81
  122. 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
- "id": {
10
- "name": "id",
11
- "type": "uuid",
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
- "mappedType": "uuid"
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
- "provider_key": {
29
- "name": "provider_key",
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": false,
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
- "carrier_shipment_id": {
38
- "name": "carrier_shipment_id",
39
- "type": "text",
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
- "mappedType": "text"
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
- "tracking_number": {
47
- "name": "tracking_number",
48
- "type": "text",
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": false,
53
- "mappedType": "text"
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
- "unified_status": {
56
- "name": "unified_status",
57
- "type": "text",
75
+ "id": {
76
+ "name": "id",
77
+ "type": "uuid",
58
78
  "unsigned": false,
59
79
  "autoincrement": false,
60
- "primary": false,
80
+ "primary": true,
61
81
  "nullable": false,
62
- "default": "'label_created'",
63
- "mappedType": "text"
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
- "carrier_status": {
66
- "name": "carrier_status",
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
- "label_data": {
84
- "name": "label_data",
85
- "type": "text",
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
- "mappedType": "text"
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
- "tracking_events": {
93
- "name": "tracking_events",
94
- "type": "jsonb",
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
- "mappedType": "json"
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
- "last_webhook_at": {
120
- "name": "last_webhook_at",
121
- "type": "timestamptz",
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
- "length": 6,
127
- "mappedType": "datetime"
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
- "last_polled_at": {
130
- "name": "last_polled_at",
131
- "type": "timestamptz",
235
+ "tracking_number": {
236
+ "name": "tracking_number",
237
+ "type": "text",
132
238
  "unsigned": false,
133
239
  "autoincrement": false,
134
240
  "primary": false,
135
- "nullable": true,
136
- "length": 6,
137
- "mappedType": "datetime"
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
- "created_at": {
140
- "name": "created_at",
141
- "type": "timestamptz",
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
- "length": 6,
147
- "mappedType": "datetime"
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
- "mappedType": "datetime"
158
- },
159
- "deleted_at": {
160
- "name": "deleted_at",
161
- "type": "timestamptz",
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
- "keyName": "carrier_shipments_organization_id_tenant_id_unifie_ffc31_index",
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
- "keyName": "carrier_shipments_provider_key_carrier_shipment_id_96494_index",
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
- "order_id",
456
+ "idempotency_key",
457
+ "provider_key",
201
458
  "organization_id",
202
459
  "tenant_id"
203
460
  ],
204
461
  "composite": true,
205
- "constraint": false,
462
+ "constraint": true,
463
+ "keyName": "carrier_webhook_events_idempotency_unique",
206
464
  "primary": false,
207
- "unique": false
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
- "nativeEnums": {}
480
+ "comment": null
223
481
  }
224
482
  ],
483
+ "views": [],
225
484
  "nativeEnums": {}
226
- }
485
+ }