Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2195,7 +2195,7 @@ paths:
summary: Export CSV of Subscriptions
x-content-type: application/json
x-accepts: application/json
/notifications/{notification_id}/export_events?app_id={app_id}:
/notifications/{notification_id}/export_events:
post:
description: |-
Generate a compressed CSV report of all of the events data for a notification.
Expand Down Expand Up @@ -5953,6 +5953,15 @@ components:
nullable: true
type: string
writeOnly: true
global_image:
description: "Channel: Push Notifications\nPlatform: All\nPicture to display\
\ on all platforms that support it. Must be a URL to an image file.\n\
Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture,\
\ chrome_web_image, ios_attachments, firefox_icon) take precedence over\
\ this value when set.\n"
nullable: true
type: string
writeOnly: true
huawei_big_picture:
description: "Channel: Push Notifications\nPlatform: Huawei\nPicture to\
\ display in the expanded view. Can be a drawable resource name or a URL.\n"
Expand Down
1 change: 1 addition & 0 deletions docs/BasicNotification.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
|**mutableContent** | **Boolean** | Channel: Push Notifications Platform: iOS 10+ Always defaults to true and cannot be turned off. Allows tracking of notification receives and changing of the notification content in your app before it is displayed. Triggers didReceive(_:withContentHandler:) on your UNNotificationServiceExtension. | [optional] |
|**targetContentIdentifier** | **String** | Channel: Push Notifications Platform: iOS 13+ Use to target a specific experience in your App Clip, or to target your notification to a specific window in a multi-scene App. | [optional] |
|**bigPicture** | **String** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**globalImage** | **String** | Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set. | [optional] |
|**huaweiBigPicture** | **String** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**admBigPicture** | **String** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**chromeBigPicture** | **String** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/BasicNotificationAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
|**mutableContent** | **Boolean** | Channel: Push Notifications Platform: iOS 10+ Always defaults to true and cannot be turned off. Allows tracking of notification receives and changing of the notification content in your app before it is displayed. Triggers didReceive(_:withContentHandler:) on your UNNotificationServiceExtension. | [optional] |
|**targetContentIdentifier** | **String** | Channel: Push Notifications Platform: iOS 13+ Use to target a specific experience in your App Clip, or to target your notification to a specific window in a multi-scene App. | [optional] |
|**bigPicture** | **String** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**globalImage** | **String** | Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set. | [optional] |
|**huaweiBigPicture** | **String** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**admBigPicture** | **String** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**chromeBigPicture** | **String** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional] |
Expand Down
2 changes: 1 addition & 1 deletion docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ All URIs are relative to *https://api.onesignal.com*
| [**deleteSubscription**](DefaultApi.md#deleteSubscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} | |
| [**deleteTemplate**](DefaultApi.md#deleteTemplate) | **DELETE** /templates/{template_id} | Delete template |
| [**deleteUser**](DefaultApi.md#deleteUser) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} | |
| [**exportEvents**](DefaultApi.md#exportEvents) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events |
| [**exportEvents**](DefaultApi.md#exportEvents) | **POST** /notifications/{notification_id}/export_events | Export CSV of Events |
| [**exportSubscriptions**](DefaultApi.md#exportSubscriptions) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Subscriptions |
| [**getAliases**](DefaultApi.md#getAliases) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity | |
| [**getAliasesBySubscription**](DefaultApi.md#getAliasesBySubscription) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity | |
Expand Down
1 change: 1 addition & 0 deletions docs/Notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
|**mutableContent** | **Boolean** | Channel: Push Notifications Platform: iOS 10+ Always defaults to true and cannot be turned off. Allows tracking of notification receives and changing of the notification content in your app before it is displayed. Triggers didReceive(_:withContentHandler:) on your UNNotificationServiceExtension. | [optional] |
|**targetContentIdentifier** | **String** | Channel: Push Notifications Platform: iOS 13+ Use to target a specific experience in your App Clip, or to target your notification to a specific window in a multi-scene App. | [optional] |
|**bigPicture** | **String** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**globalImage** | **String** | Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set. | [optional] |
|**huaweiBigPicture** | **String** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**admBigPicture** | **String** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**chromeBigPicture** | **String** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/NotificationWithMeta.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
|**mutableContent** | **Boolean** | Channel: Push Notifications Platform: iOS 10+ Always defaults to true and cannot be turned off. Allows tracking of notification receives and changing of the notification content in your app before it is displayed. Triggers didReceive(_:withContentHandler:) on your UNNotificationServiceExtension. | [optional] |
|**targetContentIdentifier** | **String** | Channel: Push Notifications Platform: iOS 13+ Use to target a specific experience in your App Clip, or to target your notification to a specific window in a multi-scene App. | [optional] |
|**bigPicture** | **String** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**globalImage** | **String** | Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set. | [optional] |
|**huaweiBigPicture** | **String** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**admBigPicture** | **String** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] |
|**chromeBigPicture** | **String** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional] |
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/onesignal/client/api/DefaultApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,7 @@ public okhttp3.Call exportEventsCall(String notificationId, String appId, final
Object localVarPostBody = null;

// create path and map variables
String localVarPath = "/notifications/{notification_id}/export_events?app_id={app_id}"
String localVarPath = "/notifications/{notification_id}/export_events"
.replaceAll("\\{" + "notification_id" + "\\}", localVarApiClient.escapeString(notificationId.toString()));

List<Pair> localVarQueryParams = new ArrayList<Pair>();
Expand Down
32 changes: 31 additions & 1 deletion src/main/java/com/onesignal/client/model/BasicNotification.java
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ public AggregationEnum read(final JsonReader jsonReader) throws IOException {
@SerializedName(SERIALIZED_NAME_BIG_PICTURE)
private String bigPicture;

public static final String SERIALIZED_NAME_GLOBAL_IMAGE = "global_image";
@SerializedName(SERIALIZED_NAME_GLOBAL_IMAGE)
private String globalImage;

public static final String SERIALIZED_NAME_HUAWEI_BIG_PICTURE = "huawei_big_picture";
@SerializedName(SERIALIZED_NAME_HUAWEI_BIG_PICTURE)
private String huaweiBigPicture;
Expand Down Expand Up @@ -1834,6 +1838,29 @@ public void setBigPicture(String bigPicture) {
}


public BasicNotification globalImage(String globalImage) {

this.globalImage = globalImage;
return this;
}

/**
* Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set.
* @return globalImage
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set. ")

public String getGlobalImage() {
return globalImage;
}


public void setGlobalImage(String globalImage) {
this.globalImage = globalImage;
}


public BasicNotification huaweiBigPicture(String huaweiBigPicture) {

this.huaweiBigPicture = huaweiBigPicture;
Expand Down Expand Up @@ -3585,6 +3612,7 @@ public boolean equals(Object o) {
Objects.equals(this.mutableContent, basicNotification.mutableContent) &&
Objects.equals(this.targetContentIdentifier, basicNotification.targetContentIdentifier) &&
Objects.equals(this.bigPicture, basicNotification.bigPicture) &&
Objects.equals(this.globalImage, basicNotification.globalImage) &&
Objects.equals(this.huaweiBigPicture, basicNotification.huaweiBigPicture) &&
Objects.equals(this.admBigPicture, basicNotification.admBigPicture) &&
Objects.equals(this.chromeBigPicture, basicNotification.chromeBigPicture) &&
Expand Down Expand Up @@ -3665,7 +3693,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(includedSegments, excludedSegments, includeSubscriptionIds, includeEmailTokens, emailTo, includePhoneNumbers, includeIosTokens, includeWpWnsUris, includeAmazonRegIds, includeChromeRegIds, includeChromeWebRegIds, includeAndroidRegIds, includeAliases, targetChannel, id, value, name, aggregation, isIos, isAndroid, isHuawei, isAnyWeb, isChromeWeb, isFirefox, isSafari, isWPWNS, isAdm, isChrome, appId, externalId, idempotencyKey, contents, headings, subtitle, data, huaweiMsgType, url, webUrl, appUrl, iosAttachments, templateId, contentAvailable, mutableContent, targetContentIdentifier, bigPicture, huaweiBigPicture, admBigPicture, chromeBigPicture, chromeWebImage, buttons, webButtons, iosCategory, androidChannelId, huaweiChannelId, existingAndroidChannelId, huaweiExistingChannelId, androidBackgroundLayout, smallIcon, huaweiSmallIcon, largeIcon, huaweiLargeIcon, admSmallIcon, admLargeIcon, chromeWebIcon, chromeWebBadge, firefoxIcon, chromeIcon, iosSound, androidSound, huaweiSound, admSound, wpWnsSound, androidLedColor, huaweiLedColor, androidAccentColor, huaweiAccentColor, androidVisibility, huaweiVisibility, iosBadgeType, iosBadgeCount, collapseId, webPushTopic, apnsAlert, delayedOption, deliveryTimeOfDay, ttl, priority, apnsPushTypeOverride, throttleRatePerMinute, androidGroup, androidGroupMessage, admGroup, admGroupMessage, threadId, summaryArg, summaryArgCount, iosRelevanceScore, iosInterruptionLevel, emailSubject, emailBody, emailFromName, emailFromAddress, emailReplyToAddress, emailPreheader, disableEmailClickTracking, includeUnsubscribed, emailBcc, emailSenderDomain, smsFrom, smsMediaUrls, filters, customData, huaweiBadgeClass, huaweiBadgeAddNum, huaweiBadgeSetNum, huaweiCategory, huaweiBiTag);
return Objects.hash(includedSegments, excludedSegments, includeSubscriptionIds, includeEmailTokens, emailTo, includePhoneNumbers, includeIosTokens, includeWpWnsUris, includeAmazonRegIds, includeChromeRegIds, includeChromeWebRegIds, includeAndroidRegIds, includeAliases, targetChannel, id, value, name, aggregation, isIos, isAndroid, isHuawei, isAnyWeb, isChromeWeb, isFirefox, isSafari, isWPWNS, isAdm, isChrome, appId, externalId, idempotencyKey, contents, headings, subtitle, data, huaweiMsgType, url, webUrl, appUrl, iosAttachments, templateId, contentAvailable, mutableContent, targetContentIdentifier, bigPicture, globalImage, huaweiBigPicture, admBigPicture, chromeBigPicture, chromeWebImage, buttons, webButtons, iosCategory, androidChannelId, huaweiChannelId, existingAndroidChannelId, huaweiExistingChannelId, androidBackgroundLayout, smallIcon, huaweiSmallIcon, largeIcon, huaweiLargeIcon, admSmallIcon, admLargeIcon, chromeWebIcon, chromeWebBadge, firefoxIcon, chromeIcon, iosSound, androidSound, huaweiSound, admSound, wpWnsSound, androidLedColor, huaweiLedColor, androidAccentColor, huaweiAccentColor, androidVisibility, huaweiVisibility, iosBadgeType, iosBadgeCount, collapseId, webPushTopic, apnsAlert, delayedOption, deliveryTimeOfDay, ttl, priority, apnsPushTypeOverride, throttleRatePerMinute, androidGroup, androidGroupMessage, admGroup, admGroupMessage, threadId, summaryArg, summaryArgCount, iosRelevanceScore, iosInterruptionLevel, emailSubject, emailBody, emailFromName, emailFromAddress, emailReplyToAddress, emailPreheader, disableEmailClickTracking, includeUnsubscribed, emailBcc, emailSenderDomain, smsFrom, smsMediaUrls, filters, customData, huaweiBadgeClass, huaweiBadgeAddNum, huaweiBadgeSetNum, huaweiCategory, huaweiBiTag);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand Down Expand Up @@ -3724,6 +3752,7 @@ public String toString() {
sb.append(" mutableContent: ").append(toIndentedString(mutableContent)).append("\n");
sb.append(" targetContentIdentifier: ").append(toIndentedString(targetContentIdentifier)).append("\n");
sb.append(" bigPicture: ").append(toIndentedString(bigPicture)).append("\n");
sb.append(" globalImage: ").append(toIndentedString(globalImage)).append("\n");
sb.append(" huaweiBigPicture: ").append(toIndentedString(huaweiBigPicture)).append("\n");
sb.append(" admBigPicture: ").append(toIndentedString(admBigPicture)).append("\n");
sb.append(" chromeBigPicture: ").append(toIndentedString(chromeBigPicture)).append("\n");
Expand Down Expand Up @@ -3863,6 +3892,7 @@ private String toIndentedString(Object o) {
openapiFields.add("mutable_content");
openapiFields.add("target_content_identifier");
openapiFields.add("big_picture");
openapiFields.add("global_image");
openapiFields.add("huawei_big_picture");
openapiFields.add("adm_big_picture");
openapiFields.add("chrome_big_picture");
Expand Down
Loading