@happyvertical/smrt-support 0.40.70 → 0.42.0
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/AGENTS.md +33 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +65 -9
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +516 -248
- package/dist/migrations/moneyMinorUnits.d.ts +26 -0
- package/dist/migrations/moneyMinorUnits.d.ts.map +1 -0
- package/dist/models/support-compensation-plan.d.ts +6 -1
- package/dist/models/support-compensation-plan.d.ts.map +1 -1
- package/dist/models/support-plan.d.ts +17 -3
- package/dist/models/support-plan.d.ts.map +1 -1
- package/dist/models/support-settlement.d.ts +11 -2
- package/dist/models/support-settlement.d.ts.map +1 -1
- package/dist/services/time-entry-approval-service.d.ts +5 -1
- package/dist/services/time-entry-approval-service.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +41 -11
- package/dist/svelte/components/TimeEntryApprovalQueue.svelte +18 -3
- package/dist/svelte/components/TimeEntryApprovalQueue.svelte.d.ts.map +1 -1
- package/dist/svelte/components/__tests__/TimeEntryApprovalQueue.test.js +12 -2
- package/dist/svelte/types.d.ts +15 -2
- package/dist/svelte/types.d.ts.map +1 -1
- package/dist/svelte/types.js +1 -0
- package/dist/types.d.ts +5 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +11 -10
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-support",
|
|
5
|
-
"packageVersion": "0.
|
|
5
|
+
"packageVersion": "0.42.0",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-support:ServiceTimeEntry": {
|
|
8
8
|
"name": "servicetimeentry",
|
|
@@ -185,7 +185,12 @@
|
|
|
185
185
|
},
|
|
186
186
|
"tenantScoped": {
|
|
187
187
|
"mode": "optional"
|
|
188
|
-
}
|
|
188
|
+
},
|
|
189
|
+
"conflictColumns": [
|
|
190
|
+
"tenant_id",
|
|
191
|
+
"slug",
|
|
192
|
+
"context"
|
|
193
|
+
]
|
|
189
194
|
},
|
|
190
195
|
"extends": "ServiceTimeEntry",
|
|
191
196
|
"exportName": "ServiceTimeEntry",
|
|
@@ -355,24 +360,62 @@
|
|
|
355
360
|
}
|
|
356
361
|
},
|
|
357
362
|
"indexes": [
|
|
358
|
-
{
|
|
359
|
-
"name": "service_time_entries_id_idx",
|
|
360
|
-
"columns": [
|
|
361
|
-
"id"
|
|
362
|
-
]
|
|
363
|
-
},
|
|
364
363
|
{
|
|
365
364
|
"name": "service_time_entries_slug_context_idx",
|
|
366
365
|
"columns": [
|
|
366
|
+
"tenant_id",
|
|
367
367
|
"slug",
|
|
368
368
|
"context"
|
|
369
369
|
],
|
|
370
370
|
"unique": true
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
|
-
"name": "
|
|
373
|
+
"name": "service_time_entries_tenant_id_created_at_idx",
|
|
374
|
+
"columns": [
|
|
375
|
+
"tenant_id",
|
|
376
|
+
"created_at"
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "service_time_entries_case_id_idx",
|
|
381
|
+
"columns": [
|
|
382
|
+
"case_id"
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "service_time_entries_specialist_id_idx",
|
|
387
|
+
"columns": [
|
|
388
|
+
"specialist_id"
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "service_time_entries_participant_profile_id_idx",
|
|
393
|
+
"columns": [
|
|
394
|
+
"participant_profile_id"
|
|
395
|
+
]
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "service_time_entries_submitted_by_profile_id_idx",
|
|
399
|
+
"columns": [
|
|
400
|
+
"submitted_by_profile_id"
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"name": "service_time_entries_approved_by_profile_id_idx",
|
|
374
405
|
"columns": [
|
|
375
|
-
"
|
|
406
|
+
"approved_by_profile_id"
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "service_time_entries_rejected_by_profile_id_idx",
|
|
411
|
+
"columns": [
|
|
412
|
+
"rejected_by_profile_id"
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "service_time_entries_correction_of_id_idx",
|
|
417
|
+
"columns": [
|
|
418
|
+
"correction_of_id"
|
|
376
419
|
]
|
|
377
420
|
}
|
|
378
421
|
],
|
|
@@ -463,12 +506,6 @@
|
|
|
463
506
|
}
|
|
464
507
|
},
|
|
465
508
|
"indexes": [
|
|
466
|
-
{
|
|
467
|
-
"name": "service_time_entries_id_idx",
|
|
468
|
-
"columns": [
|
|
469
|
-
"id"
|
|
470
|
-
]
|
|
471
|
-
},
|
|
472
509
|
{
|
|
473
510
|
"name": "service_time_entries_slug_context_idx",
|
|
474
511
|
"columns": [
|
|
@@ -476,6 +513,12 @@
|
|
|
476
513
|
"context"
|
|
477
514
|
],
|
|
478
515
|
"unique": true
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "service_time_entries_created_at_idx",
|
|
519
|
+
"columns": [
|
|
520
|
+
"created_at"
|
|
521
|
+
]
|
|
479
522
|
}
|
|
480
523
|
],
|
|
481
524
|
"version": "d9c34ac0"
|
|
@@ -676,7 +719,12 @@
|
|
|
676
719
|
},
|
|
677
720
|
"tenantScoped": {
|
|
678
721
|
"mode": "optional"
|
|
679
|
-
}
|
|
722
|
+
},
|
|
723
|
+
"conflictColumns": [
|
|
724
|
+
"tenant_id",
|
|
725
|
+
"slug",
|
|
726
|
+
"context"
|
|
727
|
+
]
|
|
680
728
|
},
|
|
681
729
|
"extends": "SmrtObject",
|
|
682
730
|
"exportName": "SupportAiRun",
|
|
@@ -803,24 +851,38 @@
|
|
|
803
851
|
}
|
|
804
852
|
},
|
|
805
853
|
"indexes": [
|
|
806
|
-
{
|
|
807
|
-
"name": "support_ai_runs_id_idx",
|
|
808
|
-
"columns": [
|
|
809
|
-
"id"
|
|
810
|
-
]
|
|
811
|
-
},
|
|
812
854
|
{
|
|
813
855
|
"name": "support_ai_runs_slug_context_idx",
|
|
814
856
|
"columns": [
|
|
857
|
+
"tenant_id",
|
|
815
858
|
"slug",
|
|
816
859
|
"context"
|
|
817
860
|
],
|
|
818
861
|
"unique": true
|
|
819
862
|
},
|
|
820
863
|
{
|
|
821
|
-
"name": "
|
|
864
|
+
"name": "support_ai_runs_tenant_id_created_at_idx",
|
|
822
865
|
"columns": [
|
|
823
|
-
"tenant_id"
|
|
866
|
+
"tenant_id",
|
|
867
|
+
"created_at"
|
|
868
|
+
]
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"name": "support_ai_runs_case_id_idx",
|
|
872
|
+
"columns": [
|
|
873
|
+
"case_id"
|
|
874
|
+
]
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"name": "support_ai_runs_interaction_id_idx",
|
|
878
|
+
"columns": [
|
|
879
|
+
"interaction_id"
|
|
880
|
+
]
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"name": "support_ai_runs_response_interaction_id_idx",
|
|
884
|
+
"columns": [
|
|
885
|
+
"response_interaction_id"
|
|
824
886
|
]
|
|
825
887
|
}
|
|
826
888
|
],
|
|
@@ -889,12 +951,6 @@
|
|
|
889
951
|
}
|
|
890
952
|
},
|
|
891
953
|
"indexes": [
|
|
892
|
-
{
|
|
893
|
-
"name": "support_ai_runs_id_idx",
|
|
894
|
-
"columns": [
|
|
895
|
-
"id"
|
|
896
|
-
]
|
|
897
|
-
},
|
|
898
954
|
{
|
|
899
955
|
"name": "support_ai_runs_slug_context_idx",
|
|
900
956
|
"columns": [
|
|
@@ -902,6 +958,12 @@
|
|
|
902
958
|
"context"
|
|
903
959
|
],
|
|
904
960
|
"unique": true
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"name": "support_ai_runs_created_at_idx",
|
|
964
|
+
"columns": [
|
|
965
|
+
"created_at"
|
|
966
|
+
]
|
|
905
967
|
}
|
|
906
968
|
],
|
|
907
969
|
"version": "87728103"
|
|
@@ -1020,7 +1082,12 @@
|
|
|
1020
1082
|
},
|
|
1021
1083
|
"tenantScoped": {
|
|
1022
1084
|
"mode": "optional"
|
|
1023
|
-
}
|
|
1085
|
+
},
|
|
1086
|
+
"conflictColumns": [
|
|
1087
|
+
"tenant_id",
|
|
1088
|
+
"slug",
|
|
1089
|
+
"context"
|
|
1090
|
+
]
|
|
1024
1091
|
},
|
|
1025
1092
|
"extends": "SmrtObject",
|
|
1026
1093
|
"exportName": "SupportCaseEvent",
|
|
@@ -1106,24 +1173,32 @@
|
|
|
1106
1173
|
}
|
|
1107
1174
|
},
|
|
1108
1175
|
"indexes": [
|
|
1109
|
-
{
|
|
1110
|
-
"name": "support_case_events_id_idx",
|
|
1111
|
-
"columns": [
|
|
1112
|
-
"id"
|
|
1113
|
-
]
|
|
1114
|
-
},
|
|
1115
1176
|
{
|
|
1116
1177
|
"name": "support_case_events_slug_context_idx",
|
|
1117
1178
|
"columns": [
|
|
1179
|
+
"tenant_id",
|
|
1118
1180
|
"slug",
|
|
1119
1181
|
"context"
|
|
1120
1182
|
],
|
|
1121
1183
|
"unique": true
|
|
1122
1184
|
},
|
|
1123
1185
|
{
|
|
1124
|
-
"name": "
|
|
1186
|
+
"name": "support_case_events_tenant_id_created_at_idx",
|
|
1187
|
+
"columns": [
|
|
1188
|
+
"tenant_id",
|
|
1189
|
+
"created_at"
|
|
1190
|
+
]
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"name": "support_case_events_case_id_idx",
|
|
1194
|
+
"columns": [
|
|
1195
|
+
"case_id"
|
|
1196
|
+
]
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"name": "support_case_events_actor_profile_id_idx",
|
|
1125
1200
|
"columns": [
|
|
1126
|
-
"
|
|
1201
|
+
"actor_profile_id"
|
|
1127
1202
|
]
|
|
1128
1203
|
}
|
|
1129
1204
|
],
|
|
@@ -1197,12 +1272,6 @@
|
|
|
1197
1272
|
}
|
|
1198
1273
|
},
|
|
1199
1274
|
"indexes": [
|
|
1200
|
-
{
|
|
1201
|
-
"name": "support_case_events_id_idx",
|
|
1202
|
-
"columns": [
|
|
1203
|
-
"id"
|
|
1204
|
-
]
|
|
1205
|
-
},
|
|
1206
1275
|
{
|
|
1207
1276
|
"name": "support_case_events_slug_context_idx",
|
|
1208
1277
|
"columns": [
|
|
@@ -1210,6 +1279,12 @@
|
|
|
1210
1279
|
"context"
|
|
1211
1280
|
],
|
|
1212
1281
|
"unique": true
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
"name": "support_case_events_created_at_idx",
|
|
1285
|
+
"columns": [
|
|
1286
|
+
"created_at"
|
|
1287
|
+
]
|
|
1213
1288
|
}
|
|
1214
1289
|
],
|
|
1215
1290
|
"version": "15415d2b"
|
|
@@ -1516,7 +1591,12 @@
|
|
|
1516
1591
|
},
|
|
1517
1592
|
"tenantScoped": {
|
|
1518
1593
|
"mode": "optional"
|
|
1519
|
-
}
|
|
1594
|
+
},
|
|
1595
|
+
"conflictColumns": [
|
|
1596
|
+
"tenant_id",
|
|
1597
|
+
"slug",
|
|
1598
|
+
"context"
|
|
1599
|
+
]
|
|
1520
1600
|
},
|
|
1521
1601
|
"extends": "SmrtObject",
|
|
1522
1602
|
"exportName": "SupportCase",
|
|
@@ -1732,24 +1812,62 @@
|
|
|
1732
1812
|
}
|
|
1733
1813
|
},
|
|
1734
1814
|
"indexes": [
|
|
1735
|
-
{
|
|
1736
|
-
"name": "support_cases_id_idx",
|
|
1737
|
-
"columns": [
|
|
1738
|
-
"id"
|
|
1739
|
-
]
|
|
1740
|
-
},
|
|
1741
1815
|
{
|
|
1742
1816
|
"name": "support_cases_slug_context_idx",
|
|
1743
1817
|
"columns": [
|
|
1818
|
+
"tenant_id",
|
|
1744
1819
|
"slug",
|
|
1745
1820
|
"context"
|
|
1746
1821
|
],
|
|
1747
1822
|
"unique": true
|
|
1748
1823
|
},
|
|
1749
1824
|
{
|
|
1750
|
-
"name": "
|
|
1825
|
+
"name": "support_cases_tenant_id_created_at_idx",
|
|
1826
|
+
"columns": [
|
|
1827
|
+
"tenant_id",
|
|
1828
|
+
"created_at"
|
|
1829
|
+
]
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
"name": "support_cases_client_profile_id_idx",
|
|
1833
|
+
"columns": [
|
|
1834
|
+
"client_profile_id"
|
|
1835
|
+
]
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"name": "support_cases_opened_by_profile_id_idx",
|
|
1839
|
+
"columns": [
|
|
1840
|
+
"opened_by_profile_id"
|
|
1841
|
+
]
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"name": "support_cases_binding_id_idx",
|
|
1845
|
+
"columns": [
|
|
1846
|
+
"binding_id"
|
|
1847
|
+
]
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"name": "support_cases_plan_id_idx",
|
|
1851
|
+
"columns": [
|
|
1852
|
+
"plan_id"
|
|
1853
|
+
]
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
"name": "support_cases_assigned_specialist_id_idx",
|
|
1857
|
+
"columns": [
|
|
1858
|
+
"assigned_specialist_id"
|
|
1859
|
+
]
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
"name": "support_cases_preferred_specialist_id_idx",
|
|
1863
|
+
"columns": [
|
|
1864
|
+
"preferred_specialist_id"
|
|
1865
|
+
]
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"name": "support_cases_resolved_by_profile_id_idx",
|
|
1751
1869
|
"columns": [
|
|
1752
|
-
"
|
|
1870
|
+
"resolved_by_profile_id"
|
|
1753
1871
|
]
|
|
1754
1872
|
}
|
|
1755
1873
|
],
|
|
@@ -1837,12 +1955,6 @@
|
|
|
1837
1955
|
}
|
|
1838
1956
|
},
|
|
1839
1957
|
"indexes": [
|
|
1840
|
-
{
|
|
1841
|
-
"name": "support_cases_id_idx",
|
|
1842
|
-
"columns": [
|
|
1843
|
-
"id"
|
|
1844
|
-
]
|
|
1845
|
-
},
|
|
1846
1958
|
{
|
|
1847
1959
|
"name": "support_cases_slug_context_idx",
|
|
1848
1960
|
"columns": [
|
|
@@ -1850,6 +1962,12 @@
|
|
|
1850
1962
|
"context"
|
|
1851
1963
|
],
|
|
1852
1964
|
"unique": true
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
"name": "support_cases_created_at_idx",
|
|
1968
|
+
"columns": [
|
|
1969
|
+
"created_at"
|
|
1970
|
+
]
|
|
1853
1971
|
}
|
|
1854
1972
|
],
|
|
1855
1973
|
"version": "a0ea314b"
|
|
@@ -2117,12 +2235,6 @@
|
|
|
2117
2235
|
}
|
|
2118
2236
|
},
|
|
2119
2237
|
"indexes": [
|
|
2120
|
-
{
|
|
2121
|
-
"name": "support_channel_bindings_id_idx",
|
|
2122
|
-
"columns": [
|
|
2123
|
-
"id"
|
|
2124
|
-
]
|
|
2125
|
-
},
|
|
2126
2238
|
{
|
|
2127
2239
|
"name": "support_channel_bindings_target_type_target_id_idx",
|
|
2128
2240
|
"columns": [
|
|
@@ -2132,9 +2244,29 @@
|
|
|
2132
2244
|
"unique": true
|
|
2133
2245
|
},
|
|
2134
2246
|
{
|
|
2135
|
-
"name": "
|
|
2247
|
+
"name": "support_channel_bindings_slug_context_idx",
|
|
2136
2248
|
"columns": [
|
|
2137
|
-
"
|
|
2249
|
+
"slug",
|
|
2250
|
+
"context"
|
|
2251
|
+
]
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"name": "support_channel_bindings_tenant_id_created_at_idx",
|
|
2255
|
+
"columns": [
|
|
2256
|
+
"tenant_id",
|
|
2257
|
+
"created_at"
|
|
2258
|
+
]
|
|
2259
|
+
},
|
|
2260
|
+
{
|
|
2261
|
+
"name": "support_channel_bindings_client_profile_id_idx",
|
|
2262
|
+
"columns": [
|
|
2263
|
+
"client_profile_id"
|
|
2264
|
+
]
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
"name": "support_channel_bindings_plan_id_idx",
|
|
2268
|
+
"columns": [
|
|
2269
|
+
"plan_id"
|
|
2138
2270
|
]
|
|
2139
2271
|
}
|
|
2140
2272
|
],
|
|
@@ -2208,12 +2340,6 @@
|
|
|
2208
2340
|
}
|
|
2209
2341
|
},
|
|
2210
2342
|
"indexes": [
|
|
2211
|
-
{
|
|
2212
|
-
"name": "support_channel_bindings_id_idx",
|
|
2213
|
-
"columns": [
|
|
2214
|
-
"id"
|
|
2215
|
-
]
|
|
2216
|
-
},
|
|
2217
2343
|
{
|
|
2218
2344
|
"name": "support_channel_bindings_slug_context_idx",
|
|
2219
2345
|
"columns": [
|
|
@@ -2221,6 +2347,12 @@
|
|
|
2221
2347
|
"context"
|
|
2222
2348
|
],
|
|
2223
2349
|
"unique": true
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
"name": "support_channel_bindings_created_at_idx",
|
|
2353
|
+
"columns": [
|
|
2354
|
+
"created_at"
|
|
2355
|
+
]
|
|
2224
2356
|
}
|
|
2225
2357
|
],
|
|
2226
2358
|
"version": "662a042a"
|
|
@@ -2441,12 +2573,6 @@
|
|
|
2441
2573
|
}
|
|
2442
2574
|
},
|
|
2443
2575
|
"indexes": [
|
|
2444
|
-
{
|
|
2445
|
-
"name": "support_compensation_plans_id_idx",
|
|
2446
|
-
"columns": [
|
|
2447
|
-
"id"
|
|
2448
|
-
]
|
|
2449
|
-
},
|
|
2450
2576
|
{
|
|
2451
2577
|
"name": "support_compensation_plans_tenant_id_specialist_id_idx",
|
|
2452
2578
|
"columns": [
|
|
@@ -2455,6 +2581,26 @@
|
|
|
2455
2581
|
"effective_from"
|
|
2456
2582
|
],
|
|
2457
2583
|
"unique": true
|
|
2584
|
+
},
|
|
2585
|
+
{
|
|
2586
|
+
"name": "support_compensation_plans_slug_context_idx",
|
|
2587
|
+
"columns": [
|
|
2588
|
+
"slug",
|
|
2589
|
+
"context"
|
|
2590
|
+
]
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
"name": "support_compensation_plans_tenant_id_created_at_idx",
|
|
2594
|
+
"columns": [
|
|
2595
|
+
"tenant_id",
|
|
2596
|
+
"created_at"
|
|
2597
|
+
]
|
|
2598
|
+
},
|
|
2599
|
+
{
|
|
2600
|
+
"name": "support_compensation_plans_specialist_id_idx",
|
|
2601
|
+
"columns": [
|
|
2602
|
+
"specialist_id"
|
|
2603
|
+
]
|
|
2458
2604
|
}
|
|
2459
2605
|
],
|
|
2460
2606
|
"version": "818494af"
|
|
@@ -2532,12 +2678,6 @@
|
|
|
2532
2678
|
}
|
|
2533
2679
|
},
|
|
2534
2680
|
"indexes": [
|
|
2535
|
-
{
|
|
2536
|
-
"name": "support_compensation_plans_id_idx",
|
|
2537
|
-
"columns": [
|
|
2538
|
-
"id"
|
|
2539
|
-
]
|
|
2540
|
-
},
|
|
2541
2681
|
{
|
|
2542
2682
|
"name": "support_compensation_plans_slug_context_idx",
|
|
2543
2683
|
"columns": [
|
|
@@ -2545,6 +2685,12 @@
|
|
|
2545
2685
|
"context"
|
|
2546
2686
|
],
|
|
2547
2687
|
"unique": true
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
"name": "support_compensation_plans_created_at_idx",
|
|
2691
|
+
"columns": [
|
|
2692
|
+
"created_at"
|
|
2693
|
+
]
|
|
2548
2694
|
}
|
|
2549
2695
|
],
|
|
2550
2696
|
"version": "121b3db1"
|
|
@@ -2806,12 +2952,6 @@
|
|
|
2806
2952
|
}
|
|
2807
2953
|
},
|
|
2808
2954
|
"indexes": [
|
|
2809
|
-
{
|
|
2810
|
-
"name": "support_interactions_id_idx",
|
|
2811
|
-
"columns": [
|
|
2812
|
-
"id"
|
|
2813
|
-
]
|
|
2814
|
-
},
|
|
2815
2955
|
{
|
|
2816
2956
|
"name": "support_interactions_source_key_idx",
|
|
2817
2957
|
"columns": [
|
|
@@ -2820,9 +2960,29 @@
|
|
|
2820
2960
|
"unique": true
|
|
2821
2961
|
},
|
|
2822
2962
|
{
|
|
2823
|
-
"name": "
|
|
2963
|
+
"name": "support_interactions_slug_context_idx",
|
|
2964
|
+
"columns": [
|
|
2965
|
+
"slug",
|
|
2966
|
+
"context"
|
|
2967
|
+
]
|
|
2968
|
+
},
|
|
2969
|
+
{
|
|
2970
|
+
"name": "support_interactions_tenant_id_created_at_idx",
|
|
2971
|
+
"columns": [
|
|
2972
|
+
"tenant_id",
|
|
2973
|
+
"created_at"
|
|
2974
|
+
]
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
"name": "support_interactions_case_id_idx",
|
|
2978
|
+
"columns": [
|
|
2979
|
+
"case_id"
|
|
2980
|
+
]
|
|
2981
|
+
},
|
|
2982
|
+
{
|
|
2983
|
+
"name": "support_interactions_author_profile_id_idx",
|
|
2824
2984
|
"columns": [
|
|
2825
|
-
"
|
|
2985
|
+
"author_profile_id"
|
|
2826
2986
|
]
|
|
2827
2987
|
}
|
|
2828
2988
|
],
|
|
@@ -2919,12 +3079,6 @@
|
|
|
2919
3079
|
}
|
|
2920
3080
|
},
|
|
2921
3081
|
"indexes": [
|
|
2922
|
-
{
|
|
2923
|
-
"name": "support_interactions_id_idx",
|
|
2924
|
-
"columns": [
|
|
2925
|
-
"id"
|
|
2926
|
-
]
|
|
2927
|
-
},
|
|
2928
3082
|
{
|
|
2929
3083
|
"name": "support_interactions_slug_context_idx",
|
|
2930
3084
|
"columns": [
|
|
@@ -2932,6 +3086,12 @@
|
|
|
2932
3086
|
"context"
|
|
2933
3087
|
],
|
|
2934
3088
|
"unique": true
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
"name": "support_interactions_created_at_idx",
|
|
3092
|
+
"columns": [
|
|
3093
|
+
"created_at"
|
|
3094
|
+
]
|
|
2935
3095
|
}
|
|
2936
3096
|
],
|
|
2937
3097
|
"version": "b1c57eb7"
|
|
@@ -3024,7 +3184,7 @@
|
|
|
3024
3184
|
"_meta": {}
|
|
3025
3185
|
},
|
|
3026
3186
|
"availabilityFeeAmount": {
|
|
3027
|
-
"type": "
|
|
3187
|
+
"type": "integer",
|
|
3028
3188
|
"required": false,
|
|
3029
3189
|
"default": 0
|
|
3030
3190
|
},
|
|
@@ -3319,7 +3479,7 @@
|
|
|
3319
3479
|
"collectionExportName": "SupportPlanCollection",
|
|
3320
3480
|
"schema": {
|
|
3321
3481
|
"tableName": "support_plans",
|
|
3322
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"support_plans\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"plan_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"status\" TEXT,\n \"channels\" TEXT,\n \"timezone\" TEXT,\n \"coverage\" TEXT,\n \"holidays\" TEXT,\n \"severity_definitions\" TEXT,\n \"targets\" TEXT,\n \"pause_statuses\" TEXT,\n \"escalation_policy\" TEXT,\n \"availability_fee_amount\"
|
|
3482
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"support_plans\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"plan_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"status\" TEXT,\n \"channels\" TEXT,\n \"timezone\" TEXT,\n \"coverage\" TEXT,\n \"holidays\" TEXT,\n \"severity_definitions\" TEXT,\n \"targets\" TEXT,\n \"pause_statuses\" TEXT,\n \"escalation_policy\" TEXT,\n \"availability_fee_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"included_minutes\" INTEGER DEFAULT 0,\n \"overage_hourly_rate\" REAL DEFAULT 0,\n \"on_call_hourly_rate\" REAL DEFAULT 0,\n \"time_approval_policy\" TEXT,\n \"subscription_plan_key\" TEXT,\n \"metadata\" TEXT\n);",
|
|
3323
3483
|
"columns": {
|
|
3324
3484
|
"id": {
|
|
3325
3485
|
"type": "UUID",
|
|
@@ -3414,7 +3574,7 @@
|
|
|
3414
3574
|
"unique": false
|
|
3415
3575
|
},
|
|
3416
3576
|
"availability_fee_amount": {
|
|
3417
|
-
"type": "
|
|
3577
|
+
"type": "INTEGER",
|
|
3418
3578
|
"notNull": false,
|
|
3419
3579
|
"unique": false,
|
|
3420
3580
|
"default": 0
|
|
@@ -3459,12 +3619,6 @@
|
|
|
3459
3619
|
}
|
|
3460
3620
|
},
|
|
3461
3621
|
"indexes": [
|
|
3462
|
-
{
|
|
3463
|
-
"name": "support_plans_id_idx",
|
|
3464
|
-
"columns": [
|
|
3465
|
-
"id"
|
|
3466
|
-
]
|
|
3467
|
-
},
|
|
3468
3622
|
{
|
|
3469
3623
|
"name": "support_plans_tenant_id_plan_key_idx",
|
|
3470
3624
|
"columns": [
|
|
@@ -3472,9 +3626,23 @@
|
|
|
3472
3626
|
"plan_key"
|
|
3473
3627
|
],
|
|
3474
3628
|
"unique": true
|
|
3629
|
+
},
|
|
3630
|
+
{
|
|
3631
|
+
"name": "support_plans_slug_context_idx",
|
|
3632
|
+
"columns": [
|
|
3633
|
+
"slug",
|
|
3634
|
+
"context"
|
|
3635
|
+
]
|
|
3636
|
+
},
|
|
3637
|
+
{
|
|
3638
|
+
"name": "support_plans_tenant_id_created_at_idx",
|
|
3639
|
+
"columns": [
|
|
3640
|
+
"tenant_id",
|
|
3641
|
+
"created_at"
|
|
3642
|
+
]
|
|
3475
3643
|
}
|
|
3476
3644
|
],
|
|
3477
|
-
"version": "
|
|
3645
|
+
"version": "492a9cf6"
|
|
3478
3646
|
}
|
|
3479
3647
|
},
|
|
3480
3648
|
"@happyvertical/smrt-support:SupportPlanCollection": {
|
|
@@ -3539,12 +3707,6 @@
|
|
|
3539
3707
|
}
|
|
3540
3708
|
},
|
|
3541
3709
|
"indexes": [
|
|
3542
|
-
{
|
|
3543
|
-
"name": "support_plans_id_idx",
|
|
3544
|
-
"columns": [
|
|
3545
|
-
"id"
|
|
3546
|
-
]
|
|
3547
|
-
},
|
|
3548
3710
|
{
|
|
3549
3711
|
"name": "support_plans_slug_context_idx",
|
|
3550
3712
|
"columns": [
|
|
@@ -3552,6 +3714,12 @@
|
|
|
3552
3714
|
"context"
|
|
3553
3715
|
],
|
|
3554
3716
|
"unique": true
|
|
3717
|
+
},
|
|
3718
|
+
{
|
|
3719
|
+
"name": "support_plans_created_at_idx",
|
|
3720
|
+
"columns": [
|
|
3721
|
+
"created_at"
|
|
3722
|
+
]
|
|
3555
3723
|
}
|
|
3556
3724
|
],
|
|
3557
3725
|
"version": "a2548347"
|
|
@@ -3897,12 +4065,6 @@
|
|
|
3897
4065
|
}
|
|
3898
4066
|
},
|
|
3899
4067
|
"indexes": [
|
|
3900
|
-
{
|
|
3901
|
-
"name": "support_policies_id_idx",
|
|
3902
|
-
"columns": [
|
|
3903
|
-
"id"
|
|
3904
|
-
]
|
|
3905
|
-
},
|
|
3906
4068
|
{
|
|
3907
4069
|
"name": "support_policies_tenant_id_name_idx",
|
|
3908
4070
|
"columns": [
|
|
@@ -3910,6 +4072,26 @@
|
|
|
3910
4072
|
"name"
|
|
3911
4073
|
],
|
|
3912
4074
|
"unique": true
|
|
4075
|
+
},
|
|
4076
|
+
{
|
|
4077
|
+
"name": "support_policies_slug_context_idx",
|
|
4078
|
+
"columns": [
|
|
4079
|
+
"slug",
|
|
4080
|
+
"context"
|
|
4081
|
+
]
|
|
4082
|
+
},
|
|
4083
|
+
{
|
|
4084
|
+
"name": "support_policies_tenant_id_created_at_idx",
|
|
4085
|
+
"columns": [
|
|
4086
|
+
"tenant_id",
|
|
4087
|
+
"created_at"
|
|
4088
|
+
]
|
|
4089
|
+
},
|
|
4090
|
+
{
|
|
4091
|
+
"name": "support_policies_plan_id_idx",
|
|
4092
|
+
"columns": [
|
|
4093
|
+
"plan_id"
|
|
4094
|
+
]
|
|
3913
4095
|
}
|
|
3914
4096
|
],
|
|
3915
4097
|
"version": "3bdcc3f5"
|
|
@@ -3977,12 +4159,6 @@
|
|
|
3977
4159
|
}
|
|
3978
4160
|
},
|
|
3979
4161
|
"indexes": [
|
|
3980
|
-
{
|
|
3981
|
-
"name": "support_policies_id_idx",
|
|
3982
|
-
"columns": [
|
|
3983
|
-
"id"
|
|
3984
|
-
]
|
|
3985
|
-
},
|
|
3986
4162
|
{
|
|
3987
4163
|
"name": "support_policies_slug_context_idx",
|
|
3988
4164
|
"columns": [
|
|
@@ -3990,6 +4166,12 @@
|
|
|
3990
4166
|
"context"
|
|
3991
4167
|
],
|
|
3992
4168
|
"unique": true
|
|
4169
|
+
},
|
|
4170
|
+
{
|
|
4171
|
+
"name": "support_policies_created_at_idx",
|
|
4172
|
+
"columns": [
|
|
4173
|
+
"created_at"
|
|
4174
|
+
]
|
|
3993
4175
|
}
|
|
3994
4176
|
],
|
|
3995
4177
|
"version": "555a3403"
|
|
@@ -4300,12 +4482,6 @@
|
|
|
4300
4482
|
}
|
|
4301
4483
|
},
|
|
4302
4484
|
"indexes": [
|
|
4303
|
-
{
|
|
4304
|
-
"name": "support_service_targets_id_idx",
|
|
4305
|
-
"columns": [
|
|
4306
|
-
"id"
|
|
4307
|
-
]
|
|
4308
|
-
},
|
|
4309
4485
|
{
|
|
4310
4486
|
"name": "support_service_targets_case_id_target_type_idx",
|
|
4311
4487
|
"columns": [
|
|
@@ -4316,9 +4492,17 @@
|
|
|
4316
4492
|
"unique": true
|
|
4317
4493
|
},
|
|
4318
4494
|
{
|
|
4319
|
-
"name": "
|
|
4495
|
+
"name": "support_service_targets_slug_context_idx",
|
|
4320
4496
|
"columns": [
|
|
4321
|
-
"
|
|
4497
|
+
"slug",
|
|
4498
|
+
"context"
|
|
4499
|
+
]
|
|
4500
|
+
},
|
|
4501
|
+
{
|
|
4502
|
+
"name": "support_service_targets_tenant_id_created_at_idx",
|
|
4503
|
+
"columns": [
|
|
4504
|
+
"tenant_id",
|
|
4505
|
+
"created_at"
|
|
4322
4506
|
]
|
|
4323
4507
|
}
|
|
4324
4508
|
],
|
|
@@ -4406,12 +4590,6 @@
|
|
|
4406
4590
|
}
|
|
4407
4591
|
},
|
|
4408
4592
|
"indexes": [
|
|
4409
|
-
{
|
|
4410
|
-
"name": "support_service_targets_id_idx",
|
|
4411
|
-
"columns": [
|
|
4412
|
-
"id"
|
|
4413
|
-
]
|
|
4414
|
-
},
|
|
4415
4593
|
{
|
|
4416
4594
|
"name": "support_service_targets_slug_context_idx",
|
|
4417
4595
|
"columns": [
|
|
@@ -4419,6 +4597,12 @@
|
|
|
4419
4597
|
"context"
|
|
4420
4598
|
],
|
|
4421
4599
|
"unique": true
|
|
4600
|
+
},
|
|
4601
|
+
{
|
|
4602
|
+
"name": "support_service_targets_created_at_idx",
|
|
4603
|
+
"columns": [
|
|
4604
|
+
"created_at"
|
|
4605
|
+
]
|
|
4422
4606
|
}
|
|
4423
4607
|
],
|
|
4424
4608
|
"version": "f201a103"
|
|
@@ -4554,7 +4738,12 @@
|
|
|
4554
4738
|
},
|
|
4555
4739
|
"tenantScoped": {
|
|
4556
4740
|
"mode": "optional"
|
|
4557
|
-
}
|
|
4741
|
+
},
|
|
4742
|
+
"conflictColumns": [
|
|
4743
|
+
"tenant_id",
|
|
4744
|
+
"slug",
|
|
4745
|
+
"context"
|
|
4746
|
+
]
|
|
4558
4747
|
},
|
|
4559
4748
|
"extends": "SmrtObject",
|
|
4560
4749
|
"exportName": "SupportEscalation",
|
|
@@ -4663,24 +4852,44 @@
|
|
|
4663
4852
|
}
|
|
4664
4853
|
},
|
|
4665
4854
|
"indexes": [
|
|
4666
|
-
{
|
|
4667
|
-
"name": "support_escalations_id_idx",
|
|
4668
|
-
"columns": [
|
|
4669
|
-
"id"
|
|
4670
|
-
]
|
|
4671
|
-
},
|
|
4672
4855
|
{
|
|
4673
4856
|
"name": "support_escalations_slug_context_idx",
|
|
4674
4857
|
"columns": [
|
|
4858
|
+
"tenant_id",
|
|
4675
4859
|
"slug",
|
|
4676
4860
|
"context"
|
|
4677
4861
|
],
|
|
4678
4862
|
"unique": true
|
|
4679
4863
|
},
|
|
4680
4864
|
{
|
|
4681
|
-
"name": "
|
|
4865
|
+
"name": "support_escalations_tenant_id_created_at_idx",
|
|
4866
|
+
"columns": [
|
|
4867
|
+
"tenant_id",
|
|
4868
|
+
"created_at"
|
|
4869
|
+
]
|
|
4870
|
+
},
|
|
4871
|
+
{
|
|
4872
|
+
"name": "support_escalations_case_id_idx",
|
|
4873
|
+
"columns": [
|
|
4874
|
+
"case_id"
|
|
4875
|
+
]
|
|
4876
|
+
},
|
|
4877
|
+
{
|
|
4878
|
+
"name": "support_escalations_target_id_idx",
|
|
4682
4879
|
"columns": [
|
|
4683
|
-
"
|
|
4880
|
+
"target_id"
|
|
4881
|
+
]
|
|
4882
|
+
},
|
|
4883
|
+
{
|
|
4884
|
+
"name": "support_escalations_from_specialist_id_idx",
|
|
4885
|
+
"columns": [
|
|
4886
|
+
"from_specialist_id"
|
|
4887
|
+
]
|
|
4888
|
+
},
|
|
4889
|
+
{
|
|
4890
|
+
"name": "support_escalations_to_specialist_id_idx",
|
|
4891
|
+
"columns": [
|
|
4892
|
+
"to_specialist_id"
|
|
4684
4893
|
]
|
|
4685
4894
|
}
|
|
4686
4895
|
],
|
|
@@ -4749,12 +4958,6 @@
|
|
|
4749
4958
|
}
|
|
4750
4959
|
},
|
|
4751
4960
|
"indexes": [
|
|
4752
|
-
{
|
|
4753
|
-
"name": "support_escalations_id_idx",
|
|
4754
|
-
"columns": [
|
|
4755
|
-
"id"
|
|
4756
|
-
]
|
|
4757
|
-
},
|
|
4758
4961
|
{
|
|
4759
4962
|
"name": "support_escalations_slug_context_idx",
|
|
4760
4963
|
"columns": [
|
|
@@ -4762,6 +4965,12 @@
|
|
|
4762
4965
|
"context"
|
|
4763
4966
|
],
|
|
4764
4967
|
"unique": true
|
|
4968
|
+
},
|
|
4969
|
+
{
|
|
4970
|
+
"name": "support_escalations_created_at_idx",
|
|
4971
|
+
"columns": [
|
|
4972
|
+
"created_at"
|
|
4973
|
+
]
|
|
4765
4974
|
}
|
|
4766
4975
|
],
|
|
4767
4976
|
"version": "f9b3556a"
|
|
@@ -4812,7 +5021,7 @@
|
|
|
4812
5021
|
"related": "SupportPlan"
|
|
4813
5022
|
},
|
|
4814
5023
|
"amount": {
|
|
4815
|
-
"type": "
|
|
5024
|
+
"type": "integer",
|
|
4816
5025
|
"required": false,
|
|
4817
5026
|
"default": 0
|
|
4818
5027
|
},
|
|
@@ -4914,7 +5123,7 @@
|
|
|
4914
5123
|
],
|
|
4915
5124
|
"schema": {
|
|
4916
5125
|
"tableName": "support_charges",
|
|
4917
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"support_charges\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"case_id\" UUID,\n \"plan_id\" UUID,\n \"amount\"
|
|
5126
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"support_charges\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"case_id\" UUID,\n \"plan_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"billable_seconds\" INTEGER DEFAULT 0,\n \"included_seconds_applied\" INTEGER DEFAULT 0,\n \"rate_snapshot\" TEXT,\n \"status\" TEXT,\n \"finalized_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
|
|
4918
5127
|
"columns": {
|
|
4919
5128
|
"id": {
|
|
4920
5129
|
"type": "UUID",
|
|
@@ -4966,7 +5175,7 @@
|
|
|
4966
5175
|
"unique": false
|
|
4967
5176
|
},
|
|
4968
5177
|
"amount": {
|
|
4969
|
-
"type": "
|
|
5178
|
+
"type": "INTEGER",
|
|
4970
5179
|
"notNull": false,
|
|
4971
5180
|
"unique": false,
|
|
4972
5181
|
"default": 0
|
|
@@ -5010,12 +5219,6 @@
|
|
|
5010
5219
|
}
|
|
5011
5220
|
},
|
|
5012
5221
|
"indexes": [
|
|
5013
|
-
{
|
|
5014
|
-
"name": "support_charges_id_idx",
|
|
5015
|
-
"columns": [
|
|
5016
|
-
"id"
|
|
5017
|
-
]
|
|
5018
|
-
},
|
|
5019
5222
|
{
|
|
5020
5223
|
"name": "support_charges_time_entry_id_idx",
|
|
5021
5224
|
"columns": [
|
|
@@ -5024,13 +5227,33 @@
|
|
|
5024
5227
|
"unique": true
|
|
5025
5228
|
},
|
|
5026
5229
|
{
|
|
5027
|
-
"name": "
|
|
5230
|
+
"name": "support_charges_slug_context_idx",
|
|
5231
|
+
"columns": [
|
|
5232
|
+
"slug",
|
|
5233
|
+
"context"
|
|
5234
|
+
]
|
|
5235
|
+
},
|
|
5236
|
+
{
|
|
5237
|
+
"name": "support_charges_tenant_id_created_at_idx",
|
|
5028
5238
|
"columns": [
|
|
5029
|
-
"tenant_id"
|
|
5239
|
+
"tenant_id",
|
|
5240
|
+
"created_at"
|
|
5241
|
+
]
|
|
5242
|
+
},
|
|
5243
|
+
{
|
|
5244
|
+
"name": "support_charges_case_id_idx",
|
|
5245
|
+
"columns": [
|
|
5246
|
+
"case_id"
|
|
5247
|
+
]
|
|
5248
|
+
},
|
|
5249
|
+
{
|
|
5250
|
+
"name": "support_charges_plan_id_idx",
|
|
5251
|
+
"columns": [
|
|
5252
|
+
"plan_id"
|
|
5030
5253
|
]
|
|
5031
5254
|
}
|
|
5032
5255
|
],
|
|
5033
|
-
"version": "
|
|
5256
|
+
"version": "4b8b4db5"
|
|
5034
5257
|
}
|
|
5035
5258
|
},
|
|
5036
5259
|
"@happyvertical/smrt-support:SupportChargeCollection": {
|
|
@@ -5109,12 +5332,6 @@
|
|
|
5109
5332
|
}
|
|
5110
5333
|
},
|
|
5111
5334
|
"indexes": [
|
|
5112
|
-
{
|
|
5113
|
-
"name": "support_charges_id_idx",
|
|
5114
|
-
"columns": [
|
|
5115
|
-
"id"
|
|
5116
|
-
]
|
|
5117
|
-
},
|
|
5118
5335
|
{
|
|
5119
5336
|
"name": "support_charges_slug_context_idx",
|
|
5120
5337
|
"columns": [
|
|
@@ -5122,6 +5339,12 @@
|
|
|
5122
5339
|
"context"
|
|
5123
5340
|
],
|
|
5124
5341
|
"unique": true
|
|
5342
|
+
},
|
|
5343
|
+
{
|
|
5344
|
+
"name": "support_charges_created_at_idx",
|
|
5345
|
+
"columns": [
|
|
5346
|
+
"created_at"
|
|
5347
|
+
]
|
|
5125
5348
|
}
|
|
5126
5349
|
],
|
|
5127
5350
|
"version": "6853d84d"
|
|
@@ -5172,7 +5395,7 @@
|
|
|
5172
5395
|
"related": "SupportCompensationPlan"
|
|
5173
5396
|
},
|
|
5174
5397
|
"amount": {
|
|
5175
|
-
"type": "
|
|
5398
|
+
"type": "integer",
|
|
5176
5399
|
"required": false,
|
|
5177
5400
|
"default": 0
|
|
5178
5401
|
},
|
|
@@ -5269,7 +5492,7 @@
|
|
|
5269
5492
|
],
|
|
5270
5493
|
"schema": {
|
|
5271
5494
|
"tableName": "support_compensations",
|
|
5272
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"support_compensations\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"specialist_id\" UUID,\n \"compensation_plan_id\" UUID,\n \"amount\"
|
|
5495
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"support_compensations\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"specialist_id\" UUID,\n \"compensation_plan_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"payable_seconds\" INTEGER DEFAULT 0,\n \"rate_snapshot\" TEXT,\n \"status\" TEXT,\n \"finalized_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
|
|
5273
5496
|
"columns": {
|
|
5274
5497
|
"id": {
|
|
5275
5498
|
"type": "UUID",
|
|
@@ -5321,7 +5544,7 @@
|
|
|
5321
5544
|
"unique": false
|
|
5322
5545
|
},
|
|
5323
5546
|
"amount": {
|
|
5324
|
-
"type": "
|
|
5547
|
+
"type": "INTEGER",
|
|
5325
5548
|
"notNull": false,
|
|
5326
5549
|
"unique": false,
|
|
5327
5550
|
"default": 0
|
|
@@ -5359,12 +5582,6 @@
|
|
|
5359
5582
|
}
|
|
5360
5583
|
},
|
|
5361
5584
|
"indexes": [
|
|
5362
|
-
{
|
|
5363
|
-
"name": "support_compensations_id_idx",
|
|
5364
|
-
"columns": [
|
|
5365
|
-
"id"
|
|
5366
|
-
]
|
|
5367
|
-
},
|
|
5368
5585
|
{
|
|
5369
5586
|
"name": "support_compensations_time_entry_id_idx",
|
|
5370
5587
|
"columns": [
|
|
@@ -5373,13 +5590,33 @@
|
|
|
5373
5590
|
"unique": true
|
|
5374
5591
|
},
|
|
5375
5592
|
{
|
|
5376
|
-
"name": "
|
|
5593
|
+
"name": "support_compensations_slug_context_idx",
|
|
5594
|
+
"columns": [
|
|
5595
|
+
"slug",
|
|
5596
|
+
"context"
|
|
5597
|
+
]
|
|
5598
|
+
},
|
|
5599
|
+
{
|
|
5600
|
+
"name": "support_compensations_tenant_id_created_at_idx",
|
|
5601
|
+
"columns": [
|
|
5602
|
+
"tenant_id",
|
|
5603
|
+
"created_at"
|
|
5604
|
+
]
|
|
5605
|
+
},
|
|
5606
|
+
{
|
|
5607
|
+
"name": "support_compensations_specialist_id_idx",
|
|
5608
|
+
"columns": [
|
|
5609
|
+
"specialist_id"
|
|
5610
|
+
]
|
|
5611
|
+
},
|
|
5612
|
+
{
|
|
5613
|
+
"name": "support_compensations_compensation_plan_id_idx",
|
|
5377
5614
|
"columns": [
|
|
5378
|
-
"
|
|
5615
|
+
"compensation_plan_id"
|
|
5379
5616
|
]
|
|
5380
5617
|
}
|
|
5381
5618
|
],
|
|
5382
|
-
"version": "
|
|
5619
|
+
"version": "1e16b14c"
|
|
5383
5620
|
}
|
|
5384
5621
|
},
|
|
5385
5622
|
"@happyvertical/smrt-support:SupportCompensationCollection": {
|
|
@@ -5458,12 +5695,6 @@
|
|
|
5458
5695
|
}
|
|
5459
5696
|
},
|
|
5460
5697
|
"indexes": [
|
|
5461
|
-
{
|
|
5462
|
-
"name": "support_compensations_id_idx",
|
|
5463
|
-
"columns": [
|
|
5464
|
-
"id"
|
|
5465
|
-
]
|
|
5466
|
-
},
|
|
5467
5698
|
{
|
|
5468
5699
|
"name": "support_compensations_slug_context_idx",
|
|
5469
5700
|
"columns": [
|
|
@@ -5471,6 +5702,12 @@
|
|
|
5471
5702
|
"context"
|
|
5472
5703
|
],
|
|
5473
5704
|
"unique": true
|
|
5705
|
+
},
|
|
5706
|
+
{
|
|
5707
|
+
"name": "support_compensations_created_at_idx",
|
|
5708
|
+
"columns": [
|
|
5709
|
+
"created_at"
|
|
5710
|
+
]
|
|
5474
5711
|
}
|
|
5475
5712
|
],
|
|
5476
5713
|
"version": "ec88df4e"
|
|
@@ -5729,18 +5966,32 @@
|
|
|
5729
5966
|
},
|
|
5730
5967
|
"indexes": [
|
|
5731
5968
|
{
|
|
5732
|
-
"name": "
|
|
5969
|
+
"name": "support_specialists_tenant_id_profile_id_idx",
|
|
5970
|
+
"columns": [
|
|
5971
|
+
"tenant_id",
|
|
5972
|
+
"profile_id"
|
|
5973
|
+
],
|
|
5974
|
+
"unique": true
|
|
5975
|
+
},
|
|
5976
|
+
{
|
|
5977
|
+
"name": "support_specialists_slug_context_idx",
|
|
5733
5978
|
"columns": [
|
|
5734
|
-
"
|
|
5979
|
+
"slug",
|
|
5980
|
+
"context"
|
|
5735
5981
|
]
|
|
5736
5982
|
},
|
|
5737
5983
|
{
|
|
5738
|
-
"name": "
|
|
5984
|
+
"name": "support_specialists_tenant_id_created_at_idx",
|
|
5739
5985
|
"columns": [
|
|
5740
5986
|
"tenant_id",
|
|
5987
|
+
"created_at"
|
|
5988
|
+
]
|
|
5989
|
+
},
|
|
5990
|
+
{
|
|
5991
|
+
"name": "support_specialists_profile_id_idx",
|
|
5992
|
+
"columns": [
|
|
5741
5993
|
"profile_id"
|
|
5742
|
-
]
|
|
5743
|
-
"unique": true
|
|
5994
|
+
]
|
|
5744
5995
|
}
|
|
5745
5996
|
],
|
|
5746
5997
|
"version": "ff5305d3"
|
|
@@ -5816,12 +6067,6 @@
|
|
|
5816
6067
|
}
|
|
5817
6068
|
},
|
|
5818
6069
|
"indexes": [
|
|
5819
|
-
{
|
|
5820
|
-
"name": "support_specialists_id_idx",
|
|
5821
|
-
"columns": [
|
|
5822
|
-
"id"
|
|
5823
|
-
]
|
|
5824
|
-
},
|
|
5825
6070
|
{
|
|
5826
6071
|
"name": "support_specialists_slug_context_idx",
|
|
5827
6072
|
"columns": [
|
|
@@ -5829,6 +6074,12 @@
|
|
|
5829
6074
|
"context"
|
|
5830
6075
|
],
|
|
5831
6076
|
"unique": true
|
|
6077
|
+
},
|
|
6078
|
+
{
|
|
6079
|
+
"name": "support_specialists_created_at_idx",
|
|
6080
|
+
"columns": [
|
|
6081
|
+
"created_at"
|
|
6082
|
+
]
|
|
5832
6083
|
}
|
|
5833
6084
|
],
|
|
5834
6085
|
"version": "65dfee96"
|
|
@@ -6031,12 +6282,6 @@
|
|
|
6031
6282
|
}
|
|
6032
6283
|
},
|
|
6033
6284
|
"indexes": [
|
|
6034
|
-
{
|
|
6035
|
-
"name": "support_qualifications_id_idx",
|
|
6036
|
-
"columns": [
|
|
6037
|
-
"id"
|
|
6038
|
-
]
|
|
6039
|
-
},
|
|
6040
6285
|
{
|
|
6041
6286
|
"name": "support_qualifications_specialist_id_project_id_idx",
|
|
6042
6287
|
"columns": [
|
|
@@ -6046,9 +6291,23 @@
|
|
|
6046
6291
|
"unique": true
|
|
6047
6292
|
},
|
|
6048
6293
|
{
|
|
6049
|
-
"name": "
|
|
6294
|
+
"name": "support_qualifications_slug_context_idx",
|
|
6295
|
+
"columns": [
|
|
6296
|
+
"slug",
|
|
6297
|
+
"context"
|
|
6298
|
+
]
|
|
6299
|
+
},
|
|
6300
|
+
{
|
|
6301
|
+
"name": "support_qualifications_tenant_id_created_at_idx",
|
|
6302
|
+
"columns": [
|
|
6303
|
+
"tenant_id",
|
|
6304
|
+
"created_at"
|
|
6305
|
+
]
|
|
6306
|
+
},
|
|
6307
|
+
{
|
|
6308
|
+
"name": "support_qualifications_granted_by_profile_id_idx",
|
|
6050
6309
|
"columns": [
|
|
6051
|
-
"
|
|
6310
|
+
"granted_by_profile_id"
|
|
6052
6311
|
]
|
|
6053
6312
|
}
|
|
6054
6313
|
],
|
|
@@ -6131,12 +6390,6 @@
|
|
|
6131
6390
|
}
|
|
6132
6391
|
},
|
|
6133
6392
|
"indexes": [
|
|
6134
|
-
{
|
|
6135
|
-
"name": "support_qualifications_id_idx",
|
|
6136
|
-
"columns": [
|
|
6137
|
-
"id"
|
|
6138
|
-
]
|
|
6139
|
-
},
|
|
6140
6393
|
{
|
|
6141
6394
|
"name": "support_qualifications_slug_context_idx",
|
|
6142
6395
|
"columns": [
|
|
@@ -6144,6 +6397,12 @@
|
|
|
6144
6397
|
"context"
|
|
6145
6398
|
],
|
|
6146
6399
|
"unique": true
|
|
6400
|
+
},
|
|
6401
|
+
{
|
|
6402
|
+
"name": "support_qualifications_created_at_idx",
|
|
6403
|
+
"columns": [
|
|
6404
|
+
"created_at"
|
|
6405
|
+
]
|
|
6147
6406
|
}
|
|
6148
6407
|
],
|
|
6149
6408
|
"version": "a0c2e59b"
|
|
@@ -6245,7 +6504,12 @@
|
|
|
6245
6504
|
},
|
|
6246
6505
|
"tenantScoped": {
|
|
6247
6506
|
"mode": "optional"
|
|
6248
|
-
}
|
|
6507
|
+
},
|
|
6508
|
+
"conflictColumns": [
|
|
6509
|
+
"tenant_id",
|
|
6510
|
+
"slug",
|
|
6511
|
+
"context"
|
|
6512
|
+
]
|
|
6249
6513
|
},
|
|
6250
6514
|
"extends": "SmrtObject",
|
|
6251
6515
|
"exportName": "SupportAvailability",
|
|
@@ -6337,24 +6601,26 @@
|
|
|
6337
6601
|
}
|
|
6338
6602
|
},
|
|
6339
6603
|
"indexes": [
|
|
6340
|
-
{
|
|
6341
|
-
"name": "support_availability_windows_id_idx",
|
|
6342
|
-
"columns": [
|
|
6343
|
-
"id"
|
|
6344
|
-
]
|
|
6345
|
-
},
|
|
6346
6604
|
{
|
|
6347
6605
|
"name": "support_availability_windows_slug_context_idx",
|
|
6348
6606
|
"columns": [
|
|
6607
|
+
"tenant_id",
|
|
6349
6608
|
"slug",
|
|
6350
6609
|
"context"
|
|
6351
6610
|
],
|
|
6352
6611
|
"unique": true
|
|
6353
6612
|
},
|
|
6354
6613
|
{
|
|
6355
|
-
"name": "
|
|
6614
|
+
"name": "support_availability_windows_tenant_id_created_at_idx",
|
|
6615
|
+
"columns": [
|
|
6616
|
+
"tenant_id",
|
|
6617
|
+
"created_at"
|
|
6618
|
+
]
|
|
6619
|
+
},
|
|
6620
|
+
{
|
|
6621
|
+
"name": "support_availability_windows_specialist_id_idx",
|
|
6356
6622
|
"columns": [
|
|
6357
|
-
"
|
|
6623
|
+
"specialist_id"
|
|
6358
6624
|
]
|
|
6359
6625
|
}
|
|
6360
6626
|
],
|
|
@@ -6423,12 +6689,6 @@
|
|
|
6423
6689
|
}
|
|
6424
6690
|
},
|
|
6425
6691
|
"indexes": [
|
|
6426
|
-
{
|
|
6427
|
-
"name": "support_availability_windows_id_idx",
|
|
6428
|
-
"columns": [
|
|
6429
|
-
"id"
|
|
6430
|
-
]
|
|
6431
|
-
},
|
|
6432
6692
|
{
|
|
6433
6693
|
"name": "support_availability_windows_slug_context_idx",
|
|
6434
6694
|
"columns": [
|
|
@@ -6436,6 +6696,12 @@
|
|
|
6436
6696
|
"context"
|
|
6437
6697
|
],
|
|
6438
6698
|
"unique": true
|
|
6699
|
+
},
|
|
6700
|
+
{
|
|
6701
|
+
"name": "support_availability_windows_created_at_idx",
|
|
6702
|
+
"columns": [
|
|
6703
|
+
"created_at"
|
|
6704
|
+
]
|
|
6439
6705
|
}
|
|
6440
6706
|
],
|
|
6441
6707
|
"version": "acd97b79"
|
|
@@ -6661,12 +6927,6 @@
|
|
|
6661
6927
|
}
|
|
6662
6928
|
},
|
|
6663
6929
|
"indexes": [
|
|
6664
|
-
{
|
|
6665
|
-
"name": "support_work_links_id_idx",
|
|
6666
|
-
"columns": [
|
|
6667
|
-
"id"
|
|
6668
|
-
]
|
|
6669
|
-
},
|
|
6670
6930
|
{
|
|
6671
6931
|
"name": "support_work_links_case_id_target_type_idx",
|
|
6672
6932
|
"columns": [
|
|
@@ -6677,9 +6937,17 @@
|
|
|
6677
6937
|
"unique": true
|
|
6678
6938
|
},
|
|
6679
6939
|
{
|
|
6680
|
-
"name": "
|
|
6940
|
+
"name": "support_work_links_slug_context_idx",
|
|
6681
6941
|
"columns": [
|
|
6682
|
-
"
|
|
6942
|
+
"slug",
|
|
6943
|
+
"context"
|
|
6944
|
+
]
|
|
6945
|
+
},
|
|
6946
|
+
{
|
|
6947
|
+
"name": "support_work_links_tenant_id_created_at_idx",
|
|
6948
|
+
"columns": [
|
|
6949
|
+
"tenant_id",
|
|
6950
|
+
"created_at"
|
|
6683
6951
|
]
|
|
6684
6952
|
}
|
|
6685
6953
|
],
|
|
@@ -6748,12 +7016,6 @@
|
|
|
6748
7016
|
}
|
|
6749
7017
|
},
|
|
6750
7018
|
"indexes": [
|
|
6751
|
-
{
|
|
6752
|
-
"name": "support_work_links_id_idx",
|
|
6753
|
-
"columns": [
|
|
6754
|
-
"id"
|
|
6755
|
-
]
|
|
6756
|
-
},
|
|
6757
7019
|
{
|
|
6758
7020
|
"name": "support_work_links_slug_context_idx",
|
|
6759
7021
|
"columns": [
|
|
@@ -6761,6 +7023,12 @@
|
|
|
6761
7023
|
"context"
|
|
6762
7024
|
],
|
|
6763
7025
|
"unique": true
|
|
7026
|
+
},
|
|
7027
|
+
{
|
|
7028
|
+
"name": "support_work_links_created_at_idx",
|
|
7029
|
+
"columns": [
|
|
7030
|
+
"created_at"
|
|
7031
|
+
]
|
|
6764
7032
|
}
|
|
6765
7033
|
],
|
|
6766
7034
|
"version": "d1147c3e"
|