@pushwoosh/rpc-gateway-journey-data 0.27.116 → 0.27.118
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 +93 -0
- package/package.json +1 -1
- package/pushwoosh_cj_journey.d.ts +27 -0
package/data.js
CHANGED
|
@@ -407,6 +407,18 @@ export const data = {
|
|
|
407
407
|
"method": "get",
|
|
408
408
|
"path": "/api/v2/events"
|
|
409
409
|
},
|
|
410
|
+
"GetAdAccounts": {
|
|
411
|
+
"request": "pushwoosh.cj.journey.GetAdAccountsRequest",
|
|
412
|
+
"response": "pushwoosh.cj.journey.GetAdAccountsResponse",
|
|
413
|
+
"method": "get",
|
|
414
|
+
"path": "/api/v2/ad-accounts"
|
|
415
|
+
},
|
|
416
|
+
"GetAdAudiences": {
|
|
417
|
+
"request": "pushwoosh.cj.journey.GetAdAudiencesRequest",
|
|
418
|
+
"response": "pushwoosh.cj.journey.GetAdAudiencesResponse",
|
|
419
|
+
"method": "get",
|
|
420
|
+
"path": "/api/v2/ad-accounts/{ad_account_id}/audiences"
|
|
421
|
+
},
|
|
410
422
|
"GetMetaAdAccounts": {
|
|
411
423
|
"request": "pushwoosh.cj.journey.GetMetaAdAccountsRequest",
|
|
412
424
|
"response": "pushwoosh.cj.journey.GetMetaAdAccountsResponse",
|
|
@@ -4568,6 +4580,9 @@ export const data = {
|
|
|
4568
4580
|
},
|
|
4569
4581
|
"action": {
|
|
4570
4582
|
"type": "pushwoosh.cj.journey.AudienceSyncAction"
|
|
4583
|
+
},
|
|
4584
|
+
"platform": {
|
|
4585
|
+
"type": "pushwoosh.cj.journey.AdPlatform"
|
|
4571
4586
|
}
|
|
4572
4587
|
}
|
|
4573
4588
|
},
|
|
@@ -7124,6 +7139,84 @@ export const data = {
|
|
|
7124
7139
|
}
|
|
7125
7140
|
}
|
|
7126
7141
|
},
|
|
7142
|
+
"pushwoosh.cj.journey.AdPlatform": {
|
|
7143
|
+
"type": "E",
|
|
7144
|
+
"values": [
|
|
7145
|
+
"AD_PLATFORM_META",
|
|
7146
|
+
"AD_PLATFORM_GOOGLE_ADS"
|
|
7147
|
+
]
|
|
7148
|
+
},
|
|
7149
|
+
"pushwoosh.cj.journey.AdAccountStatus": {
|
|
7150
|
+
"type": "E",
|
|
7151
|
+
"values": [
|
|
7152
|
+
"AD_ACCOUNT_STATUS_UNSPECIFIED",
|
|
7153
|
+
"AD_ACCOUNT_STATUS_CONNECTED",
|
|
7154
|
+
"AD_ACCOUNT_STATUS_DISCONNECTED",
|
|
7155
|
+
"AD_ACCOUNT_STATUS_PENDING"
|
|
7156
|
+
]
|
|
7157
|
+
},
|
|
7158
|
+
"pushwoosh.cj.journey.AdAccount": {
|
|
7159
|
+
"type": "I",
|
|
7160
|
+
"fields": {
|
|
7161
|
+
"id": {
|
|
7162
|
+
"type": "string"
|
|
7163
|
+
},
|
|
7164
|
+
"name": {
|
|
7165
|
+
"type": "string"
|
|
7166
|
+
},
|
|
7167
|
+
"status": {
|
|
7168
|
+
"type": "pushwoosh.cj.journey.AdAccountStatus"
|
|
7169
|
+
}
|
|
7170
|
+
}
|
|
7171
|
+
},
|
|
7172
|
+
"pushwoosh.cj.journey.AdAudience": {
|
|
7173
|
+
"type": "I",
|
|
7174
|
+
"fields": {
|
|
7175
|
+
"id": {
|
|
7176
|
+
"type": "string"
|
|
7177
|
+
},
|
|
7178
|
+
"name": {
|
|
7179
|
+
"type": "string"
|
|
7180
|
+
}
|
|
7181
|
+
}
|
|
7182
|
+
},
|
|
7183
|
+
"pushwoosh.cj.journey.GetAdAccountsRequest": {
|
|
7184
|
+
"type": "I",
|
|
7185
|
+
"fields": {
|
|
7186
|
+
"platform": {
|
|
7187
|
+
"type": "pushwoosh.cj.journey.AdPlatform"
|
|
7188
|
+
}
|
|
7189
|
+
}
|
|
7190
|
+
},
|
|
7191
|
+
"pushwoosh.cj.journey.GetAdAccountsResponse": {
|
|
7192
|
+
"type": "I",
|
|
7193
|
+
"fields": {
|
|
7194
|
+
"adAccounts": {
|
|
7195
|
+
"type": "pushwoosh.cj.journey.AdAccount",
|
|
7196
|
+
"array": true
|
|
7197
|
+
}
|
|
7198
|
+
}
|
|
7199
|
+
},
|
|
7200
|
+
"pushwoosh.cj.journey.GetAdAudiencesRequest": {
|
|
7201
|
+
"type": "I",
|
|
7202
|
+
"fields": {
|
|
7203
|
+
"platform": {
|
|
7204
|
+
"type": "pushwoosh.cj.journey.AdPlatform"
|
|
7205
|
+
},
|
|
7206
|
+
"adAccountId": {
|
|
7207
|
+
"type": "string"
|
|
7208
|
+
}
|
|
7209
|
+
}
|
|
7210
|
+
},
|
|
7211
|
+
"pushwoosh.cj.journey.GetAdAudiencesResponse": {
|
|
7212
|
+
"type": "I",
|
|
7213
|
+
"fields": {
|
|
7214
|
+
"audiences": {
|
|
7215
|
+
"type": "pushwoosh.cj.journey.AdAudience",
|
|
7216
|
+
"array": true
|
|
7217
|
+
}
|
|
7218
|
+
}
|
|
7219
|
+
},
|
|
7127
7220
|
"pushwoosh.cj.journey.MetaAdAccountStatus": {
|
|
7128
7221
|
"type": "E",
|
|
7129
7222
|
"values": [
|
package/package.json
CHANGED
|
@@ -67,6 +67,8 @@ export interface Journey {
|
|
|
67
67
|
GetApplicationsByAccountId(request: GetApplicationsByAccountIdRequest): Promise<GetApplicationsByAccountIdResponse>;
|
|
68
68
|
GetFiltersByAccountId(request: GetFiltersByAccountIdRequest): Promise<GetFiltersByAccountIdResponse>;
|
|
69
69
|
GetEventsByApplicationCodes(request: GetEventsByApplicationCodesRequest): Promise<GetEventsByApplicationCodesResponse>;
|
|
70
|
+
GetAdAccounts(request: GetAdAccountsRequest): Promise<GetAdAccountsResponse>;
|
|
71
|
+
GetAdAudiences(request: GetAdAudiencesRequest): Promise<GetAdAudiencesResponse>;
|
|
70
72
|
GetMetaAdAccounts(request: GetMetaAdAccountsRequest): Promise<GetMetaAdAccountsResponse>;
|
|
71
73
|
GetMetaAudiences(request: GetMetaAudiencesRequest): Promise<GetMetaAudiencesResponse>;
|
|
72
74
|
OpenJourneyForEdit(request: OpenJourneyForEditRequest): Promise<GetJourneyByUUIDResponse>;
|
|
@@ -1644,6 +1646,7 @@ export type PointParamsAudienceSync = {
|
|
|
1644
1646
|
audienceId: string;
|
|
1645
1647
|
audienceName: string;
|
|
1646
1648
|
action: AudienceSyncAction;
|
|
1649
|
+
platform: AdPlatform;
|
|
1647
1650
|
};
|
|
1648
1651
|
export type PointParamsStartBySegment = {
|
|
1649
1652
|
filterCode: string;
|
|
@@ -2509,6 +2512,30 @@ export type GetEventsByApplicationCodesRequest = {
|
|
|
2509
2512
|
export type GetEventsByApplicationCodesResponse = {
|
|
2510
2513
|
payload: Record<string, EventsByApplicationCodePayload>;
|
|
2511
2514
|
};
|
|
2515
|
+
export type AdPlatform = 'AD_PLATFORM_META' | 'AD_PLATFORM_GOOGLE_ADS';
|
|
2516
|
+
export type AdAccountStatus = 'AD_ACCOUNT_STATUS_UNSPECIFIED' | 'AD_ACCOUNT_STATUS_CONNECTED' | 'AD_ACCOUNT_STATUS_DISCONNECTED' | 'AD_ACCOUNT_STATUS_PENDING';
|
|
2517
|
+
export type AdAccount = {
|
|
2518
|
+
id: string;
|
|
2519
|
+
name: string;
|
|
2520
|
+
status: AdAccountStatus;
|
|
2521
|
+
};
|
|
2522
|
+
export type AdAudience = {
|
|
2523
|
+
id: string;
|
|
2524
|
+
name: string;
|
|
2525
|
+
};
|
|
2526
|
+
export type GetAdAccountsRequest = {
|
|
2527
|
+
platform?: AdPlatform;
|
|
2528
|
+
};
|
|
2529
|
+
export type GetAdAccountsResponse = {
|
|
2530
|
+
adAccounts: AdAccount[];
|
|
2531
|
+
};
|
|
2532
|
+
export type GetAdAudiencesRequest = {
|
|
2533
|
+
platform?: AdPlatform;
|
|
2534
|
+
adAccountId?: string;
|
|
2535
|
+
};
|
|
2536
|
+
export type GetAdAudiencesResponse = {
|
|
2537
|
+
audiences: AdAudience[];
|
|
2538
|
+
};
|
|
2512
2539
|
export type MetaAdAccountStatus = 'META_AD_ACCOUNT_STATUS_UNSPECIFIED' | 'META_AD_ACCOUNT_STATUS_CONNECTED' | 'META_AD_ACCOUNT_STATUS_DISCONNECTED' | 'META_AD_ACCOUNT_STATUS_PENDING';
|
|
2513
2540
|
export type MetaAdAccount = {
|
|
2514
2541
|
id: string;
|