@joeygrable94/utm-src-pub-validators 0.0.85 → 0.0.87

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/dist/index.cjs CHANGED
@@ -674,6 +674,28 @@ var SGroupUserDocumentStatus = v12__namespace.object({
674
674
  groupUser: v12__namespace.nullable(IsValidReferenceDocumentId),
675
675
  scopes: IsValidGroupUserScopes
676
676
  });
677
+ var SQuerySortGroupDocuments = v12__namespace.optional(
678
+ v12__namespace.object({
679
+ key: v12__namespace.fallback(
680
+ v12__namespace.picklist([
681
+ "id",
682
+ "label",
683
+ "value",
684
+ "is_active",
685
+ "apply_value_to",
686
+ "apply_value_as",
687
+ "createdAt",
688
+ "updatedAt"
689
+ ]),
690
+ "label"
691
+ ),
692
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
693
+ }),
694
+ {
695
+ key: "label",
696
+ order: "ASC"
697
+ }
698
+ );
677
699
  var SQueryListGroupDocuments = v12__namespace.object({
678
700
  page: IsValidMinPage,
679
701
  size: v12__namespace.fallback(
@@ -693,21 +715,7 @@ var SQueryListGroupDocuments = v12__namespace.object({
693
715
  apply_value_to: v12__namespace.optional(IsValidApplyValueTo),
694
716
  apply_value_as: v12__namespace.optional(IsValidApplyValueAs),
695
717
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
696
- sort: v12__namespace.optional(
697
- v12__namespace.object({
698
- key: v12__namespace.picklist([
699
- "id",
700
- "label",
701
- "value",
702
- "is_active",
703
- "apply_value_to",
704
- "apply_value_as",
705
- "createdAt",
706
- "updatedAt"
707
- ]),
708
- order: v12__namespace.picklist(["asc", "desc"])
709
- })
710
- )
718
+ sort: SQuerySortGroupDocuments
711
719
  });
712
720
  var SCreateGroupDocument = v12__namespace.object({
713
721
  label: IsValidLabel,
@@ -872,6 +880,37 @@ var SStripeCheckoutCreateSession = v12__namespace.object({
872
880
  success_url: IsValidOrUndefinedUrlDestination,
873
881
  cancel_url: IsValidOrUndefinedUrlDestination
874
882
  });
883
+ var SQuerySortTrackingLinkDocuments = v12__namespace.optional(
884
+ v12__namespace.object({
885
+ key: v12__namespace.fallback(
886
+ v12__namespace.picklist([
887
+ "id",
888
+ "destination",
889
+ "is_active",
890
+ "protocol",
891
+ "domain",
892
+ "path",
893
+ "query",
894
+ "fragment",
895
+ "utm_source",
896
+ "utm_medium",
897
+ "utm_campaign",
898
+ "utm_creative_format",
899
+ "utm_content",
900
+ "utm_term",
901
+ "utm_id",
902
+ "createdAt",
903
+ "updatedAt"
904
+ ]),
905
+ "createdAt"
906
+ ),
907
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "DESC")
908
+ }),
909
+ {
910
+ key: "createdAt",
911
+ order: "DESC"
912
+ }
913
+ );
875
914
  var SQueryListTrackingLinkDocuments = v12__namespace.object({
876
915
  documentId: IsValidReferenceDocumentId,
877
916
  page: IsValidMinPage,
@@ -902,30 +941,7 @@ var SQueryListTrackingLinkDocuments = v12__namespace.object({
902
941
  utm_id: v12__namespace.optional(IsValidUrlUtmId),
903
942
  group: v12__namespace.optional(IsValidReferenceDocumentId),
904
943
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
905
- sort: v12__namespace.optional(
906
- v12__namespace.object({
907
- key: v12__namespace.picklist([
908
- "id",
909
- "destination",
910
- "is_active",
911
- "protocol",
912
- "domain",
913
- "path",
914
- "query",
915
- "fragment",
916
- "utm_source",
917
- "utm_medium",
918
- "utm_campaign",
919
- "utm_creative_format",
920
- "utm_content",
921
- "utm_term",
922
- "utm_id",
923
- "createdAt",
924
- "updatedAt"
925
- ]),
926
- order: v12__namespace.picklist(["asc", "desc"])
927
- })
928
- )
944
+ sort: SQuerySortTrackingLinkDocuments
929
945
  });
930
946
  var SCreateTrackingLinkDocument = v12__namespace.object({
931
947
  group: IsValidReferenceDocumentId,
@@ -1115,6 +1131,27 @@ var SUpdateUserLimitationsDocument = v12__namespace.object({
1115
1131
  limit_creative_format_variants: IsValidOrUndefinedUserLimitationNumber,
1116
1132
  limit_terms: IsValidOrUndefinedUserLimitationNumber
1117
1133
  });
1134
+ var SQuerySortUserDocuments = v12__namespace.optional(
1135
+ v12__namespace.object({
1136
+ key: v12__namespace.fallback(
1137
+ v12__namespace.picklist([
1138
+ "id",
1139
+ "email",
1140
+ "username",
1141
+ "confirmed",
1142
+ "blocked",
1143
+ "createdAt",
1144
+ "updatedAt"
1145
+ ]),
1146
+ "createdAt"
1147
+ ),
1148
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "DESC")
1149
+ }),
1150
+ {
1151
+ key: "createdAt",
1152
+ order: "DESC"
1153
+ }
1154
+ );
1118
1155
  var SQueryListUserDocuments = v12__namespace.object({
1119
1156
  page: IsValidMinPage,
1120
1157
  size: v12__namespace.fallback(
@@ -1132,20 +1169,7 @@ var SQueryListUserDocuments = v12__namespace.object({
1132
1169
  username: v12__namespace.optional(IsValidUsername),
1133
1170
  confirmed: v12__namespace.optional(IsValidIsActive),
1134
1171
  blocked: v12__namespace.optional(IsValidIsActive),
1135
- sort: v12__namespace.optional(
1136
- v12__namespace.object({
1137
- key: v12__namespace.picklist([
1138
- "id",
1139
- "email",
1140
- "username",
1141
- "confirmed",
1142
- "blocked",
1143
- "createdAt",
1144
- "updatedAt"
1145
- ]),
1146
- order: v12__namespace.picklist(["asc", "desc"])
1147
- })
1148
- )
1172
+ sort: SQuerySortUserDocuments
1149
1173
  });
1150
1174
  var SQueryListUserDocumentsByIdentifier = v12__namespace.object({
1151
1175
  identifier: v12__namespace.pipe(v12__namespace.string(), v12__namespace.maxLength(255)),
@@ -1168,6 +1192,27 @@ var SReadUserDocumentById = v12__namespace.object({
1168
1192
  var SReadUserDocumentByDocumentId = v12__namespace.object({
1169
1193
  documentId: IsValidReferenceDocumentId
1170
1194
  });
1195
+ var SQuerySortCampaignIdDocuments = v12__namespace.optional(
1196
+ v12__namespace.object({
1197
+ key: v12__namespace.fallback(
1198
+ v12__namespace.picklist([
1199
+ "id",
1200
+ "cost",
1201
+ "label",
1202
+ "value",
1203
+ "is_active",
1204
+ "createdAt",
1205
+ "updatedAt"
1206
+ ]),
1207
+ "label"
1208
+ ),
1209
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
1210
+ }),
1211
+ {
1212
+ key: "label",
1213
+ order: "ASC"
1214
+ }
1215
+ );
1171
1216
  var SQueryListCampaignIdDocuments = v12__namespace.object({
1172
1217
  documentId: IsValidReferenceDocumentId,
1173
1218
  page: IsValidMinPage,
@@ -1190,12 +1235,7 @@ var SQueryListCampaignIdDocuments = v12__namespace.object({
1190
1235
  is_active: v12__namespace.optional(IsValidIsActive),
1191
1236
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1192
1237
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1193
- sort: v12__namespace.optional(
1194
- v12__namespace.object({
1195
- key: v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1196
- order: v12__namespace.picklist(["asc", "desc"])
1197
- })
1198
- )
1238
+ sort: SQuerySortCampaignIdDocuments
1199
1239
  });
1200
1240
  var SCreateCampaignIdDocument = v12__namespace.object({
1201
1241
  group: IsValidReferenceDocumentId,
@@ -1244,6 +1284,19 @@ var SUpdateCampaignIdDocumentRequest = v12__namespace.union([
1244
1284
  var SDeleteCampaignIdDocument = v12__namespace.object({
1245
1285
  documentId: IsValidReferenceDocumentId
1246
1286
  });
1287
+ var SQuerySortCampaignKeyDocuments = v12__namespace.optional(
1288
+ v12__namespace.object({
1289
+ key: v12__namespace.fallback(
1290
+ v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1291
+ "label"
1292
+ ),
1293
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
1294
+ }),
1295
+ {
1296
+ key: "label",
1297
+ order: "ASC"
1298
+ }
1299
+ );
1247
1300
  var SQueryListCampaignKeyDocuments = v12__namespace.object({
1248
1301
  documentId: IsValidReferenceDocumentId,
1249
1302
  page: IsValidMinPage,
@@ -1263,12 +1316,7 @@ var SQueryListCampaignKeyDocuments = v12__namespace.object({
1263
1316
  is_active: v12__namespace.optional(IsValidIsActive),
1264
1317
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1265
1318
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1266
- sort: v12__namespace.optional(
1267
- v12__namespace.object({
1268
- key: v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1269
- order: v12__namespace.picklist(["asc", "desc"])
1270
- })
1271
- )
1319
+ sort: SQuerySortCampaignKeyDocuments
1272
1320
  });
1273
1321
  var SCreateCampaignKeyDocument = v12__namespace.object({
1274
1322
  group: IsValidReferenceDocumentId,
@@ -1315,6 +1363,19 @@ var SUpdateCampaignKeyDocumentRequest = v12__namespace.union([
1315
1363
  var SDeleteCampaignKeyDocument = v12__namespace.object({
1316
1364
  documentId: IsValidReferenceDocumentId
1317
1365
  });
1366
+ var SQuerySortCampaignPhaseDocuments = v12__namespace.optional(
1367
+ v12__namespace.object({
1368
+ key: v12__namespace.fallback(
1369
+ v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1370
+ "label"
1371
+ ),
1372
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
1373
+ }),
1374
+ {
1375
+ key: "label",
1376
+ order: "ASC"
1377
+ }
1378
+ );
1318
1379
  var SQueryListCampaignPhaseDocuments = v12__namespace.object({
1319
1380
  documentId: IsValidReferenceDocumentId,
1320
1381
  page: IsValidMinPage,
@@ -1334,12 +1395,7 @@ var SQueryListCampaignPhaseDocuments = v12__namespace.object({
1334
1395
  is_active: v12__namespace.optional(IsValidIsActive),
1335
1396
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1336
1397
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1337
- sort: v12__namespace.optional(
1338
- v12__namespace.object({
1339
- key: v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1340
- order: v12__namespace.picklist(["asc", "desc"])
1341
- })
1342
- )
1398
+ sort: SQuerySortCampaignPhaseDocuments
1343
1399
  });
1344
1400
  var SCreateCampaignPhaseDocument = v12__namespace.object({
1345
1401
  group: IsValidReferenceDocumentId,
@@ -1386,6 +1442,19 @@ var SUpdateCampaignPhaseDocumentRequest = v12__namespace.union([
1386
1442
  var SDeleteCampaignPhaseDocument = v12__namespace.object({
1387
1443
  documentId: IsValidReferenceDocumentId
1388
1444
  });
1445
+ var SQuerySortCampaignProductDocuments = v12__namespace.optional(
1446
+ v12__namespace.object({
1447
+ key: v12__namespace.fallback(
1448
+ v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1449
+ "label"
1450
+ ),
1451
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
1452
+ }),
1453
+ {
1454
+ key: "label",
1455
+ order: "ASC"
1456
+ }
1457
+ );
1389
1458
  var SQueryListCampaignProductDocuments = v12__namespace.object({
1390
1459
  documentId: IsValidReferenceDocumentId,
1391
1460
  page: IsValidMinPage,
@@ -1405,12 +1474,7 @@ var SQueryListCampaignProductDocuments = v12__namespace.object({
1405
1474
  is_active: v12__namespace.optional(IsValidIsActive),
1406
1475
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1407
1476
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1408
- sort: v12__namespace.optional(
1409
- v12__namespace.object({
1410
- key: v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1411
- order: v12__namespace.picklist(["asc", "desc"])
1412
- })
1413
- )
1477
+ sort: SQuerySortCampaignProductDocuments
1414
1478
  });
1415
1479
  var SCreateCampaignProductDocument = v12__namespace.object({
1416
1480
  group: IsValidReferenceDocumentId,
@@ -1457,6 +1521,19 @@ var SUpdateCampaignProductDocumentRequest = v12__namespace.union([
1457
1521
  var SDeleteCampaignProductDocument = v12__namespace.object({
1458
1522
  documentId: IsValidReferenceDocumentId
1459
1523
  });
1524
+ var SQuerySortCampaignTargetDocuments = v12__namespace.optional(
1525
+ v12__namespace.object({
1526
+ key: v12__namespace.fallback(
1527
+ v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1528
+ "label"
1529
+ ),
1530
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
1531
+ }),
1532
+ {
1533
+ key: "label",
1534
+ order: "ASC"
1535
+ }
1536
+ );
1460
1537
  var SQueryListCampaignTargetDocuments = v12__namespace.object({
1461
1538
  documentId: IsValidReferenceDocumentId,
1462
1539
  page: IsValidMinPage,
@@ -1476,12 +1553,7 @@ var SQueryListCampaignTargetDocuments = v12__namespace.object({
1476
1553
  is_active: v12__namespace.optional(IsValidIsActive),
1477
1554
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1478
1555
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1479
- sort: v12__namespace.optional(
1480
- v12__namespace.object({
1481
- key: v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1482
- order: v12__namespace.picklist(["asc", "desc"])
1483
- })
1484
- )
1556
+ sort: SQuerySortCampaignTargetDocuments
1485
1557
  });
1486
1558
  var SCreateCampaignTargetDocument = v12__namespace.object({
1487
1559
  group: IsValidReferenceDocumentId,
@@ -1528,6 +1600,19 @@ var SUpdateCampaignTargetDocumentRequest = v12__namespace.union([
1528
1600
  var SDeleteCampaignTargetDocument = v12__namespace.object({
1529
1601
  documentId: IsValidReferenceDocumentId
1530
1602
  });
1603
+ var SQuerySortContentDocuments = v12__namespace.optional(
1604
+ v12__namespace.object({
1605
+ key: v12__namespace.fallback(
1606
+ v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1607
+ "label"
1608
+ ),
1609
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
1610
+ }),
1611
+ {
1612
+ key: "label",
1613
+ order: "ASC"
1614
+ }
1615
+ );
1531
1616
  var SQueryListContentDocuments = v12__namespace.object({
1532
1617
  documentId: IsValidReferenceDocumentId,
1533
1618
  page: IsValidMinPage,
@@ -1547,12 +1632,7 @@ var SQueryListContentDocuments = v12__namespace.object({
1547
1632
  is_active: v12__namespace.optional(IsValidIsActive),
1548
1633
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1549
1634
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1550
- sort: v12__namespace.optional(
1551
- v12__namespace.object({
1552
- key: v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1553
- order: v12__namespace.picklist(["asc", "desc"])
1554
- })
1555
- )
1635
+ sort: SQuerySortContentDocuments
1556
1636
  });
1557
1637
  var SCreateContentDocument = v12__namespace.object({
1558
1638
  group: IsValidReferenceDocumentId,
@@ -1599,6 +1679,19 @@ var SUpdateContentDocumentRequest = v12__namespace.union([
1599
1679
  var SDeleteContentDocument = v12__namespace.object({
1600
1680
  documentId: IsValidReferenceDocumentId
1601
1681
  });
1682
+ var SQuerySortCreativeFormatVariantDocuments = v12__namespace.optional(
1683
+ v12__namespace.object({
1684
+ key: v12__namespace.fallback(
1685
+ v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1686
+ "label"
1687
+ ),
1688
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
1689
+ }),
1690
+ {
1691
+ key: "label",
1692
+ order: "ASC"
1693
+ }
1694
+ );
1602
1695
  var SQueryListCreativeFormatVariantDocuments = v12__namespace.object({
1603
1696
  documentId: IsValidReferenceDocumentId,
1604
1697
  page: IsValidMinPage,
@@ -1618,12 +1711,7 @@ var SQueryListCreativeFormatVariantDocuments = v12__namespace.object({
1618
1711
  is_active: v12__namespace.optional(IsValidIsActive),
1619
1712
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1620
1713
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1621
- sort: v12__namespace.optional(
1622
- v12__namespace.object({
1623
- key: v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1624
- order: v12__namespace.picklist(["asc", "desc"])
1625
- })
1626
- )
1714
+ sort: SQuerySortCreativeFormatVariantDocuments
1627
1715
  });
1628
1716
  var SCreateCreativeFormatVariantDocument = v12__namespace.object({
1629
1717
  group: IsValidReferenceDocumentId,
@@ -1670,6 +1758,19 @@ var SUpdateCreativeFormatVariantDocumentRequest = v12__namespace.union([
1670
1758
  var SDeleteCreativeFormatVariantDocument = v12__namespace.object({
1671
1759
  documentId: IsValidReferenceDocumentId
1672
1760
  });
1761
+ var SQuerySortCreativeFormatDocuments = v12__namespace.optional(
1762
+ v12__namespace.object({
1763
+ key: v12__namespace.fallback(
1764
+ v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1765
+ "label"
1766
+ ),
1767
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
1768
+ }),
1769
+ {
1770
+ key: "label",
1771
+ order: "ASC"
1772
+ }
1773
+ );
1673
1774
  var SQueryListCreativeFormatDocuments = v12__namespace.object({
1674
1775
  documentId: IsValidReferenceDocumentId,
1675
1776
  page: IsValidMinPage,
@@ -1689,12 +1790,7 @@ var SQueryListCreativeFormatDocuments = v12__namespace.object({
1689
1790
  is_active: v12__namespace.optional(IsValidIsActive),
1690
1791
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1691
1792
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1692
- sort: v12__namespace.optional(
1693
- v12__namespace.object({
1694
- key: v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1695
- order: v12__namespace.picklist(["asc", "desc"])
1696
- })
1697
- )
1793
+ sort: SQuerySortCreativeFormatDocuments
1698
1794
  });
1699
1795
  var SCreateCreativeFormatDocument = v12__namespace.object({
1700
1796
  group: IsValidReferenceDocumentId,
@@ -1741,6 +1837,19 @@ var SUpdateCreativeFormatDocumentRequest = v12__namespace.union([
1741
1837
  var SDeleteCreativeFormatDocument = v12__namespace.object({
1742
1838
  documentId: IsValidReferenceDocumentId
1743
1839
  });
1840
+ var SQuerySortMediumDocuments = v12__namespace.optional(
1841
+ v12__namespace.object({
1842
+ key: v12__namespace.fallback(
1843
+ v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1844
+ "label"
1845
+ ),
1846
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
1847
+ }),
1848
+ {
1849
+ key: "label",
1850
+ order: "ASC"
1851
+ }
1852
+ );
1744
1853
  var SQueryListMediumDocuments = v12__namespace.object({
1745
1854
  documentId: IsValidReferenceDocumentId,
1746
1855
  page: IsValidMinPage,
@@ -1760,12 +1869,7 @@ var SQueryListMediumDocuments = v12__namespace.object({
1760
1869
  is_active: v12__namespace.optional(IsValidIsActive),
1761
1870
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1762
1871
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1763
- sort: v12__namespace.optional(
1764
- v12__namespace.object({
1765
- key: v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1766
- order: v12__namespace.picklist(["asc", "desc"])
1767
- })
1768
- )
1872
+ sort: SQuerySortMediumDocuments
1769
1873
  });
1770
1874
  var SCreateMediumDocument = v12__namespace.object({
1771
1875
  group: IsValidReferenceDocumentId,
@@ -1812,6 +1916,19 @@ var SUpdateMediumDocumentRequest = v12__namespace.union([
1812
1916
  var SDeleteMediumDocument = v12__namespace.object({
1813
1917
  documentId: IsValidReferenceDocumentId
1814
1918
  });
1919
+ var SQuerySortSourceDocuments = v12__namespace.optional(
1920
+ v12__namespace.object({
1921
+ key: v12__namespace.fallback(
1922
+ v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1923
+ "label"
1924
+ ),
1925
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
1926
+ }),
1927
+ {
1928
+ key: "label",
1929
+ order: "ASC"
1930
+ }
1931
+ );
1815
1932
  var SQueryListSourceDocuments = v12__namespace.object({
1816
1933
  documentId: IsValidReferenceDocumentId,
1817
1934
  page: IsValidMinPage,
@@ -1831,12 +1948,7 @@ var SQueryListSourceDocuments = v12__namespace.object({
1831
1948
  is_active: v12__namespace.optional(IsValidIsActive),
1832
1949
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1833
1950
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1834
- sort: v12__namespace.optional(
1835
- v12__namespace.object({
1836
- key: v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1837
- order: v12__namespace.picklist(["asc", "desc"])
1838
- })
1839
- )
1951
+ sort: SQuerySortSourceDocuments
1840
1952
  });
1841
1953
  var SCreateSourceDocument = v12__namespace.object({
1842
1954
  group: IsValidReferenceDocumentId,
@@ -1883,6 +1995,19 @@ var SUpdateSourceDocumentRequest = v12__namespace.union([
1883
1995
  var SDeleteSourceDocument = v12__namespace.object({
1884
1996
  documentId: IsValidReferenceDocumentId
1885
1997
  });
1998
+ var SQuerySortTermDocuments = v12__namespace.optional(
1999
+ v12__namespace.object({
2000
+ key: v12__namespace.fallback(
2001
+ v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
2002
+ "label"
2003
+ ),
2004
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
2005
+ }),
2006
+ {
2007
+ key: "label",
2008
+ order: "ASC"
2009
+ }
2010
+ );
1886
2011
  var SQueryListTermDocuments = v12__namespace.object({
1887
2012
  documentId: IsValidReferenceDocumentId,
1888
2013
  page: IsValidMinPage,
@@ -1902,12 +2027,7 @@ var SQueryListTermDocuments = v12__namespace.object({
1902
2027
  is_active: v12__namespace.optional(IsValidIsActive),
1903
2028
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1904
2029
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1905
- sort: v12__namespace.optional(
1906
- v12__namespace.object({
1907
- key: v12__namespace.picklist(["id", "label", "value", "is_active", "createdAt", "updatedAt"]),
1908
- order: v12__namespace.picklist(["asc", "desc"])
1909
- })
1910
- )
2030
+ sort: SQuerySortTermDocuments
1911
2031
  });
1912
2032
  var SCreateTermDocument = v12__namespace.object({
1913
2033
  group: IsValidReferenceDocumentId,
@@ -1954,6 +2074,19 @@ var SUpdateTermDocumentRequest = v12__namespace.union([
1954
2074
  var SDeleteTermDocument = v12__namespace.object({
1955
2075
  documentId: IsValidReferenceDocumentId
1956
2076
  });
2077
+ var SQuerySortWebsiteDocuments = v12__namespace.optional(
2078
+ v12__namespace.object({
2079
+ key: v12__namespace.fallback(
2080
+ v12__namespace.picklist(["id", "domain", "is_active", "is_secure", "createdAt", "updatedAt"]),
2081
+ "domain"
2082
+ ),
2083
+ order: v12__namespace.fallback(v12__namespace.picklist(["ASC", "DESC"]), "ASC")
2084
+ }),
2085
+ {
2086
+ key: "domain",
2087
+ order: "ASC"
2088
+ }
2089
+ );
1957
2090
  var SQueryListWebsiteDocuments = v12__namespace.object({
1958
2091
  documentId: IsValidReferenceDocumentId,
1959
2092
  page: IsValidMinPage,
@@ -1973,19 +2106,7 @@ var SQueryListWebsiteDocuments = v12__namespace.object({
1973
2106
  is_secure: v12__namespace.optional(IsValidIsSecure),
1974
2107
  group: v12__namespace.optional(IsValidReferenceDocumentId),
1975
2108
  creator: v12__namespace.optional(IsValidReferenceDocumentId),
1976
- sort: v12__namespace.optional(
1977
- v12__namespace.object({
1978
- key: v12__namespace.picklist([
1979
- "id",
1980
- "domain",
1981
- "is_active",
1982
- "is_secure",
1983
- "createdAt",
1984
- "updatedAt"
1985
- ]),
1986
- order: v12__namespace.picklist(["asc", "desc"])
1987
- })
1988
- )
2109
+ sort: SQuerySortWebsiteDocuments
1989
2110
  });
1990
2111
  var SCreateWebsiteDocument = v12__namespace.object({
1991
2112
  group: IsValidReferenceDocumentId,
@@ -3259,6 +3380,14 @@ function datePlusDays(today, days = 30) {
3259
3380
  date2.setHours(23, 59, 59, 999);
3260
3381
  return date2;
3261
3382
  }
3383
+
3384
+ // src/utilities/strapi-responses.ts
3385
+ function isStrapiAttributeError(result) {
3386
+ return result.error.details.errors.length > 0;
3387
+ }
3388
+ function isStrapiStandardError(result) {
3389
+ return "error" in result && "details" in result.error && typeof result.error.details === "object" && result.error.details !== null && "errors" in result.error.details && result.error.details.errors !== void 0;
3390
+ }
3262
3391
  function validateAndClean(schema, input) {
3263
3392
  var _a, _b;
3264
3393
  try {
@@ -3608,6 +3737,21 @@ exports.SQueryListUserDocuments = SQueryListUserDocuments;
3608
3737
  exports.SQueryListUserDocumentsByIdentifier = SQueryListUserDocumentsByIdentifier;
3609
3738
  exports.SQueryListUserLimitationDocuments = SQueryListUserLimitationDocuments;
3610
3739
  exports.SQueryListWebsiteDocuments = SQueryListWebsiteDocuments;
3740
+ exports.SQuerySortCampaignIdDocuments = SQuerySortCampaignIdDocuments;
3741
+ exports.SQuerySortCampaignKeyDocuments = SQuerySortCampaignKeyDocuments;
3742
+ exports.SQuerySortCampaignPhaseDocuments = SQuerySortCampaignPhaseDocuments;
3743
+ exports.SQuerySortCampaignProductDocuments = SQuerySortCampaignProductDocuments;
3744
+ exports.SQuerySortCampaignTargetDocuments = SQuerySortCampaignTargetDocuments;
3745
+ exports.SQuerySortContentDocuments = SQuerySortContentDocuments;
3746
+ exports.SQuerySortCreativeFormatDocuments = SQuerySortCreativeFormatDocuments;
3747
+ exports.SQuerySortCreativeFormatVariantDocuments = SQuerySortCreativeFormatVariantDocuments;
3748
+ exports.SQuerySortGroupDocuments = SQuerySortGroupDocuments;
3749
+ exports.SQuerySortMediumDocuments = SQuerySortMediumDocuments;
3750
+ exports.SQuerySortSourceDocuments = SQuerySortSourceDocuments;
3751
+ exports.SQuerySortTermDocuments = SQuerySortTermDocuments;
3752
+ exports.SQuerySortTrackingLinkDocuments = SQuerySortTrackingLinkDocuments;
3753
+ exports.SQuerySortUserDocuments = SQuerySortUserDocuments;
3754
+ exports.SQuerySortWebsiteDocuments = SQuerySortWebsiteDocuments;
3611
3755
  exports.SReadCampaignIdDocumentByDocumentId = SReadCampaignIdDocumentByDocumentId;
3612
3756
  exports.SReadCampaignIdDocumentById = SReadCampaignIdDocumentById;
3613
3757
  exports.SReadCampaignKeyDocumentByDocumentId = SReadCampaignKeyDocumentByDocumentId;
@@ -3818,6 +3962,8 @@ exports.WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT = WEBSITE_PAGINATION_DEFAULT_SIZE_
3818
3962
  exports.WEBSITE_PAGINATION_MAX_SIZE_LIMIT = WEBSITE_PAGINATION_MAX_SIZE_LIMIT;
3819
3963
  exports.datePlusDays = datePlusDays;
3820
3964
  exports.dateToday = dateToday;
3965
+ exports.isStrapiAttributeError = isStrapiAttributeError;
3966
+ exports.isStrapiStandardError = isStrapiStandardError;
3821
3967
  exports.isValidationFailure = isValidationFailure;
3822
3968
  exports.isValidationSuccess = isValidationSuccess;
3823
3969
  exports.omitUndefined = omitUndefined;