@pushwoosh/rpc-gateway-journey-data 0.26.467 → 0.26.506

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.
@@ -1,4 +1,4 @@
1
- import { FilterExpression as pushwoosh_objects_filters_v1_FilterExpression } from './pushwoosh_objects_filters_v1';
1
+ import { DoubleValue as google_protobuf_DoubleValue } from './google_protobuf';
2
2
  export interface Journey {
3
3
  GetJourneysList(request: GetJourneysListRequest): Promise<GetJourneysListResponse>;
4
4
  GetJourneyByUUID(request: GetJourneyByUUIDRequest): Promise<GetJourneyByUUIDResponse>;
@@ -28,35 +28,7 @@ export interface Journey {
28
28
  GetAccountRestrictionValues(request: GetAccountRestrictionValuesRequest): Promise<GetAccountRestrictionValuesResponse>;
29
29
  GetJourneyGeneralTimeStatistics(request: GetJourneyGeneralTimeStatisticsRequest): Promise<GetJourneyGeneralTimeStatisticsResponse>;
30
30
  GetJourneyUsers(request: GetJourneyUsersRequest): Promise<GetJourneyUsersResponse>;
31
- GetJourneyMetrics(request: GetJourneyMetricsRequest): Promise<GetJourneyMetricsResponse>;
32
- GetJourneyDeliveryReport(request: GetJourneyDeliveryReportRequest): Promise<GetJourneyDeliveryReportResponse>;
33
31
  GetVoucherPools(request: GetVoucherPoolsRequest): Promise<GetVoucherPoolsResponse>;
34
- StartJourneyV2(request: StartJourneyV2Request): Promise<StartJourneyResponse>;
35
- PauseJourneyV2(request: PauseJourneyV2Request): Promise<PauseJourneyResponse>;
36
- FinishJourneyV2(request: FinishJourneyV2Request): Promise<FinishJourneyResponse>;
37
- DraftJourneyV2(request: DraftJourneyV2Request): Promise<DraftJourneyResponse>;
38
- ArchiveJourneyV2(request: ArchiveJourneyV2Request): Promise<ArchiveJourneyResponse>;
39
- UpdateJourneyV2(request: UpdateJourneyV2Request): Promise<UpdateJourneyResponse>;
40
- UpdateAndResumeJourneyV2(request: UpdateAndResumeJourneyV2Request): Promise<UpdateAndResumeJourneyResponseV2>;
41
- CreateV2(request: CreateV2Request): Promise<CreateJourneyResponse>;
42
- RenameV2(request: RenameV2Request): Promise<RenameJourneyResponse>;
43
- UpdateABSSplitterParamsV2(request: UpdateABSSplitterParamsV2Request): Promise<UpdateABSSplitterParamsResponse>;
44
- ValidateJourneyV2(request: ValidateJourneyV2Request): Promise<ValidateJourneyResponse>;
45
- GetWhatsAppPresetsByAppCode(request: GetWhatsAppPresetsByAppCodeRequest): Promise<GetWhatsAppPresetsByAppCodeResponse>;
46
- GetEmailPresetsByAppCode(request: GetEmailPresetsByAppCodeRequest): Promise<GetEmailPresetsByAppCodeResponse>;
47
- GetLinePresetsByAppCode(request: GetLinePresetsByAppCodeRequest): Promise<GetLinePresetsByAppCodeResponse>;
48
- GetSmsPresetsByAppCode(request: GetSmsPresetsByAppCodeRequest): Promise<GetSmsPresetsByAppCodeResponse>;
49
- GetPushPresetsByAppCode(request: GetPushPresetsByAppCodeRequest): Promise<GetPushPresetsByAppCodeResponse>;
50
- GetEventsByApplicationCode(request: GetEventsByApplicationCodeRequest): Promise<GetEventsByApplicationCodeResponse>;
51
- GetEventAttributeValues(request: GetEventAttributeValuesRequest): Promise<GetEventAttributeValuesResponse>;
52
- GetRichMediaByApplicationCode(request: GetRichMediaByApplicationCodeRequest): Promise<GetRichMediaByApplicationCodeResponse>;
53
- GetRichMediaByCode(request: GetRichMediaByCodeRequest): Promise<GetRichMediaByCodeResponse>;
54
- TestWebhook(request: TestWebhookRequest): Promise<TestWebhookResponse>;
55
- GetApplicationsByAccountId(request: GetApplicationsByAccountIdRequest): Promise<GetApplicationsByAccountIdResponse>;
56
- GetFiltersByAccountId(request: GetFiltersByAccountIdRequest): Promise<GetFiltersByAccountIdResponse>;
57
- GetEventsByApplicationCodes(request: GetEventsByApplicationCodesRequest): Promise<GetEventsByApplicationCodesResponse>;
58
- GetMetaAdAccounts(request: GetMetaAdAccountsRequest): Promise<GetMetaAdAccountsResponse>;
59
- GetMetaAudiences(request: GetMetaAudiencesRequest): Promise<GetMetaAudiencesResponse>;
60
32
  }
61
33
  export type GetPlaceholdersRequest = {
62
34
  templateCode?: string;
@@ -107,14 +79,11 @@ export type AutocompleteValue_kind = AutocompleteValue_kind_intValue | Autocompl
107
79
  export type AutocompleteValue = {
108
80
  kind: AutocompleteValue_kind;
109
81
  };
110
- export type WinnerStrategy = 'ANY_GOAL' | 'SPECIFIC_GOAL';
111
82
  export type UpdateABSSplitterParamsRequest = {
112
83
  journeyUuid?: string;
113
84
  pointUuid?: string;
114
85
  params?: number[];
115
86
  autoSelectWinner?: boolean;
116
- winnerStrategy?: WinnerStrategy;
117
- goalUuid?: string;
118
87
  };
119
88
  export type CloneJourneysRequest = {
120
89
  journeyUuids?: string[];
@@ -203,19 +172,7 @@ export type PointStat_pointStat_sendLine = {
203
172
  type: 'sendLine';
204
173
  data: PointStatSendLine;
205
174
  };
206
- export type PointStat_pointStat_sendKakao = {
207
- type: 'sendKakao';
208
- data: PointStatSendKakao;
209
- };
210
- export type PointStat_pointStat_sendTelegram = {
211
- type: 'sendTelegram';
212
- data: PointStatSendTelegram;
213
- };
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;
175
+ 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;
219
176
  export type PointStat = {
220
177
  pointStat: PointStat_pointStat;
221
178
  };
@@ -225,15 +182,6 @@ export type PointStatSendPush = {
225
182
  conversion: number;
226
183
  skipped: number;
227
184
  skippedDueCappingSettings: number;
228
- errors: number;
229
- unshowableSends: number;
230
- recipients: number;
231
- voucherStats: VoucherPoolStats;
232
- delivered: number;
233
- notDelivered: number;
234
- notOpened: number;
235
- frequencyCappingUniqueUsers: number;
236
- frequencyCappingSuppressions: number;
237
185
  };
238
186
  export type PointStatInApp = {
239
187
  shows: number;
@@ -246,50 +194,20 @@ export type PointStatSendSms = {
246
194
  sent: number;
247
195
  delivered: number;
248
196
  skipped: number;
249
- errors: number;
250
- recipients: number;
251
- voucherStats: VoucherPoolStats;
252
- frequencyCappingUniqueUsers: number;
253
- frequencyCappingSuppressions: number;
254
197
  };
255
198
  export type PointStatSendLine = {
256
199
  sent: number;
257
200
  delivered: number;
258
- errors: number;
259
- recipients: number;
260
- voucherStats: VoucherPoolStats;
261
- frequencyCappingUniqueUsers: number;
262
- frequencyCappingSuppressions: number;
263
- };
264
- export type PointStatSendKakao = {
265
- sent: number;
266
- delivered: number;
267
- errors: number;
268
- recipients: number;
269
- voucherStats: VoucherPoolStats;
270
- };
271
- export type PointStatSendTelegram = {
272
- sent: number;
273
- delivered: number;
274
- errors: number;
275
- recipients: number;
276
- voucherStats: VoucherPoolStats;
277
201
  };
278
202
  export type PointStatSendWhatsApp = {
279
203
  sent: number;
280
204
  totalOpened: number;
281
205
  skipped: number;
282
- errors: number;
283
- recipients: number;
284
- voucherStats: VoucherPoolStats;
285
- frequencyCappingUniqueUsers: number;
286
- frequencyCappingSuppressions: number;
287
206
  };
288
207
  export type PointStatSendData = {
289
208
  sent: number;
290
209
  delivered: number;
291
210
  skipped: number;
292
- voucherStats: VoucherPoolStats;
293
211
  };
294
212
  export type PointStatSendEmail = {
295
213
  sent: number;
@@ -300,16 +218,6 @@ export type PointStatSendEmail = {
300
218
  softBounces: number;
301
219
  complaints: number;
302
220
  skipped: number;
303
- errors: number;
304
- recipients: number;
305
- voucherStats: VoucherPoolStats;
306
- totalOpened: number;
307
- frequencyCappingUniqueUsers: number;
308
- frequencyCappingSuppressions: number;
309
- };
310
- export type PointStatAudienceSync = {
311
- synced: number;
312
- skipped: number;
313
221
  };
314
222
  export type PointStatMessageBus = {};
315
223
  export type PointStatGoalEvent = {};
@@ -317,10 +225,6 @@ export type PointStatTerminator = {};
317
225
  export type PointStatDelay = {};
318
226
  export type PointStatBooleanSplitter = {};
319
227
  export type PointStatWaitEvent = {};
320
- export type VoucherPoolStats = {
321
- total: number;
322
- free: number;
323
- };
324
228
  export type GetJourneyStatsRequest = {
325
229
  journeyIds?: string[];
326
230
  };
@@ -337,7 +241,7 @@ export type JourneyStatsPayloadGet = {
337
241
  export type JourneySummaryStats = {
338
242
  in: number;
339
243
  goals: number;
340
- avrCTR: number;
244
+ avrCTR: google_protobuf_DoubleValue;
341
245
  };
342
246
  export type RenameRequest = {
343
247
  uuid?: string;
@@ -447,20 +351,15 @@ export type FloatArray = {
447
351
  export type StringMap = {
448
352
  values: Record<string, string>;
449
353
  };
450
- export type JourneyChangelogRecords = {
451
- changes: Change[];
452
- goals: Record<string, PointsChangelog>;
453
- };
454
354
  export type ChangelogRecords = {
455
355
  changes: Change[];
456
356
  };
457
357
  export type PointChangelogRecords = {
458
358
  pointType: string;
459
359
  changes: Change[];
460
- title: string;
461
360
  };
462
361
  export type Changelog = {
463
- journey: JourneyChangelogRecords;
362
+ journey: ChangelogRecords;
464
363
  points: Record<string, PointsChangelog>;
465
364
  comments: Record<string, CommentsChangelog>;
466
365
  };
@@ -487,14 +386,11 @@ export type GetJourneysListRequest = {
487
386
  statuses?: JourneyStatus[];
488
387
  categoryUuids?: string[];
489
388
  filterTitle?: string;
490
- sortField?: string;
389
+ sorting?: Sorting[];
491
390
  page?: number;
492
391
  pageSize?: number;
493
392
  campaignTypes?: CampaignType[];
494
393
  uuidList?: string[];
495
- sortOrder?: string;
496
- activatedAtFrom?: Date;
497
- activatedAtTo?: Date;
498
394
  };
499
395
  export type GetJourneysListResponse = {
500
396
  journeys: Info[];
@@ -512,112 +408,6 @@ export type GetJourneyByUUIDResponseWithErrors = {
512
408
  response: GetJourneyByUUIDResponse;
513
409
  validation: ValidateJourneyResponse;
514
410
  };
515
- export type StartJourneyResponse = {
516
- info: Info;
517
- points: Point[];
518
- comments: JourneyComment[];
519
- };
520
- export type PauseJourneyResponse = {
521
- info: Info;
522
- points: Point[];
523
- comments: JourneyComment[];
524
- };
525
- export type FinishJourneyResponse = {
526
- info: Info;
527
- points: Point[];
528
- comments: JourneyComment[];
529
- };
530
- export type DraftJourneyResponse = {
531
- info: Info;
532
- points: Point[];
533
- comments: JourneyComment[];
534
- };
535
- export type ArchiveJourneyResponse = {
536
- info: Info;
537
- points: Point[];
538
- comments: JourneyComment[];
539
- };
540
- export type UpdateJourneyResponse = {
541
- info: Info;
542
- points: Point[];
543
- comments: JourneyComment[];
544
- };
545
- export type CreateJourneyResponse = {
546
- info: Info;
547
- points: Point[];
548
- comments: JourneyComment[];
549
- };
550
- export type RenameJourneyResponse = {
551
- info: Info;
552
- points: Point[];
553
- comments: JourneyComment[];
554
- };
555
- export type UpdateABSSplitterParamsResponse = {
556
- info: Info;
557
- points: Point[];
558
- comments: JourneyComment[];
559
- };
560
- export type UpdateAndResumeJourneyInfo = {
561
- info: Info;
562
- points: Point[];
563
- comments: JourneyComment[];
564
- };
565
- export type UpdateAndResumeJourneyResponseV2 = {
566
- response: UpdateAndResumeJourneyInfo;
567
- validation: ValidateJourneyResponse;
568
- };
569
- export type StartJourneyV2Request = {
570
- uuid?: string;
571
- };
572
- export type PauseJourneyV2Request = {
573
- uuid?: string;
574
- };
575
- export type FinishJourneyV2Request = {
576
- uuid?: string;
577
- };
578
- export type DraftJourneyV2Request = {
579
- uuid?: string;
580
- };
581
- export type ArchiveJourneyV2Request = {
582
- uuid?: string;
583
- };
584
- export type UpdateJourneyV2Request = {
585
- uuid?: string;
586
- title?: string;
587
- params?: JourneyParams;
588
- points?: Point[];
589
- comments?: JourneyComment[];
590
- autosave?: boolean;
591
- };
592
- export type UpdateAndResumeJourneyV2Request = {
593
- uuid?: string;
594
- title?: string;
595
- params?: JourneyParams;
596
- points?: Point[];
597
- comments?: JourneyComment[];
598
- autosave?: boolean;
599
- };
600
- export type CreateV2Request = {
601
- title?: string;
602
- params?: JourneyParams;
603
- points?: Point[];
604
- comments?: JourneyComment[];
605
- };
606
- export type RenameV2Request = {
607
- uuid?: string;
608
- title?: string;
609
- };
610
- export type UpdateABSSplitterParamsV2Request = {
611
- journeyUuid?: string;
612
- pointUuid?: string;
613
- params?: number[];
614
- autoSelectWinner?: boolean;
615
- winnerStrategy?: WinnerStrategy;
616
- goalUuid?: string;
617
- };
618
- export type ValidateJourneyV2Request = {
619
- uuid?: string;
620
- };
621
411
  export type MoveJourneysToCategoryRequest = {
622
412
  journeyUuids?: string[];
623
413
  categoryUuid?: string;
@@ -657,9 +447,13 @@ export type GetUserFlowResponse_Flow = {
657
447
  export type GetUserFlowResponse = {
658
448
  flows: GetUserFlowResponse_Flow[];
659
449
  };
450
+ export type Sorting = {
451
+ field: string;
452
+ direction: string;
453
+ };
660
454
  export type JourneyStatus = 'STATUS_DRAFT' | 'STATUS_RUNNING' | 'STATUS_FINISHED' | 'STATUS_ARCHIVED' | 'STATUS_PAUSED' | 'STATUS_UNKNOWN';
661
455
  export type PointEventAttributeType = 'ATTRIBUTE_UNKNOWN' | 'INTEGER' | 'STRING' | 'LIST' | 'DATE' | 'BOOLEAN' | 'FLOAT';
662
- export type PointEventConditionOperator = 'OPERATOR_UNKNOWN' | 'EQ' | 'LTE' | 'GTE' | 'NOTEQ' | 'IN' | 'NOTIN' | 'BETWEEN' | 'STARTS_WITH' | 'ENDS_WITH' | 'CONTAINS';
456
+ export type PointEventConditionOperator = 'OPERATOR_UNKNOWN' | 'EQ' | 'LTE' | 'GTE' | 'NOTEQ' | 'IN' | 'NOTIN' | 'BETWEEN';
663
457
  export type PointEventCondition_value_int = {
664
458
  type: 'int';
665
459
  data: PointEventConditionValueInt;
@@ -729,14 +523,12 @@ export type Info = {
729
523
  campaignType: CampaignType;
730
524
  stopReason: string;
731
525
  lastEditedBy: User;
732
- dynamicEntry: boolean;
733
526
  };
734
527
  export type User = {
735
528
  id: number;
736
529
  email: string;
737
530
  username: string;
738
531
  };
739
- 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';
740
532
  export type Point = {
741
533
  uuid: string;
742
534
  title: string;
@@ -744,7 +536,6 @@ export type Point = {
744
536
  outputs: PointOutput[];
745
537
  position: Position;
746
538
  pointData: PointDataWrapper;
747
- pointType: PointType;
748
539
  };
749
540
  export type PointDataWrapper_data_messageBus = {
750
541
  type: 'messageBus';
@@ -822,19 +613,7 @@ export type PointDataWrapper_data_sendLine = {
822
613
  type: 'sendLine';
823
614
  data: PointParamsSendLine;
824
615
  };
825
- export type PointDataWrapper_data_sendKakao = {
826
- type: 'sendKakao';
827
- data: PointParamsSendKakao;
828
- };
829
- export type PointDataWrapper_data_sendTelegram = {
830
- type: 'sendTelegram';
831
- data: PointParamsSendTelegram;
832
- };
833
- export type PointDataWrapper_data_audienceSync = {
834
- type: 'audienceSync';
835
- data: PointParamsAudienceSync;
836
- };
837
- 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;
616
+ 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;
838
617
  export type PointDataWrapper = {
839
618
  data: PointDataWrapper_data;
840
619
  };
@@ -869,13 +648,11 @@ export type JourneyParamsEntryCapping = {
869
648
  export type JourneyParamsConversionWindow = {
870
649
  seconds: number;
871
650
  };
872
- export type UserIDTrackChangePolicy = 'DEFAULT' | 'TRACK' | 'DROP';
873
651
  export type JourneyParams = {
874
652
  silentHours: JourneyParamsSilentHours;
875
653
  capping: JourneyParamsEntryCapping;
876
654
  applicationCode: string;
877
655
  conversionWindow: JourneyParamsConversionWindow;
878
- userIdTrackChangePolicy: UserIDTrackChangePolicy;
879
656
  };
880
657
  export type JourneyComment = {
881
658
  id: string;
@@ -890,28 +667,19 @@ export type PointParamsMessageBus = {
890
667
  applicationCode: string;
891
668
  eventConditions: PointEventCondition[];
892
669
  activePeriod: Period;
893
- multiEntry: MultiEntry;
894
- attributeEntry: AttributeEntry;
895
- allowReenter: boolean;
896
670
  };
897
671
  export type Period = {
898
672
  enabled: boolean;
899
673
  start: Date;
900
674
  end: Date;
901
- timezone: string;
902
- };
903
- export type SendRate_Policy = 'UNKNOWN' | 'GLOBAL' | 'CUSTOM' | 'IGNORE';
904
- export type SendRate = {
905
- policy: SendRate_Policy;
906
- sendRate: number;
907
675
  };
908
676
  export type PointParamsSendPush = {
909
677
  presetCode: string;
910
678
  content: string;
911
679
  title: string;
912
680
  applicationCode: string;
913
- campaignCode?: string;
914
- campaignUid?: number;
681
+ campaignCode: string;
682
+ campaignUid: number;
915
683
  splitParams: BehaviorSplitter;
916
684
  sendByUserId: boolean;
917
685
  waitOptimalTime: boolean;
@@ -921,61 +689,30 @@ export type PointParamsSendPush = {
921
689
  capping: Capping;
922
690
  inboxOptions: InboxOptions;
923
691
  vouchersParams: VoucherParams;
924
- sendRate: SendRate;
925
- messageType: MessageType;
926
- deliverySplitParams: BehaviorSplitter;
927
- ttl: number;
928
- useLatestUserDevice: boolean;
929
692
  };
930
693
  export type PointParamsSendSms = {
931
694
  presetCode: string;
932
695
  content: string;
933
696
  applicationCode: string;
934
- campaignCode?: string;
935
- campaignUid?: number;
697
+ campaignCode: string;
698
+ campaignUid: number;
936
699
  splitParams: BehaviorSplitter;
937
700
  sendByUserId: boolean;
938
701
  liquidTemplateParams: LiquidTemplateParams;
939
702
  personalise: PersonalisedParams;
940
703
  capping: Capping;
941
- vouchersParams: VoucherParams;
942
- sendRate: SendRate;
943
- messageType: MessageType;
944
704
  };
945
705
  export type PointParamsSendLine = {
946
706
  presetCode: string;
947
707
  content: string;
948
708
  applicationCode: string;
949
- campaignCode?: string;
950
- campaignUid?: number;
709
+ campaignCode: string;
710
+ campaignUid: number;
951
711
  splitParams: BehaviorSplitter;
952
712
  sendByUserId: boolean;
953
713
  liquidTemplateParams: LiquidTemplateParams;
954
714
  personalise: PersonalisedParams;
955
715
  capping: Capping;
956
- vouchersParams: VoucherParams;
957
- };
958
- export type PointParamsSendKakao = {
959
- presetCode: string;
960
- applicationCode: string;
961
- campaignCode?: string;
962
- campaignUid?: number;
963
- personalise: PersonalisedParams;
964
- vouchersParams: VoucherParams;
965
- sendByUserId: boolean;
966
- capping: Capping;
967
- sendRate: SendRate;
968
- };
969
- export type PointParamsSendTelegram = {
970
- content: string;
971
- applicationCode: string;
972
- campaignCode?: string;
973
- campaignUid?: number;
974
- personalise: PersonalisedParams;
975
- vouchersParams: VoucherParams;
976
- sendByUserId: boolean;
977
- capping: Capping;
978
- sendRate: SendRate;
979
716
  };
980
717
  export type WhatsAppPersonalisedParams = {
981
718
  enabled: boolean;
@@ -994,45 +731,23 @@ export type WhatsAppPlaceholder = {
994
731
  component: string;
995
732
  type: string;
996
733
  value: string;
997
- default: string;
998
- actions?: Actions;
999
- };
1000
- export type Actions = {
1001
- actions: ActionType[];
1002
- };
1003
- export type ActionType = {
1004
- type: string;
1005
- action: Action;
1006
- };
1007
- export type Action = {
1008
- thumbnailProductRetailerId: string;
1009
- sections: Section[];
1010
- };
1011
- export type Section = {
1012
- title: string;
1013
- productItems: ProductListItem[];
1014
- };
1015
- export type ProductListItem = {
1016
- productRetailerId: string;
1017
734
  };
1018
735
  export type PointParamsSendWhatsApp = {
1019
736
  presetCode: string;
1020
737
  content: string;
1021
738
  applicationCode: string;
1022
- campaignCode?: string;
1023
- campaignUid?: number;
739
+ campaignCode: string;
740
+ campaignUid: number;
1024
741
  splitParams: BehaviorSplitter;
1025
742
  sendByUserId: boolean;
1026
743
  personalise: WhatsAppPersonalisedParams;
1027
744
  capping: Capping;
1028
- vouchersParams: VoucherParams;
1029
- messageType: MessageType;
1030
745
  };
1031
746
  export type PointParamsSendEmail = {
1032
747
  applicationCode: string;
1033
748
  presetCode: string;
1034
- campaignCode?: string;
1035
- campaignUid?: number;
749
+ campaignCode: string;
750
+ campaignUid: number;
1036
751
  splitParams: BehaviorSplitter;
1037
752
  sendOnlyToSubscribed: boolean;
1038
753
  liquidTemplateParams: LiquidTemplateParams;
@@ -1040,20 +755,12 @@ export type PointParamsSendEmail = {
1040
755
  title: string;
1041
756
  subjects: Record<string, string>;
1042
757
  bcc: string[];
1043
- unsubscribedPolicy?: UnsubscribedPolicy;
758
+ unsubscribedPolicy: UnsubscribedPolicy;
1044
759
  capping: Capping;
1045
760
  from: From;
1046
761
  replyTo: ReplyTo;
1047
762
  vouchersParams: VoucherParams;
1048
- waitOptimalTime: boolean;
1049
- defaultOptimalTime: ExactTime;
1050
- sendRate: SendRate;
1051
- emailType: string;
1052
- emailCategory: string;
1053
- subjectSource: ValueSource;
1054
- senderInfoSource: ValueSource;
1055
763
  };
1056
- export type ValueSource = 'VALUE_SOURCE_DEFAULT' | 'VALUE_SOURCE_FROM_POINT' | 'VALUE_SOURCE_FROM_PRESET';
1057
764
  export type From = {
1058
765
  name: string;
1059
766
  email: string;
@@ -1065,175 +772,19 @@ export type ReplyTo = {
1065
772
  export type PointParamsSendData = {
1066
773
  content: string;
1067
774
  applicationCode: string;
1068
- campaignCode?: string;
1069
- campaignUid?: number;
775
+ campaignCode: string;
776
+ campaignUid: number;
1070
777
  sendByUserId: boolean;
1071
778
  liquidTemplateParams: LiquidTemplateParams;
1072
779
  personalise: PersonalisedParams;
1073
- vouchersParams: VoucherParams;
1074
780
  };
1075
781
  export type UnsubscribedPolicy = 'UNKNOWN' | 'IGNORE' | 'SEND';
1076
- export type MessageType = 'Marketing' | 'Transactional';
1077
- export type IntTagValueList = {
1078
- value: number[];
1079
- };
1080
- export type StrTagValueList = {
1081
- value: string[];
1082
- };
1083
- export type DateTagValueList = {
1084
- value: Date[];
1085
- };
1086
- export type PriceTagValueList = {
1087
- value: number[];
1088
- };
1089
- export type VersionTagValueList = {
1090
- value: string[];
1091
- };
1092
- export type TimezoneTagValueList = {
1093
- value: number[];
1094
- };
1095
- export type TagSplitterConditionGroup = {
1096
- conditions: TagSplitterCondition[];
1097
- };
1098
- export type TagSplitterCondition_TagSplitterTagType = 'TAG_SPLITTER_TYPE_UNKNOWN' | 'TAG_SPLITTER_TYPE_INTEGER' | 'TAG_SPLITTER_TYPE_STRING' | 'TAG_SPLITTER_TYPE_LIST' | 'TAG_SPLITTER_TYPE_DATE' | 'TAG_SPLITTER_TYPE_BOOLEAN' | 'TAG_SPLITTER_TYPE_PRICE' | 'TAG_SPLITTER_TYPE_VERSION' | 'TAG_SPLITTER_TYPE_TIMEZONE';
1099
- export type TagSplitterCondition_value_int = {
1100
- type: 'int';
1101
- data: number;
1102
- };
1103
- export type TagSplitterCondition_value_intRange = {
1104
- type: 'intRange';
1105
- data: IntTagValueList;
1106
- };
1107
- export type TagSplitterCondition_value_str = {
1108
- type: 'str';
1109
- data: string;
1110
- };
1111
- export type TagSplitterCondition_value_strRange = {
1112
- type: 'strRange';
1113
- data: StrTagValueList;
1114
- };
1115
- export type TagSplitterCondition_value_date = {
1116
- type: 'date';
1117
- data: Date;
1118
- };
1119
- export type TagSplitterCondition_value_dateRange = {
1120
- type: 'dateRange';
1121
- data: DateTagValueList;
1122
- };
1123
- export type TagSplitterCondition_value_bool = {
1124
- type: 'bool';
1125
- data: boolean;
1126
- };
1127
- export type TagSplitterCondition_value_price = {
1128
- type: 'price';
1129
- data: number;
1130
- };
1131
- export type TagSplitterCondition_value_priceRange = {
1132
- type: 'priceRange';
1133
- data: PriceTagValueList;
1134
- };
1135
- export type TagSplitterCondition_value_version = {
1136
- type: 'version';
1137
- data: string;
1138
- };
1139
- export type TagSplitterCondition_value_versionRange = {
1140
- type: 'versionRange';
1141
- data: VersionTagValueList;
1142
- };
1143
- export type TagSplitterCondition_value_timezone = {
1144
- type: 'timezone';
1145
- data: number;
1146
- };
1147
- export type TagSplitterCondition_value_timezoneRange = {
1148
- type: 'timezoneRange';
1149
- data: TimezoneTagValueList;
1150
- };
1151
- export type TagSplitterCondition_value = TagSplitterCondition_value_int | TagSplitterCondition_value_intRange | TagSplitterCondition_value_str | TagSplitterCondition_value_strRange | TagSplitterCondition_value_date | TagSplitterCondition_value_dateRange | TagSplitterCondition_value_bool | TagSplitterCondition_value_price | TagSplitterCondition_value_priceRange | TagSplitterCondition_value_version | TagSplitterCondition_value_versionRange | TagSplitterCondition_value_timezone | TagSplitterCondition_value_timezoneRange;
1152
- export type TagSplitterCondition = {
1153
- tagId: number;
1154
- tagType: TagSplitterCondition_TagSplitterTagType;
1155
- operator: string;
1156
- value: TagSplitterCondition_value;
1157
- };
1158
- export type DateFilterMode = 'DATE_FILTER_MODE_UNKNOWN' | 'DATE_FILTER_MODE_DAYS_AGO' | 'DATE_FILTER_MODE_HOURS_AGO' | 'DATE_FILTER_MODE_MINUTES_AGO';
1159
- export type EventConditionValueInt = {
1160
- value: number;
1161
- };
1162
- export type EventConditionValueIntRange = {
1163
- value: number[];
1164
- };
1165
- export type EventConditionValueFloat = {
1166
- value: number;
1167
- };
1168
- export type EventConditionValueFloatRange = {
1169
- value: number[];
1170
- };
1171
- export type EventConditionValueStr = {
1172
- value: string;
1173
- };
1174
- export type EventConditionValueStrRange = {
1175
- value: string[];
1176
- };
1177
- export type EventConditionValueBool = {
1178
- value: boolean;
1179
- };
1180
- export type BooleanSplitterEventCondition_value_int = {
1181
- type: 'int';
1182
- data: EventConditionValueInt;
1183
- };
1184
- export type BooleanSplitterEventCondition_value_intRange = {
1185
- type: 'intRange';
1186
- data: EventConditionValueIntRange;
1187
- };
1188
- export type BooleanSplitterEventCondition_value_str = {
1189
- type: 'str';
1190
- data: EventConditionValueStr;
1191
- };
1192
- export type BooleanSplitterEventCondition_value_strRange = {
1193
- type: 'strRange';
1194
- data: EventConditionValueStrRange;
1195
- };
1196
- export type BooleanSplitterEventCondition_value_bool = {
1197
- type: 'bool';
1198
- data: EventConditionValueBool;
1199
- };
1200
- export type BooleanSplitterEventCondition_value_float = {
1201
- type: 'float';
1202
- data: EventConditionValueFloat;
1203
- };
1204
- export type BooleanSplitterEventCondition_value_floatRange = {
1205
- type: 'floatRange';
1206
- data: EventConditionValueFloatRange;
1207
- };
1208
- export type BooleanSplitterEventCondition_value = BooleanSplitterEventCondition_value_int | BooleanSplitterEventCondition_value_intRange | BooleanSplitterEventCondition_value_str | BooleanSplitterEventCondition_value_strRange | BooleanSplitterEventCondition_value_bool | BooleanSplitterEventCondition_value_float | BooleanSplitterEventCondition_value_floatRange;
1209
- export type BooleanSplitterEventCondition = {
1210
- attributeName: string;
1211
- type: PointEventAttributeType;
1212
- operator: PointEventConditionOperator;
1213
- dateFilterMode: DateFilterMode;
1214
- value: BooleanSplitterEventCondition_value;
1215
- };
1216
- export type BooleanSplitterEventConditions = {
1217
- conditions: BooleanSplitterEventCondition[];
1218
- };
1219
- export type BooleanSplitterEventInfo = {
1220
- eventName: string;
1221
- eventConditions?: BooleanSplitterEventConditions;
1222
- };
1223
- export type PointParamsBooleanSplitter_LoadPolicy = 'UNKNOWN' | 'ALL' | 'FILTER';
1224
- export type PointParamsBooleanSplitter_SplitStrategy = 'SPLIT_FILTER' | 'SPLIT_TAGS' | 'SPLIT_EVENTS';
1225
782
  export type PointParamsBooleanSplitter = {
1226
783
  filterCode: string;
1227
- loadPolicy: PointParamsBooleanSplitter_LoadPolicy;
1228
- splitStrategy: PointParamsBooleanSplitter_SplitStrategy;
1229
- filterExpressions: pushwoosh_objects_filters_v1_FilterExpression[];
1230
- event?: BooleanSplitterEventInfo;
1231
784
  };
1232
785
  export type PointParamsWaitEvent = {
1233
786
  events: PointWaitEventInfo[];
1234
787
  conditionsScript: string;
1235
- multiEntry: MultiEntry;
1236
- isTravelerPresenceExtendable?: boolean;
1237
788
  };
1238
789
  export type PointWaitEventInfo = {
1239
790
  eventName: string;
@@ -1245,11 +796,10 @@ export type PointWaitEventInfo = {
1245
796
  export type PointParamsInapp = {
1246
797
  richmediaCode: string;
1247
798
  applicationCode: string;
1248
- campaignCode?: string;
1249
- campaignUid?: number;
799
+ campaignCode: string;
800
+ campaignUid: number;
1250
801
  expireInDays: number;
1251
802
  capping: Capping;
1252
- messageType: MessageType;
1253
803
  };
1254
804
  export type Filter = 'CUSTOM' | 'EMAIL_EXISTS' | 'PUSH_TOKEN_EXISTS' | 'SMS_TOKEN_EXISTS' | 'WHATSAPP_TOKEN_EXISTS' | 'LINE_TOKEN_EXISTS';
1255
805
  export type PointParamsFilter = {
@@ -1263,12 +813,10 @@ export type BehaviorSplitter = {
1263
813
  export type LiquidTemplateParams = {
1264
814
  enabled: boolean;
1265
815
  eventName: string;
1266
- eventEntryPointUuid: string;
1267
816
  };
1268
817
  export type VoucherParams = {
1269
818
  enabled: boolean;
1270
819
  voucherPool: string;
1271
- voucherTag: string;
1272
820
  };
1273
821
  export type PersonalisedParams = {
1274
822
  enabled: boolean;
@@ -1315,8 +863,6 @@ export type PointParamsGoalEvent = {
1315
863
  applicationCode: string;
1316
864
  eventConditions: PointEventCondition[];
1317
865
  isThrowOut: boolean;
1318
- multiEntry: MultiEntry;
1319
- isCancelEvent: boolean;
1320
866
  };
1321
867
  export type PointParamsDelay_interval_sec = {
1322
868
  type: 'sec';
@@ -1340,7 +886,6 @@ export type PointParamsDelay_interval_exactWeekDaysTime = {
1340
886
  };
1341
887
  export type PointParamsDelay_interval = PointParamsDelay_interval_sec | PointParamsDelay_interval_exactTime | PointParamsDelay_interval_dynamicTime | PointParamsDelay_interval_exactDateTime | PointParamsDelay_interval_exactWeekDaysTime;
1342
888
  export type PointParamsDelay = {
1343
- isTravelerPresenceExtendable?: boolean;
1344
889
  interval: PointParamsDelay_interval;
1345
890
  };
1346
891
  export type PointOutput = {
@@ -1360,30 +905,17 @@ export type PointParamsWebHook = {
1360
905
  url: string;
1361
906
  requestTemplate: string;
1362
907
  headers: Record<string, string>;
1363
- disabled: boolean;
1364
- reactivate: boolean;
1365
- };
1366
- export type AudienceSyncAction = 'AUDIENCE_SYNC_ACTION_UNSPECIFIED' | 'AUDIENCE_SYNC_ACTION_ADD' | 'AUDIENCE_SYNC_ACTION_REMOVE';
1367
- export type PointParamsAudienceSync = {
1368
- adAccountId: string;
1369
- adAccountName: string;
1370
- audienceId: string;
1371
- audienceName: string;
1372
- action: AudienceSyncAction;
1373
908
  };
1374
909
  export type PointParamsStartBySegment = {
1375
910
  filterCode: string;
1376
911
  applicationCode: string;
1377
- entryLimitsEnabled?: boolean;
1378
- entryLimitsPerSecond?: number;
912
+ entryLimitsEnabled: boolean;
913
+ entryLimitsPerSecond: number;
1379
914
  repeat: SegmentRepeat;
1380
915
  isDeactivated: boolean;
1381
916
  filterTitle: string;
1382
917
  applicationTitle: string;
1383
- startAt: Date;
1384
- entryMode: EntryMode;
1385
918
  };
1386
- export type EntryMode = 'ENTRY_MODE_UNKNOWN' | 'ENTRY_MODE_EXISTING_ONLY' | 'ENTRY_MODE_EXISTING_AND_NEW' | 'ENTRY_MODE_NEW_ONLY';
1387
919
  export type SegmentRepeat = {
1388
920
  enabled: boolean;
1389
921
  type: string;
@@ -1405,12 +937,8 @@ export type PointParamsABSplitter = {
1405
937
  split: number[];
1406
938
  autoSelectWinner: boolean;
1407
939
  winnerSplit: number;
1408
- winnerStrategy: WinnerStrategy;
1409
- goalUuid: string;
1410
- winnerOutputKey: string;
1411
- winnerGoalUuid: string;
1412
940
  };
1413
- export type TagType = 'TYPE_UNKNOWN' | 'TYPE_INTEGER' | 'TYPE_STRING' | 'TYPE_LIST' | 'TYPE_DATE' | 'TYPE_BOOLEAN' | 'TYPE_PRICE' | 'TYPE_VERSION' | 'TYPE_DYNAMIC' | 'TYPE_LIST_APPEND' | 'TYPE_TIMEZONE' | 'TYPE_LIST_REMOVE' | 'TYPE_DYNAMIC_APPEND' | 'TYPE_DYNAMIC_REMOVE' | 'TYPE_INCREMENT' | 'TYPE_DECREMENT' | 'TYPE_DYNAMIC_INCREMENT' | 'TYPE_DYNAMIC_DECREMENT';
941
+ export type TagType = 'TYPE_UNKNOWN' | 'TYPE_INTEGER' | 'TYPE_STRING' | 'TYPE_LIST' | 'TYPE_DATE' | 'TYPE_BOOLEAN' | 'TYPE_PRICE' | 'TYPE_VERSION' | 'TYPE_DYNAMIC' | 'TYPE_LIST_APPEND';
1414
942
  export type Tag_value_int = {
1415
943
  type: 'int';
1416
944
  data: number;
@@ -1452,8 +980,11 @@ export type Tag = {
1452
980
  id: number;
1453
981
  type: TagType;
1454
982
  name: string;
983
+ dynamicModification: boolean;
984
+ setTagOperation: SetTagOperation;
1455
985
  value: Tag_value;
1456
986
  };
987
+ export type SetTagOperation = 'SetTagOperationUnknown' | 'SetTagOperationOverwrite' | 'SetTagOperationAppend' | 'SetTagOperationRemove' | 'SetTagOperationIncrement' | 'SetTagOperationDecrement';
1457
988
  export type TagValueList = {
1458
989
  value: string[];
1459
990
  };
@@ -1473,8 +1004,8 @@ export type Position = {
1473
1004
  };
1474
1005
  export type PointParamsStartByAPI = {
1475
1006
  applicationCode: string;
1476
- entryLimitsEnabled?: boolean;
1477
- entryLimitsPerSecond?: number;
1007
+ entryLimitsEnabled: boolean;
1008
+ entryLimitsPerSecond: number;
1478
1009
  isDeactivated: boolean;
1479
1010
  attributes: string[];
1480
1011
  };
@@ -1487,8 +1018,8 @@ export type Capping = {
1487
1018
  };
1488
1019
  export type InboxOptions = {
1489
1020
  enabled: boolean;
1490
- expireAtDate?: Date;
1491
- expireInDays?: number;
1021
+ expireAtDate: Date;
1022
+ expireInDays: number;
1492
1023
  imgUrl: string;
1493
1024
  richMediaCode: string;
1494
1025
  };
@@ -1531,21 +1062,6 @@ export type JourneyStatsByPointsItemGet = {
1531
1062
  pointOutputStat: PointOutputStat[];
1532
1063
  waitingTravellers: number;
1533
1064
  entries: number;
1534
- dropped: number;
1535
- };
1536
- export type ChannelStat = {
1537
- channel: string;
1538
- sends: number;
1539
- openRate: number;
1540
- shown: number;
1541
- interactions: number;
1542
- opens: number;
1543
- recipients: number;
1544
- clicks: number;
1545
- softbounce: number;
1546
- hardbounce: number;
1547
- complaint: number;
1548
- unsubscribed: number;
1549
1065
  };
1550
1066
  export type JourneyStatItems = {
1551
1067
  total: number;
@@ -1553,7 +1069,6 @@ export type JourneyStatItems = {
1553
1069
  avgCtr: number;
1554
1070
  left: number;
1555
1071
  leftByError: number;
1556
- dropped: number;
1557
1072
  inside: number;
1558
1073
  achievedGoal: number;
1559
1074
  goals: Record<string, number>;
@@ -1562,8 +1077,6 @@ export type JourneyStatItems = {
1562
1077
  pointsToGoalsMap: Record<string, GoalPointStats>;
1563
1078
  abSplitStats: Record<string, ABSplitStat>;
1564
1079
  totalSkipped: number;
1565
- sendingErrors: number;
1566
- channelsStat: Record<string, ChannelStat>;
1567
1080
  };
1568
1081
  export type PointOutputStat = {
1569
1082
  key: string;
@@ -1640,7 +1153,7 @@ export type GetJourneyUsersRequest = {
1640
1153
  pageSize?: number;
1641
1154
  page?: number;
1642
1155
  };
1643
- export type UserStatus = 'unknown' | 'inJourneyNow' | 'exited' | 'droppedOff' | 'goalReached';
1156
+ export type UserStatus = 'unknown' | 'inJourneyNow' | 'exited' | 'droppedOff';
1644
1157
  export type GetJourneyUsersResponse_UserPoint = {
1645
1158
  userId: string;
1646
1159
  lastPointType: string;
@@ -1653,162 +1166,6 @@ export type GetJourneyUsersResponse = {
1653
1166
  users: GetJourneyUsersResponse_UserPoint[];
1654
1167
  totals: number;
1655
1168
  };
1656
- export type Channel = 'CHANNEL_UNSPECIFIED' | 'PUSH' | 'EMAIL' | 'WHATSAPP' | 'SMS' | 'IN_APP' | 'LINE';
1657
- export type GetJourneyMetricsRequest = {
1658
- uuid?: string;
1659
- application?: string;
1660
- timestampFrom?: Date;
1661
- timestampTo?: Date;
1662
- timezone?: string;
1663
- };
1664
- export type GetJourneyMetricsResponse_PushMetrics = {
1665
- sends: number[];
1666
- opens: number[];
1667
- deliveryIssues: number[];
1668
- successfulSends: number[];
1669
- totalOpens: number[];
1670
- };
1671
- export type GetJourneyMetricsResponse_EmailMetrics = {
1672
- sends: number[];
1673
- opens: number[];
1674
- deliveryIssues: number[];
1675
- clicks: number[];
1676
- successfulSends: number[];
1677
- totalOpens: number[];
1678
- };
1679
- export type GetJourneyMetricsResponse_WhatsAppMetrics = {
1680
- sends: number[];
1681
- read: number[];
1682
- deliveryIssues: number[];
1683
- successfulSends: number[];
1684
- totalRead: number[];
1685
- };
1686
- export type GetJourneyMetricsResponse_SMSMetrics = {
1687
- sends: number[];
1688
- deliveries: number[];
1689
- deliveryIssues: number[];
1690
- successfulSends: number[];
1691
- };
1692
- export type GetJourneyMetricsResponse_LineMetrics = {
1693
- sends: number[];
1694
- deliveryIssues: number[];
1695
- successfulSends: number[];
1696
- };
1697
- export type GetJourneyMetricsResponse_InAppMetrics = {
1698
- impressions: number[];
1699
- interactions: number[];
1700
- deliveryIssues: number[];
1701
- };
1702
- export type GetJourneyMetricsResponse_ChannelMetrics = {
1703
- push: GetJourneyMetricsResponse_PushMetrics;
1704
- email: GetJourneyMetricsResponse_EmailMetrics;
1705
- whatsapp: GetJourneyMetricsResponse_WhatsAppMetrics;
1706
- sms: GetJourneyMetricsResponse_SMSMetrics;
1707
- inApp: GetJourneyMetricsResponse_InAppMetrics;
1708
- line: GetJourneyMetricsResponse_LineMetrics;
1709
- };
1710
- export type GetJourneyMetricsResponse_PushTotals = {
1711
- sent: number;
1712
- recipients: number;
1713
- opened: number;
1714
- deliveryIssues: number;
1715
- successfulSends: number;
1716
- totalOpened: number;
1717
- frequencyCappingUniqueUsers: number;
1718
- frequencyCappingSuppressions: number;
1719
- };
1720
- export type GetJourneyMetricsResponse_EmailTotals = {
1721
- sent: number;
1722
- recipients: number;
1723
- opened: number;
1724
- deliveryIssues: number;
1725
- hardBounces: number;
1726
- softBounces: number;
1727
- complaints: number;
1728
- clicks: number;
1729
- unsubscribes: number;
1730
- successfulSends: number;
1731
- totalOpened: number;
1732
- deliveries: number;
1733
- totalDeliveries: number;
1734
- frequencyCappingUniqueUsers: number;
1735
- frequencyCappingSuppressions: number;
1736
- };
1737
- export type GetJourneyMetricsResponse_WhatsAppTotals = {
1738
- sent: number;
1739
- recipients: number;
1740
- read: number;
1741
- errors: number;
1742
- deliveries: number;
1743
- successfulSends: number;
1744
- totalRead: number;
1745
- frequencyCappingUniqueUsers: number;
1746
- frequencyCappingSuppressions: number;
1747
- };
1748
- export type GetJourneyMetricsResponse_SMSTotals = {
1749
- sent: number;
1750
- recipients: number;
1751
- deliveries: number;
1752
- errors: number;
1753
- successfulSends: number;
1754
- frequencyCappingUniqueUsers: number;
1755
- frequencyCappingSuppressions: number;
1756
- };
1757
- export type GetJourneyMetricsResponse_LineTotals = {
1758
- sent: number;
1759
- recipients: number;
1760
- errors: number;
1761
- successfulSends: number;
1762
- frequencyCappingUniqueUsers: number;
1763
- frequencyCappingSuppressions: number;
1764
- };
1765
- export type GetJourneyMetricsResponse_InAppTotals = {
1766
- impressions: number;
1767
- interactions: number;
1768
- errors: number;
1769
- };
1770
- export type GetJourneyMetricsResponse_ChannelTotals = {
1771
- push: GetJourneyMetricsResponse_PushTotals;
1772
- email: GetJourneyMetricsResponse_EmailTotals;
1773
- whatsapp: GetJourneyMetricsResponse_WhatsAppTotals;
1774
- sms: GetJourneyMetricsResponse_SMSTotals;
1775
- inApp: GetJourneyMetricsResponse_InAppTotals;
1776
- line: GetJourneyMetricsResponse_LineTotals;
1777
- };
1778
- export type GetJourneyMetricsResponse = {
1779
- timestamps: Date[];
1780
- channelMetrics: GetJourneyMetricsResponse_ChannelMetrics;
1781
- totals: GetJourneyMetricsResponse_ChannelTotals;
1782
- };
1783
- export type GetJourneyDeliveryReportRequest = {
1784
- application?: string;
1785
- uuid?: string;
1786
- timestampFrom?: Date;
1787
- timestampTo?: Date;
1788
- timezone?: string;
1789
- };
1790
- export type GetJourneyDeliveryReportResponse_DeliveryError = {
1791
- name: string;
1792
- description: string;
1793
- count: number;
1794
- userDrop: boolean;
1795
- statusCode: number;
1796
- };
1797
- export type GetJourneyDeliveryReportResponse = {
1798
- push: GetJourneyDeliveryReportResponse_DeliveryError[];
1799
- email: GetJourneyDeliveryReportResponse_DeliveryError[];
1800
- whatsapp: GetJourneyDeliveryReportResponse_DeliveryError[];
1801
- sms: GetJourneyDeliveryReportResponse_DeliveryError[];
1802
- inApp: GetJourneyDeliveryReportResponse_DeliveryError[];
1803
- };
1804
- export type MultiEntry = {
1805
- enabled: boolean;
1806
- attributeName: string;
1807
- };
1808
- export type AttributeEntry = {
1809
- enabled: boolean;
1810
- attributeName: string;
1811
- };
1812
1169
  export type GetVoucherPoolsRequest = {
1813
1170
  applicationCode?: string;
1814
1171
  };
@@ -1818,244 +1175,3 @@ export type GetVoucherPoolsResponse = {
1818
1175
  export type VoucherPool = {
1819
1176
  name: string;
1820
1177
  };
1821
- export type GetWhatsAppPresetsByAppCodeRequest = {
1822
- code?: string;
1823
- };
1824
- export type GetWhatsAppPresetsByAppCodeResponse = {
1825
- payload: WhatsAppPresetsByAppCodePayload;
1826
- };
1827
- export type WhatsAppPresetsByAppCodePayload = {
1828
- items: WhatsAppPresetByAppCodeItem[];
1829
- };
1830
- export type WhatsAppPresetByAppCodeItem = {
1831
- content: string;
1832
- code: string;
1833
- name: string;
1834
- headerType: string;
1835
- headerVariables: string[];
1836
- headerText: string;
1837
- variables: string[];
1838
- quickReplies: WhatsAppPresetQuickReply[];
1839
- buttonUrlVariables: WhatsAppButtonURLVariables[];
1840
- };
1841
- export type WhatsAppPresetQuickReply = {
1842
- name: string;
1843
- output: string;
1844
- };
1845
- export type WhatsAppButtonURLVariables = {
1846
- index: number;
1847
- text: string;
1848
- url: string;
1849
- type: string;
1850
- variable: string;
1851
- };
1852
- export type GetEmailPresetsByAppCodeRequest = {
1853
- code?: string;
1854
- };
1855
- export type GetEmailPresetsByAppCodeResponse = {
1856
- payload: EmailPresetsByAppCodePayload;
1857
- };
1858
- export type EmailPresetsByAppCodePayload = {
1859
- items: EmailPresetByAppCodeItem[];
1860
- };
1861
- export type EmailPresetByAppCodeItem = {
1862
- uid: number;
1863
- code: string;
1864
- subjects: Record<string, string>;
1865
- sendFrom: SendFrom;
1866
- template: string;
1867
- campaign: string;
1868
- name: string;
1869
- replyTo: ReplyTo;
1870
- };
1871
- export type SendFrom = {
1872
- name: string;
1873
- email: string;
1874
- };
1875
- export type TestWebhookRequest_TemplateData = {
1876
- hwid: string;
1877
- userId: string;
1878
- appCode: string;
1879
- tags: Record<string, string>;
1880
- eventAttributes: Record<string, string>;
1881
- };
1882
- export type TestWebhookRequest = {
1883
- method?: string;
1884
- url?: string;
1885
- template?: string;
1886
- headers?: Record<string, string>;
1887
- templateData?: TestWebhookRequest_TemplateData;
1888
- };
1889
- export type TestWebhookResponse = {
1890
- ok: boolean;
1891
- statusCode: number;
1892
- body: string;
1893
- };
1894
- export type GetEventsByApplicationCodeRequest = {
1895
- code?: string;
1896
- };
1897
- export type GetEventsByApplicationCodeResponse = {
1898
- payload: EventsByApplicationCodePayload;
1899
- };
1900
- export type EventsByApplicationCodePayload = {
1901
- items: EventItem[];
1902
- };
1903
- export type EventItem = {
1904
- id: number;
1905
- name: string;
1906
- description: string;
1907
- attributes: EventAttributeItem[];
1908
- };
1909
- export type EventAttributeItem = {
1910
- id: number;
1911
- name: string;
1912
- type: number;
1913
- };
1914
- export type GetEventAttributeValuesRequest = {
1915
- code?: string;
1916
- eventId?: number;
1917
- attribute?: string;
1918
- limit?: number;
1919
- searchValue?: string;
1920
- };
1921
- export type GetEventAttributeValuesResponse = {
1922
- payload: EventAttributeValuesPayload;
1923
- };
1924
- export type EventAttributeValuesPayload = {
1925
- values: string[];
1926
- };
1927
- export type GetRichMediaByApplicationCodeRequest = {
1928
- code?: string;
1929
- noContent?: boolean;
1930
- noParams?: boolean;
1931
- search?: string;
1932
- };
1933
- export type GetRichMediaByApplicationCodeResponse = {
1934
- payload: RichMediaByApplicationCodePayload;
1935
- };
1936
- export type RichMediaByApplicationCodePayload = {
1937
- items: RichMediaItem[];
1938
- };
1939
- export type RichMediaItem = {
1940
- name: string;
1941
- uid: number;
1942
- params: string;
1943
- code: string;
1944
- applicationId: number;
1945
- applicationCode: string;
1946
- defaultLanguage: string;
1947
- businessCase: string;
1948
- fileHash: string;
1949
- isSystem: boolean;
1950
- zipContent: string;
1951
- };
1952
- export type GetRichMediaByCodeRequest = {
1953
- code?: string;
1954
- rmcode?: string;
1955
- };
1956
- export type GetRichMediaByCodeResponse = {
1957
- payload: RichMediaItem;
1958
- };
1959
- export type GetLinePresetsByAppCodeRequest = {
1960
- code?: string;
1961
- };
1962
- export type GetLinePresetsByAppCodeResponse = {
1963
- payload: LinePresetsByAppCodePayload;
1964
- };
1965
- export type LinePresetsByAppCodePayload = {
1966
- items: LinePresetByAppCodeItem[];
1967
- };
1968
- export type LinePresetByAppCodeItem = {
1969
- code: string;
1970
- name: string;
1971
- content: string;
1972
- };
1973
- export type GetSmsPresetsByAppCodeRequest = {
1974
- code?: string;
1975
- };
1976
- export type GetSmsPresetsByAppCodeResponse = {
1977
- payload: SmsPresetsByAppCodePayload;
1978
- };
1979
- export type SmsPresetsByAppCodePayload = {
1980
- items: SmsPresetByAppCodeItem[];
1981
- };
1982
- export type SmsPresetByAppCodeItem = {
1983
- code: string;
1984
- name: string;
1985
- content: string;
1986
- };
1987
- export type GetPushPresetsByAppCodeRequest = {
1988
- code?: string;
1989
- journeyUuid?: string;
1990
- };
1991
- export type GetPushPresetsByAppCodeResponse = {
1992
- payload: PushPresetsByAppCodePayload;
1993
- };
1994
- export type PushPresetsByAppCodePayload = {
1995
- items: PushPresetByAppCodeItem[];
1996
- };
1997
- export type PushPresetByAppCodeItem = {
1998
- code: string;
1999
- name: string;
2000
- content: string;
2001
- title: string;
2002
- url: string;
2003
- variables: PushPresetVariables;
2004
- };
2005
- export type PushPresetVariables = {
2006
- title: string[];
2007
- content: string[];
2008
- url: string[];
2009
- };
2010
- export type GetApplicationsByAccountIdRequest = {};
2011
- export type GetApplicationsByAccountIdResponse = {
2012
- payload: ApplicationItem[];
2013
- };
2014
- export type ApplicationItem = {
2015
- title: string;
2016
- code: string;
2017
- icon: string;
2018
- platforms: ApplicationPlatform[];
2019
- };
2020
- export type ApplicationPlatform = {
2021
- type: string;
2022
- isEnabled: boolean;
2023
- isConfigured: boolean;
2024
- };
2025
- export type GetFiltersByAccountIdRequest = {};
2026
- export type GetFiltersByAccountIdResponse = {
2027
- payload: FilterItem[];
2028
- };
2029
- export type FilterItem = {
2030
- id: number;
2031
- accountId: number;
2032
- applicationId: number;
2033
- name: string;
2034
- code: string;
2035
- };
2036
- export type GetEventsByApplicationCodesRequest = {
2037
- applicationCodes?: string[];
2038
- };
2039
- export type GetEventsByApplicationCodesResponse = {
2040
- payload: Record<string, EventsByApplicationCodePayload>;
2041
- };
2042
- export type MetaAdAccountStatus = 'META_AD_ACCOUNT_STATUS_UNSPECIFIED' | 'META_AD_ACCOUNT_STATUS_CONNECTED' | 'META_AD_ACCOUNT_STATUS_DISCONNECTED' | 'META_AD_ACCOUNT_STATUS_PENDING';
2043
- export type MetaAdAccount = {
2044
- id: string;
2045
- name: string;
2046
- status: MetaAdAccountStatus;
2047
- };
2048
- export type MetaCustomAudience = {
2049
- id: string;
2050
- name: string;
2051
- };
2052
- export type GetMetaAdAccountsRequest = {};
2053
- export type GetMetaAdAccountsResponse = {
2054
- adAccounts: MetaAdAccount[];
2055
- };
2056
- export type GetMetaAudiencesRequest = {
2057
- adAccountId?: string;
2058
- };
2059
- export type GetMetaAudiencesResponse = {
2060
- audiences: MetaCustomAudience[];
2061
- };