@getlatedev/node 0.2.1799 → 0.2.1801

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.
@@ -22311,6 +22311,49 @@ export type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campai
22311
22311
  */
22312
22312
  export type status60 = 'staged' | 'confirming' | 'confirmed' | 'failed';
22313
22313
 
22314
+ /**
22315
+ * A staged ad change as the list returns it: what it targets and who staged it, without the diff.
22316
+ */
22317
+ export type StagedAdChangeSummary = {
22318
+ /**
22319
+ * The change id, used in /v1/ads/changes/{changeId}.
22320
+ */
22321
+ id: string;
22322
+ /**
22323
+ * Which write was staged.
22324
+ */
22325
+ type: 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update' | 'ad_create' | 'campaign_create' | 'ad_set_create';
22326
+ /**
22327
+ * The ad platform of the object, as the write route names it.
22328
+ */
22329
+ platform: string;
22330
+ /**
22331
+ * The connected account the write goes through.
22332
+ */
22333
+ accountId: string;
22334
+ /**
22335
+ * The ad account id on the platform.
22336
+ */
22337
+ adAccountId: string;
22338
+ /**
22339
+ * The object the change applies to. Null for a create, whose object does not exist yet.
22340
+ */
22341
+ targetId: (string) | null;
22342
+ /**
22343
+ * The name of the object when the change was staged, or the name a create will give it. Null when it is not known.
22344
+ */
22345
+ targetName: (string) | null;
22346
+ /**
22347
+ * True when the change creates a new object.
22348
+ */
22349
+ creates: boolean;
22350
+ /**
22351
+ * The user who staged the change.
22352
+ */
22353
+ createdBy: string;
22354
+ createdAt: string;
22355
+ };
22356
+
22314
22357
  export type StoredEvent = {
22315
22358
  eventId?: string;
22316
22359
  /**
@@ -68634,6 +68677,29 @@ export type UndoAdRuleActivityResponse = ({
68634
68677
 
68635
68678
  export type UndoAdRuleActivityError = (ErrorResponse);
68636
68679
 
68680
+ export type ListAdChangesData = {
68681
+ query?: {
68682
+ /**
68683
+ * The `nextCursor` of the previous page, unchanged.
68684
+ */
68685
+ cursor?: string;
68686
+ /**
68687
+ * How many changes to return.
68688
+ */
68689
+ limit?: number;
68690
+ };
68691
+ };
68692
+
68693
+ export type ListAdChangesResponse = ({
68694
+ changes: Array<StagedAdChangeSummary>;
68695
+ /**
68696
+ * Pass it as `cursor` to read the next page. Null on the last page.
68697
+ */
68698
+ nextCursor: (string) | null;
68699
+ });
68700
+
68701
+ export type ListAdChangesError = (ErrorResponse);
68702
+
68637
68703
  export type GetAdChangeData = {
68638
68704
  path: {
68639
68705
  /**