samva 0.19.0 → 0.20.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/dist/client/sdk.gen.d.ts +56 -14
- package/dist/client/sdk.gen.js +186 -34
- package/dist/client/types.gen.d.ts +325 -65
- package/dist/effect/campaigns.d.ts +35 -3
- package/dist/effect/contacts.d.ts +24 -4
- package/dist/effect/email.d.ts +22 -6
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/generated/campaigns.d.ts +73 -4
- package/dist/effect/generated/campaigns.js +18 -1
- package/dist/effect/generated/contacts.d.ts +131 -1
- package/dist/effect/generated/contacts.js +17 -2
- package/dist/effect/generated/email.d.ts +162 -1
- package/dist/effect/generated/email.js +31 -11
- package/dist/effect/generated/journeys.d.ts +13 -61
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/mailboxes.d.ts +274 -78
- package/dist/effect/generated/mailboxes.js +28 -20
- package/dist/effect/generated/messages.d.ts +4 -1
- package/dist/effect/generated/messages.js +2 -1
- package/dist/effect/generated/namespaces.d.ts +432 -2
- package/dist/effect/generated/namespaces.js +91 -4
- package/dist/effect/generated/shared.d.ts +34 -29
- package/dist/effect/generated/shared.js +25 -22
- package/dist/effect/generated/templates.d.ts +44 -1
- package/dist/effect/generated/templates.js +9 -3
- package/dist/effect/generated-metadata.d.ts +15 -4
- package/dist/effect/generated-metadata.js +3 -4
- package/dist/effect/index.js +2 -2
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/mailboxes.d.ts +11 -11
- package/dist/effect/messages.d.ts +3 -0
- package/dist/effect/namespaces.d.ts +29 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/templates.d.ts +12 -1
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +2 -12
- package/dist/promises/errors.gen.js +1 -26
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +15 -0
- package/dist/service-map.js +16 -0
- package/package.json +2 -2
|
@@ -18,6 +18,14 @@ export declare const CampaignDefinitionSummary: Schema.Struct<{
|
|
|
18
18
|
}>;
|
|
19
19
|
export type CampaignRunId = string & EffectBrand.Brand<"CampaignRunId">;
|
|
20
20
|
export declare const CampaignRunId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
21
|
+
export type CampaignRunSkippedReason = {
|
|
22
|
+
readonly reason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed";
|
|
23
|
+
readonly count: number;
|
|
24
|
+
};
|
|
25
|
+
export declare const CampaignRunSkippedReason: Schema.Struct<{
|
|
26
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
27
|
+
readonly count: Schema.Finite;
|
|
28
|
+
}>;
|
|
21
29
|
export type CampaignRecipientId = string & EffectBrand.Brand<"CampaignRecipientId">;
|
|
22
30
|
export declare const CampaignRecipientId: Schema.brand<Schema.String, "CampaignRecipientId">;
|
|
23
31
|
export type CampaignPolicy = {
|
|
@@ -72,7 +80,7 @@ export type CampaignRecipientPage = {
|
|
|
72
80
|
readonly status: "pending" | "dispatching" | "dispatched" | "failed" | "skipped";
|
|
73
81
|
readonly messageId: string | null;
|
|
74
82
|
readonly failureReason: string | null;
|
|
75
|
-
readonly skippedReason: "unsubscribed" | "blocked" | "suppressed" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | null;
|
|
83
|
+
readonly skippedReason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | null;
|
|
76
84
|
readonly createdAt: string;
|
|
77
85
|
readonly updatedAt: string;
|
|
78
86
|
}>;
|
|
@@ -86,7 +94,7 @@ export declare const CampaignRecipientPage: Schema.Struct<{
|
|
|
86
94
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
|
|
87
95
|
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
88
96
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
89
|
-
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
|
|
97
|
+
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
|
|
90
98
|
readonly createdAt: Schema.String;
|
|
91
99
|
readonly updatedAt: Schema.String;
|
|
92
100
|
}>>;
|
|
@@ -357,6 +365,7 @@ export type CampaignRun = {
|
|
|
357
365
|
readonly dispatchedCount: number;
|
|
358
366
|
readonly failedCount: number;
|
|
359
367
|
readonly skippedCount: number;
|
|
368
|
+
readonly skippedReasons: ReadonlyArray<CampaignRunSkippedReason>;
|
|
360
369
|
readonly estimatedCompletionAt: string | null;
|
|
361
370
|
readonly failureReason: string | null;
|
|
362
371
|
readonly holdReason: string | null;
|
|
@@ -424,6 +433,10 @@ export declare const CampaignRun: Schema.Struct<{
|
|
|
424
433
|
readonly dispatchedCount: Schema.Finite;
|
|
425
434
|
readonly failedCount: Schema.Finite;
|
|
426
435
|
readonly skippedCount: Schema.Finite;
|
|
436
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
437
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
438
|
+
readonly count: Schema.Finite;
|
|
439
|
+
}>>;
|
|
427
440
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
428
441
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
429
442
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -573,6 +586,10 @@ export declare const CampaignRunPage: Schema.Struct<{
|
|
|
573
586
|
readonly dispatchedCount: Schema.Finite;
|
|
574
587
|
readonly failedCount: Schema.Finite;
|
|
575
588
|
readonly skippedCount: Schema.Finite;
|
|
589
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
590
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
591
|
+
readonly count: Schema.Finite;
|
|
592
|
+
}>>;
|
|
576
593
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
577
594
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
578
595
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -648,6 +665,10 @@ export declare const CampaignRunAction: Schema.Struct<{
|
|
|
648
665
|
readonly dispatchedCount: Schema.Finite;
|
|
649
666
|
readonly failedCount: Schema.Finite;
|
|
650
667
|
readonly skippedCount: Schema.Finite;
|
|
668
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
669
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
670
|
+
readonly count: Schema.Finite;
|
|
671
|
+
}>>;
|
|
651
672
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
652
673
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
653
674
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1284,6 +1305,10 @@ export declare const CampaignsListRuns200: Schema.Struct<{
|
|
|
1284
1305
|
readonly dispatchedCount: Schema.Finite;
|
|
1285
1306
|
readonly failedCount: Schema.Finite;
|
|
1286
1307
|
readonly skippedCount: Schema.Finite;
|
|
1308
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
1309
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
1310
|
+
readonly count: Schema.Finite;
|
|
1311
|
+
}>>;
|
|
1287
1312
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1288
1313
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1289
1314
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1380,6 +1405,10 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
|
|
|
1380
1405
|
readonly dispatchedCount: Schema.Finite;
|
|
1381
1406
|
readonly failedCount: Schema.Finite;
|
|
1382
1407
|
readonly skippedCount: Schema.Finite;
|
|
1408
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
1409
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
1410
|
+
readonly count: Schema.Finite;
|
|
1411
|
+
}>>;
|
|
1383
1412
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1384
1413
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1385
1414
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1474,6 +1503,10 @@ export declare const CampaignsGetRun200: Schema.Struct<{
|
|
|
1474
1503
|
readonly dispatchedCount: Schema.Finite;
|
|
1475
1504
|
readonly failedCount: Schema.Finite;
|
|
1476
1505
|
readonly skippedCount: Schema.Finite;
|
|
1506
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
1507
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
1508
|
+
readonly count: Schema.Finite;
|
|
1509
|
+
}>>;
|
|
1477
1510
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1478
1511
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1479
1512
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1564,6 +1597,10 @@ export declare const CampaignsCancelRun200: Schema.Struct<{
|
|
|
1564
1597
|
readonly dispatchedCount: Schema.Finite;
|
|
1565
1598
|
readonly failedCount: Schema.Finite;
|
|
1566
1599
|
readonly skippedCount: Schema.Finite;
|
|
1600
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
1601
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
1602
|
+
readonly count: Schema.Finite;
|
|
1603
|
+
}>>;
|
|
1567
1604
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1568
1605
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1569
1606
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1659,6 +1696,10 @@ export declare const CampaignsPauseRun200: Schema.Struct<{
|
|
|
1659
1696
|
readonly dispatchedCount: Schema.Finite;
|
|
1660
1697
|
readonly failedCount: Schema.Finite;
|
|
1661
1698
|
readonly skippedCount: Schema.Finite;
|
|
1699
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
1700
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
1701
|
+
readonly count: Schema.Finite;
|
|
1702
|
+
}>>;
|
|
1662
1703
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1663
1704
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1664
1705
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1714,7 +1755,7 @@ export declare const CampaignsListRecipients200: Schema.Struct<{
|
|
|
1714
1755
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
|
|
1715
1756
|
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1716
1757
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1717
|
-
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
|
|
1758
|
+
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
|
|
1718
1759
|
readonly createdAt: Schema.String;
|
|
1719
1760
|
readonly updatedAt: Schema.String;
|
|
1720
1761
|
}>>;
|
|
@@ -1799,6 +1840,10 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
|
|
|
1799
1840
|
readonly dispatchedCount: Schema.Finite;
|
|
1800
1841
|
readonly failedCount: Schema.Finite;
|
|
1801
1842
|
readonly skippedCount: Schema.Finite;
|
|
1843
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
1844
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
1845
|
+
readonly count: Schema.Finite;
|
|
1846
|
+
}>>;
|
|
1802
1847
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1803
1848
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1804
1849
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2058,6 +2103,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2058
2103
|
readonly dispatchedCount: Schema.Finite;
|
|
2059
2104
|
readonly failedCount: Schema.Finite;
|
|
2060
2105
|
readonly skippedCount: Schema.Finite;
|
|
2106
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
2107
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
2108
|
+
readonly count: Schema.Finite;
|
|
2109
|
+
}>>;
|
|
2061
2110
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2062
2111
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2063
2112
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2553,6 +2602,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2553
2602
|
readonly dispatchedCount: Schema.Finite;
|
|
2554
2603
|
readonly failedCount: Schema.Finite;
|
|
2555
2604
|
readonly skippedCount: Schema.Finite;
|
|
2605
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
2606
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
2607
|
+
readonly count: Schema.Finite;
|
|
2608
|
+
}>>;
|
|
2556
2609
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2557
2610
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2558
2611
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2794,7 +2847,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2794
2847
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
|
|
2795
2848
|
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2796
2849
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2797
|
-
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
|
|
2850
|
+
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
|
|
2798
2851
|
readonly createdAt: Schema.String;
|
|
2799
2852
|
readonly updatedAt: Schema.String;
|
|
2800
2853
|
}>>;
|
|
@@ -2942,6 +2995,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2942
2995
|
readonly dispatchedCount: Schema.Finite;
|
|
2943
2996
|
readonly failedCount: Schema.Finite;
|
|
2944
2997
|
readonly skippedCount: Schema.Finite;
|
|
2998
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
2999
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
3000
|
+
readonly count: Schema.Finite;
|
|
3001
|
+
}>>;
|
|
2945
3002
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2946
3003
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2947
3004
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3095,6 +3152,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3095
3152
|
readonly dispatchedCount: Schema.Finite;
|
|
3096
3153
|
readonly failedCount: Schema.Finite;
|
|
3097
3154
|
readonly skippedCount: Schema.Finite;
|
|
3155
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
3156
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
3157
|
+
readonly count: Schema.Finite;
|
|
3158
|
+
}>>;
|
|
3098
3159
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3099
3160
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3100
3161
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3279,6 +3340,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3279
3340
|
readonly dispatchedCount: Schema.Finite;
|
|
3280
3341
|
readonly failedCount: Schema.Finite;
|
|
3281
3342
|
readonly skippedCount: Schema.Finite;
|
|
3343
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
3344
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
3345
|
+
readonly count: Schema.Finite;
|
|
3346
|
+
}>>;
|
|
3282
3347
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3283
3348
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3284
3349
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3463,6 +3528,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3463
3528
|
readonly dispatchedCount: Schema.Finite;
|
|
3464
3529
|
readonly failedCount: Schema.Finite;
|
|
3465
3530
|
readonly skippedCount: Schema.Finite;
|
|
3531
|
+
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
3532
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
|
|
3533
|
+
readonly count: Schema.Finite;
|
|
3534
|
+
}>>;
|
|
3466
3535
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3467
3536
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3468
3537
|
readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -20,6 +20,20 @@ const CampaignRunId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @_
|
|
|
20
20
|
expected: "a string matching the RegExp ^crun_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
21
21
|
identifier: "CampaignRunId"
|
|
22
22
|
})).pipe(Schema.brand("CampaignRunId"));
|
|
23
|
+
const CampaignRunSkippedReason = /* @__PURE__ */ Schema.Struct({
|
|
24
|
+
reason: Schema.Union([
|
|
25
|
+
Schema.Literal("unsubscribed"),
|
|
26
|
+
Schema.Literal("blocked"),
|
|
27
|
+
Schema.Literal("suppressed"),
|
|
28
|
+
Schema.Literal("opted_out"),
|
|
29
|
+
Schema.Literal("unreachable"),
|
|
30
|
+
Schema.Literal("no_identity"),
|
|
31
|
+
Schema.Literal("inactive"),
|
|
32
|
+
Schema.Literal("run_cancelled"),
|
|
33
|
+
Schema.Literal("run_failed")
|
|
34
|
+
]),
|
|
35
|
+
count: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
36
|
+
}).annotate({ identifier: "CampaignRunSkippedReason" });
|
|
23
37
|
const CampaignRecipientId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
24
38
|
expected: "a string matching the RegExp ^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
25
39
|
identifier: "CampaignRecipientId"
|
|
@@ -72,6 +86,8 @@ const CampaignRecipientPage = /* @__PURE__ */ Schema.Struct({
|
|
|
72
86
|
Schema.Literal("unsubscribed"),
|
|
73
87
|
Schema.Literal("blocked"),
|
|
74
88
|
Schema.Literal("suppressed"),
|
|
89
|
+
Schema.Literal("opted_out"),
|
|
90
|
+
Schema.Literal("unreachable"),
|
|
75
91
|
Schema.Literal("no_identity"),
|
|
76
92
|
Schema.Literal("inactive"),
|
|
77
93
|
Schema.Literal("run_cancelled"),
|
|
@@ -148,6 +164,7 @@ const CampaignRun = /* @__PURE__ */ Schema.Struct({
|
|
|
148
164
|
dispatchedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
149
165
|
failedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
150
166
|
skippedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
167
|
+
skippedReasons: Schema.Array(CampaignRunSkippedReason),
|
|
151
168
|
estimatedCompletionAt: Schema.Union([Schema.String, Schema.Null]),
|
|
152
169
|
failureReason: Schema.Union([Schema.String, Schema.Null]),
|
|
153
170
|
holdReason: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -486,6 +503,6 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
486
503
|
]
|
|
487
504
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.resumeRun").annotate(OpenApi.Summary, "Resume a campaign run").annotate(OpenApi.Description, "Resumes a paused campaign run and returns the updated run.")).annotate(OpenApi.Description, "Campaign drafts and scheduled campaign runs") {};
|
|
488
505
|
//#endregion
|
|
489
|
-
export { Campaign, CampaignAudience, CampaignContent, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignDefinitionSummary, CampaignId, CampaignLatestRun, CampaignListItem, CampaignPage, CampaignPolicy, CampaignRecipientId, CampaignRecipientPage, CampaignRun, CampaignRunAction, CampaignRunId, CampaignRunPage, CampaignsArchive200, CampaignsArchive401, CampaignsArchive403, CampaignsArchive404, CampaignsArchive409, CampaignsArchive422, CampaignsArchive500, CampaignsArchive504, CampaignsArchivePathParams, CampaignsCancelRun200, CampaignsCancelRun401, CampaignsCancelRun403, CampaignsCancelRun404, CampaignsCancelRun409, CampaignsCancelRun422, CampaignsCancelRun500, CampaignsCancelRun502, CampaignsCancelRun504, CampaignsCancelRunPathParams, CampaignsCreate201, CampaignsCreate401, CampaignsCreate403, CampaignsCreate422, CampaignsCreate500, CampaignsCreate504, CampaignsCreateRequestJson, CampaignsGet200, CampaignsGet401, CampaignsGet403, CampaignsGet404, CampaignsGet422, CampaignsGet500, CampaignsGet504, CampaignsGetPathParams, CampaignsGetRun200, CampaignsGetRun401, CampaignsGetRun403, CampaignsGetRun404, CampaignsGetRun422, CampaignsGetRun500, CampaignsGetRun504, CampaignsGetRunPathParams, CampaignsGroup, CampaignsList200, CampaignsList401, CampaignsList403, CampaignsList422, CampaignsList500, CampaignsList504, CampaignsListQuery, CampaignsListRecipients200, CampaignsListRecipients401, CampaignsListRecipients403, CampaignsListRecipients404, CampaignsListRecipients422, CampaignsListRecipients500, CampaignsListRecipients504, CampaignsListRecipientsPathParams, CampaignsListRecipientsQuery, CampaignsListRuns200, CampaignsListRuns401, CampaignsListRuns403, CampaignsListRuns404, CampaignsListRuns422, CampaignsListRuns500, CampaignsListRuns504, CampaignsListRunsPathParams, CampaignsListRunsQuery, CampaignsPauseRun200, CampaignsPauseRun401, CampaignsPauseRun403, CampaignsPauseRun404, CampaignsPauseRun409, CampaignsPauseRun422, CampaignsPauseRun500, CampaignsPauseRun502, CampaignsPauseRun504, CampaignsPauseRunPathParams, CampaignsResumeRun200, CampaignsResumeRun401, CampaignsResumeRun403, CampaignsResumeRun404, CampaignsResumeRun409, CampaignsResumeRun422, CampaignsResumeRun500, CampaignsResumeRun502, CampaignsResumeRun504, CampaignsResumeRunPathParams, CampaignsScheduleRun201, CampaignsScheduleRun401, CampaignsScheduleRun403, CampaignsScheduleRun404, CampaignsScheduleRun409, CampaignsScheduleRun422, CampaignsScheduleRun500, CampaignsScheduleRun502, CampaignsScheduleRun503, CampaignsScheduleRun504, CampaignsScheduleRunPathParams, CampaignsScheduleRunRequestJson, CampaignsUpdate200, CampaignsUpdate401, CampaignsUpdate403, CampaignsUpdate404, CampaignsUpdate409, CampaignsUpdate422, CampaignsUpdate500, CampaignsUpdate504, CampaignsUpdatePathParams, CampaignsUpdateRequestJson };
|
|
506
|
+
export { Campaign, CampaignAudience, CampaignContent, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignDefinitionSummary, CampaignId, CampaignLatestRun, CampaignListItem, CampaignPage, CampaignPolicy, CampaignRecipientId, CampaignRecipientPage, CampaignRun, CampaignRunAction, CampaignRunId, CampaignRunPage, CampaignRunSkippedReason, CampaignsArchive200, CampaignsArchive401, CampaignsArchive403, CampaignsArchive404, CampaignsArchive409, CampaignsArchive422, CampaignsArchive500, CampaignsArchive504, CampaignsArchivePathParams, CampaignsCancelRun200, CampaignsCancelRun401, CampaignsCancelRun403, CampaignsCancelRun404, CampaignsCancelRun409, CampaignsCancelRun422, CampaignsCancelRun500, CampaignsCancelRun502, CampaignsCancelRun504, CampaignsCancelRunPathParams, CampaignsCreate201, CampaignsCreate401, CampaignsCreate403, CampaignsCreate422, CampaignsCreate500, CampaignsCreate504, CampaignsCreateRequestJson, CampaignsGet200, CampaignsGet401, CampaignsGet403, CampaignsGet404, CampaignsGet422, CampaignsGet500, CampaignsGet504, CampaignsGetPathParams, CampaignsGetRun200, CampaignsGetRun401, CampaignsGetRun403, CampaignsGetRun404, CampaignsGetRun422, CampaignsGetRun500, CampaignsGetRun504, CampaignsGetRunPathParams, CampaignsGroup, CampaignsList200, CampaignsList401, CampaignsList403, CampaignsList422, CampaignsList500, CampaignsList504, CampaignsListQuery, CampaignsListRecipients200, CampaignsListRecipients401, CampaignsListRecipients403, CampaignsListRecipients404, CampaignsListRecipients422, CampaignsListRecipients500, CampaignsListRecipients504, CampaignsListRecipientsPathParams, CampaignsListRecipientsQuery, CampaignsListRuns200, CampaignsListRuns401, CampaignsListRuns403, CampaignsListRuns404, CampaignsListRuns422, CampaignsListRuns500, CampaignsListRuns504, CampaignsListRunsPathParams, CampaignsListRunsQuery, CampaignsPauseRun200, CampaignsPauseRun401, CampaignsPauseRun403, CampaignsPauseRun404, CampaignsPauseRun409, CampaignsPauseRun422, CampaignsPauseRun500, CampaignsPauseRun502, CampaignsPauseRun504, CampaignsPauseRunPathParams, CampaignsResumeRun200, CampaignsResumeRun401, CampaignsResumeRun403, CampaignsResumeRun404, CampaignsResumeRun409, CampaignsResumeRun422, CampaignsResumeRun500, CampaignsResumeRun502, CampaignsResumeRun504, CampaignsResumeRunPathParams, CampaignsScheduleRun201, CampaignsScheduleRun401, CampaignsScheduleRun403, CampaignsScheduleRun404, CampaignsScheduleRun409, CampaignsScheduleRun422, CampaignsScheduleRun500, CampaignsScheduleRun502, CampaignsScheduleRun503, CampaignsScheduleRun504, CampaignsScheduleRunPathParams, CampaignsScheduleRunRequestJson, CampaignsUpdate200, CampaignsUpdate401, CampaignsUpdate403, CampaignsUpdate404, CampaignsUpdate409, CampaignsUpdate422, CampaignsUpdate500, CampaignsUpdate504, CampaignsUpdatePathParams, CampaignsUpdateRequestJson };
|
|
490
507
|
|
|
491
508
|
//# sourceMappingURL=campaigns.js.map
|