@pushwoosh/rpc-gateway-journey-data 0.26.433 → 0.26.435

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/data.js CHANGED
@@ -334,6 +334,18 @@ export const data = {
334
334
  "response": "pushwoosh.cj.journey.GetEventsByApplicationCodesResponse",
335
335
  "method": "get",
336
336
  "path": "/api/v2/events"
337
+ },
338
+ "GetMetaAdAccounts": {
339
+ "request": "pushwoosh.cj.journey.GetMetaAdAccountsRequest",
340
+ "response": "pushwoosh.cj.journey.GetMetaAdAccountsResponse",
341
+ "method": "get",
342
+ "path": "/api/v2/meta/ad-accounts"
343
+ },
344
+ "GetMetaAudiences": {
345
+ "request": "pushwoosh.cj.journey.GetMetaAudiencesRequest",
346
+ "response": "pushwoosh.cj.journey.GetMetaAudiencesResponse",
347
+ "method": "get",
348
+ "path": "/api/v2/meta/ad-accounts/{ad_account_id}/audiences"
337
349
  }
338
350
  }
339
351
  },
@@ -628,6 +640,9 @@ export const data = {
628
640
  },
629
641
  "sendTelegram": {
630
642
  "type": "pushwoosh.cj.journey.PointStatSendTelegram"
643
+ },
644
+ "audienceSync": {
645
+ "type": "pushwoosh.cj.journey.PointStatAudienceSync"
631
646
  }
632
647
  },
633
648
  "oneofs": {
@@ -647,7 +662,8 @@ export const data = {
647
662
  "waitEvent",
648
663
  "sendLine",
649
664
  "sendKakao",
650
- "sendTelegram"
665
+ "sendTelegram",
666
+ "audienceSync"
651
667
  ]
652
668
  }
653
669
  }
@@ -868,6 +884,17 @@ export const data = {
868
884
  }
869
885
  }
870
886
  },
887
+ "pushwoosh.cj.journey.PointStatAudienceSync": {
888
+ "type": "I",
889
+ "fields": {
890
+ "synced": {
891
+ "type": "number"
892
+ },
893
+ "skipped": {
894
+ "type": "number"
895
+ }
896
+ }
897
+ },
871
898
  "pushwoosh.cj.journey.PointStatMessageBus": {
872
899
  "type": "I",
873
900
  "fields": {}
@@ -2033,7 +2060,8 @@ export const data = {
2033
2060
  "POINT_TYPE_WEBHOOK",
2034
2061
  "POINT_TYPE_START_BY_API",
2035
2062
  "POINT_TYPE_SEND_KAKAO",
2036
- "POINT_TYPE_SEND_TELEGRAM"
2063
+ "POINT_TYPE_SEND_TELEGRAM",
2064
+ "POINT_TYPE_AUDIENCE_SYNC"
2037
2065
  ]
2038
2066
  },
2039
2067
  "pushwoosh.cj.journey.Point": {
@@ -2128,6 +2156,9 @@ export const data = {
2128
2156
  },
2129
2157
  "sendTelegram": {
2130
2158
  "type": "pushwoosh.cj.journey.PointParamsSendTelegram"
2159
+ },
2160
+ "audienceSync": {
2161
+ "type": "pushwoosh.cj.journey.PointParamsAudienceSync"
2131
2162
  }
2132
2163
  },
2133
2164
  "oneofs": {
@@ -2153,7 +2184,8 @@ export const data = {
2153
2184
  "sendData",
2154
2185
  "sendLine",
2155
2186
  "sendKakao",
2156
- "sendTelegram"
2187
+ "sendTelegram",
2188
+ "audienceSync"
2157
2189
  ]
2158
2190
  }
2159
2191
  }
@@ -3598,6 +3630,34 @@ export const data = {
3598
3630
  }
3599
3631
  }
3600
3632
  },
