@pushwoosh/rpc-gateway-journey-data 0.27.116 → 0.27.117
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 +90 -0
- package/package.json +1 -1
- package/pushwoosh_cj_journey.d.ts +26 -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",
|
|
@@ -7124,6 +7136,84 @@ export const data = {
|
|
|
7124
7136
|
}
|
|
7125
7137
|
}
|
|
7126
7138
|
},
|
|
7139
|
+
"pushwoosh.cj.journey.AdPlatform": {
|
|
7140
|
+
"type": "E",
|
|
7141
|
+
"values": [
|
|
7142
|
+
"AD_PLATFORM_META",
|
|
7143
|
+
"AD_PLATFORM_GOOGLE_ADS"
|
|
7144
|
+
]
|
|
7145
|
+
},
|
|
7146
|
+
"pushwoosh.cj.journey.AdAccountStatus": {
|
|
7147
|
+
"type": "E",
|
|
7148
|
+
"values": [
|
|
7149
|
+
"AD_ACCOUNT_STATUS_UNSPECIFIED",
|
|
7150
|
+
"AD_ACCOUNT_STATUS_CONNECTED",
|
|
7151
|
+
"AD_ACCOUNT_STATUS_DISCONNECTED",
|
|
7152
|
+
"AD_ACCOUNT_STATUS_PENDING"
|
|
7153
|
+
]
|
|
7154
|
+
},
|
|
7155
|
+
"pushwoosh.cj.journey.AdAccount": {
|
|
7156
|
+
"type": "I",
|
|
7157
|
+
"fields": {
|
|
7158
|
+
"id": {
|
|
7159
|
+
"type": "string"
|
|
7160
|
+
},
|
|
7161
|
+
"name": {
|
|
7162
|
+
"type": "string"
|
|
7163
|
+
},
|
|
7164
|
+
"status": {
|
|
7165
|
+
"type": "pushwoosh.cj.journey.AdAccountStatus"
|
|
7166
|
+
}
|
|
7167
|
+
}
|
|
7168
|
+
},
|
|
7169
|
+
"pushwoosh.cj.journey.AdAudience": {
|
|
7170
|
+
"type": "I",
|
|
7171
|
+
"fields": {
|
|
7172
|
+
"id": {
|
|
7173
|
+
"type": "string"
|
|
7174
|
+
},
|
|
7175
|
+
"name": {
|
|
7176
|
+
"type": "string"
|
|
7177
|
+
}
|
|
7178
|
+
}
|
|
7179
|
+
},
|
|
7180
|
+
"pushwoosh.cj.journey.GetAdAccountsRequest": {
|
|
7181
|
+
"type": "I",
|
|
7182
|
+
"fields": {
|
|
7183
|
+
"platform": {
|
|
7184
|
+
"type": "pushwoosh.cj.journey.AdPlatform"
|
|
7185
|
+
}
|
|
7186
|
+
}
|
|
7187
|
+
},
|
|
7188
|
+
"pushwoosh.cj.journey.GetAdAccountsResponse": {
|
|
7189
|
+
"type": "I",
|
|
7190
|
+
"fields": {
|
|
7191
|
+
"adAccounts": {
|
|
7192
|
+
"type": "pushwoosh.cj.journey.AdAccount",
|
|
7193
|
+
"array": true
|
|
7194
|
+
}
|
|
7195
|
+
}
|
|
7196
|
+
},
|
|
7197
|
+
"pushwoosh.cj.journey.GetAdAudiencesRequest": {
|
|
7198
|
+
"type": "I",
|
|
7199
|
+
"fields": {
|
|
7200
|
+
"platform": {
|
|
7201
|
+
"type": "pushwoosh.cj.journey.AdPlatform"
|
|
7202
|
+
},
|
|
7203
|
+
"adAccountId": {
|
|
7204
|
+
"type": "string"
|
|
7205
|
+
}
|
|
7206
|
+
}
|
|
7207
|
+
},
|
|
7208
|
+
"pushwoosh.cj.journey.GetAdAudiencesResponse": {
|
|
7209
|
+
"type": "I",
|
|
7210
|
+
"fields": {
|
|
7211
|
+
"audiences": {
|
|
7212
|
+
"type": "pushwoosh.cj.journey.AdAudience",
|
|
7213
|
+
"array": true
|
|
7214
|
+
}
|
|
7215
|
+
}
|
|
7216
|
+
},
|
|
7127
7217
|
"pushwoosh.cj.journey.MetaAdAccountStatus": {
|
|
7128
7218
|
"type": "E",
|
|
7129
7219
|
"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>;
|
|
@@ -2509,6 +2511,30 @@ export type GetEventsByApplicationCodesRequest = {
|
|
|
2509
2511
|
export type GetEventsByApplicationCodesResponse = {
|
|
2510
2512
|
payload: Record<string, EventsByApplicationCodePayload>;
|
|
2511
2513
|
};
|
|
2514
|
+
export type AdPlatform = 'AD_PLATFORM_META' | 'AD_PLATFORM_GOOGLE_ADS';
|
|
2515
|
+
export type AdAccountStatus = 'AD_ACCOUNT_STATUS_UNSPECIFIED' | 'AD_ACCOUNT_STATUS_CONNECTED' | 'AD_ACCOUNT_STATUS_DISCONNECTED' | 'AD_ACCOUNT_STATUS_PENDING';
|
|
2516
|
+
export type AdAccount = {
|
|
2517
|
+
id: string;
|
|
2518
|
+
name: string;
|
|
2519
|
+
status: AdAccountStatus;
|
|
2520
|
+
};
|
|
2521
|
+
export type AdAudience = {
|
|
2522
|
+
id: string;
|
|
2523
|
+
name: string;
|
|
2524
|
+
};
|
|
2525
|
+
export type GetAdAccountsRequest = {
|
|
2526
|
+
platform?: AdPlatform;
|
|
2527
|
+
};
|
|
2528
|
+
export type GetAdAccountsResponse = {
|
|
2529
|
+
adAccounts: AdAccount[];
|
|
2530
|
+
};
|
|
2531
|
+
export type GetAdAudiencesRequest = {
|
|
2532
|
+
platform?: AdPlatform;
|
|
2533
|
+
adAccountId?: string;
|
|
2534
|
+
};
|
|
2535
|
+
export type GetAdAudiencesResponse = {
|
|
2536
|
+
audiences: AdAudience[];
|
|
2537
|
+
};
|
|
2512
2538
|
export type MetaAdAccountStatus = 'META_AD_ACCOUNT_STATUS_UNSPECIFIED' | 'META_AD_ACCOUNT_STATUS_CONNECTED' | 'META_AD_ACCOUNT_STATUS_DISCONNECTED' | 'META_AD_ACCOUNT_STATUS_PENDING';
|
|
2513
2539
|
export type MetaAdAccount = {
|
|
2514
2540
|
id: string;
|