@pubnio/sdk 0.2.7 → 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 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.7",
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.7",
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.7",
6164
+ version: "0.2.9",
6138
6165
  description: "JavaScript and TypeScript client for the PubNio API",
6139
6166
  type: "module",
6140
6167
  exports: {