mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
{
|
|
"node-gcm": {
|
|
"IMessageOptions": {
|
|
"collapseKey": "string",
|
|
"delayWhileIdle": "bool",
|
|
"timeToLive": "number",
|
|
"dryRun": "bool",
|
|
"data": {}
|
|
},
|
|
"Message": {
|
|
"!type": "fn(options?: IMessageOptions)",
|
|
"prototype": {
|
|
"collapseKey": "string",
|
|
"delayWhileIdle": "bool",
|
|
"timeToLive": "number",
|
|
"dryRun": "bool",
|
|
"addData": "fn(key: string, value: string)"
|
|
}
|
|
},
|
|
"ISenderOptions": {
|
|
"proxy": "?",
|
|
"maxSockets": "number",
|
|
"timeout": "number"
|
|
},
|
|
"ISenderSendOptions": {
|
|
"retries": "number",
|
|
"backoff": "number"
|
|
},
|
|
"Sender": {
|
|
"!type": "fn(key: string, options?: ISenderOptions)",
|
|
"prototype": {
|
|
"key": "string",
|
|
"options": "ISenderOptions",
|
|
"send": "fn(message: Message, registrationIds: string, string: ?, callback: fn(err: ?, resJson: IResponseBody))",
|
|
"sendNoRetry": "fn(message: Message, registrationIds: string, string: ?, callback: fn(err: ?, resJson: IResponseBody))"
|
|
}
|
|
},
|
|
"IResponseBody": {
|
|
"success": "number",
|
|
"failure": "number",
|
|
"canonical_ids": "number",
|
|
"multicast_id": "number",
|
|
"results": "[]"
|
|
}
|
|
},
|
|
"!name": "node-gcm.d.ts",
|
|
"!define": {
|
|
"": {
|
|
"message_id": "string",
|
|
"registration_id": "string",
|
|
"error": "string"
|
|
}
|
|
}
|
|
}
|