@pushwoosh/rpc-v2-http-api-data 0.2.274 → 0.2.275

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.
Files changed (3) hide show
  1. package/data.js +12 -0
  2. package/package.json +1 -1
  3. package/presets.d.ts +11 -0
package/data.js CHANGED
@@ -28371,6 +28371,9 @@ export const data = {
28371
28371
  },
28372
28372
  "contentVersionNo": {
28373
28373
  "type": "number"
28374
+ },
28375
+ "adCampaignId": {
28376
+ "type": "number"
28374
28377
  }
28375
28378
  }
28376
28379
  },
@@ -28552,6 +28555,9 @@ export const data = {
28552
28555
  },
28553
28556
  "contentSource": {
28554
28557
  "type": "pushwoosh.rpc_v2.presets.ContentSource"
28558
+ },
28559
+ "adCampaignId": {
28560
+ "type": "number"
28555
28561
  }
28556
28562
  }
28557
28563
  },
@@ -28698,6 +28704,9 @@ export const data = {
28698
28704
  },
28699
28705
  "contentSource": {
28700
28706
  "type": "pushwoosh.rpc_v2.presets.ContentSource"
28707
+ },
28708
+ "adCampaignId": {
28709
+ "type": "number"
28701
28710
  }
28702
28711
  }
28703
28712
  },
@@ -28825,6 +28834,9 @@ export const data = {
28825
28834
  },
28826
28835
  "contentSource": {
28827
28836
  "type": "pushwoosh.rpc_v2.presets.ContentSource"
28837
+ },
28838
+ "adCampaignId": {
28839
+ "type": "number"
28828
28840
  }
28829
28841
  }
28830
28842
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.274",
3
+ "version": "0.2.275",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/presets.d.ts CHANGED
@@ -189,6 +189,11 @@ export type Preset = {
189
189
  * content approval.
190
190
  */
191
191
  contentVersionNo: number;
192
+ /**
193
+ * Ad campaign this preset sells: a send made from it carries the creative
194
+ * instead of its own content. 0 = an ordinary push.
195
+ */
196
+ adCampaignId: number;
192
197
  };
193
198
  export type ListPresetsResponse = {
194
199
  presets: Preset[];
@@ -272,6 +277,8 @@ export type CreatePresetRequest = {
272
277
  isV2?: boolean;
273
278
  /** The recipe the content was assembled from; unset stores a hand-written preset. */
274
279
  contentSource?: ContentSource;
280
+ /** Ad campaign the preset sells; 0 = an ordinary push. */
281
+ adCampaignId?: number;
275
282
  };
276
283
  export type CreatePresetResponse = {
277
284
  preset: Preset;
@@ -344,6 +351,8 @@ export type UpdatePresetRequest = {
344
351
  * an empty source clears it.
345
352
  */
346
353
  contentSource?: ContentSource;
354
+ /** Ad campaign the preset sells; absent leaves it as it is, 0 clears it. */
355
+ adCampaignId?: number;
347
356
  };
348
357
  export type UpdatePresetPartialRequest = {
349
358
  /** Preset code of the push preset to patch. */
@@ -406,6 +415,8 @@ export type UpdatePresetPartialRequest = {
406
415
  isV2?: boolean;
407
416
  /** The recipe the content was assembled from; unset leaves the stored one untouched. */
408
417
  contentSource?: ContentSource;
418
+ /** Ad campaign the preset sells; absent leaves it as it is, 0 clears it. */
419
+ adCampaignId?: number;
409
420
  };
410
421
  export type UpdatePresetResponse = {
411
422
  preset: Preset;