@pubnio/sdk 0.2.8 → 0.2.10
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 +41 -1
- package/dist/index.d.cts +56 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.js +41 -1
- package/dist/internal.cjs +41 -1
- package/dist/internal.js +41 -1
- package/dist/solid.cjs +41 -1
- package/dist/solid.js +41 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4425,6 +4425,19 @@ var WebhookEvent = import_effect27.Schema.Union([
|
|
|
4425
4425
|
targets: import_effect27.Schema.Array(import_effect27.Schema.Struct(scheduledTargetData))
|
|
4426
4426
|
})
|
|
4427
4427
|
}),
|
|
4428
|
+
import_effect27.Schema.Struct({
|
|
4429
|
+
...envelope,
|
|
4430
|
+
type: import_effect27.Schema.Literal("schedule.assignment.changed"),
|
|
4431
|
+
data: import_effect27.Schema.Struct({
|
|
4432
|
+
postId: PostId,
|
|
4433
|
+
targetId: TargetId,
|
|
4434
|
+
accountId: AccountId,
|
|
4435
|
+
attemptId: AttemptId,
|
|
4436
|
+
previousScheduledAt: import_effect27.Schema.NullOr(import_effect27.Schema.String),
|
|
4437
|
+
scheduledAt: import_effect27.Schema.NullOr(import_effect27.Schema.String),
|
|
4438
|
+
queueId: import_effect27.Schema.NullOr(QueueId)
|
|
4439
|
+
})
|
|
4440
|
+
}),
|
|
4428
4441
|
import_effect27.Schema.Struct({
|
|
4429
4442
|
...envelope,
|
|
4430
4443
|
type: import_effect27.Schema.Literal("post.published"),
|
|
@@ -4608,6 +4621,33 @@ var WebhookEvent = import_effect27.Schema.Union([
|
|
|
4608
4621
|
nextAction: import_effect27.Schema.String
|
|
4609
4622
|
})
|
|
4610
4623
|
}),
|
|
4624
|
+
import_effect27.Schema.Struct({
|
|
4625
|
+
...envelope,
|
|
4626
|
+
type: import_effect27.Schema.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4627
|
+
data: import_effect27.Schema.Struct({
|
|
4628
|
+
operationId: AdOperationId,
|
|
4629
|
+
accountId: AccountId,
|
|
4630
|
+
campaignId: AdCampaignId
|
|
4631
|
+
})
|
|
4632
|
+
}),
|
|
4633
|
+
import_effect27.Schema.Struct({
|
|
4634
|
+
...envelope,
|
|
4635
|
+
type: import_effect27.Schema.Literal("ads.budget.changed"),
|
|
4636
|
+
data: import_effect27.Schema.Union([
|
|
4637
|
+
import_effect27.Schema.Struct({
|
|
4638
|
+
operationId: AdOperationId,
|
|
4639
|
+
accountId: AccountId,
|
|
4640
|
+
level: import_effect27.Schema.Literal("campaign"),
|
|
4641
|
+
campaignId: AdCampaignId
|
|
4642
|
+
}),
|
|
4643
|
+
import_effect27.Schema.Struct({
|
|
4644
|
+
operationId: AdOperationId,
|
|
4645
|
+
accountId: AccountId,
|
|
4646
|
+
level: import_effect27.Schema.Literal("ad_group"),
|
|
4647
|
+
adGroupId: AdGroupId
|
|
4648
|
+
})
|
|
4649
|
+
])
|
|
4650
|
+
}),
|
|
4611
4651
|
import_effect27.Schema.Struct({
|
|
4612
4652
|
...envelope,
|
|
4613
4653
|
type: import_effect27.Schema.Literal("ads.kill_switch.activated"),
|
|
@@ -6126,7 +6166,7 @@ var import_http = require("effect/http");
|
|
|
6126
6166
|
// package.json
|
|
6127
6167
|
var package_default = {
|
|
6128
6168
|
name: "@pubnio/sdk",
|
|
6129
|
-
version: "0.2.
|
|
6169
|
+
version: "0.2.10",
|
|
6130
6170
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6131
6171
|
type: "module",
|
|
6132
6172
|
exports: {
|
package/dist/index.d.cts
CHANGED
|
@@ -13529,6 +13529,24 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
13529
13529
|
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
13530
13530
|
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
13531
13531
|
}>,
|
|
13532
|
+
Schema.Struct<{
|
|
13533
|
+
readonly type: Schema.Literal<"schedule.assignment.changed">;
|
|
13534
|
+
readonly data: Schema.Struct<{
|
|
13535
|
+
readonly postId: Schema.brand<Schema.String, "PostId">;
|
|
13536
|
+
readonly targetId: Schema.brand<Schema.String, "TargetId">;
|
|
13537
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
13538
|
+
readonly attemptId: Schema.brand<Schema.String, "AttemptId">;
|
|
13539
|
+
readonly previousScheduledAt: Schema.NullOr<Schema.String>;
|
|
13540
|
+
readonly scheduledAt: Schema.NullOr<Schema.String>;
|
|
13541
|
+
/** The queue that now holds the target; null for an explicit time. */
|
|
13542
|
+
readonly queueId: Schema.NullOr<Schema.String>;
|
|
13543
|
+
}>;
|
|
13544
|
+
readonly id: Schema.String;
|
|
13545
|
+
readonly version: Schema.Literal<1>;
|
|
13546
|
+
readonly timestamp: Schema.String;
|
|
13547
|
+
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
13548
|
+
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
13549
|
+
}>,
|
|
13532
13550
|
Schema.Struct<{
|
|
13533
13551
|
readonly type: Schema.Literal<"post.published">;
|
|
13534
13552
|
readonly data: Schema.Struct<{
|
|
@@ -14441,6 +14459,44 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
14441
14459
|
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14442
14460
|
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14443
14461
|
}>,
|
|
14462
|
+
Schema.Struct<{
|
|
14463
|
+
readonly type: Schema.Literals<readonly [
|
|
14464
|
+
"ads.campaign.activated",
|
|
14465
|
+
"ads.campaign.paused"
|
|
14466
|
+
]>;
|
|
14467
|
+
readonly data: Schema.Struct<{
|
|
14468
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14469
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14470
|
+
readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
|
|
14471
|
+
}>;
|
|
14472
|
+
readonly id: Schema.String;
|
|
14473
|
+
readonly version: Schema.Literal<1>;
|
|
14474
|
+
readonly timestamp: Schema.String;
|
|
14475
|
+
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14476
|
+
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14477
|
+
}>,
|
|
14478
|
+
Schema.Struct<{
|
|
14479
|
+
readonly type: Schema.Literal<"ads.budget.changed">;
|
|
14480
|
+
readonly data: Schema.Union<readonly [
|
|
14481
|
+
Schema.Struct<{
|
|
14482
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14483
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14484
|
+
readonly level: Schema.Literal<"campaign">;
|
|
14485
|
+
readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
|
|
14486
|
+
}>,
|
|
14487
|
+
Schema.Struct<{
|
|
14488
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14489
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14490
|
+
readonly level: Schema.Literal<"ad_group">;
|
|
14491
|
+
readonly adGroupId: Schema.brand<Schema.String, "AdGroupId">;
|
|
14492
|
+
}>
|
|
14493
|
+
]>;
|
|
14494
|
+
readonly id: Schema.String;
|
|
14495
|
+
readonly version: Schema.Literal<1>;
|
|
14496
|
+
readonly timestamp: Schema.String;
|
|
14497
|
+
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14498
|
+
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14499
|
+
}>,
|
|
14444
14500
|
Schema.Struct<{
|
|
14445
14501
|
readonly type: Schema.Literal<"ads.kill_switch.activated">;
|
|
14446
14502
|
readonly data: Schema.Struct<{
|
package/dist/index.d.ts
CHANGED
|
@@ -13529,6 +13529,24 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
13529
13529
|
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
13530
13530
|
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
13531
13531
|
}>,
|
|
13532
|
+
Schema.Struct<{
|
|
13533
|
+
readonly type: Schema.Literal<"schedule.assignment.changed">;
|
|
13534
|
+
readonly data: Schema.Struct<{
|
|
13535
|
+
readonly postId: Schema.brand<Schema.String, "PostId">;
|
|
13536
|
+
readonly targetId: Schema.brand<Schema.String, "TargetId">;
|
|
13537
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
13538
|
+
readonly attemptId: Schema.brand<Schema.String, "AttemptId">;
|
|
13539
|
+
readonly previousScheduledAt: Schema.NullOr<Schema.String>;
|
|
13540
|
+
readonly scheduledAt: Schema.NullOr<Schema.String>;
|
|
13541
|
+
/** The queue that now holds the target; null for an explicit time. */
|
|
13542
|
+
readonly queueId: Schema.NullOr<Schema.String>;
|
|
13543
|
+
}>;
|
|
13544
|
+
readonly id: Schema.String;
|
|
13545
|
+
readonly version: Schema.Literal<1>;
|
|
13546
|
+
readonly timestamp: Schema.String;
|
|
13547
|
+
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
13548
|
+
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
13549
|
+
}>,
|
|
13532
13550
|
Schema.Struct<{
|
|
13533
13551
|
readonly type: Schema.Literal<"post.published">;
|
|
13534
13552
|
readonly data: Schema.Struct<{
|
|
@@ -14441,6 +14459,44 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
14441
14459
|
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14442
14460
|
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14443
14461
|
}>,
|
|
14462
|
+
Schema.Struct<{
|
|
14463
|
+
readonly type: Schema.Literals<readonly [
|
|
14464
|
+
"ads.campaign.activated",
|
|
14465
|
+
"ads.campaign.paused"
|
|
14466
|
+
]>;
|
|
14467
|
+
readonly data: Schema.Struct<{
|
|
14468
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14469
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14470
|
+
readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
|
|
14471
|
+
}>;
|
|
14472
|
+
readonly id: Schema.String;
|
|
14473
|
+
readonly version: Schema.Literal<1>;
|
|
14474
|
+
readonly timestamp: Schema.String;
|
|
14475
|
+
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14476
|
+
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14477
|
+
}>,
|
|
14478
|
+
Schema.Struct<{
|
|
14479
|
+
readonly type: Schema.Literal<"ads.budget.changed">;
|
|
14480
|
+
readonly data: Schema.Union<readonly [
|
|
14481
|
+
Schema.Struct<{
|
|
14482
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14483
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14484
|
+
readonly level: Schema.Literal<"campaign">;
|
|
14485
|
+
readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
|
|
14486
|
+
}>,
|
|
14487
|
+
Schema.Struct<{
|
|
14488
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14489
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14490
|
+
readonly level: Schema.Literal<"ad_group">;
|
|
14491
|
+
readonly adGroupId: Schema.brand<Schema.String, "AdGroupId">;
|
|
14492
|
+
}>
|
|
14493
|
+
]>;
|
|
14494
|
+
readonly id: Schema.String;
|
|
14495
|
+
readonly version: Schema.Literal<1>;
|
|
14496
|
+
readonly timestamp: Schema.String;
|
|
14497
|
+
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14498
|
+
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14499
|
+
}>,
|
|
14444
14500
|
Schema.Struct<{
|
|
14445
14501
|
readonly type: Schema.Literal<"ads.kill_switch.activated">;
|
|
14446
14502
|
readonly data: Schema.Struct<{
|
package/dist/index.js
CHANGED
|
@@ -4385,6 +4385,19 @@ var WebhookEvent = Schema27.Union([
|
|
|
4385
4385
|
targets: Schema27.Array(Schema27.Struct(scheduledTargetData))
|
|
4386
4386
|
})
|
|
4387
4387
|
}),
|
|
4388
|
+
Schema27.Struct({
|
|
4389
|
+
...envelope,
|
|
4390
|
+
type: Schema27.Literal("schedule.assignment.changed"),
|
|
4391
|
+
data: Schema27.Struct({
|
|
4392
|
+
postId: PostId,
|
|
4393
|
+
targetId: TargetId,
|
|
4394
|
+
accountId: AccountId,
|
|
4395
|
+
attemptId: AttemptId,
|
|
4396
|
+
previousScheduledAt: Schema27.NullOr(Schema27.String),
|
|
4397
|
+
scheduledAt: Schema27.NullOr(Schema27.String),
|
|
4398
|
+
queueId: Schema27.NullOr(QueueId)
|
|
4399
|
+
})
|
|
4400
|
+
}),
|
|
4388
4401
|
Schema27.Struct({
|
|
4389
4402
|
...envelope,
|
|
4390
4403
|
type: Schema27.Literal("post.published"),
|
|
@@ -4568,6 +4581,33 @@ var WebhookEvent = Schema27.Union([
|
|
|
4568
4581
|
nextAction: Schema27.String
|
|
4569
4582
|
})
|
|
4570
4583
|
}),
|
|
4584
|
+
Schema27.Struct({
|
|
4585
|
+
...envelope,
|
|
4586
|
+
type: Schema27.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4587
|
+
data: Schema27.Struct({
|
|
4588
|
+
operationId: AdOperationId,
|
|
4589
|
+
accountId: AccountId,
|
|
4590
|
+
campaignId: AdCampaignId
|
|
4591
|
+
})
|
|
4592
|
+
}),
|
|
4593
|
+
Schema27.Struct({
|
|
4594
|
+
...envelope,
|
|
4595
|
+
type: Schema27.Literal("ads.budget.changed"),
|
|
4596
|
+
data: Schema27.Union([
|
|
4597
|
+
Schema27.Struct({
|
|
4598
|
+
operationId: AdOperationId,
|
|
4599
|
+
accountId: AccountId,
|
|
4600
|
+
level: Schema27.Literal("campaign"),
|
|
4601
|
+
campaignId: AdCampaignId
|
|
4602
|
+
}),
|
|
4603
|
+
Schema27.Struct({
|
|
4604
|
+
operationId: AdOperationId,
|
|
4605
|
+
accountId: AccountId,
|
|
4606
|
+
level: Schema27.Literal("ad_group"),
|
|
4607
|
+
adGroupId: AdGroupId
|
|
4608
|
+
})
|
|
4609
|
+
])
|
|
4610
|
+
}),
|
|
4571
4611
|
Schema27.Struct({
|
|
4572
4612
|
...envelope,
|
|
4573
4613
|
type: Schema27.Literal("ads.kill_switch.activated"),
|
|
@@ -6086,7 +6126,7 @@ import { ProblemDetails } from "effect/http";
|
|
|
6086
6126
|
// package.json
|
|
6087
6127
|
var package_default = {
|
|
6088
6128
|
name: "@pubnio/sdk",
|
|
6089
|
-
version: "0.2.
|
|
6129
|
+
version: "0.2.10",
|
|
6090
6130
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6091
6131
|
type: "module",
|
|
6092
6132
|
exports: {
|
package/dist/internal.cjs
CHANGED
|
@@ -4433,6 +4433,19 @@ var WebhookEvent = import_effect27.Schema.Union([
|
|
|
4433
4433
|
targets: import_effect27.Schema.Array(import_effect27.Schema.Struct(scheduledTargetData))
|
|
4434
4434
|
})
|
|
4435
4435
|
}),
|
|
4436
|
+
import_effect27.Schema.Struct({
|
|
4437
|
+
...envelope,
|
|
4438
|
+
type: import_effect27.Schema.Literal("schedule.assignment.changed"),
|
|
4439
|
+
data: import_effect27.Schema.Struct({
|
|
4440
|
+
postId: PostId,
|
|
4441
|
+
targetId: TargetId,
|
|
4442
|
+
accountId: AccountId,
|
|
4443
|
+
attemptId: AttemptId,
|
|
4444
|
+
previousScheduledAt: import_effect27.Schema.NullOr(import_effect27.Schema.String),
|
|
4445
|
+
scheduledAt: import_effect27.Schema.NullOr(import_effect27.Schema.String),
|
|
4446
|
+
queueId: import_effect27.Schema.NullOr(QueueId)
|
|
4447
|
+
})
|
|
4448
|
+
}),
|
|
4436
4449
|
import_effect27.Schema.Struct({
|
|
4437
4450
|
...envelope,
|
|
4438
4451
|
type: import_effect27.Schema.Literal("post.published"),
|
|
@@ -4616,6 +4629,33 @@ var WebhookEvent = import_effect27.Schema.Union([
|
|
|
4616
4629
|
nextAction: import_effect27.Schema.String
|
|
4617
4630
|
})
|
|
4618
4631
|
}),
|
|
4632
|
+
import_effect27.Schema.Struct({
|
|
4633
|
+
...envelope,
|
|
4634
|
+
type: import_effect27.Schema.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4635
|
+
data: import_effect27.Schema.Struct({
|
|
4636
|
+
operationId: AdOperationId,
|
|
4637
|
+
accountId: AccountId,
|
|
4638
|
+
campaignId: AdCampaignId
|
|
4639
|
+
})
|
|
4640
|
+
}),
|
|
4641
|
+
import_effect27.Schema.Struct({
|
|
4642
|
+
...envelope,
|
|
4643
|
+
type: import_effect27.Schema.Literal("ads.budget.changed"),
|
|
4644
|
+
data: import_effect27.Schema.Union([
|
|
4645
|
+
import_effect27.Schema.Struct({
|
|
4646
|
+
operationId: AdOperationId,
|
|
4647
|
+
accountId: AccountId,
|
|
4648
|
+
level: import_effect27.Schema.Literal("campaign"),
|
|
4649
|
+
campaignId: AdCampaignId
|
|
4650
|
+
}),
|
|
4651
|
+
import_effect27.Schema.Struct({
|
|
4652
|
+
operationId: AdOperationId,
|
|
4653
|
+
accountId: AccountId,
|
|
4654
|
+
level: import_effect27.Schema.Literal("ad_group"),
|
|
4655
|
+
adGroupId: AdGroupId
|
|
4656
|
+
})
|
|
4657
|
+
])
|
|
4658
|
+
}),
|
|
4619
4659
|
import_effect27.Schema.Struct({
|
|
4620
4660
|
...envelope,
|
|
4621
4661
|
type: import_effect27.Schema.Literal("ads.kill_switch.activated"),
|
|
@@ -6134,7 +6174,7 @@ var import_http = require("effect/http");
|
|
|
6134
6174
|
// package.json
|
|
6135
6175
|
var package_default = {
|
|
6136
6176
|
name: "@pubnio/sdk",
|
|
6137
|
-
version: "0.2.
|
|
6177
|
+
version: "0.2.10",
|
|
6138
6178
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6139
6179
|
type: "module",
|
|
6140
6180
|
exports: {
|
package/dist/internal.js
CHANGED
|
@@ -4385,6 +4385,19 @@ var WebhookEvent = Schema27.Union([
|
|
|
4385
4385
|
targets: Schema27.Array(Schema27.Struct(scheduledTargetData))
|
|
4386
4386
|
})
|
|
4387
4387
|
}),
|
|
4388
|
+
Schema27.Struct({
|
|
4389
|
+
...envelope,
|
|
4390
|
+
type: Schema27.Literal("schedule.assignment.changed"),
|
|
4391
|
+
data: Schema27.Struct({
|
|
4392
|
+
postId: PostId,
|
|
4393
|
+
targetId: TargetId,
|
|
4394
|
+
accountId: AccountId,
|
|
4395
|
+
attemptId: AttemptId,
|
|
4396
|
+
previousScheduledAt: Schema27.NullOr(Schema27.String),
|
|
4397
|
+
scheduledAt: Schema27.NullOr(Schema27.String),
|
|
4398
|
+
queueId: Schema27.NullOr(QueueId)
|
|
4399
|
+
})
|
|
4400
|
+
}),
|
|
4388
4401
|
Schema27.Struct({
|
|
4389
4402
|
...envelope,
|
|
4390
4403
|
type: Schema27.Literal("post.published"),
|
|
@@ -4568,6 +4581,33 @@ var WebhookEvent = Schema27.Union([
|
|
|
4568
4581
|
nextAction: Schema27.String
|
|
4569
4582
|
})
|
|
4570
4583
|
}),
|
|
4584
|
+
Schema27.Struct({
|
|
4585
|
+
...envelope,
|
|
4586
|
+
type: Schema27.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4587
|
+
data: Schema27.Struct({
|
|
4588
|
+
operationId: AdOperationId,
|
|
4589
|
+
accountId: AccountId,
|
|
4590
|
+
campaignId: AdCampaignId
|
|
4591
|
+
})
|
|
4592
|
+
}),
|
|
4593
|
+
Schema27.Struct({
|
|
4594
|
+
...envelope,
|
|
4595
|
+
type: Schema27.Literal("ads.budget.changed"),
|
|
4596
|
+
data: Schema27.Union([
|
|
4597
|
+
Schema27.Struct({
|
|
4598
|
+
operationId: AdOperationId,
|
|
4599
|
+
accountId: AccountId,
|
|
4600
|
+
level: Schema27.Literal("campaign"),
|
|
4601
|
+
campaignId: AdCampaignId
|
|
4602
|
+
}),
|
|
4603
|
+
Schema27.Struct({
|
|
4604
|
+
operationId: AdOperationId,
|
|
4605
|
+
accountId: AccountId,
|
|
4606
|
+
level: Schema27.Literal("ad_group"),
|
|
4607
|
+
adGroupId: AdGroupId
|
|
4608
|
+
})
|
|
4609
|
+
])
|
|
4610
|
+
}),
|
|
4571
4611
|
Schema27.Struct({
|
|
4572
4612
|
...envelope,
|
|
4573
4613
|
type: Schema27.Literal("ads.kill_switch.activated"),
|
|
@@ -6086,7 +6126,7 @@ import { ProblemDetails } from "effect/http";
|
|
|
6086
6126
|
// package.json
|
|
6087
6127
|
var package_default = {
|
|
6088
6128
|
name: "@pubnio/sdk",
|
|
6089
|
-
version: "0.2.
|
|
6129
|
+
version: "0.2.10",
|
|
6090
6130
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6091
6131
|
type: "module",
|
|
6092
6132
|
exports: {
|
package/dist/solid.cjs
CHANGED
|
@@ -4582,6 +4582,19 @@ var WebhookEvent = import_effect27.Schema.Union([
|
|
|
4582
4582
|
targets: import_effect27.Schema.Array(import_effect27.Schema.Struct(scheduledTargetData))
|
|
4583
4583
|
})
|
|
4584
4584
|
}),
|
|
4585
|
+
import_effect27.Schema.Struct({
|
|
4586
|
+
...envelope,
|
|
4587
|
+
type: import_effect27.Schema.Literal("schedule.assignment.changed"),
|
|
4588
|
+
data: import_effect27.Schema.Struct({
|
|
4589
|
+
postId: PostId,
|
|
4590
|
+
targetId: TargetId,
|
|
4591
|
+
accountId: AccountId,
|
|
4592
|
+
attemptId: AttemptId,
|
|
4593
|
+
previousScheduledAt: import_effect27.Schema.NullOr(import_effect27.Schema.String),
|
|
4594
|
+
scheduledAt: import_effect27.Schema.NullOr(import_effect27.Schema.String),
|
|
4595
|
+
queueId: import_effect27.Schema.NullOr(QueueId)
|
|
4596
|
+
})
|
|
4597
|
+
}),
|
|
4585
4598
|
import_effect27.Schema.Struct({
|
|
4586
4599
|
...envelope,
|
|
4587
4600
|
type: import_effect27.Schema.Literal("post.published"),
|
|
@@ -4765,6 +4778,33 @@ var WebhookEvent = import_effect27.Schema.Union([
|
|
|
4765
4778
|
nextAction: import_effect27.Schema.String
|
|
4766
4779
|
})
|
|
4767
4780
|
}),
|
|
4781
|
+
import_effect27.Schema.Struct({
|
|
4782
|
+
...envelope,
|
|
4783
|
+
type: import_effect27.Schema.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4784
|
+
data: import_effect27.Schema.Struct({
|
|
4785
|
+
operationId: AdOperationId,
|
|
4786
|
+
accountId: AccountId,
|
|
4787
|
+
campaignId: AdCampaignId
|
|
4788
|
+
})
|
|
4789
|
+
}),
|
|
4790
|
+
import_effect27.Schema.Struct({
|
|
4791
|
+
...envelope,
|
|
4792
|
+
type: import_effect27.Schema.Literal("ads.budget.changed"),
|
|
4793
|
+
data: import_effect27.Schema.Union([
|
|
4794
|
+
import_effect27.Schema.Struct({
|
|
4795
|
+
operationId: AdOperationId,
|
|
4796
|
+
accountId: AccountId,
|
|
4797
|
+
level: import_effect27.Schema.Literal("campaign"),
|
|
4798
|
+
campaignId: AdCampaignId
|
|
4799
|
+
}),
|
|
4800
|
+
import_effect27.Schema.Struct({
|
|
4801
|
+
operationId: AdOperationId,
|
|
4802
|
+
accountId: AccountId,
|
|
4803
|
+
level: import_effect27.Schema.Literal("ad_group"),
|
|
4804
|
+
adGroupId: AdGroupId
|
|
4805
|
+
})
|
|
4806
|
+
])
|
|
4807
|
+
}),
|
|
4768
4808
|
import_effect27.Schema.Struct({
|
|
4769
4809
|
...envelope,
|
|
4770
4810
|
type: import_effect27.Schema.Literal("ads.kill_switch.activated"),
|
|
@@ -6283,7 +6323,7 @@ var import_http = require("effect/http");
|
|
|
6283
6323
|
// package.json
|
|
6284
6324
|
var package_default = {
|
|
6285
6325
|
name: "@pubnio/sdk",
|
|
6286
|
-
version: "0.2.
|
|
6326
|
+
version: "0.2.10",
|
|
6287
6327
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6288
6328
|
type: "module",
|
|
6289
6329
|
exports: {
|
package/dist/solid.js
CHANGED
|
@@ -4392,6 +4392,19 @@ var WebhookEvent = Schema27.Union([
|
|
|
4392
4392
|
targets: Schema27.Array(Schema27.Struct(scheduledTargetData))
|
|
4393
4393
|
})
|
|
4394
4394
|
}),
|
|
4395
|
+
Schema27.Struct({
|
|
4396
|
+
...envelope,
|
|
4397
|
+
type: Schema27.Literal("schedule.assignment.changed"),
|
|
4398
|
+
data: Schema27.Struct({
|
|
4399
|
+
postId: PostId,
|
|
4400
|
+
targetId: TargetId,
|
|
4401
|
+
accountId: AccountId,
|
|
4402
|
+
attemptId: AttemptId,
|
|
4403
|
+
previousScheduledAt: Schema27.NullOr(Schema27.String),
|
|
4404
|
+
scheduledAt: Schema27.NullOr(Schema27.String),
|
|
4405
|
+
queueId: Schema27.NullOr(QueueId)
|
|
4406
|
+
})
|
|
4407
|
+
}),
|
|
4395
4408
|
Schema27.Struct({
|
|
4396
4409
|
...envelope,
|
|
4397
4410
|
type: Schema27.Literal("post.published"),
|
|
@@ -4575,6 +4588,33 @@ var WebhookEvent = Schema27.Union([
|
|
|
4575
4588
|
nextAction: Schema27.String
|
|
4576
4589
|
})
|
|
4577
4590
|
}),
|
|
4591
|
+
Schema27.Struct({
|
|
4592
|
+
...envelope,
|
|
4593
|
+
type: Schema27.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4594
|
+
data: Schema27.Struct({
|
|
4595
|
+
operationId: AdOperationId,
|
|
4596
|
+
accountId: AccountId,
|
|
4597
|
+
campaignId: AdCampaignId
|
|
4598
|
+
})
|
|
4599
|
+
}),
|
|
4600
|
+
Schema27.Struct({
|
|
4601
|
+
...envelope,
|
|
4602
|
+
type: Schema27.Literal("ads.budget.changed"),
|
|
4603
|
+
data: Schema27.Union([
|
|
4604
|
+
Schema27.Struct({
|
|
4605
|
+
operationId: AdOperationId,
|
|
4606
|
+
accountId: AccountId,
|
|
4607
|
+
level: Schema27.Literal("campaign"),
|
|
4608
|
+
campaignId: AdCampaignId
|
|
4609
|
+
}),
|
|
4610
|
+
Schema27.Struct({
|
|
4611
|
+
operationId: AdOperationId,
|
|
4612
|
+
accountId: AccountId,
|
|
4613
|
+
level: Schema27.Literal("ad_group"),
|
|
4614
|
+
adGroupId: AdGroupId
|
|
4615
|
+
})
|
|
4616
|
+
])
|
|
4617
|
+
}),
|
|
4578
4618
|
Schema27.Struct({
|
|
4579
4619
|
...envelope,
|
|
4580
4620
|
type: Schema27.Literal("ads.kill_switch.activated"),
|
|
@@ -6093,7 +6133,7 @@ import { ProblemDetails } from "effect/http";
|
|
|
6093
6133
|
// package.json
|
|
6094
6134
|
var package_default = {
|
|
6095
6135
|
name: "@pubnio/sdk",
|
|
6096
|
-
version: "0.2.
|
|
6136
|
+
version: "0.2.10",
|
|
6097
6137
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6098
6138
|
type: "module",
|
|
6099
6139
|
exports: {
|