@pubnio/sdk 0.2.8 → 0.2.9
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 +28 -1
- package/dist/index.d.cts +38 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +28 -1
- package/dist/internal.cjs +28 -1
- package/dist/internal.js +28 -1
- package/dist/solid.cjs +28 -1
- package/dist/solid.js +28 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4608,6 +4608,33 @@ var WebhookEvent = import_effect27.Schema.Union([
|
|
|
4608
4608
|
nextAction: import_effect27.Schema.String
|
|
4609
4609
|
})
|
|
4610
4610
|
}),
|
|
4611
|
+
import_effect27.Schema.Struct({
|
|
4612
|
+
...envelope,
|
|
4613
|
+
type: import_effect27.Schema.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4614
|
+
data: import_effect27.Schema.Struct({
|
|
4615
|
+
operationId: AdOperationId,
|
|
4616
|
+
accountId: AccountId,
|
|
4617
|
+
campaignId: AdCampaignId
|
|
4618
|
+
})
|
|
4619
|
+
}),
|
|
4620
|
+
import_effect27.Schema.Struct({
|
|
4621
|
+
...envelope,
|
|
4622
|
+
type: import_effect27.Schema.Literal("ads.budget.changed"),
|
|
4623
|
+
data: import_effect27.Schema.Union([
|
|
4624
|
+
import_effect27.Schema.Struct({
|
|
4625
|
+
operationId: AdOperationId,
|
|
4626
|
+
accountId: AccountId,
|
|
4627
|
+
level: import_effect27.Schema.Literal("campaign"),
|
|
4628
|
+
campaignId: AdCampaignId
|
|
4629
|
+
}),
|
|
4630
|
+
import_effect27.Schema.Struct({
|
|
4631
|
+
operationId: AdOperationId,
|
|
4632
|
+
accountId: AccountId,
|
|
4633
|
+
level: import_effect27.Schema.Literal("ad_group"),
|
|
4634
|
+
adGroupId: AdGroupId
|
|
4635
|
+
})
|
|
4636
|
+
])
|
|
4637
|
+
}),
|
|
4611
4638
|
import_effect27.Schema.Struct({
|
|
4612
4639
|
...envelope,
|
|
4613
4640
|
type: import_effect27.Schema.Literal("ads.kill_switch.activated"),
|
|
@@ -6126,7 +6153,7 @@ var import_http = require("effect/http");
|
|
|
6126
6153
|
// package.json
|
|
6127
6154
|
var package_default = {
|
|
6128
6155
|
name: "@pubnio/sdk",
|
|
6129
|
-
version: "0.2.
|
|
6156
|
+
version: "0.2.9",
|
|
6130
6157
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6131
6158
|
type: "module",
|
|
6132
6159
|
exports: {
|
package/dist/index.d.cts
CHANGED
|
@@ -14441,6 +14441,44 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
14441
14441
|
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14442
14442
|
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14443
14443
|
}>,
|
|
14444
|
+
Schema.Struct<{
|
|
14445
|
+
readonly type: Schema.Literals<readonly [
|
|
14446
|
+
"ads.campaign.activated",
|
|
14447
|
+
"ads.campaign.paused"
|
|
14448
|
+
]>;
|
|
14449
|
+
readonly data: Schema.Struct<{
|
|
14450
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14451
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14452
|
+
readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
|
|
14453
|
+
}>;
|
|
14454
|
+
readonly id: Schema.String;
|
|
14455
|
+
readonly version: Schema.Literal<1>;
|
|
14456
|
+
readonly timestamp: Schema.String;
|
|
14457
|
+
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14458
|
+
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14459
|
+
}>,
|
|
14460
|
+
Schema.Struct<{
|
|
14461
|
+
readonly type: Schema.Literal<"ads.budget.changed">;
|
|
14462
|
+
readonly data: Schema.Union<readonly [
|
|
14463
|
+
Schema.Struct<{
|
|
14464
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14465
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14466
|
+
readonly level: Schema.Literal<"campaign">;
|
|
14467
|
+
readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
|
|
14468
|
+
}>,
|
|
14469
|
+
Schema.Struct<{
|
|
14470
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14471
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14472
|
+
readonly level: Schema.Literal<"ad_group">;
|
|
14473
|
+
readonly adGroupId: Schema.brand<Schema.String, "AdGroupId">;
|
|
14474
|
+
}>
|
|
14475
|
+
]>;
|
|
14476
|
+
readonly id: Schema.String;
|
|
14477
|
+
readonly version: Schema.Literal<1>;
|
|
14478
|
+
readonly timestamp: Schema.String;
|
|
14479
|
+
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14480
|
+
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14481
|
+
}>,
|
|
14444
14482
|
Schema.Struct<{
|
|
14445
14483
|
readonly type: Schema.Literal<"ads.kill_switch.activated">;
|
|
14446
14484
|
readonly data: Schema.Struct<{
|
package/dist/index.d.ts
CHANGED
|
@@ -14441,6 +14441,44 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
14441
14441
|
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14442
14442
|
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14443
14443
|
}>,
|
|
14444
|
+
Schema.Struct<{
|
|
14445
|
+
readonly type: Schema.Literals<readonly [
|
|
14446
|
+
"ads.campaign.activated",
|
|
14447
|
+
"ads.campaign.paused"
|
|
14448
|
+
]>;
|
|
14449
|
+
readonly data: Schema.Struct<{
|
|
14450
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14451
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14452
|
+
readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
|
|
14453
|
+
}>;
|
|
14454
|
+
readonly id: Schema.String;
|
|
14455
|
+
readonly version: Schema.Literal<1>;
|
|
14456
|
+
readonly timestamp: Schema.String;
|
|
14457
|
+
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14458
|
+
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14459
|
+
}>,
|
|
14460
|
+
Schema.Struct<{
|
|
14461
|
+
readonly type: Schema.Literal<"ads.budget.changed">;
|
|
14462
|
+
readonly data: Schema.Union<readonly [
|
|
14463
|
+
Schema.Struct<{
|
|
14464
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14465
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14466
|
+
readonly level: Schema.Literal<"campaign">;
|
|
14467
|
+
readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
|
|
14468
|
+
}>,
|
|
14469
|
+
Schema.Struct<{
|
|
14470
|
+
readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
|
|
14471
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
14472
|
+
readonly level: Schema.Literal<"ad_group">;
|
|
14473
|
+
readonly adGroupId: Schema.brand<Schema.String, "AdGroupId">;
|
|
14474
|
+
}>
|
|
14475
|
+
]>;
|
|
14476
|
+
readonly id: Schema.String;
|
|
14477
|
+
readonly version: Schema.Literal<1>;
|
|
14478
|
+
readonly timestamp: Schema.String;
|
|
14479
|
+
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
14480
|
+
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
14481
|
+
}>,
|
|
14444
14482
|
Schema.Struct<{
|
|
14445
14483
|
readonly type: Schema.Literal<"ads.kill_switch.activated">;
|
|
14446
14484
|
readonly data: Schema.Struct<{
|
package/dist/index.js
CHANGED
|
@@ -4568,6 +4568,33 @@ var WebhookEvent = Schema27.Union([
|
|
|
4568
4568
|
nextAction: Schema27.String
|
|
4569
4569
|
})
|
|
4570
4570
|
}),
|
|
4571
|
+
Schema27.Struct({
|
|
4572
|
+
...envelope,
|
|
4573
|
+
type: Schema27.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4574
|
+
data: Schema27.Struct({
|
|
4575
|
+
operationId: AdOperationId,
|
|
4576
|
+
accountId: AccountId,
|
|
4577
|
+
campaignId: AdCampaignId
|
|
4578
|
+
})
|
|
4579
|
+
}),
|
|
4580
|
+
Schema27.Struct({
|
|
4581
|
+
...envelope,
|
|
4582
|
+
type: Schema27.Literal("ads.budget.changed"),
|
|
4583
|
+
data: Schema27.Union([
|
|
4584
|
+
Schema27.Struct({
|
|
4585
|
+
operationId: AdOperationId,
|
|
4586
|
+
accountId: AccountId,
|
|
4587
|
+
level: Schema27.Literal("campaign"),
|
|
4588
|
+
campaignId: AdCampaignId
|
|
4589
|
+
}),
|
|
4590
|
+
Schema27.Struct({
|
|
4591
|
+
operationId: AdOperationId,
|
|
4592
|
+
accountId: AccountId,
|
|
4593
|
+
level: Schema27.Literal("ad_group"),
|
|
4594
|
+
adGroupId: AdGroupId
|
|
4595
|
+
})
|
|
4596
|
+
])
|
|
4597
|
+
}),
|
|
4571
4598
|
Schema27.Struct({
|
|
4572
4599
|
...envelope,
|
|
4573
4600
|
type: Schema27.Literal("ads.kill_switch.activated"),
|
|
@@ -6086,7 +6113,7 @@ import { ProblemDetails } from "effect/http";
|
|
|
6086
6113
|
// package.json
|
|
6087
6114
|
var package_default = {
|
|
6088
6115
|
name: "@pubnio/sdk",
|
|
6089
|
-
version: "0.2.
|
|
6116
|
+
version: "0.2.9",
|
|
6090
6117
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6091
6118
|
type: "module",
|
|
6092
6119
|
exports: {
|
package/dist/internal.cjs
CHANGED
|
@@ -4616,6 +4616,33 @@ var WebhookEvent = import_effect27.Schema.Union([
|
|
|
4616
4616
|
nextAction: import_effect27.Schema.String
|
|
4617
4617
|
})
|
|
4618
4618
|
}),
|
|
4619
|
+
import_effect27.Schema.Struct({
|
|
4620
|
+
...envelope,
|
|
4621
|
+
type: import_effect27.Schema.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4622
|
+
data: import_effect27.Schema.Struct({
|
|
4623
|
+
operationId: AdOperationId,
|
|
4624
|
+
accountId: AccountId,
|
|
4625
|
+
campaignId: AdCampaignId
|
|
4626
|
+
})
|
|
4627
|
+
}),
|
|
4628
|
+
import_effect27.Schema.Struct({
|
|
4629
|
+
...envelope,
|
|
4630
|
+
type: import_effect27.Schema.Literal("ads.budget.changed"),
|
|
4631
|
+
data: import_effect27.Schema.Union([
|
|
4632
|
+
import_effect27.Schema.Struct({
|
|
4633
|
+
operationId: AdOperationId,
|
|
4634
|
+
accountId: AccountId,
|
|
4635
|
+
level: import_effect27.Schema.Literal("campaign"),
|
|
4636
|
+
campaignId: AdCampaignId
|
|
4637
|
+
}),
|
|
4638
|
+
import_effect27.Schema.Struct({
|
|
4639
|
+
operationId: AdOperationId,
|
|
4640
|
+
accountId: AccountId,
|
|
4641
|
+
level: import_effect27.Schema.Literal("ad_group"),
|
|
4642
|
+
adGroupId: AdGroupId
|
|
4643
|
+
})
|
|
4644
|
+
])
|
|
4645
|
+
}),
|
|
4619
4646
|
import_effect27.Schema.Struct({
|
|
4620
4647
|
...envelope,
|
|
4621
4648
|
type: import_effect27.Schema.Literal("ads.kill_switch.activated"),
|
|
@@ -6134,7 +6161,7 @@ var import_http = require("effect/http");
|
|
|
6134
6161
|
// package.json
|
|
6135
6162
|
var package_default = {
|
|
6136
6163
|
name: "@pubnio/sdk",
|
|
6137
|
-
version: "0.2.
|
|
6164
|
+
version: "0.2.9",
|
|
6138
6165
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6139
6166
|
type: "module",
|
|
6140
6167
|
exports: {
|
package/dist/internal.js
CHANGED
|
@@ -4568,6 +4568,33 @@ var WebhookEvent = Schema27.Union([
|
|
|
4568
4568
|
nextAction: Schema27.String
|
|
4569
4569
|
})
|
|
4570
4570
|
}),
|
|
4571
|
+
Schema27.Struct({
|
|
4572
|
+
...envelope,
|
|
4573
|
+
type: Schema27.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4574
|
+
data: Schema27.Struct({
|
|
4575
|
+
operationId: AdOperationId,
|
|
4576
|
+
accountId: AccountId,
|
|
4577
|
+
campaignId: AdCampaignId
|
|
4578
|
+
})
|
|
4579
|
+
}),
|
|
4580
|
+
Schema27.Struct({
|
|
4581
|
+
...envelope,
|
|
4582
|
+
type: Schema27.Literal("ads.budget.changed"),
|
|
4583
|
+
data: Schema27.Union([
|
|
4584
|
+
Schema27.Struct({
|
|
4585
|
+
operationId: AdOperationId,
|
|
4586
|
+
accountId: AccountId,
|
|
4587
|
+
level: Schema27.Literal("campaign"),
|
|
4588
|
+
campaignId: AdCampaignId
|
|
4589
|
+
}),
|
|
4590
|
+
Schema27.Struct({
|
|
4591
|
+
operationId: AdOperationId,
|
|
4592
|
+
accountId: AccountId,
|
|
4593
|
+
level: Schema27.Literal("ad_group"),
|
|
4594
|
+
adGroupId: AdGroupId
|
|
4595
|
+
})
|
|
4596
|
+
])
|
|
4597
|
+
}),
|
|
4571
4598
|
Schema27.Struct({
|
|
4572
4599
|
...envelope,
|
|
4573
4600
|
type: Schema27.Literal("ads.kill_switch.activated"),
|
|
@@ -6086,7 +6113,7 @@ import { ProblemDetails } from "effect/http";
|
|
|
6086
6113
|
// package.json
|
|
6087
6114
|
var package_default = {
|
|
6088
6115
|
name: "@pubnio/sdk",
|
|
6089
|
-
version: "0.2.
|
|
6116
|
+
version: "0.2.9",
|
|
6090
6117
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6091
6118
|
type: "module",
|
|
6092
6119
|
exports: {
|
package/dist/solid.cjs
CHANGED
|
@@ -4765,6 +4765,33 @@ var WebhookEvent = import_effect27.Schema.Union([
|
|
|
4765
4765
|
nextAction: import_effect27.Schema.String
|
|
4766
4766
|
})
|
|
4767
4767
|
}),
|
|
4768
|
+
import_effect27.Schema.Struct({
|
|
4769
|
+
...envelope,
|
|
4770
|
+
type: import_effect27.Schema.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4771
|
+
data: import_effect27.Schema.Struct({
|
|
4772
|
+
operationId: AdOperationId,
|
|
4773
|
+
accountId: AccountId,
|
|
4774
|
+
campaignId: AdCampaignId
|
|
4775
|
+
})
|
|
4776
|
+
}),
|
|
4777
|
+
import_effect27.Schema.Struct({
|
|
4778
|
+
...envelope,
|
|
4779
|
+
type: import_effect27.Schema.Literal("ads.budget.changed"),
|
|
4780
|
+
data: import_effect27.Schema.Union([
|
|
4781
|
+
import_effect27.Schema.Struct({
|
|
4782
|
+
operationId: AdOperationId,
|
|
4783
|
+
accountId: AccountId,
|
|
4784
|
+
level: import_effect27.Schema.Literal("campaign"),
|
|
4785
|
+
campaignId: AdCampaignId
|
|
4786
|
+
}),
|
|
4787
|
+
import_effect27.Schema.Struct({
|
|
4788
|
+
operationId: AdOperationId,
|
|
4789
|
+
accountId: AccountId,
|
|
4790
|
+
level: import_effect27.Schema.Literal("ad_group"),
|
|
4791
|
+
adGroupId: AdGroupId
|
|
4792
|
+
})
|
|
4793
|
+
])
|
|
4794
|
+
}),
|
|
4768
4795
|
import_effect27.Schema.Struct({
|
|
4769
4796
|
...envelope,
|
|
4770
4797
|
type: import_effect27.Schema.Literal("ads.kill_switch.activated"),
|
|
@@ -6283,7 +6310,7 @@ var import_http = require("effect/http");
|
|
|
6283
6310
|
// package.json
|
|
6284
6311
|
var package_default = {
|
|
6285
6312
|
name: "@pubnio/sdk",
|
|
6286
|
-
version: "0.2.
|
|
6313
|
+
version: "0.2.9",
|
|
6287
6314
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6288
6315
|
type: "module",
|
|
6289
6316
|
exports: {
|
package/dist/solid.js
CHANGED
|
@@ -4575,6 +4575,33 @@ var WebhookEvent = Schema27.Union([
|
|
|
4575
4575
|
nextAction: Schema27.String
|
|
4576
4576
|
})
|
|
4577
4577
|
}),
|
|
4578
|
+
Schema27.Struct({
|
|
4579
|
+
...envelope,
|
|
4580
|
+
type: Schema27.Literals(["ads.campaign.activated", "ads.campaign.paused"]),
|
|
4581
|
+
data: Schema27.Struct({
|
|
4582
|
+
operationId: AdOperationId,
|
|
4583
|
+
accountId: AccountId,
|
|
4584
|
+
campaignId: AdCampaignId
|
|
4585
|
+
})
|
|
4586
|
+
}),
|
|
4587
|
+
Schema27.Struct({
|
|
4588
|
+
...envelope,
|
|
4589
|
+
type: Schema27.Literal("ads.budget.changed"),
|
|
4590
|
+
data: Schema27.Union([
|
|
4591
|
+
Schema27.Struct({
|
|
4592
|
+
operationId: AdOperationId,
|
|
4593
|
+
accountId: AccountId,
|
|
4594
|
+
level: Schema27.Literal("campaign"),
|
|
4595
|
+
campaignId: AdCampaignId
|
|
4596
|
+
}),
|
|
4597
|
+
Schema27.Struct({
|
|
4598
|
+
operationId: AdOperationId,
|
|
4599
|
+
accountId: AccountId,
|
|
4600
|
+
level: Schema27.Literal("ad_group"),
|
|
4601
|
+
adGroupId: AdGroupId
|
|
4602
|
+
})
|
|
4603
|
+
])
|
|
4604
|
+
}),
|
|
4578
4605
|
Schema27.Struct({
|
|
4579
4606
|
...envelope,
|
|
4580
4607
|
type: Schema27.Literal("ads.kill_switch.activated"),
|
|
@@ -6093,7 +6120,7 @@ import { ProblemDetails } from "effect/http";
|
|
|
6093
6120
|
// package.json
|
|
6094
6121
|
var package_default = {
|
|
6095
6122
|
name: "@pubnio/sdk",
|
|
6096
|
-
version: "0.2.
|
|
6123
|
+
version: "0.2.9",
|
|
6097
6124
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6098
6125
|
type: "module",
|
|
6099
6126
|
exports: {
|