-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(groups): add createGroupNotification #311
Conversation
AFFECTS PACKAGES: @esri/arcgis-rest-groups
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saweet!
* @param requestOptions - Options for the request | ||
* @returns A Promise that will resolve with the success/failure status of the request | ||
*/ | ||
// see http://mediawikidev.esri.com/index.php/ArcGIS.com/User_Notifications |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets remove this link since its not on the public web.
users?: string[]; | ||
notificationChannelType: string; | ||
clientId?: string; | ||
silentNotification?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we supply a default channel?
notificationChannelType?: "push" | "email" | "builtin"
// ...
notificationChannelType: requestOptions.notificationChannelType || "email"
export interface IGroupNotificationRequestOptions | ||
extends IGroupIdRequestOptions { | ||
subject?: string; | ||
message: string | object; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
especially since the REST endpoint isn't docced yet, more info in the inline TypeDoc would go a long way.
/*
* subject of the notification. This only applies to email and builtin notifications. For the push notifications, subject/title is provided as a part of the message payload.
*/
subject?: string;
AFFECTS PACKAGES:
@esri/arcgis-rest-groups