3633
+ "pushwoosh.cj.journey.AudienceSyncAction": {
3634
+ "type": "E",
3635
+ "values": [
3636
+ "AUDIENCE_SYNC_ACTION_UNSPECIFIED",
3637
+ "AUDIENCE_SYNC_ACTION_ADD",
3638
+ "AUDIENCE_SYNC_ACTION_REMOVE"
3639
+ ]
3640
+ },
3641
+ "pushwoosh.cj.journey.PointParamsAudienceSync": {
3642
+ "type": "I",
3643
+ "fields": {
3644
+ "adAccountId": {
3645
+ "type": "string"
3646
+ },
3647
+ "adAccountName": {
3648
+ "type": "string"
3649
+ },
3650
+ "audienceId": {
3651
+ "type": "string"
3652
+ },
3653
+ "audienceName": {
3654
+ "type": "string"
3655
+ },
3656
+ "action": {
3657
+ "type": "pushwoosh.cj.journey.AudienceSyncAction"
3658
+ }
3659
+ }
3660
+ },
3601
3661
  "pushwoosh.cj.journey.PointParamsStartBySegment": {
3602
3662
  "type": "I",
3603
3663
  "fields": {
@@ -5519,6 +5579,70 @@ export const data = {
5519
5579
  }
5520
5580
  }
5521
5581
  },
5582
+ "pushwoosh.cj.journey.MetaAdAccountStatus": {
5583
+ "type": "E",
5584
+ "values": [
5585
+ "META_AD_ACCOUNT_STATUS_UNSPECIFIED",
5586
+ "META_AD_ACCOUNT_STATUS_CONNECTED",
5587
+ "META_AD_ACCOUNT_STATUS_DISCONNECTED",
5588
+ "META_AD_ACCOUNT_STATUS_PENDING"
5589
+ ]
5590
+ },
5591
+ "pushwoosh.cj.journey.MetaAdAccount": {
5592
+ "type": "I",
5593
+ "fields": {
5594
+ "id": {
5595
+ "type": "string"
5596
+ },
5597
+ "name": {
5598
+ "type": "string"
5599
+ },
5600
+ "status": {
5601
+ "type": "pushwoosh.cj.journey.MetaAdAccountStatus"
5602
+ }
5603
+ }
5604
+ },
5605
+ "pushwoosh.cj.journey.MetaCustomAudience": {
5606
+ "type": "I",
5607
+ "fields": {
5608
+ "id": {
5609
+ "type": "string"
5610
+ },
5611
+ "name": {
5612
+ "type": "string"
5613
+ }
5614
+ }
5615
+ },
5616
+ "pushwoosh.cj.journey.GetMetaAdAccountsRequest": {
5617
+ "type": "I",
5618
+ "fields": {}
5619
+ },
5620
+ "pushwoosh.cj.journey.GetMetaAdAccountsResponse": {
5621
+ "type": "I",
5622
+ "fields": {
5623
+ "adAccounts": {
5624
+ "type": "pushwoosh.cj.journey.MetaAdAccount",
5625
+ "array": true
5626
+ }
5627
+ }
5628
+ },
5629
+ "pushwoosh.cj.journey.GetMetaAudiencesRequest": {
5630
+ "type": "I",
5631
+ "fields": {
5632
+ "adAccountId": {
5633
+ "type": "string"
5634
+ }
5635
+ }
5636
+ },
5637
+ "pushwoosh.cj.journey.GetMetaAudiencesResponse": {
5638
+ "type": "I",
5639
+ "fields": {
5640
+ "audiences": {
5641
+ "type": "pushwoosh.cj.journey.MetaCustomAudience",
5642
+ "array": true
5643
+ }
5644
+ }
5645
+ },
5522
5646
  "pushwoosh.cj.journey_category.Category": {
5523
5647
  "type": "S",
5524
5648
  "key": "category",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-journey-data",
3
- "version": "0.26.433",
3
+ "version": "0.26.435",
4
4
  "description": "CJ api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -55,6 +55,8 @@ export interface Journey {
55
55
  GetApplicationsByAccountId(request: GetApplicationsByAccountIdRequest): Promise<GetApplicationsByAccountIdResponse>;
56
56
  GetFiltersByAccountId(request: GetFiltersByAccountIdRequest): Promise<GetFiltersByAccountIdResponse>;
57
57
  GetEventsByApplicationCodes(request: GetEventsByApplicationCodesRequest): Promise<GetEventsByApplicationCodesResponse>;
58
+ GetMetaAdAccounts(request: GetMetaAdAccountsRequest): Promise<GetMetaAdAccountsResponse>;
59
+ GetMetaAudiences(request: GetMetaAudiencesRequest): Promise<GetMetaAudiencesResponse>;
58
60
  }
59
61
  export type GetPlaceholdersRequest = {
60
62
  templateCode?: string;
@@ -209,7 +211,11 @@ export type PointStat_pointStat_sendTelegram = {
209
211
  type: 'sendTelegram';
210
212
  data: PointStatSendTelegram;
211
213
  };
212
- export type PointStat_pointStat = PointStat_pointStat_sendPush | PointStat_pointStat_inApp | PointStat_pointStat_sendSms | PointStat_pointStat_sendWhatsapp | PointStat_pointStat_sendData | PointStat_pointStat_sendEmail | PointStat_pointStat_messageBus | PointStat_pointStat_goalEvent | PointStat_pointStat_terminator | PointStat_pointStat_delay | PointStat_pointStat_booleanSplitter | PointStat_pointStat_waitEvent | PointStat_pointStat_sendLine | PointStat_pointStat_sendKakao | PointStat_pointStat_sendTelegram;
214
+ export type PointStat_pointStat_audienceSync = {
215
+ type: 'audienceSync';
216
+ data: PointStatAudienceSync;
217
+ };
218
+ export type PointStat_pointStat = PointStat_pointStat_sendPush | PointStat_pointStat_inApp | PointStat_pointStat_sendSms | PointStat_pointStat_sendWhatsapp | PointStat_pointStat_sendData | PointStat_pointStat_sendEmail | PointStat_pointStat_messageBus | PointStat_pointStat_goalEvent | PointStat_pointStat_terminator | PointStat_pointStat_delay | PointStat_pointStat_booleanSplitter | PointStat_pointStat_waitEvent | PointStat_pointStat_sendLine | PointStat_pointStat_sendKakao | PointStat_pointStat_sendTelegram | PointStat_pointStat_audienceSync;
213
219
  export type PointStat = {
214
220
  pointStat: PointStat_pointStat;
215
221
  };
@@ -288,6 +294,10 @@ export type PointStatSendEmail = {
288
294
  voucherStats: VoucherPoolStats;
289
295
  totalOpened: number;
290
296
  };
297
+ export type PointStatAudienceSync = {
298
+ synced: number;
299
+ skipped: number;
300
+ };
291
301
  export type PointStatMessageBus = {};
292
302
  export type PointStatGoalEvent = {};
293
303
  export type PointStatTerminator = {};
@@ -713,7 +723,7 @@ export type User = {
713
723
  email: string;
714
724
  username: string;
715
725
  };
716
- export type PointType = 'POINT_TYPE_UNKNOWN' | 'POINT_TYPE_WAIT' | 'POINT_TYPE_EVENT' | 'POINT_TYPE_EXIT' | 'POINT_TYPE_SEND_PUSH' | 'POINT_TYPE_GOAL_EVENT' | 'POINT_TYPE_SEND_EMAIL' | 'POINT_TYPE_SEND_SMS' | 'POINT_TYPE_SEND_WHATSAPP' | 'POINT_TYPE_SEND_LINE' | 'POINT_TYPE_SEND_DATA' | 'POINT_TYPE_BOOLEAN_SPLITTER' | 'POINT_TYPE_FILTER' | 'POINT_TYPE_WAIT_EVENT' | 'POINT_TYPE_INAPP' | 'POINT_TYPE_START_BY_SEGMENT' | 'POINT_TYPE_AB_SPLITTER' | 'POINT_TYPE_SET_TAGS' | 'POINT_TYPE_WEBHOOK' | 'POINT_TYPE_START_BY_API' | 'POINT_TYPE_SEND_KAKAO' | 'POINT_TYPE_SEND_TELEGRAM';
726
+ export type PointType = 'POINT_TYPE_UNKNOWN' | 'POINT_TYPE_WAIT' | 'POINT_TYPE_EVENT' | 'POINT_TYPE_EXIT' | 'POINT_TYPE_SEND_PUSH' | 'POINT_TYPE_GOAL_EVENT' | 'POINT_TYPE_SEND_EMAIL' | 'POINT_TYPE_SEND_SMS' | 'POINT_TYPE_SEND_WHATSAPP' | 'POINT_TYPE_SEND_LINE' | 'POINT_TYPE_SEND_DATA' | 'POINT_TYPE_BOOLEAN_SPLITTER' | 'POINT_TYPE_FILTER' | 'POINT_TYPE_WAIT_EVENT' | 'POINT_TYPE_INAPP' | 'POINT_TYPE_START_BY_SEGMENT' | 'POINT_TYPE_AB_SPLITTER' | 'POINT_TYPE_SET_TAGS' | 'POINT_TYPE_WEBHOOK' | 'POINT_TYPE_START_BY_API' | 'POINT_TYPE_SEND_KAKAO' | 'POINT_TYPE_SEND_TELEGRAM' | 'POINT_TYPE_AUDIENCE_SYNC';
717
727
  export type Point = {
718
728
  uuid: string;
719
729
  title: string;
@@ -807,7 +817,11 @@ export type PointDataWrapper_data_sendTelegram = {
807
817
  type: 'sendTelegram';
808
818
  data: PointParamsSendTelegram;
809
819
  };
810
- export type PointDataWrapper_data = PointDataWrapper_data_messageBus | PointDataWrapper_data_delay | PointDataWrapper_data_terminator | PointDataWrapper_data_sendPush | PointDataWrapper_data_goalEvent | PointDataWrapper_data_sendEmail | PointDataWrapper_data_booleanSplitter | PointDataWrapper_data_waitEvent | PointDataWrapper_data_inapp | PointDataWrapper_data_startBySegment | PointDataWrapper_data_abSplitter | PointDataWrapper_data_setTags | PointDataWrapper_data_webHook | PointDataWrapper_data_filter | PointDataWrapper_data_sendSms | PointDataWrapper_data_startByApi | PointDataWrapper_data_sendWhatsapp | PointDataWrapper_data_sendData | PointDataWrapper_data_sendLine | PointDataWrapper_data_sendKakao | PointDataWrapper_data_sendTelegram;
820
+ export type PointDataWrapper_data_audienceSync = {
821
+ type: 'audienceSync';
822
+ data: PointParamsAudienceSync;
823
+ };
824
+ export type PointDataWrapper_data = PointDataWrapper_data_messageBus | PointDataWrapper_data_delay | PointDataWrapper_data_terminator | PointDataWrapper_data_sendPush | PointDataWrapper_data_goalEvent | PointDataWrapper_data_sendEmail | PointDataWrapper_data_booleanSplitter | PointDataWrapper_data_waitEvent | PointDataWrapper_data_inapp | PointDataWrapper_data_startBySegment | PointDataWrapper_data_abSplitter | PointDataWrapper_data_setTags | PointDataWrapper_data_webHook | PointDataWrapper_data_filter | PointDataWrapper_data_sendSms | PointDataWrapper_data_startByApi | PointDataWrapper_data_sendWhatsapp | PointDataWrapper_data_sendData | PointDataWrapper_data_sendLine | PointDataWrapper_data_sendKakao | PointDataWrapper_data_sendTelegram | PointDataWrapper_data_audienceSync;
811
825
  export type PointDataWrapper = {
812
826
  data: PointDataWrapper_data;
813
827
  };
@@ -1331,6 +1345,14 @@ export type PointParamsWebHook = {
1331
1345
  disabled: boolean;
1332
1346
  reactivate: boolean;
1333
1347
  };
1348
+ export type AudienceSyncAction = 'AUDIENCE_SYNC_ACTION_UNSPECIFIED' | 'AUDIENCE_SYNC_ACTION_ADD' | 'AUDIENCE_SYNC_ACTION_REMOVE';
1349
+ export type PointParamsAudienceSync = {
1350
+ adAccountId: string;
1351
+ adAccountName: string;
1352
+ audienceId: string;
1353
+ audienceName: string;
1354
+ action: AudienceSyncAction;
1355
+ };
1334
1356
  export type PointParamsStartBySegment = {
1335
1357
  filterCode: string;
1336
1358
  applicationCode: string;
@@ -1983,3 +2005,23 @@ export type GetEventsByApplicationCodesRequest = {
1983
2005
  export type GetEventsByApplicationCodesResponse = {
1984
2006
  payload: Record<string, EventsByApplicationCodePayload>;
1985
2007
  };
2008
+ export type MetaAdAccountStatus = 'META_AD_ACCOUNT_STATUS_UNSPECIFIED' | 'META_AD_ACCOUNT_STATUS_CONNECTED' | 'META_AD_ACCOUNT_STATUS_DISCONNECTED' | 'META_AD_ACCOUNT_STATUS_PENDING';
2009
+ export type MetaAdAccount = {
2010
+ id: string;
2011
+ name: string;
2012
+ status: MetaAdAccountStatus;
2013
+ };
2014
+ export type MetaCustomAudience = {
2015
+ id: string;
2016
+ name: string;
2017
+ };
2018
+ export type GetMetaAdAccountsRequest = {};
2019
+ export type GetMetaAdAccountsResponse = {
2020
+ adAccounts: MetaAdAccount[];
2021
+ };
2022
+ export type GetMetaAudiencesRequest = {
2023
+ adAccountId?: string;
2024
+ };
2025
+ export type GetMetaAudiencesResponse = {
2026
+ audiences: MetaCustomAudience[];
2027
+ };